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

NullPointerException if unmarshalling throws an IOException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.GA
    • 1.3.0.CR9
    • None
    • None

      Trying to marshall an object that during unmarshalling throws an IOException results in an NPE:

      java.lang.NullPointerException
      	at org.jboss.marshalling.reflect.SerializableClass$LazyWeakConstructorRef.access$300(SerializableClass.java:569)
      	at org.jboss.marshalling.reflect.SerializableClass.invokeConstructor(SerializableClass.java:380)
      	at org.jboss.marshalling.reflect.SerializableClass.callNoArgConstructor(SerializableClass.java:355)
      	at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1248)
      	at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
      	at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
      	at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)
      	at org.infinispan.marshall.jboss.GenericJBossMarshaller.objectFromObjectStream(GenericJBossMarshaller.java:193)
      	at org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:121)
      	at org.infinispan.marshall.AbstractMarshaller.objectFromByteBuffer(AbstractMarshaller.java:73)
      	at org.infinispan.marshall.VersionAwareMarshallerTest.testErrorUnmarshalling(VersionAwareMarshallerTest.java:473)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
      	at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
      	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846)
      	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170)
      	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
      	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
      	at org.testng.TestRunner.runWorkers(TestRunner.java:1125)
      	at org.testng.TestRunner.privateRun(TestRunner.java:749)
      	at org.testng.TestRunner.run(TestRunner.java:600)
      	at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
      	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
      	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
      	at org.testng.SuiteRunner.run(SuiteRunner.java:223)
      	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1007)
      	at org.testng.TestNG.runSuitesLocally(TestNG.java:932)
      	at org.testng.TestNG.run(TestNG.java:868)
      	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:110)
      	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
      	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174)
      	at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:85)
      Caused by: an exception which occurred:
      	in object of type org.infinispan.marshall.VersionAwareMarshallerTest$PojoWhichFailsOnUnmarshalling

              dlloyd@redhat.com David Lloyd
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: