[OPNFLWPLUG-298] LLDPSpeaker throwing NPE Created: 24/Sep/14  Updated: 27/Sep/21  Resolved: 10/Nov/15

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

Type: Bug
Reporter: Ed Warnicke Assignee: Ed Warnicke
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
duplicates OPNFLWPLUG-534 Topology is not learned after control... Resolved
External issue ID: 2071

 Description   

The LLDPSpeaker sometimes throws an NPE:



 Comments   
Comment by Ed Warnicke [ 24/Sep/14 ]

2014-09-24 14:55:28,563 | WARN | OFmsgFinisher-0 | TicketFinisherImpl | 212 - org.opendaylight.openflowplugin - 0.0.3.SNAPSHOT | processing (translate, publish) of ticket failed
java.lang.NullPointerException
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeaker.addNodeConnector(LLDPSpeaker.java:84)[212:org.opendaylight.openflowplugin:0.0.3.SNAPSHOT]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeakerPopListener.onPop(LLDPSpeakerPopListener.java:37)[212:org.opendaylight.openflowplugin:0.0.3.SNAPSHOT]
at org.opendaylight.openflowplugin.openflow.md.queue.TicketFinisherImpl.firePopNotification(TicketFinisherImpl.java:74)[212:org.opendaylight.openflowplugin:0.0.3.SNAPSHOT]
at org.opendaylight.openflowplugin.openflow.md.queue.TicketFinisherImpl.run(TicketFinisherImpl.java:54)[212:org.opendaylight.openflowplugin:0.0.3.SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_65]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]

Comment by Ed Warnicke [ 24/Sep/14 ]

Some better data from fixing GBP-5:

Here is a case that causes the issue:

T | firePopNotification: processing (translate, publish) of ticket failed for consumer org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeakerPopListener@6949e128 msg NodeConnectorUpdated [_id=Uri [_value=openflow:1:3], _nodeConnectorRef=NodeConnectorRef [_value=KeyedInstanceIdentifier

{targetType=interface org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector, path=[org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.Nodes, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node[key=NodeKey [_id=Uri [_value=openflow:1]]], org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector[key=NodeConnectorKey [_id=Uri [_value=openflow:1:3]]]]}

], augmentation=[FlowCapableNodeConnectorUpdated [_advertisedFeatures=PortFeatures [_tenMbHd=false, _tenMbFd=false, _hundredMbHd=false, _hundredMbFd=false, _oneGbHd=false, _oneGbFd=false, _tenGbFd=false, _fortyGbFd=false, _hundredGbFd=false, _oneTbFd=false, _other=false, _copper=false, _fiber=false, _autoeng=false, _pause=false, _pauseAsym=false], _configuration=PortConfig [_pORTDOWN=false, _nORECV=false, _nOFWD=false, _nOPACKETIN=false], _currentFeature=PortFeatures [_tenMbHd=false, _tenMbFd=false, _hundredMbHd=false, _hundredMbFd=false, _oneGbHd=false, _oneGbFd=false, _tenGbFd=true, _fortyGbFd=false, _hundredGbFd=false, _oneTbFd=false, _other=false, _copper=true, _fiber=false, _autoeng=false, _pause=false, _pauseAsym=false], _currentSpeed=10000000, _hardwareAddress=MacAddress [_value=32:09:4D:53:74:B2], _maximumSpeed=0, _name=s1-eth3, _peerFeatures=PortFeatures [_tenMbHd=false, _tenMbFd=false, _hundredMbHd=false, _hundredMbFd=false, _oneGbHd=false, _oneGbFd=false, _tenGbFd=false, _fortyGbFd=false, _hundredGbFd=false, _oneTbFd=false, _other=false, _copper=false, _fiber=false, _autoeng=false, _pause=false, _pauseAsym=false], _portNumber=PortNumber [_uint32=3, _value=[3]], _state=State [_blocked=false, _linkDown=false, _live=false, augmentation=[]], _supported=PortFeatures [_tenMbHd=false, _tenMbFd=false, _hundredMbHd=false, _hundredMbFd=false, _oneGbHd=false, _oneGbFd=false, _tenGbFd=false, _fortyGbFd=false, _hundredGbFd=false, _oneTbFd=false, _other=false, _copper=false, _fiber=false, _autoeng=false, _pause=false, _pauseAsym=false]]]] Excpetion: java.lang.NullPointerException

Comment by Viera Zelcamova [ 11/Nov/14 ]

pls re-test

Comment by Icaro Camelo [ 19/Aug/15 ]

Could you please check my comment at https://bugs.opendaylight.org/show_bug.cgi?id=4121 and re-test?

Comment by Abhijit Kumbhare [ 10/Nov/15 ]

Duplicate

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