Welcome Guest! Log in
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Error "java.lang.NoSuchMethodError: io.netty [...]" when trying to execute Elasticsearch Mappings

    Symptom

    An exception looking like the following about a netty issue is thrown when executing Elasticsearch Mappings.

    java.lang.NoSuchMethodError: io.netty.[...]

     

    Solution

    Remove "<stambiaRuntime>/lig/global/netty-all-4.0.0.final.jar" file from the Runtime which is executing Elasticsearch Mappings.

    This library is causing conflicts with the netty library used by Elasticsearch.

    Removing the one shipped with the Runtime should resolve the exception issue as the Runtime will then use Elasticsearch's one.

    Note that for this workaround to work the Runtime must not be the local Runtime included in the Designer, as the Designer resets its internal Runtime libraries at each restart (so the netty library will be recreated at each Designer's restart.)

    Knowledge Base

    Suggest a new Article!