Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-105

Adding a flow using the Forwarding Rule Manager and the New OF1.3 Plugin causes an NPE

    XMLWordPrintable

Details

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

    • 259

    Description

      To reproduce,

      1. Run the controller distribution from the openflowplugin project
      2. Populate topology with mininet
      3. Add flow using the following format,

      PUT http://localhost:8080/controller/nb/v2/flowprogrammer/default/node/MD_SAL/openflow:1/staticFlow/flow1

      Headers:
      Content-Type: application/xml
      Accept: application/json

      Body:

      <flowConfig>
      <installInHw>true</installInHw>
      <name>flow1</name>
      <node>
      <id>openflow:1</id>
      <type>MD_SAL</type>
      </node>
      <ingressPort>openflow:1:3</ingressPort>
      <priority>500</priority>
      <etherType>0x800</etherType>
      <nwSrc>9.9.1.1</nwSrc>
      <actions>OUTPUT=openflow:1:3</actions>
      </flowConfig>

      Exception:

      java.lang.NullPointerException
      org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService$$Broker$Router.addFlow(SalFlowService$$Broker$Router.java)
      org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService$$Broker$DirectProxy.addFlow(SalFlowService$$Broker$DirectProxy.java)
      org.opendaylight.controller.sal.compatibility.FlowProgrammerAdapter.addFlow(FlowProgrammerAdapter.java:68)
      org.opendaylight.controller.sal.implementation.internal.FlowProgrammerService.addFlow(FlowProgrammerService.java:186)
      org.opendaylight.controller.forwardingrulesmanager.internal.ForwardingRulesManager.addEntriesInternal(ForwardingRulesManager.java:754)
      org.opendaylight.controller.forwardingrulesmanager.internal.ForwardingRulesManager.addEntry(ForwardingRulesManager.java:333)
      org.opendaylight.controller.forwardingrulesmanager.internal.ForwardingRulesManager.installFlowEntry(ForwardingRulesManager.java:953)
      org.opendaylight.controller.forwardingrulesmanager.internal.ForwardingRulesManager.addStaticFlowInternal(ForwardingRulesManager.java:1570)
      org.opendaylight.controller.forwardingrulesmanager.internal.ForwardingRulesManager.addStaticFlow(ForwardingRulesManager.java:1515)
      org.opendaylight.controller.flowprogrammer.northbound.FlowProgrammerNorthbound.addOrModifyFlow(FlowProgrammerNorthbound.java:472)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method.invoke(Method.java:606)
      com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
      com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
      com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
      com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
      com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
      com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
      com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
      com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
      com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
      com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      org.apache.catalina.filters.CorsFilter.handleSimpleCORS(CorsFilter.java:303)
      org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:171)

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            moraja@cisco.com Moiz Raja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: