I'm getting a NullPointerException when unmarshalling JSON using the
Natural Builder:
08:12:35.051 [qtp2138196637-16] ERROR
c.s.j.s.container.ContainerResponse - The RuntimeException could not be
mapped to a response, re-throwing to the HTTP container
java.lang.NullPointerException: null
at
com.sun.jersey.json.impl.reader.Jackson2StaxReader.readNext(Jackson2StaxReader.java:216)
~[jersey-json-1.5-ea05.jar:1.5-ea05]
at
com.sun.jersey.json.impl.reader.Jackson2StaxReader.readNext(Jackson2StaxReader.java:129)
~[jersey-json-1.5-ea05.jar:1.5-ea05]
at
com.sun.jersey.json.impl.reader.Jackson2StaxReader.next(Jackson2StaxReader.java:268)
~[jersey-json-1.5-ea05.jar:1.5-ea05]
at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:192)
~[jaxb-impl-2.1.12.jar:2.1.12]
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
~[jaxb-impl-2.1.12.jar:2.1.12]
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:339)
~[jaxb-impl-2.1.12.jar:2.1.12]
at
com.sun.jersey.json.impl.BaseJSONUnmarshaller.unmarshalJAXBElementFromJSON(BaseJSONUnmarshaller.java:108)
~[jersey-json-1.5-ea05.jar:1.5-ea05]
at
com.sun.jersey.json.impl.BaseJSONUnmarshaller.unmarshalFromJSON(BaseJSONUnmarshaller.java:97)
~[jersey-json-1.5-ea05.jar:1.5-ea05]
at
com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider.readFrom(JSONRootElementProvider.java:125)
~[jersey-json-1.5-ea05.jar:1.5-ea05]
at
com.sun.jersey.core.provider.jaxb.AbstractRootElementProvider.readFrom(AbstractRootElementProvider.java:109)
~[jersey-core-1.5-ea05.jar:1.5-ea05]
at
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:552)
~[jersey-client-1.5-ea05.jar:1.5-ea05]
at
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:505)
~[jersey-client-1.5-ea05.jar:1.5-ea05]
The exception's on line 216, where it seems pi is null. Any thoughts?
-jeff