Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1293

Config issues Optional.get() when Optional.isPresent() is false

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • Post-Helium
    • config
    • None
    • Operating System: All
      Platform: All

    • 3133

      2015-05-06 10:44:31,258 | ERROR | ion(3)-127.0.0.1 | ExtensibleBundleTracker | 137 - org.opendaylight.controller.config-manager - 0.3.0.SNAPSHOT | Addition of bundle failed,
      java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Optional.get() cannot be called on an absent value
      at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_45]
      at java.util.concurrent.FutureTask.get(FutureTask.java:192)[:1.8.0_45]
      at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker.removedBundle(ExtensibleBundleTracker.java:119)
      at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker.removedBundle(ExtensibleBundleTracker.java:51)
      at org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:491)[karaf-org.osgi.core.jar:]
      at org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:414)[karaf-org.osgi.core.jar:]
      at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)[karaf-org.osgi.core.jar:]
      at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:449)[karaf-org.osgi.core.jar:]
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
      at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
      at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
      at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1568)
      at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1504)
      at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1499)
      at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:506)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.uninstallWorker(AbstractBundle.java:804)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.uninstall(AbstractBundle.java:784)
      at org.apache.karaf.features.internal.BundleManager.uninstall(BundleManager.java:391)
      at org.apache.karaf.features.internal.BundleManager.uninstall(BundleManager.java:385)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.cleanUpOnFailure(FeaturesServiceImpl.java:525)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:478)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:400)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:378)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:359)
      at Proxye7736d77_c7be_4be2_8ef6_bf50b1cfbc4c.installFeature(Unknown Source)
      at org.opendaylight.odlparent.featuretest.SingleFeatureTest.installFeature(SingleFeatureTest.java:207)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_45]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_45]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_45]
      at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_45]
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:68)
      at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:37)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:124)
      at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:97)
      at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:73)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_45]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_45]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_45]
      at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_45]
      at org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:80)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_45]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_45]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_45]
      at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_45]
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)[:1.8.0_45]
      at sun.rmi.transport.Transport$1.run(Transport.java:200)[:1.8.0_45]
      at sun.rmi.transport.Transport$1.run(Transport.java:197)[:1.8.0_45]
      at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
      at sun.rmi.transport.Transport.serviceCall(Transport.java:196)[:1.8.0_45]
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)[:1.8.0_45]
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)[:1.8.0_45]
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$241(TCPTransport.java:683)[:1.8.0_45]
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda$3/1316879458.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)[:1.8.0_45]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
      Caused by: java.lang.IllegalStateException: Optional.get() cannot be called on an absent value
      at com.google.common.base.Absent.get(Absent.java:47)[85:com.google.guava:18.0.0]
      at org.opendaylight.yangtools.sal.binding.generator.impl.ModuleInfoBackedContext.getSchemaContext(ModuleInfoBackedContext.java:178)[125:org.opendaylight.yangtools.binding-generator-impl:0.7.0.SNAPSHOT]
      at org.opendaylight.controller.config.manager.impl.osgi.mapping.BindingContextProvider.update(BindingContextProvider.java:25)[137:org.opendaylight.controller.config-manager:0.3.0.SNAPSHOT]
      at org.opendaylight.controller.config.manager.impl.osgi.mapping.RefreshingSCPModuleInfoRegistry.updateService(RefreshingSCPModuleInfoRegistry.java:42)[137:org.opendaylight.controller.config-manager:0.3.0.SNAPSHOT]
      at org.opendaylight.controller.config.manager.impl.osgi.mapping.RefreshingSCPModuleInfoRegistry.registerModuleInfo(RefreshingSCPModuleInfoRegistry.java:50)[137:org.opendaylight.controller.config-manager:0.3.0.SNAPSHOT]
      at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.addingBundle(ModuleInfoBundleTracker.java:57)[137:org.opendaylight.controller.config-manager:0.3.0.SNAPSHOT]
      at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.addingBundle(ModuleInfoBundleTracker.java:31)[137:org.opendaylight.controller.config-manager:0.3.0.SNAPSHOT]
      at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker$1$1.execute(ExtensibleBundleTracker.java:89)[137:org.opendaylight.controller.config-manager:0.3.0.SNAPSHOT]
      at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker.forEachAdditionalBundle(ExtensibleBundleTracker.java:134)[137:org.opendaylight.controller.config-manager:0.3.0.SNAPSHOT]
      at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker.access$100(ExtensibleBundleTracker.java:51)[137:org.opendaylight.controller.config-manager:0.3.0.SNAPSHOT]
      at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker$1.call(ExtensibleBundleTracker.java:86)[137:org.opendaylight.controller.config-manager:0.3.0.SNAPSHOT]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45]
      ... 3 more

            tcere Tomas Cere
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: