Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-3593

NPE when processing FlowRuleEvent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      2
    • Epic Link:
    • Sprint:
      Dead Sprint (Emu Wrap-Up)

      Description

      See NPE if we don't do FlowRule.Builder.withTreatment() when building the flow.
      We should probably add a default treatment in the flow rule builder.

      2015-12-10 11:36:50,585 | WARN  | event-dispatch-0 | ListenerRegistry                 | 75 - org.onosproject.onos-api - 1.4.0.SNAPSHOT | Exception encountered while processing event FlowRuleEvent{time=2015-12-10T11:36:50.520, type=RULE_ADD_REQUESTED, subject=DefaultFlowRule{id=2b0000425343eb, deviceId=of:0000000000000001, priority=100, selector=[ETH_TYPE{ethType=ipv4}, IPV4_DST{ip=10.0.1.1/32}], treatment=N/A, tableId=30, created=1449776210520, payLoad=null}}
      java.lang.NullPointerException
      	at org.onosproject.store.statistic.impl.DistributedStatisticStore.getOutput(DistributedStatisticStore.java:271)[145:org.onosproject.onos-core-dist:1.4.0.SNAPSHOT]
      	at org.onosproject.store.statistic.impl.DistributedStatisticStore.buildConnectPoint(DistributedStatisticStore.java:261)[145:org.onosproject.onos-core-dist:1.4.0.SNAPSHOT]
      	at org.onosproject.store.statistic.impl.DistributedStatisticStore.prepareForStatistics(DistributedStatisticStore.java:138)[145:org.onosproject.onos-core-dist:1.4.0.SNAPSHOT]
      	at org.onosproject.net.statistic.impl.StatisticManager$InternalFlowRuleListener.event(StatisticManager.java:265)[143:org.onosproject.onos-core-net:1.4.0.SNAPSHOT]
      	at org.onosproject.net.statistic.impl.StatisticManager$InternalFlowRuleListener.event(StatisticManager.java:252)[143:org.onosproject.onos-core-net:1.4.0.SNAPSHOT]
      	at org.onosproject.event.ListenerRegistry.process(ListenerRegistry.java:66)[75:org.onosproject.onos-api:1.4.0.SNAPSHOT]
      	at org.onosproject.event.impl.CoreEventDispatcher$DispatchLoop.process(CoreEventDispatcher.java:141)[143:org.onosproject.onos-core-net:1.4.0.SNAPSHOT]
      	at org.onosproject.event.impl.CoreEventDispatcher$DispatchLoop.run(CoreEventDispatcher.java:124)[143:org.onosproject.onos-core-net:1.4.0.SNAPSHOT]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_45]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45]
      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
      

        Attachments

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

          Activity

            People

            • Assignee:
              charles Charles Chan
              Reporter:
              charles Charles Chan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: