java.util.concurrent.ExecutionException: java.lang.NullPointerException

JIRA | Maxim Kondratenko | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hello, ONOS: 1.3.0-SNAPSHOT (commit 3f1b128) Test topology: tools/test/topos/opticalTest.py Activated apps: proxyarp, drivers, optical, openflow, calendar (from onos-app-samples.git repo) During the attempt to create HostToHost or P2P intent the following exception appears and intent is not created. The intent is created if I avoid passing both bandwidth and latency constraints in source code (just comment them). If at least one of them is passed to HostToHostIntent or TwoWayP2PIntent exception appears. onos> hosts id=00:00:00:00:00:01/-1, mac=00:00:00:00:00:01, location=of:0000ffffffff0001/1, vlan=-1, ip(s)=[10.0.0.1] id=00:00:00:00:00:02/-1, mac=00:00:00:00:00:02, location=of:0000ffffffff0002/1, vlan=-1, ip(s)=[10.0.0.2] REST request: curl -XPOST "http://192.168.1.101:8181/onos/calendar/intent/0000ffffffff0001/0000ffffffff0002/1/1/10/30" Exception: 2015-07-04 23:17:42,748 | INFO | tp1969339732-463 | BandwidthCalendarResource | 174 - org.onosproject.onos-app-calendar - 1.3.0.SNAPSHOT | Submitted Calendar App intent and waiting: TwoWayP2PIntent{id=0x0, key=0x0, appId=DefaultApplicationId{id=31, name=org.onosproject.calendar}, priority=100, resources=[], selector=DefaultTrafficSelector{criteria=[ETH_TYPE{ethType=ipv4}]}, treatment=DefaultTrafficTreatment{immediate=[], deferred=[], transition=None, cleared=false, metadata=null}, constraints=[BandwidthConstraint{bandwidth=1.0E7}, LatencyConstraint{latency=PT0.00003S}], one=ConnectPoint{elementId=of:0000ffffffff0001, portNumber=1}, two=ConnectPoint{elementId=of:0000ffffffff0002, portNumber=1}} 2015-07-04 23:17:42,906 | WARN | nos-intent-batch | IntentManager | 76 - org.onosproject.onos-core-net - 1.3.0.SNAPSHOT | Future failed: {} java.util.concurrent.ExecutionException: java.lang.NullPointerException 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.onosproject.net.intent.impl.IntentManager$IntentBatchProcess.waitForFutures(IntentManager.java:364)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.IntentManager$IntentBatchProcess.run(IntentManager.java:339)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] 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.NullPointerException at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1838)[:1.8.0_45] at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)[:1.8.0_45] at java.lang.Double.parseDouble(Double.java:538)[:1.8.0_45] at org.onosproject.net.AnnotationKeys.getAnnotatedValue(AnnotationKeys.java:104)[74:org.onosproject.onos-api:1.3.0.SNAPSHOT] at org.onosproject.net.intent.constraint.LatencyConstraint.cost(LatencyConstraint.java:59)[74:org.onosproject.onos-api:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.compiler.ConnectivityIntentCompiler$ConstraintBasedLinkWeight.weight(ConnectivityIntentCompiler.java:148)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.compiler.ConnectivityIntentCompiler$ConstraintBasedLinkWeight.weight(ConnectivityIntentCompiler.java:118)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onlab.graph.AbstractGraphPathSearch$DefaultResult.relaxEdge(AbstractGraphPathSearch.java:194)[72:org.onosproject.onlab-misc:1.3.0.SNAPSHOT] at org.onlab.graph.DijkstraGraphSearch.search(DijkstraGraphSearch.java:63)[72:org.onosproject.onlab-misc:1.3.0.SNAPSHOT] at org.onosproject.store.topology.impl.DefaultTopology.getPaths(DefaultTopology.java:300)[78:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT] at org.onosproject.store.topology.impl.DistributedTopologyStore.getPaths(DistributedTopologyStore.java:122)[78:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT] at org.onosproject.net.topology.impl.TopologyManager.getPaths(TopologyManager.java:176)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.topology.impl.PathManager.getPaths(PathManager.java:126)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.compiler.ConnectivityIntentCompiler.getPath(ConnectivityIntentCompiler.java:99)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.compiler.PointToPointIntentCompiler.compile(PointToPointIntentCompiler.java:74)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.compiler.PointToPointIntentCompiler.compile(PointToPointIntentCompiler.java:41)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.CompilerRegistry.compile(CompilerRegistry.java:82)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.CompilerRegistry.compile(CompilerRegistry.java:83)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.IntentManager$InternalIntentProcessor.compile(IntentManager.java:394)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.phase.Compiling.execute(Compiling.java:57)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.phase.IntentWorker.call(IntentWorker.java:48)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at org.onosproject.net.intent.impl.phase.IntentWorker.call(IntentWorker.java:27)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45] ... 3 more Please let me know if any additional info is required from my side. Thanks in advanced.

    JIRA | 2 years ago | Maxim Kondratenko
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
  2. 0
  3. 0

    {noformat} 2016-04-11 19:46:18,020 | INFO | FelixStartLevel | HostManager | 129 - org.onosproject.onos-core-net - 1.6.0.SNAPSHOT | Started 2016-04-11 19:46:18,021 | INFO | FelixStartLevel | PathManager | 129 - org.onosproject.onos-core-net - 1.6.0.SNAPSHOT | Started 2016-04-11 19:46:18,087 | INFO | FelixStartLevel | ObjectiveTracker | 129 - org.onosproject.onos-core-net - 1.6.0.SNAPSHOT | Started 2016-04-11 19:46:18,132 | INFO | FelixStartLevel | IntentManager | 129 - org.onosproject.onos-core-net - 1.6.0.SNAPSHOT | Started 2016-04-11 19:46:18,202 | ERROR | ent-current-fg-0 | Tools | 72 - org.onosproject.onlab-misc - 1.6.0.SNAPSHOT | Uncaught exception on onos-ecm-intent-current-fg-0 java.lang.NullPointerException at org.onosproject.net.intent.impl.ObjectiveTracker.trackIntent(ObjectiveTracker.java:210) at org.onosproject.net.intent.impl.IntentManager$InternalStoreDelegate.onUpdate(IntentManager.java:331) at org.onosproject.store.intent.impl.GossipIntentStore$InternalCurrentListener.event(GossipIntentStore.java:300) at org.onosproject.store.primitives.impl.EventuallyConsistentMapImpl.lambda$notifyListeners$9(EventuallyConsistentMapImpl.java:521) at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:890)[:1.8.0_77] at java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:404)[:1.8.0_77] at org.onosproject.store.primitives.impl.EventuallyConsistentMapImpl.notifyListeners(EventuallyConsistentMapImpl.java:521) at org.onosproject.store.primitives.impl.EventuallyConsistentMapImpl.lambda$processUpdates$16(EventuallyConsistentMapImpl.java:650) at java.lang.Iterable.forEach(Iterable.java:75)[:1.8.0_77] at org.onosproject.store.primitives.impl.EventuallyConsistentMapImpl.processUpdates(EventuallyConsistentMapImpl.java:641) at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$InternalMessageConsumer.accept(ClusterCommunicationManager.java:338)[131:org.onosproject.onos-core-dist:1.6.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$InternalMessageConsumer.accept(ClusterCommunicationManager.java:327)[131:org.onosproject.onos-core-dist:1.6.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.lambda$null$2(NettyMessagingManager.java:278) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_77] at java.lang.Thread.run(Thread.java:745)[:1.8.0_77] 2016-04-11 19:46:18,357 | INFO | FelixStartLevel | IntentConfigurableRegistrator | 129 - org.onosproject.onos-core-net - 1.6.0.SNAPSHOT | Started 2016-04-11 19:46:18,420 | INFO | FelixStartLevel | IntentCleanup | 129 - org.onosproject.onos-core-net - 1.6.0.SNAPSHOT | Started {noformat}

    JIRA | 10 months ago | Jon Hall
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    src (compute1) ------sf (controller) ----- dst (compute1) In above port-chain SRC not getting ip and i saw below null pointer exception in onos code Command not found: display-exception onos> exception-display java.lang.NullPointerException at org.onosproject.vtn.manager.impl.VtnManager.programSffAndClassifierHost(VtnManager.java:572)[198:org.onosproject.onos-app-vtn-mgr:1.7.0.SNAPSHOT] at org.onosproject.vtn.manager.impl.VtnManager.onHostVanished(VtnManager.java:478)[198:org.onosproject.onos-app-vtn-mgr:1.7.0.SNAPSHOT] at org.onosproject.vtn.manager.impl.VtnManager$InnerHostListener.event(VtnManager.java:783)[198:org.onosproject.onos-app-vtn-mgr:1.7.0.SNAPSHOT] at org.onosproject.vtn.manager.impl.VtnManager$InnerHostListener.event(VtnManager.java:775)[198:org.onosproject.onos-app-vtn-mgr:1.7.0.SNAPSHOT] at org.onosproject.event.ListenerRegistry.process(ListenerRegistry.java:66)[74:org.onosproject.onos-api:1.7.0.SNAPSHOT] at org.onosproject.event.impl.CoreEventDispatcher$DispatchLoop.process(CoreEventDispatcher.java:145)[76:org.onosproject.onos-core-net:1.7.0.SNAPSHOT] at org.onosproject.event.impl.CoreEventDispatcher$DispatchLoop.run(CoreEventDispatcher.java:128)[76:org.onosproject.onos-core-net:1.7.0.SNAPSHOT] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_74] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_74] at java.lang.Thread.run(Thread.java:745)[:1.8.0_74] onos>

    JIRA | 7 months ago | Mohankumar Navaneethan
    java.lang.NullPointerException
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at sun.misc.FloatingDecimal.readJavaFormatString()
  2. Java RT
    Double.parseDouble
    1. sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1838)[:1.8.0_45]
    2. sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)[:1.8.0_45]
    3. java.lang.Double.parseDouble(Double.java:538)[:1.8.0_45]
    3 frames
  3. org.onosproject.net
    ConnectivityIntentCompiler$ConstraintBasedLinkWeight.weight
    1. org.onosproject.net.AnnotationKeys.getAnnotatedValue(AnnotationKeys.java:104)[74:org.onosproject.onos-api:1.3.0.SNAPSHOT]
    2. org.onosproject.net.intent.constraint.LatencyConstraint.cost(LatencyConstraint.java:59)[74:org.onosproject.onos-api:1.3.0.SNAPSHOT]
    3. org.onosproject.net.intent.impl.compiler.ConnectivityIntentCompiler$ConstraintBasedLinkWeight.weight(ConnectivityIntentCompiler.java:148)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    4. org.onosproject.net.intent.impl.compiler.ConnectivityIntentCompiler$ConstraintBasedLinkWeight.weight(ConnectivityIntentCompiler.java:118)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    4 frames
  4. org.onlab.graph
    DijkstraGraphSearch.search
    1. org.onlab.graph.AbstractGraphPathSearch$DefaultResult.relaxEdge(AbstractGraphPathSearch.java:194)[72:org.onosproject.onlab-misc:1.3.0.SNAPSHOT]
    2. org.onlab.graph.DijkstraGraphSearch.search(DijkstraGraphSearch.java:63)[72:org.onosproject.onlab-misc:1.3.0.SNAPSHOT]
    2 frames
  5. org.onosproject.store
    DistributedTopologyStore.getPaths
    1. org.onosproject.store.topology.impl.DefaultTopology.getPaths(DefaultTopology.java:300)[78:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT]
    2. org.onosproject.store.topology.impl.DistributedTopologyStore.getPaths(DistributedTopologyStore.java:122)[78:org.onosproject.onos-core-dist:1.3.0.SNAPSHOT]
    2 frames
  6. org.onosproject.net
    IntentWorker.call
    1. org.onosproject.net.topology.impl.TopologyManager.getPaths(TopologyManager.java:176)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    2. org.onosproject.net.topology.impl.PathManager.getPaths(PathManager.java:126)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    3. org.onosproject.net.intent.impl.compiler.ConnectivityIntentCompiler.getPath(ConnectivityIntentCompiler.java:99)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    4. org.onosproject.net.intent.impl.compiler.PointToPointIntentCompiler.compile(PointToPointIntentCompiler.java:74)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    5. org.onosproject.net.intent.impl.compiler.PointToPointIntentCompiler.compile(PointToPointIntentCompiler.java:41)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    6. org.onosproject.net.intent.impl.CompilerRegistry.compile(CompilerRegistry.java:82)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    7. org.onosproject.net.intent.impl.CompilerRegistry.compile(CompilerRegistry.java:83)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    8. org.onosproject.net.intent.impl.IntentManager$InternalIntentProcessor.compile(IntentManager.java:394)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    9. org.onosproject.net.intent.impl.phase.Compiling.execute(Compiling.java:57)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    10. org.onosproject.net.intent.impl.phase.IntentWorker.call(IntentWorker.java:48)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    11. org.onosproject.net.intent.impl.phase.IntentWorker.call(IntentWorker.java:27)[76:org.onosproject.onos-core-net:1.3.0.SNAPSHOT]
    11 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45]
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45]
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45]
    4. java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
    4 frames