I have been modifying the learning switch example of the virtualization edition of the openflowplugin project. It was running fine, but once in a while, I run into exception on starting up the bundles.
2014-07-04 01:03:40.699 CEST [pool-8-thread-1] INFO o.o.o.l.internal.Activator - onSessionInitialized() consumer org.opendaylight.controller.md.sal.binding.util.BindingContextUtils$SingleConsumerContextImpl@e7792a 2014-07-04 01:03:40.739 CEST [pool-8-thread-1] ERROR o.o.c.l.b.i.UncaughtExceptionPolicy - Thread Thread[pool-8-thread-1,5,main] died because of an uncaught exception java.lang.NoSuchMethodError: org.opendaylight.controller.sal.binding.api.NotificationService.registerNotificationListener(Lorg/opendaylight/yangtools/yang/binding/NotificationListener;)Lorg/opendaylight/yangtools/concepts/ListenerRegistration;
On Eclipse, the bundle is compiled fine. I am not sure whether there is some timing issue that the API is not available because of boot sequence. Also, the pom file is set up to depend on sal-binding-api. I would expect the sal binding service would be available when my bundle is started.
Any suggestion on how to resolve the problem?