6 Replies Latest reply on Jun 22, 2006 4:45 AM by olegnitz

    ... can not access a member of class ... with modifiers "pub

    olegnitz

      I've encountered a strange exception:
      org.jboss.serial.exception.SerializationException: Could not create instance of (class name here) - Class org.jboss.serial.classmetamodel.ClassMetaData can not access a member of class (class name here) with modifiers "public"
      at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:346)
      at org.jboss.serial.persister.ExternalizePersister.readData(ExternalizePersister.java:67)
      at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
      at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
      at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:634)
      at org.jboss.serial.persister.ArrayPersister.readObjectArray(ArrayPersister.java:196)
      at org.jboss.serial.persister.ArrayPersister.readData(ArrayPersister.java:172)
      at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
      at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
      at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:634)
      at org.jboss.serial.io.JBossObjectInputStream.readObjectOverride(JBossObjectInputStream.java:163)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
      ...

      Unfortunately this exception is not stable, I cannot reproduce it in the testcase. It appears from time to time.
      The class is a static inner class which implements Externalizable. Also it was obfuscated by KlassMaster. However the decompiled class looks okay: all "public" modifiers are in place.
      For now I cannot spend more time catching this exception, I just thought that you should know of it. And when eventually someone will provide a testcase for this bug and you will solve the problem, please notify me in this thread. Thanks.