Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-6218

NoClassDefFoundError: Could not initialize class org.jboss.marshalling.river.ClassDescriptors with jdk 17

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RHDG 8.4.3 GA
    • RHDG 8.4.1 GA
    • Marshalling
    • None

      Some user reports issues with JBossMarshalling if JDK 17 is used:

      Caused by: org.infinispan.commons.CacheException: java.lang.NoClassDefFoundError: Could not initialize class org.jboss.marshalling.river.ClassDescriptors
              at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:181)
              at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:42)
              at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:727)
              at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:708)
              at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:357)
              at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32)
              at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:49)
              at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:41)
              at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:727)
              at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:708)
              at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:357)
              at org.infinispan.marshall.core.GlobalMarshaller.objectFromObjectInput(GlobalMarshaller.java:191)
              at org.infinispan.marshall.core.GlobalMarshaller.objectFromByteBuffer(GlobalMarshaller.java:220)
              at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1488)
              at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processMessage(JGroupsTransport.java:1398)
              at org.infinispan.remoting.transport.jgroups.JGroupsTransport.access$300(JGroupsTransport.java:146)
              at org.infinispan.remoting.transport.jgroups.JGroupsTransport$ChannelCallbacks.up(JGroupsTransport.java:1586)
              at org.jgroups.JChannel.up(JChannel.java:780)
              at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:913)
              at org.jgroups.protocols.FRAG3.up(FRAG3.java:165)
              at org.jgroups.protocols.FlowControl.up(FlowControl.java:347)
              at org.jgroups.protocols.FlowControl.up(FlowControl.java:347)
              at org.jgroups.protocols.pbcast.GMS.up(GMS.java:876)
              at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:254)
              at org.jgroups.protocols.UNICAST3.deliverMessage(UNICAST3.java:1048)
              at org.jgroups.protocols.UNICAST3.addMessage(UNICAST3.java:771)
              at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:752)
              at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:405)
              at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:592)
              at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:132)
              at org.jgroups.protocols.FailureDetection.up(FailureDetection.java:186)
              at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:254)
              at org.jgroups.protocols.MERGE3.up(MERGE3.java:281)
              at org.jgroups.protocols.Discovery.up(Discovery.java:300)
              at org.jgroups.protocols.TP.passMessageUp(TP.java:1400)
              at org.jgroups.util.SubmitToThreadPool$SingleMessageHandler.run(SubmitToThreadPool.java:98)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
              ... 1 more
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jboss.marshalling.river.ClassDescriptors
              at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
              at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
              at org.infinispan.marshall.exts.ThrowableExternalizer.readGenericThrowable(ThrowableExternalizer.java:282)
              at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:259)
              at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:42)
      
      

            ttarrant@redhat.com Tristan Tarrant
            rhn-support-wfink Wolf Fink
            Gustavo Lira Silva Gustavo Lira Silva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: