java.lang.IncompatibleClassChangeError: Inconsistent constant pool data in classfile for class io/axoniq/axonserver/L. Method g(Lio/axoniq/axonserver/grpc/x;Lio/axoniq/axonserver/grpc/T;)Z at index 143 is CONSTANT_MethodRef and should be CONSTANT_InterfaceMethodRef
See original GitHub issueHi,
The setup
- Axon server 4.0 (executed with java -jar axonserver.jar)
- Axon framework 4.0.3
The problem I get the following exception when issuing a command:
java.lang.IncompatibleClassChangeError: Inconsistent constant pool data in classfile for class io/axoniq/axonserver/L. Method g(Lio/axoniq/axonserver/grpc/x;Lio/axoniq/axonserver/grpc/T;)Z at index 143 is CONSTANT_MethodRef and should be CONSTANT_InterfaceMethodRef
Log of the Spring Boot application
2018-12-28 14:14:13.301 ERROR 20050 — [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is AxonServerCommandDispatchException{message=UNKNOWN, errorCode=‘AXONIQ-4003’, server=‘20050@detailoc4’}] with root cause org.axonframework.axonserver.connector.command.AxonServerCommandDispatchException: UNKNOWN at org.axonframework.axonserver.connector.command.AxonServerCommandBus$2.onError(AxonServerCommandBus.java:151) ~[axon-server-connector-4.0.3.jar:4.0.3] at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:420) ~[grpc-stub-1.13.1.jar:1.13.1] at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:403) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:459) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:546) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:467) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:584) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) ~[grpc-core-1.13.1.jar:1.13.1] at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) ~[grpc-core-1.13.1.jar:1.13.1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_144] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_144] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_144]`
Log of the Axon Server
~/dev/tools/AxonServer-4.0$ java -jar axonserver.jar _ ____ / \ __ _____ _ __ / | ___ _ ____ _____ _ __ / _ \ \ / / _ | ’ \_ \ / _ \ '\ \ / / _ \ '| / ___ \ > < () | | | |) | __/ | \ V / __/ | // _//__/|| ||____/ _|| _/ ___|| Standard Edition Powered by AxonIQ version: 4.0 2018-12-28 14:13:38.330 INFO 19871 — [ main] io.axoniq.axonserver.AxonServer : Starting AxonServer on detailoc4 with PID 19871 (/home/detailoc/dev/tools/AxonServer-4.0/axonserver.jar started by detailoc in /home/detailoc/dev/tools/AxonServer-4.0) 2018-12-28 14:13:38.335 INFO 19871 — [ main] io.axoniq.axonserver.AxonServer : No active profile set, falling back to default profiles: default WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (jar:file:/home/detailoc/dev/tools/AxonServer-4.0/axonserver.jar!/BOOT-INF/lib/groovy-2.4.15.jar!/) to method java.lang.Object.finalize() WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2018-12-28 14:13:42.337 INFO 19871 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8024 (http) 2018-12-28 14:13:51.583 INFO 19871 — [ main] io.axoniq.axonserver.grpc.Gateway : gRPC Gateway started on port: 8124 - no SSL 2018-12-28 14:13:52.512 INFO 19871 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8024 (http) with context path ‘’ 2018-12-28 14:13:52.523 INFO 19871 — [ main] io.axoniq.axonserver.AxonServer : Started AxonServer in 15.249 seconds (JVM running for 15.986) 2018-12-28 14:14:13.272 ERROR 19871 — [-worker-ELG-3-1] .i.SerializeReentrantCallsDirectExecutor : Exception while executing runnable io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed@5695216d java.lang.IncompatibleClassChangeError: Inconsistent constant pool data in classfile for class io/axoniq/axonserver/L. Method g(Lio/axoniq/axonserver/grpc/x;Lio/axoniq/axonserver/grpc/T;)Z at index 143 is CONSTANT_MethodRef and should be CONSTANT_InterfaceMethodRef at io.axoniq.axonserver.L.d(nh:14) ~[classes!/:na] at io.axoniq.axonserver.L.f(nh:133) ~[classes!/:na] at io.axoniq.axonserver.message.command.CommandDispatcher.d(yg:9) ~[classes!/:na] at io.axoniq.axonserver.message.command.CommandDispatcher.d(yg:146) ~[classes!/:na] at io.axoniq.axonserver.grpc.CommandService.dispatch(xr:151) ~[classes!/:na] at io.axoniq.axonserver.grpc.k.l.invoke(so:205) ~[classes!/:na] at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:171) ~[grpc-stub-1.13.1.jar!/:1.13.1] at io.grpc.PartialForwardingServerCallListener.onHalfClose(PartialForwardingServerCallListener.java:35) ~[grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.ForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:23) ~[grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:40) ~[grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.Contexts$ContextualizedServerCallListener.onHalfClose(Contexts.java:86) ~[grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:283) ~[grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:707) ~[grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) ~[grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.internal.SerializeReentrantCallsDirectExecutor.execute(SerializeReentrantCallsDirectExecutor.java:49) ~[grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener.halfClosed(ServerImpl.java:718) [grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.internal.AbstractServerStream$TransportState.deframerClosed(AbstractServerStream.java:242) [grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.netty.NettyServerStream$TransportState.deframerClosed(NettyServerStream.java:156) [grpc-netty-1.13.1.jar!/:1.13.1] at io.grpc.internal.MessageDeframer.close(MessageDeframer.java:229) [grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.internal.MessageDeframer.closeWhenComplete(MessageDeframer.java:191) [grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.internal.AbstractStream$TransportState.closeDeframer(AbstractStream.java:183) [grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.internal.AbstractServerStream$TransportState.inboundDataReceived(AbstractServerStream.java:269) [grpc-core-1.13.1.jar!/:1.13.1] at io.grpc.netty.NettyServerStream$TransportState.inboundDataReceived(NettyServerStream.java:199) [grpc-netty-1.13.1.jar!/:1.13.1] at io.grpc.netty.NettyServerHandler.onDataRead(NettyServerHandler.java:464) [grpc-netty-1.13.1.jar!/:1.13.1] at io.grpc.netty.NettyServerHandler.access$800(NettyServerHandler.java:98) [grpc-netty-1.13.1.jar!/:1.13.1] at io.grpc.netty.NettyServerHandler$FrameListener.onDataRead(NettyServerHandler.java:724) [grpc-netty-1.13.1.jar!/:1.13.1] at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onDataRead(DefaultHttp2ConnectionDecoder.java:240) [netty-codec-http2-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onDataRead(Http2InboundFrameLogger.java:48) [netty-codec-http2-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readDataFrame(DefaultHttp2FrameReader.java:421) [netty-codec-http2-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java:251) [netty-codec-http2-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java:160) [netty-codec-http2-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.http2.Http2InboundFrameLogger.readFrame(Http2InboundFrameLogger.java:41) [netty-codec-http2-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java:118) [netty-codec-http2-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java:390) [netty-codec-http2-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:450) [netty-codec-http2-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489) [netty-codec-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428) [netty-codec-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) [netty-codec-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:545) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459) [netty-transport-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) [netty-common-4.1.24.Final.jar!/:4.1.24.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.24.Final.jar!/:4.1.24.Final] at java.base/java.lang.Thread.run(Thread.java:844) [na:na]
Note that the problem does not appear when running from docker 😐
Any advice? Thanks, O
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top GitHub Comments
@smcvb Indeed yes 😃.
I had exactly the same problem. It has probably has to do with the java version you are using. If i use java 8 for both server and application it is ok.