[YANGTOOLS-203] NPE after getting notification from router Created: 03/Jul/14  Updated: 10/Apr/22  Due: 11/Jul/14  Resolved: 10/Jul/14

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Gallas Assignee: Lukas Sedlak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


External issue ID: 1292

 Description   

2014-07-03 12:20:47.687 CEST [nettyThreadgroupModule$NioEventLoopGroupCloseable-7-1] TRACE o.o.c.s.c.n.l.NetconfDeviceCommunicator - RemoteDevice

{172.23.29.104}

: Notification received: <notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2014-07-03T18:20:48UTC</eventTime>
[NOTIFICATION BODY]
</notification>

2014-07-03 12:20:47.695 CEST [nettyThreadgroupModule$NioEventLoopGroupCloseable-7-1] WARN i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.NullPointerException: null
at org.opendaylight.yangtools.yang.data.impl.codec.InstanceIdentifierForXmlCodec.findYoungestModuleByNamespace(InstanceIdentifierForXmlCodec.java:168) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.InstanceIdentifierForXmlCodec.toIdentity(InstanceIdentifierForXmlCodec.java:161) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.toSimpleNodeWithType(XmlDocumentUtils.java:328) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.toNodeWithSchema(XmlDocumentUtils.java:305) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.access$100(XmlDocumentUtils.java:62) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils$2.apply(XmlDocumentUtils.java:441) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils$2.apply(XmlDocumentUtils.java:433) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.forEachChild(XmlDocumentUtils.java:522) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.toDomNodes(XmlDocumentUtils.java:433) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.notificationToDomNodes(XmlDocumentUtils.java:490) ~[na:na]
at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.notificationToDomNodes(XmlDocumentUtils.java:502) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.schema.mapping.NetconfMessageTransformer.toNotification(NetconfMessageTransformer.java:58) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.schema.mapping.NetconfMessageTransformer.toNotification(NetconfMessageTransformer.java:49) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.schema.mapping.NetconfMessageTransformer.toNotification(NetconfMessageTransformer.java:35) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.NetconfDevice.onNotification(NetconfDevice.java:145) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.NetconfDevice.onNotification(NetconfDevice.java:45) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.listener.NetconfDeviceCommunicator.processNotification(NetconfDeviceCommunicator.java:290) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:167) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.listener.NetconfDeviceCommunicator.onMessage(NetconfDeviceCommunicator.java:49) ~[na:na]
at org.opendaylight.controller.netconf.nettyutil.AbstractNetconfSession.handleMessage(AbstractNetconfSession.java:57) ~[na:na]
at org.opendaylight.controller.netconf.nettyutil.AbstractNetconfSession.handleMessage(AbstractNetconfSession.java:28) ~[na:na]
at org.opendaylight.protocol.framework.AbstractProtocolSession.channelRead0(AbstractProtocolSession.java:46) ~[na:na]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:103) ~[bundlefile:4.0.19.Final]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:341) [bundlefile:4.0.19.Final]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:327) [bundlefile:4.0.19.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) ~[na:na]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:341) [bundlefile:4.0.19.Final]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:327) [bundlefile:4.0.19.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) ~[na:na]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:341) [bundlefile:4.0.19.Final]
at io.netty.channel.DefaultChannelHandlerContext.access$700(DefaultChannelHandlerContext.java:30) [bundlefile:4.0.19.Final]
at io.netty.channel.DefaultChannelHandlerContext$8.run(DefaultChannelHandlerContext.java:332) ~[bundlefile:4.0.19.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:370) ~[bundlefile:4.0.19.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353) ~[bundlefile:4.0.19.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) ~[bundlefile:4.0.19.Final]
at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]



 Comments   
Comment by Tony Tkacik [ 03/Jul/14 ]

Please provide additional information / minimal test-case, you obsfucated left out
actual payload which caused error.

Comment by Tony Tkacik [ 09/Jul/14 ]

https://git.opendaylight.org/gerrit/#/c/8843/

Comment by Robert Gallas [ 10/Jul/14 ]

Ok.

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