[OPNFLWJAVA-84] Karaf4 NullPointerException at org.opendaylight.openflowjava.protocol.impl.core.SwitchConnectionProviderImpl.createAndConfigureServer Created: 08/Jun/17  Updated: 19/Oct/17  Resolved: 12/Jun/17

Status: Resolved
Project: openflowjava
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Michael Vorburger Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks NETVIRT-719 Karaf4 specific problems seen on boot... Resolved
blocks SFC-196 Karaf4 exceptions in SFC distribution Verified
External issue ID: 8640

 Description   

As part of overall NETVIRT-719 (but also in SFC-196), see full log attached there, this NPE from openflowjava appears in Karaf 4 (only) based distributions:

2017-06-08 15:52:23,726 | ERROR | rint Extender: 2 | Futures$CombinedFuture | 71 - com.google.guava - 18.0.0 | input future failed.
java.lang.NullPointerException
at org.opendaylight.openflowjava.protocol.impl.core.SwitchConnectionProviderImpl.createAndConfigureServer(SwitchConnectionProviderImpl.java:145)
at org.opendaylight.openflowjava.protocol.impl.core.SwitchConnectionProviderImpl.startup(SwitchConnectionProviderImpl.java:112)
at Proxy36c334b0_0d6d_4985_afe8_4592d2045c49.startup(Unknown Source)
at Proxyd08be1e6_bbbf_4f92_ab69_c11c5fcc6a45.startup(Unknown Source)
at org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderImpl.lambda$startSwitchConnections$0(OpenFlowPluginProviderImpl.java:150)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)[:1.8.0_131]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)[:1.8.0_131]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)[:1.8.0_131]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)[:1.8.0_131]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)[:1.8.0_131]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)[:1.8.0_131]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)[:1.8.0_131]
at org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderImpl.startSwitchConnections(OpenFlowPluginProviderImpl.java:151)
at org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderImpl.initialize(OpenFlowPluginProviderImpl.java:232)
at org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderFactoryImpl.newInstance(OpenFlowPluginProviderFactoryImpl.java:106)



 Comments   
Comment by Michael Vorburger [ 08/Jun/17 ]

This WARN message instead of ERROR message shown above, with the same stack trace, is most likely the same - copy/paste here just in case anyone does a search and hits this:

2017-06-08 15:52:23,762 | WARN | rint Extender: 2 | OpenFlowPluginProviderImpl | 346 - org.opendaylight.openflowplugin.impl - 0.5.0.SNAPSHOT | Some switchConnectionProviders failed to start.
java.lang.NullPointerException
at org.opendaylight.openflowjava.protocol.impl.core.SwitchConnectionProviderImpl.createAndConfigureServer(SwitchConnectionProviderImpl.java:145)
....

Comment by Mohamed ElSerngawy [ 08/Jun/17 ]

it happen with me also. I pushed this patch [0] to handle the null check but for some reason the configuration does not set in the provider.

[0] https://git.opendaylight.org/gerrit/#/c/58159/

Comment by Michal Rehak [ 12/Jun/17 ]

Now correct exception is thrown.
Thank you.

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