0.19 plugin question: Mapping Actions to TransportActions

Hi there,

just a minor plugin question I do not understand. I tried to convert
my suggest plugin to the new introduced more generic client API and
got some weird null pointer exceptions when trying to execute my
action. The source of my problem is in the NodeClient constructor,
where there is a mapping actionsbuilder used MapBuilder<Action,
TransportAction> actionsBuilder, which creates the actions variable

which maps actions to transport actions. However I havent seen in the
source yet where to do this mapping (okok, it was 1am yesterday where
I havent seen it, might be a cause :-).

Thanks for any hints.

--Alexander

Not sure I follow exactly what doesn't work, but have you registered your custom action with the ActionModule?: https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/action/ActionModule.java#L150.

On Monday, February 13, 2012 at 10:49 AM, Alexander Reelsen wrote:

Hi there,

just a minor plugin question I do not understand. I tried to convert
my suggest plugin to the new introduced more generic client API and
got some weird null pointer exceptions when trying to execute my
action. The source of my problem is in the NodeClient constructor,
where there is a mapping actionsbuilder used MapBuilder<Action,
TransportAction> actionsBuilder, which creates the actions variable

which maps actions to transport actions. However I havent seen in the
source yet where to do this mapping (okok, it was 1am yesterday where
I havent seen it, might be a cause :-).

Thanks for any hints.

--Alexander