-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
None
On the client side, during deserialization of an object graph, if one of the object's class doesn't have a no-arg constructor, the deserialization runs into a NullPointerException which looks like:
java.lang.NullPointerException at org.jboss.marshalling.reflect.SerializableClass.invokeConstructorNoException(SerializableClass.java:510) at org.jboss.marshalling.reflect.SerializableClass.callNonInitConstructor(SerializableClass.java:484) at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1282) at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276) at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:224) at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1745) at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1658) at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1285) at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276) at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
The class within the object graph that triggered this, in this specific case was org.glassfish.json.JsonLocationImpl whose source is here https://java.net/projects/jsonp/sources/git/content/impl/src/main/java/org/glassfish/json/JsonLocationImpl.java
- clones
-
JBMAR-181 NullPointerException while deserializing an object whose class doesn't have a no-arg constructor
- Resolved
- is duplicated by
-
JBEAP-11197 (7.0.z) NullPointerException while deserializing an object whose class doesn't have a no-arg constructor
- Closed
- is incorporated by
-
JBEAP-10534 [GSS](7.0.z) Upgrade JBoss Marshalling from 1.4.10 to 1.4.12
- Closed
- is related to
-
WFLY-3527 Improper noargs constructor assumption leads to NullPointerException
- Closed
-
JBEAP-12088 (7.0.z) Add testcase in EAT for JBEAP-11095 (NullPointerException while deserializing an object whose class doesn't have a no-arg constructor)
- Resolved