Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

ElasticSearch 1.2.1 crashing with langdetect installed #15

Closed
Aaronaught opened this issue Jun 18, 2014 · 4 comments
Closed

ElasticSearch 1.2.1 crashing with langdetect installed #15

Aaronaught opened this issue Jun 18, 2014 · 4 comments

Comments

@Aaronaught
Copy link

Seen this on both a Windows and Linux server running ES 1.2.1 with the latest langdetect plugin installed...

First I get a slew of warnings like this:

[2014-06-18 11:48:26,535][WARN ][transport ] [Alfie O'Meggan] Registered two transport handlers for action langdetect, handlers: org.elasticsearch.action.support.single.custom.TransportSingleCustomOperationAction$TransportHandler@3872bb09, org.elasticsearch.action.support.single.custom.TransportSingleCustomOperationAction$TransportHandler@f505228

Then it crashes outright with the following message:

{1.2.1}: Initialization Failed ...
 1) NoClassDefFoundError[com/fasterxml/jackson/core/Versioned]
        ClassNotFoundException[com.fasterxml.jackson.core.Versioned]2) NoClassDefFoundError[com/fasterxml/jackson/databind/ObjectMapper]

FYI: I checked the plugin directory and the jackson-databind-2.3.3.jar file is there. It's happening on brand new servers with the latest versions of Java and ElasticSearch.

Any ideas?

@jprante
Copy link
Owner

jprante commented Jun 18, 2014

Yes, a packaging error. WIll be fixed asap.

@jprante
Copy link
Owner

jprante commented Jun 18, 2014

1.2.1.1 released.

N.B you should check if you have older langdetect jar in the plugins folder if you get strange messages like "Registered two transport handlers for action langdetect". Delete the old plugin version first.

@jprante jprante closed this as completed Jun 18, 2014
@Aaronaught
Copy link
Author

Thanks for the quick fix. I definitely didn't have any old versions, there were just the 2 jars (jackson-databind and elasticsearch-langdetect) - now 4 jars after the update.

Also, kind of unrelated but you might want to fix the installation link as it points to an invalid URL. It says http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-langdetect/1.2.1.1/elasticsearch-langdetect-1.2.1.1-plugin.zip but it should actually be http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-langdetect/1.2.1.1/elasticsearch-langdetect-1.2.1.1.zip (without the -plugin at the end).

@jprante
Copy link
Owner

jprante commented Jun 19, 2014

Yes, the jackson jars are the fix. The plugin assembly has also been fixed, the correct link is

http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-langdetect/1.2.1.1/elasticsearch-langdetect-1.2.1.1-plugin.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants