<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: binding error on my code (version 2.3.5) in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/binding-error-on-my-code-version-2-3-5/m-p/6628060#M463</link>
    <description>&lt;P&gt;Hello sbotkine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the method &amp;nbsp;void addDataPathListener(DataPathListener listener) is same in version 2.0 and 2.3.5 so you might need to check if the dataPathListener (argument that is passed to the function) as well as the controllerService(object which is calling the function) have been properly initialized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can follow the SDN Programming guide page 222 to check how dataPathListener is initialized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if you still face any issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2014 16:57:35 GMT</pubDate>
    <dc:creator>sdnindia</dc:creator>
    <dc:date>2014-09-23T16:57:35Z</dc:date>
    <item>
      <title>binding error on my code (version 2.3.5)</title>
      <link>https://community.hpe.com/t5/software-defined-networking/binding-error-on-my-code-version-2-3-5/m-p/6616686#M450</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an error with the following binding code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL_UNARY)&lt;BR /&gt;private volatile ControllerService controllerService;&lt;/P&gt;&lt;P&gt;@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL_UNARY)&lt;BR /&gt;private volatile DataPathListener dataPathListener;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;protected void bindControllerService(ControllerService service) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;controllerService = service;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;logger.info("DHCPSDN: Binding controller service BEFORE ERROR");&lt;BR /&gt;&amp;nbsp; &amp;nbsp;controllerService.addDataPathListener(dataPathListener);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;logger.info("DHCPSDN: Binding controller service AFTER ERROR");&lt;BR /&gt;&amp;nbsp; &amp;nbsp;controllerService.addPacketListener(this, PacketListenerRole.OBSERVER, 99999);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I execute in on the controller, I obtained the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2014-09-15 11:05:58.240] INFO t Resolve Thread (Bundle 81) com.unil.dhcpsdn.impl.DhcpSdnManager DHCPSDN: Binding controller service BEFORE ERROR&amp;nbsp;&lt;BR /&gt;[2014-09-15 11:05:58.248] ERROR iLogServiceListener@761f3529 org.osgi.service.log.LogService&amp;nbsp;&lt;BR /&gt;Bundle com.unil.dhcpsdn.dhcpsdn-bl_1.0.0.SNAPSHOT, [SCR] Error while trying to bind reference Reference[name = controllerService, interface = com.hp.of.ctl.ControllerService, policy = dynamic, cardinality = 0..1, target = null, bind = bindControllerService, unbind = unbindControllerService]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As you can see on the error log, this is the instruction:&amp;nbsp;&amp;nbsp; &amp;nbsp;controllerService.addDataPathListener(dataPathListener); &amp;nbsp;that failed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice that the same code worked with the previous contoller version 2.0....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An idea ?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2014 09:29:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/binding-error-on-my-code-version-2-3-5/m-p/6616686#M450</guid>
      <dc:creator>sbotkine</dc:creator>
      <dc:date>2014-09-15T09:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: binding error on my code (version 2.3.5)</title>
      <link>https://community.hpe.com/t5/software-defined-networking/binding-error-on-my-code-version-2-3-5/m-p/6628060#M463</link>
      <description>&lt;P&gt;Hello sbotkine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the method &amp;nbsp;void addDataPathListener(DataPathListener listener) is same in version 2.0 and 2.3.5 so you might need to check if the dataPathListener (argument that is passed to the function) as well as the controllerService(object which is calling the function) have been properly initialized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can follow the SDN Programming guide page 222 to check how dataPathListener is initialized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if you still face any issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2014 16:57:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/binding-error-on-my-code-version-2-3-5/m-p/6628060#M463</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-09-23T16:57:35Z</dc:date>
    </item>
  </channel>
</rss>

