[OPNFLWPLUG-498] ava.lang.NullPointerException on Openflow plugin Created: 09/Jun/15  Updated: 27/Sep/21  Resolved: 03/Oct/16

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

Type: Bug
Reporter: Vasanthan Balasubramaniyan Assignee: Hariharan Sethuraman
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: 3637

 Description   

Environment:
Build#Lithium-RC0
Switch -Ovsk 2.3.0/Cpqd

Problem:
TicketFinisherImpl failed and thrown with NullpointerException.

Exception snip
==========
light.inventory.rev130819.nodes.Node, 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:3]]]]}
2015-06-09 15:03:29,624 | WARN | OFmsgProcessor-3 | TicketProcessorFactoryImpl | 230 - org.opendaylight.openflowplugin - 0.1.0.Lithium-RC0 | translation problem: null
2015-06-09 15:03:29,624 | WARN | OFmsgFinisher-0 | TicketFinisherImpl | 230 - org.opendaylight.openflowplugin - 0.1.0.Lithium-RC0 | processing (translate, publish) of ticket failed
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)[37:com.google.guava:18.0.0]
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)[37:com.google.guava:18.0.0]
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)[37:com.google.guava:18.0.0]
at org.opendaylight.openflowplugin.openflow.md.queue.TicketFinisherImpl.run(TicketFinisherImpl.java:50)[230:org.opendaylight.openflowplugin:0.1.0.Lithium-RC0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_75]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_75]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_75]
Caused by: java.lang.NullPointerException
at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ActionConvertor.toMDSalActions(ActionConvertor.java:944)[230:org.opendaylight.openflowplugin:0.1.0.Lithium-RC0]
at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.OFToMDSalFlowConvertor.toSALInstruction(OFToMDSalFlowConvertor.java:71)[230:org.opendaylight.openflowplugin:0.1.0.Lithium-RC0]
at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.FlowStatsResponseConvertor.toSALFlowStats(FlowStatsResponseConvertor.java:103)[230:org.opendaylight.openflowplugin:0.1.0.Lithium-RC0]
at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.FlowStatsResponseConvertor.toSALFlowStatsList(FlowStatsResponseConvertor.java:49)[230:org.opendaylight.openflowplugin:0.1.0.Lithium-RC0]
at org.opendaylight.openflowplugin.openflow.md.core.translator.MultipartReplyTranslator.translate(MultipartReplyTranslator.java:134)[230:org.opendaylight.openflowplugin:0.1.0.Lithium-RC0]
at org.opendaylight.openflowplugin.openflow.md.core.translator.MultipartReplyTranslator.translate(MultipartReplyTranslator.java:105)[230:org.opendaylight.openflowplugin:0.1.0.Lithium-RC0]
at org.opendaylight.openflowplugin.openflow.md.queue.TicketProcessorFactoryImpl.translate(TicketProcessorFactoryImpl.java:164)[230:org.opendaylight.openflowplugin:0.1.0.Lithium-RC0]
at org.opendaylight.openflowplugin.openflow.md.queue.TicketProcessorFactoryImpl$1.run(TicketProcessorFactoryImpl.java:76)[230:org.opendaylight.openflowplugin:0.1.0.Lithium-RC0]
... 3 more
2015-06-09 15:03:32,662 | WARN | OFmsgProcessor-2 | TicketProcessorFactoryImpl | 230 - org.opendaylight.openflowplugin - 0.1.0.Lithium-RC0 | translation problem: null



 Comments   
Comment by Michal Rehak [ 09/Jun/15 ]

Hi,
could you provide more info? What messages were received from device at that time?

Thank you.

Comment by Vasanthan Balasubramaniyan [ 09/Jun/15 ]

(In reply to michal rehak from comment #1)
> Hi,
> could you provide more info? What messages were received from device at that
> time?
>
> Thank you.

This is exception generated during tsdr automation execution.

Automation steps are,
1.Start the mininet topology
2.Waiting for tsdr metrics collection (basically it will poll data from mdsal-stats)
3.Stop the mininet topology
This above 3 step executed continous 5 times without stopping the controller.

Whenever stop and start mininet topology,this NPE started to thrown.

Comment by Jozef Gloncak [ 11/Jun/15 ]

Can you also specify what are tsdr metrics?

Just to be sure.

Are you using feature odl-openflowplugin-flow-services-ui?

I started odl-openflowplugin-flow-services-ui.
Then I started mininet with cpqd.
I let it run (without no interaction, no data puting, posting) for a while (approximately 1 minute).
After shutdown I couldn't see error reported by you - >>processing (translate, publish) of ticket failed<<

Comment by Abhijit Kumbhare [ 10/Nov/15 ]

Hari - can you look at this when you get free? Can be after M5 if you are pressed for time.

Comment by Miroslav Macko [ 03/Oct/16 ]

Hi,

Closing because of no activity for the long time. Please reopen if it still valid and needed.

Thanks,
Miro

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