java.lang.NoClassDefFoundError: org/elasticsearch/action/GenericAction

Hello Experts,

I am getting "java.lang.NoClassDefFoundError: org/elasticsearch/action/GenericAction" while creating index via JAVA API with all 7.0+ ES versions .

I decompiled its library but dont see GenericAction.class .

Can anyone guide me on same how can i resolve this ?


-Milind Kaklij.

which dependencies did you include in your java project?

Hi Alexander,

Thanks for reply. i am using below dependency in pom.xml




just before digging deeper: Is there any reason using of not using the high level rest client?

Not aware of high level rest client .

I have to create elasticsearch index dynamically at the end of every month in yyyy.dd i was using referring (@

My java code is working with respect to elasticsearch version 6.1.1 but not with latest version.

Could you please guide on same?

Thanks .

Are you aware of date math support in index names and index templates, that prevents you from creating any indices manually?

That sounds as if you would not need to do any index creation in your own code at all.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.