[OPNFLWPLUG-388] NPE when apply_action doesn't contain action list Created: 26/Mar/15  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: Anil Vishnoi Assignee: Anil Vishnoi
Resolution: Done 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: 2902
Priority: Normal

 Description   

If you install a flow where apply_action don't have any action list, openflowplugin throws NPE while processing action list.

Exception:

2015-03-25 14:05:55,789 | ERROR | OFmsgProcessor-3 | TicketProcessorFactoryImpl | 168 - org.opendaylight.openflowplugin - 0.0.5.Helium-SR2 | translation problem: null

2015-03-25 14:05:55,790 | WARN | OFmsgFinisher-0 | TicketFinisherImpl | 168 - org.opendaylight.openflowplugin - 0.0.5.Helium-SR2 | processing (translate, publish) of ticket failed

java.util.concurrent.ExecutionException: java.lang.NullPointerException

at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:306)[70:com.google.guava:14.0.1]

at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:293)[70:com.google.guava:14.0.1]

at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)[70:com.google.guava:14.0.1]

at org.opendaylight.openflowplugin.openflow.md.queue.TicketFinisherImpl.run(TicketFinisherImpl.java:49)[168:org.opendaylight.openflowplugin:0.0.5.Helium-SR2]

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]

Caused by: java.lang.NullPointerException

at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ActionConvertor.toMDSalActions(ActionConvertor.java:898)[168:org.opendaylight.openflowplugin:0.0.5.Helium-SR2]

at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.OFToMDSalFlowConvertor.toSALInstruction(OFToMDSalFlowConvertor.java:66)[168:org.opendaylight.openflowplugin:0.0.5.Helium-SR2]

at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.FlowStatsResponseConvertor.toSALFlowStats(FlowStatsResponseConvertor.java:103)[168:org.opendaylight.openflowplugin:0.0.5.Helium-SR2]

at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.FlowStatsResponseConvertor.toSALFlowStatsList(FlowStatsResponseConvertor.java:49)[168:org.opendaylight.openflowplugin:0.0.5.Helium-SR2]

at org.opendaylight.openflowplugin.openflow.md.core.translator.MultipartReplyTranslator.translate(MultipartReplyTranslator.java:134)[168:org.opendaylight.openflowplugin:0.0.5.Helium-SR2]

at org.opendaylight.openflowplugin.openflow.md.core.translator.MultipartReplyTranslator.translate(MultipartReplyTranslator.java:106)[168:org.opendaylight.openflowplugin:0.0.5.Helium-SR2]

at org.opendaylight.openflowplugin.openflow.md.queue.TicketProcessorFactoryImpl.translate(TicketProcessorFactoryImpl.java:166)[168:org.opendaylight.openflowplugin:0.0.5.Helium-SR2]

at org.opendaylight.openflowplugin.openflow.md.queue.TicketProcessorFactoryImpl$1.run(TicketProcessorFactoryImpl.java:78)[168:org.opendaylight.openflowplugin:0.0.5.Helium-SR2]

... 3 more



 Comments   
Comment by Anil Vishnoi [ 26/Mar/15 ]

https://git.opendaylight.org/gerrit/#/c/17156/1

Comment by Abhijit Kumbhare [ 13/Apr/15 ]

Needs to be pushed to master.

Comment by Anil Vishnoi [ 17/Jun/15 ]

pushed to stable/lithium and master

stable/lithium : https://git.opendaylight.org/gerrit/#/c/22826/1
master : https://git.opendaylight.org/gerrit/#/c/22827/1

Comment by Abhijit Kumbhare [ 10/Nov/15 ]

Looks like this is fixed.

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