[OPNFLWPLUG-301] NullPointerException with updatePort Created: 29/Sep/14  Updated: 27/Sep/21  Resolved: 29/Sep/14

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Srini Seetharaman Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2113

 Description   

I ran the integration/distribution/base in OSGi mode and copied over the sample/learningswitch jar to the plugins folder. During the run, I saw the following error pop up on the screen once the switch connected.

2014-09-28 21:21:52.527 PDT [nioEventLoopGroup-12-2] INFO o.o.o.p.i.core.TcpChannelInitializer - Incoming connection from (remote address): /127.0.0.1:45246 --> :6633
2014-09-28 21:21:52.527 PDT [nioEventLoopGroup-12-2] INFO o.o.o.p.i.core.TcpChannelInitializer - Incoming connection accepted - building pipeline
2014-09-28 21:21:52.552 PDT [nioEventLoopGroup-12-2] WARN o.o.o.o.m.c.s.SessionManagerOFImpl - context for invalidation not found
2014-09-28 21:21:53.608 PDT [nioEventLoopGroup-12-3] INFO o.o.o.p.i.core.TcpChannelInitializer - Incoming connection from (remote address): /127.0.0.1:45247 --> :6633
2014-09-28 21:21:53.609 PDT [nioEventLoopGroup-12-3] INFO o.o.o.p.i.core.TcpChannelInitializer - Incoming connection accepted - building pipeline
2014-09-28 21:21:53.616 PDT [nioEventLoopGroup-12-3] INFO o.o.o.p.i.c.ConnectionAdapterImpl - Hello received / branch
2014-09-28 21:21:53.629 PDT [nioEventLoopGroup-12-3] 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.openflowplugin.openflow.md.core.ConnectionConductorImpl.updatePort(ConnectionConductorImpl.java:276) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.core.ConnectionConductorImpl.processPortStatusMsg(ConnectionConductorImpl.java:261) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.core.ConnectionConductorImpl.onPortStatusMessage(ConnectionConductorImpl.java:255) ~[na:na]
at org.opendaylight.openflowjava.protocol.impl.connection.ConnectionAdapterImpl.consume(ConnectionAdapterImpl.java:298) ~[na:na]
at org.opendaylight.openflowjava.protocol.impl.core.DelegatingInboundHandler.channelReadConnectionConductorImpl(DelegatingInboundHandler.java:46) ~[na:na]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [bundlefile:4.0.23.Final]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [bundlefile:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [bundlefile:4.0.23.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [bundlefile:4.0.23.Final]
at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150) [bundlefile:4.0.23.Final]
at org.opendaylight.openflowjava.protocol.impl.core.IdleHandler.channelRead(IdleHandler.java:39) [bundlefile:na]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [bundlefile:4.0.23.Final]
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [bundlefile:4.0.23.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [bundlefile:4.0.23.Final]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [bundlefile:4.0.23.Final]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130) [bundlefile:4.0.23.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [bundlefile:4.0.23.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [bundlefile:4.0.23.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [bundlefile:4.0.23.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:349) [bundlefile:4.0.23.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [bundlefile:4.0.23.Final]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [bundlefile:4.0.23.Final]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_67]



 Comments   
Comment by Srini Seetharaman [ 29/Sep/14 ]

Michal Rehak said:

The exception comes from state where we have portStatus message received but sessionContext is not set yet. This can happen when the node registration task get slowed down somehow (e.g.: dataStore under heavy load).

Comment by Srini Seetharaman [ 29/Sep/14 ]

This happened right after I ran the integration distribution with the switch running. I'm unable to reproduce it. So, resolving it until anyone sees this again.

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