[NETCONF-55] java.lang.NullPointerException: Tree must not be null Created: 06/Jul/15  Updated: 13/Aug/19

Status: Confirmed
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Dana Kutenicsova Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Zip Archive karaf.log.zip    
Issue Links:
Blocks
is blocked by NETCONF-14 Upgrade JAXRS / Jersey to support JAX... Confirmed
External issue ID: 3939

 Description   

Snippet from exception (full in attached log file):

2015-07-02 06:32:46,840 | ERROR | tp1481334572-303 | ContainerResponse | 245 - com.sun.jersey.jersey-server - 1.17.0 | The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.NullPointerException: Tree must not be null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226)[64:com.google.guava:18.0.0]
at org.opendaylight.yangtools.yang.data.api.schema.NormalizedNodes.findNode(NormalizedNodes.java:77)[99:org.opendaylight.yangtools.yang-data-api:0.7.0.Lithium]
at org.opendaylight.controller.md.sal.dom.broker.impl.RoutedDOMRpcRoutingTableEntry.invokeRpc(RoutedDOMRpcRoutingTableEntry.java:47)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMRpcRoutingTable.invokeRpc(DOMRpcRoutingTable.java:186)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMRpcRouter.invokeRpc(DOMRpcRouter.java:124)
at org.opendaylight.controller.sal.restconf.impl.BrokerFacade.invokeRpc(BrokerFacade.java:172)[242:org.opendaylight.controller.sal-rest-connector:1.2.0.Lithium]
at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.invokeRpc(RestconfImpl.java:451)[242:org.opendaylight.controller.sal-rest-connector:1.2.0.Lithium]
at org.opendaylight.controller.sal.restconf.impl.StatisticsRestconfServiceWrapper.invokeRpc(StatisticsRestconfServiceWrapper.java:81)[242:org.opendaylight.controller.sal-rest-connector:1.2.0.Lithium]
at org.opendaylight.controller.sal.rest.impl.RestconfCompositeWrapper.invokeRpc(RestconfCompositeWrapper.java:53)[242:org.opendaylight.controller.sal-rest-connector:1.2.0.Lithium]
at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_75]
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_75]

Please find attached the log with trace enabled. Out of 100 tunnels, 92 were provisioned and 8 failed with errors. (with Helium SR-3, all 100 gets provisioned).



 Comments   
Comment by Dana Kutenicsova [ 06/Jul/15 ]

Attachment karaf.log.zip has been added with description: Log file from run.

Comment by Vaclav Demcak [ 16/Jul/15 ]

NPE is only a symptom for an empty InputStream which provide xml/json NormalizeNodeWriter classes. It looks like problem with jax-rs entity providers on jersey side. The describled behavior needs to be tested against 2.x jersey version.

Comment by Robert Varga [ 13/Nov/15 ]

Move to NETCONF project

Comment by Ajay L [ 02/May/16 ]

Update:

Issue is seen on current master (Boron) branch as well

I was seeing the issue invoking RPC using curl from a remote machine. This seems to be a side-effect of “Expect: 100-continue” header which curl adds to the request (part of HTTP 1.1 spec). If this is disabled by using -H “Expect:” or -0 on curl command line, issue is not seen

Generated at Wed Feb 07 20:14:03 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.