Hi All,
I am getting the below error in the wildfly server logs while starting up the client .
Error:" java.lang.NoClassDefFoundError: Could not initialize class org.jboss.marshalling.river.RiverMarshaller"
Note :
1.jboss-client.jar is available in the wildfly server
2.The issue is only coming in openjdk 11 and in oracle jdk 8,I am not facing this issue. But our target is to use openjdk 11.
stacktrace :
[ERROR] java.lang.NoClassDefFoundError: Could not initialize class org.jboss.marshalling.river.RiverMarshaller
2023-01-19 11:38:14,483 INFO [stdout] (AsyncAppender-Worker-CONSOLEASYNC) //org.jboss.marshalling.river.RiverMarshallerFactory.createMarshaller(RiverMarshallerFactory.java:60)
2023-01-19 11:38:14,487 INFO [stdout] (AsyncAppender-Worker-CONSOLEASYNC) //org.jboss.remotingjmx.protocol.v2.Common.getMarshaller(Common.java:160)
2023-01-19 11:38:14,487 INFO [stdout] (AsyncAppender-Worker-CONSOLEASYNC) //org.jboss.remotingjmx.protocol.v2.Common.prepareForMarshalling(Common.java:83)
2023-01-19 11:38:14,487 INFO [stdout] (AsyncAppender-Worker-CONSOLEASYNC) //org.jboss.remotingjmx.protocol.v2.ClientConnection$TheConnection$11.write(ClientConnection.java:831)
2023-01-19 11:38:14,487 INFO [stdout] (AsyncAppender-Worker-CONSOLEASYNC) //org.jboss.remotingjmx.protocol.v2.Common.write(Common.java:182)
2023-01-19 11:38:14,487 INFO [stdout] (AsyncAppender-Worker-CONSOLEASYNC) //org.jboss.remotingjmx.protocol.v2.ClientConnection$TheConnection.getAttribute(ClientConnection.java:823)
please help me out to resolve this issue.