Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using mininet #13

Open
atomd-zz opened this issue Mar 12, 2014 · 3 comments
Open

Error when using mininet #13

atomd-zz opened this issue Mar 12, 2014 · 3 comments
Assignees
Labels

Comments

@atomd-zz
Copy link

I use 「java -cp build/lib/warp.jar org.flowforwarding.warp.demo.Launcher 」to start controller and I start mininet, and I get a error:

[ERROR] [03/12/2014 17:01:22.365] [OfController-akka.actor.default-dispatcher-3] [akka://OfController/user/Controller-Dispatcher/$a] null
java.lang.NullPointerException
at org.flowforwarding.warp.protocol.ofmessages.OFMessageProvider13AvroProtocol.buildFlowModMsg(OFMessageProvider13AvroProtocol.java:282)
at org.flowforwarding.warp.demo.SimpleHandler.packetIn(SimpleHandler.java:54)
at org.flowforwarding.warp.controller.session.OFSessionHandler.onReceive(OFSessionHandler.java:44)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498)
at akka.actor.ActorCell.invoke(ActorCell.scala:456)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

@Dmitry-Orekhov Dmitry-Orekhov self-assigned this Mar 14, 2014
@Dmitry-Orekhov
Copy link
Contributor

Qualified as a bug, reproduced and started to work on it.

@atomd-zz
Copy link
Author

@Dmitry-Orekhov Thank you for your reply.

I am not sure whether warp can only work with LINC Switch?
I tried to install openvswitch-2.0.1 to test warp with OF1.3 and also got some errors.

OF-INFO HANDSHAKED 1
OF-INFO DPID: 1 Switch Config is received from the Switch

OF-INFO DPID: 1 Configuration: Normal
java.io.EOFException
at org.apache.avro.io.BinaryDecoder$ByteArrayByteSource.readRaw(BinaryDecoder.java:940)
at org.apache.avro.io.BinaryDecoder.doReadBytes(BinaryDecoder.java:345)
at org.apache.avro.io.BinaryDecoder.readFixed(BinaryDecoder.java:301)
at org.apache.avro.io.ValidatingDecoder.readFixed(ValidatingDecoder.java:147)
at org.apache.avro.generic.GenericDatumReader.readFixed(GenericDatumReader.java:266)
at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:149)
at org.apache.avro.generic.GenericDatumReader.readRecord(GenericDatumReader.java:173)
at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:144)
at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:135)
at org.flowforwarding.warp.protocol.ofmessages.OFMessageProvider13AvroProtocol.getSwitchConfigRecord(OFMessageProvider13AvroProtocol.java:469)
at org.flowforwarding.warp.protocol.ofmessages.OFMessageProvider13AvroProtocol.isConfig(OFMessageProvider13AvroProtocol.java:2573)
at org.flowforwarding.warp.jcontroller.session.SwitchNurse.onReceive(SwitchNurse.java:94)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498)
at akka.actor.ActorCell.invoke(ActorCell.scala:456)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
[ERROR] [03/15/2014 23:31:21.211] [OfController-akka.actor.default-dispatcher-8] [akka://OfController/user/Controller-Dispatcher/$p] null
java.lang.NullPointerException
at org.flowforwarding.warp.protocol.ofmessages.OFMessageProvider13AvroProtocol.isConfig(OFMessageProvider13AvroProtocol.java:2576)
at org.flowforwarding.warp.jcontroller.session.SwitchNurse.onReceive(SwitchNurse.java:94)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498)
at akka.actor.ActorCell.invoke(ActorCell.scala:456)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

OF-INFO DPID: 1 Packet-In is received from the Switch

[ERROR] [03/15/2014 23:38:02.726] [OfController-akka.actor.default-dispatcher-7] [akka://OfController/user/Controller-Dispatcher/$a] null
java.lang.NullPointerException
at org.flowforwarding.warp.protocol.ofmessages.OFMessageProvider13AvroProtocol.buildFlowModMsg(OFMessageProvider13AvroProtocol.java:283)
at org.flowforwarding.warp.demo.SimpleHandler.packetIn(SimpleHandler.java:54)
at org.flowforwarding.warp.jcontroller.session.OFSessionHandler.onReceive(OFSessionHandler.java:46)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498)
at akka.actor.ActorCell.invoke(ActorCell.scala:456)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

@Dmitry-Orekhov
Copy link
Contributor

Reproduced the bug either.
Opened as a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants