Skip to content

Instantly share code, notes, and snippets.

@bluething
bluething / path-home_exception_hotdeployment
Created September 22, 2017 06:56
This exception occur every time we deploying to Wildfly.
08:34:54.992 [ServerService Thread Pool -- 61] ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'client': Invocation of init method failed; nested exception is org.elasticsearch.common.inject.CreationException: Guice creation errors:
1) Error injecting constructor, ElasticsearchException[failed to read [id:0, legacy:false, file:C:\WildFly\wildfly-10.0.0.Final\bin\src\test\resources\test-home-dir\data\pre-es-cluster\nodes\0\_state\global-0.st]]; nested: IOException[failed to read [id:0, legacy:false, file:C:\WildFly\wildfly-10.0.0.Final\bin\src\test\resources\test-home-dir\data\pre-es-cluster\nodes\0\_state\global-0.st]]; nested: NoSuchFieldError[_byteSymbolCanonicalizer];
at org.elasticsearch.gateway.GatewayMetaState.<init>(Unknown Source)
while locating org.elasticsearch.gateway.GatewayMetaState
for parameter 3 at org.elasticsearch.gateway.Gateway.<init>(Unknown Source)
while locating org.ela