Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-388

NPE when apply_action doesn't contain action list

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 2902
    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Avishnoi Anil Vishnoi
            Avishnoi Anil Vishnoi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: