ERROR] java.lang.NoClassDefFoundError: Could not initialize class org.jboss.marshalling.river.RiverMarshaller

936 views
Skip to first unread message

kamal hassan

unread,
Jan 19, 2023, 11:37:19 AM1/19/23
to WildFly
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.

Cheng Fang

unread,
Jan 19, 2023, 12:09:36 PM1/19/23
to kamal hassan, WildFly
If it works in jdk 8 but not in jdk 11, it could be some classes like annotation-api classes are needed in your client side. You can adding annotation-api.jar to your client classpath and see if it makes any difference. annotation-api.jar is available in modules/system/layers/base/javax(or jakarta)/annotation/api/main/

If you still have problems, please create a jira issue with a reproducer app and detailed info Issue Navigator - Red Hat Issue Tracker


--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/b57809fe-9fb1-4402-b60d-3ea635bf4548n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages