Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4757

KryoException observed in ResourceRegistrar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      commit f33d4bde71a0e8b7f79a0a43d2994a40853b348a

    • Story Points:
      3

      Description

      Noticed following Exception log after `sudo -E python onos/tools/test/topos/opticalTestBig.py $OC1 $OC2 $OC3` while following these steps https://wiki.onosproject.org/display/ONOS/The+Packet+Optical+Dev+Environment#ThePacketOpticalDevEnvironment-Mininet

      2016-06-27 10:38:43,333 | ERROR | source-registrar | ResourceRegistrar                | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Uncaught exception on onos-resource-registrar
      com.esotericsoftware.kryo.KryoException: java.util.NoSuchElementException
      Serialization trace:
      encodables (org.onosproject.store.resource.impl.UnifiedDiscreteResources)
      	at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:144)
      	at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:551)
      	at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:790)
      	at org.onlab.util.KryoNamespace.deserialize(KryoNamespace.java:347)
      	at org.onosproject.store.service.Serializer$1.decode(Serializer.java:62)
      	at org.onosproject.store.primitives.impl.StoragePartitionClient.lambda$newAsyncConsistentMap$10(StoragePartitionClient.java:139)
      	at org.onosproject.store.service.Versioned.map(Versioned.java:100)
      	at org.onosproject.store.primitives.impl.TranscodingAsyncConsistentMap.lambda$new$4(TranscodingAsyncConsistentMap.java:71)
      	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)[:1.8.0_92]
      	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)[:1.8.0_92]
      	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)[:1.8.0_92]
      	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)[:1.8.0_92]
      	at org.onosproject.store.primitives.impl.OnosCopycatClient.lambda$submit$3(OnosCopycatClient.java:96)
      	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)[:1.8.0_92]
      	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)[:1.8.0_92]
      	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)[:1.8.0_92]
      	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)[:1.8.0_92]
      	at io.atomix.catalyst.concurrent.ComposableFuture.accept(ComposableFuture.java:33)
      	at io.atomix.copycat.client.DefaultCopycatClient.lambda$null$51(DefaultCopycatClient.java:223)
      	at io.atomix.catalyst.concurrent.Runnables.lambda$logFailure$2(Runnables.java:20)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_92]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_92]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_92]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_92]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_92]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_92]
      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_92]
      Caused by: java.util.NoSuchElementException
      	at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1209)[:1.8.0_92]
      	at java.util.TreeMap$ValueIterator.next(TreeMap.java:1256)[:1.8.0_92]
      	at org.onosproject.store.resource.impl.EncodedDiscreteResources.encodedClass(EncodedDiscreteResources.java:80)
      	at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)[:1.8.0_92]
      	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)[:1.8.0_92]
      	at java.util.Iterator.forEachRemaining(Iterator.java:116)[:1.8.0_92]
      	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)[:1.8.0_92]
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)[:1.8.0_92]
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)[:1.8.0_92]
      	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)[:1.8.0_92]
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)[:1.8.0_92]
      	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)[:1.8.0_92]
      	at org.onosproject.store.resource.impl.EncodableDiscreteResourcesSerializer.read(EncodableDiscreteResourcesSerializer.java:47)
      	at org.onosproject.store.resource.impl.EncodableDiscreteResourcesSerializer.read(EncodableDiscreteResourcesSerializer.java:33)
      	at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:708)
      	at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:125)
      	... 26 more
      

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              shimizu Shimizu Sho
              Reporter:
              y-higuchi Yuta Higuchi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: