-
Bug
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: Linux
Platform: PC
-
840
Hello all,
I am working with the openflowplugin project, and was able to manage nodes of openflow 1.3 including configuration of rules using the "addMDFlow" osgi command.
Yesterday, I updated my environment to the latest versions (both controller and openflowplugin), and now the "addMDFlow" fails with the exception below. (See also compilation details below)
Did anyone encountered this problem?
I removed all my environment including the objects from the .m2 folders and re-cloned the projects and problem still consist.
Please help on this issue.
Thanks, Aliza
addMDFlow openflow:2 f54 0
2014-04-24 11:52:24.248 IDT [md-sal-binding-commit-0] ERROR o.o.c.m.s.c.i.service.TwoPhaseCommit - Transaction: BA-4713 Finish Commit failed
java.lang.NumberFormatException: For input string: "Flow"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_51]
at java.lang.Integer.parseInt(Integer.java:492) ~[na:1.7.0_51]
at java.math.BigInteger.<init>(BigInteger.java:338) ~[na:1.7.0_51]
at java.math.BigInteger.<init>(BigInteger.java:476) ~[na:1.7.0_51]
at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.FlowConvertor.toFlowModInput(FlowConvertor.java:102) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.core.sal.ModelDrivenSwitchImpl.addFlow(ModelDrivenSwitchImpl.java:227) ~[na:na]
at org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService$$Broker$Router.addFlow(SalFlowService$$Broker$Router.java) ~[na:na]
at org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService$$Broker$DirectProxy.addFlow(SalFlowService$$Broker$DirectProxy.java) ~[na:na]
at org.opendaylight.controller.frm.flow.FlowTransaction.add(FlowTransaction.java:121) ~[na:na]
at org.opendaylight.controller.frm.AbstractTransaction.callRpcs(AbstractTransaction.java:63) ~[na:na]
at org.opendaylight.controller.frm.AbstractTransaction.finish(AbstractTransaction.java:35) ~[na:na]
at org.opendaylight.controller.md.sal.common.impl.service.TwoPhaseCommit.call(TwoPhaseCommit.java:110) [bundlefile:na]
at org.opendaylight.controller.md.sal.common.impl.service.TwoPhaseCommit.call(TwoPhaseCommit.java:38) [bundlefile:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
2014-04-24 11:52:24.255 IDT [Gogo shell] ERROR o.o.o.t.OpenflowpluginTestCommandProvider - java.lang.NumberFormatException: For input string: "Flow"
java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For input string: "Flow"
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.7.0_51]
at java.util.concurrent.FutureTask.get(FutureTask.java:188) ~[na:1.7.0_51]
at org.opendaylight.openflowplugin.test.OpenflowpluginTestCommandProvider.writeFlow(OpenflowpluginTestCommandProvider.java:3119) [bundlefile:na]
at org.opendaylight.openflowplugin.test.OpenflowpluginTestCommandProvider._addMDFlow(OpenflowpluginTestCommandProvider.java:3107) [bundlefile:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51]
at org.eclipse.equinox.console.command.adapter.CommandProviderAdapter.main(CommandProviderAdapter.java:46) [org.eclipse.equinox.console-1.0.0.v20120522-1841.jar:na]
at org.eclipse.equinox.console.command.adapter.CommandProviderAdapter._main(CommandProviderAdapter.java:64) [org.eclipse.equinox.console-1.0.0.v20120522-1841.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51]
at org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136) [bundlefile:na]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) [bundlefile:na]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469) [bundlefile:na]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:395) [bundlefile:na]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) [bundlefile:na]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) [bundlefile:na]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) [bundlefile:na]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) [bundlefile:na]
at org.apache.felix.gogo.shell.Console.run(Console.java:62) [bundlefile:na]
at org.apache.felix.gogo.shell.Shell.console(Shell.java:203) [bundlefile:na]
at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128) [bundlefile:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51]
at org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136) [bundlefile:na]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) [bundlefile:na]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469) [bundlefile:na]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:395) [bundlefile:na]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) [bundlefile:na]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) [bundlefile:na]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) [bundlefile:na]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) [bundlefile:na]
at org.apache.felix.gogo.shell.Activator.run(Activator.java:75) [bundlefile:na]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
Caused by: java.lang.NumberFormatException: For input string: "Flow"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_51]
at java.lang.Integer.parseInt(Integer.java:492) ~[na:1.7.0_51]
at java.math.BigInteger.<init>(BigInteger.java:338) ~[na:1.7.0_51]
at java.math.BigInteger.<init>(BigInteger.java:476) ~[na:1.7.0_51]
at org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.FlowConvertor.toFlowModInput(FlowConvertor.java:102) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.core.sal.ModelDrivenSwitchImpl.removeFlow(ModelDrivenSwitchImpl.java:393) ~[na:na]
at org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService$$Broker$Router.removeFlow(SalFlowService$$Broker$Router.java) ~[na:na]
at org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService$$Broker$DirectProxy.removeFlow(SalFlowService$$Broker$DirectProxy.java) ~[na:na]
at org.opendaylight.controller.frm.flow.FlowTransaction.remove(FlowTransaction.java:65) ~[na:na]
at org.opendaylight.controller.frm.AbstractTransaction.rollbackRpcs(AbstractTransaction.java:103) ~[na:na]
at org.opendaylight.controller.frm.AbstractTransaction.rollback(AbstractTransaction.java:45) ~[na:na]
at org.opendaylight.controller.md.sal.common.impl.service.TwoPhaseCommit.rollback(TwoPhaseCommit.java:241) ~[na:na]
at org.opendaylight.controller.md.sal.common.impl.service.TwoPhaseCommit.call(TwoPhaseCommit.java:116) ~[na:na]
at org.opendaylight.controller.md.sal.common.impl.service.TwoPhaseCommit.call(TwoPhaseCommit.java:38) ~[na:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_51]
... 1 common frames omitted
osgi>
compilation:
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-i386/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.8.0-29-generic", arch: "i386", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /root/.m2/settings.xml
[DEBUG] Using local repository at /root/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /root/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project org.opendaylight.openflowplugin:distributions-openflowplugin-base:pom:0.0.3-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: org.opendaylight.openflowplugin:distributions-openflowplugin-base:pom:0.0.3-SNAPSHOT
[DEBUG] Tasks: [clean, install]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Opendaylight OpenflowPlugin Base Edition 0.0.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[