Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-195

SerializingCloner.clone of PriorityBlockingQueue causes NullPointerException

XMLWordPrintable

    Cloning of java.util.concurrent.PriorityBlockingQueue causes:

         [java] Exception in thread "main" java.lang.NullPointerException
         [java] 	at java.util.concurrent.PriorityBlockingQueue.readObject(PriorityBlockingQueue.java:943)
         [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [java] 	at java.lang.reflect.Method.invoke(Method.java:498)
         [java] 	at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:307)
         [java] 	at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:303)
         [java] 	at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:251)
         [java] 	at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:128)
         [java] 	at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner.java:393)
         [java] 	at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:309)
         [java] 	at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:251)
         [java] 	at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:128)
         [java] 	at CloningExample.testSimple(CloningExample.java:46)
         [java] 	at CloningExample.main(CloningExample.java:27)
    

            spyrkob Bartosz Spyrko-Smietanko
            rhn-support-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: