# Multiple registrations of transport actions on startup

**URL:** <https://discuss.elastic.co/t/multiple-registrations-of-transport-actions-on-startup/6236>\
**Category:** Elasticsearch\
**Created:** [December 26, 2011, 12:18am UTC](https://discuss.elastic.co/t/multiple-registrations-of-transport-actions-on-startup/6236 "2011-12-26T00:18:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Reelsen](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Alexander\_Reelsen](https://discuss.elastic.co/u/Alexander_Reelsen)\
**Post date:** [December 26, 2011, 12:18am UTC](https://discuss.elastic.co/t/multiple-registrations-of-transport-actions-on-startup/6236/1 "2011-12-26T00:18:50Z")

</div>

Hi,

I have these error messages in my log

[2011-12-26 01:09:39,942][WARN][transport]  
[Cannonball] Registered two transport handlers for action /indices/  
suggest/refresh, handlers: /indices/suggest/refresh, /indices/suggest/  
refresh  
[2011-12-26 01:09:39,942][WARN][transport]  
[Cannonball] Registered two transport handlers for action /indices/  
suggest/refresh/node, handlers: /indices/suggest/refresh/node, /  
indices/suggest/refresh/node

The handler is the return string from a transportAction() and a  
transportNodeAction() method each. The constructor of this action,  
which extends a TransportNodesOperationAction, is called six times on  
startup. As I merely copied the code from the  
TransportNodesStatsAction, I am not sure what I am missing right now.

Can I add some neat debug level somewhere in order to find out more  
information?

Thanks and happy holidays...

--Alexander

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 26, 2011, 2:34pm UTC](https://discuss.elastic.co/t/multiple-registrations-of-transport-actions-on-startup/6236/2 "2011-12-26T14:34:22Z")

</div>

Are you registering the action as a singleton in guice?

On Mon, Dec 26, 2011 at 2:18 AM, Alexander Reelsen \<  
[alexander.reelsen@googlemail.com](mailto:alexander.reelsen@googlemail.com)\> wrote:

> Hi,
> 
> I have these error messages in my log
> 
> [2011-12-26 01:09:39,942][WARN][transport]  
> [Cannonball] Registered two transport handlers for action /indices/  
> suggest/refresh, handlers: /indices/suggest/refresh, /indices/suggest/  
> refresh  
> [2011-12-26 01:09:39,942][WARN][transport]  
> [Cannonball] Registered two transport handlers for action /indices/  
> suggest/refresh/node, handlers: /indices/suggest/refresh/node, /  
> indices/suggest/refresh/node
> 
> The handler is the return string from a transportAction() and a  
> transportNodeAction() method each. The constructor of this action,  
> which extends a TransportNodesOperationAction, is called six times on  
> startup. As I merely copied the code from the  
> TransportNodesStatsAction, I am not sure what I am missing right now.
> 
> Can I add some neat debug level somewhere in order to find out more  
> information?
> 
> Thanks and happy holidays...
> 
> --Alexander

---

<div class="post-metadata">

**Author:** ![Alexander\_Reelsen](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Alexander\_Reelsen](https://discuss.elastic.co/u/Alexander_Reelsen)\
**Post date:** [December 27, 2011, 1:44am UTC](https://discuss.elastic.co/t/multiple-registrations-of-transport-actions-on-startup/6236/3 "2011-12-27T01:44:26Z")

</div>

Hey Shay

found the problem, Binding them in my plugin module as eager singleton  
like this

bind(TransportSuggestAction.class).asEagerSingleton();

was not enough, when not adding the module via modules() method in the  
class extending AbstractPlugin...

--Alexander

On Dec 26, 3:34 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Are you registering the action as a singleton in guice?
> 
> On Mon, Dec 26, 2011 at 2:18 AM, Alexander Reelsen \<
> 
> [alexander.reel...@googlemail.com](mailto:alexander.reel...@googlemail.com)\> wrote:
> 
> > Hi,
> 
> > I have these error messages in my log
> 
> > [2011-12-26 01:09:39,942][WARN][transport]  
> > [Cannonball] Registered two transport handlers for action /indices/  
> > suggest/refresh, handlers: /indices/suggest/refresh, /indices/suggest/  
> > refresh  
> > [2011-12-26 01:09:39,942][WARN][transport]  
> > [Cannonball] Registered two transport handlers for action /indices/  
> > suggest/refresh/node, handlers: /indices/suggest/refresh/node, /  
> > indices/suggest/refresh/node
> 
> > The handler is the return string from a transportAction() and a  
> > transportNodeAction() method each. The constructor of this action,  
> > which extends a TransportNodesOperationAction, is called six times on  
> > startup. As I merely copied the code from the  
> > TransportNodesStatsAction, I am not sure what I am missing right now.
> 
> > Can I add some neat debug level somewhere in order to find out more  
> > information?
> 
> > Thanks and happy holidays...
> 
> > --Alexander

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:44am UTC](https://discuss.elastic.co/t/multiple-registrations-of-transport-actions-on-startup/6236/4 "2017-07-06T03:44:21Z")

</div>

Closed on July 6, 2017, 3:44am UTC


