1 Reply Latest reply: Aug 5, 2013 12:41 PM by user639604 RSS

    java.io.IOException: Deserialization failed, format CollectionFormat(public java.util.ArrayList())

    swappyk

      I am trying to retrieve a list from coherence cache and when I try to test my cache I get the following exception

       

      Exception in thread "main" (Wrapped) java.io.IOException: Deserialization failed, format CollectionFormat(public java.util.ArrayList())

        at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)

        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ConverterFromBinary.convert(PartitionedCache.CDB:4)

        at com.tangosol.util.ConverterCollections$ConverterMap.get(ConverterCollections.java:1655)

        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.get(PartitionedCache.CDB:1)

        at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)

        at com.sesco.cohc.cohc_RegionalForecastedGen.getLatestDataForDataSource(cohc_RegionalForecastedGen.java:32)

        at com.sesco.cohc.cohc_RegionalForecastedGen.main(cohc_RegionalForecastedGen.java:172)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

      Caused by: java.io.IOException: Deserialization failed, format CollectionFormat(public java.util.ArrayList())

        at org.gridkit.coherence.utils.pof.ReflectionPofSerializer.internalDeserialize(ReflectionPofSerializer.java:105)

        at org.gridkit.coherence.utils.pof.ReflectionPofSerializer.deserialize(ReflectionPofSerializer.java:92)

        at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)

        at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)

        at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:368)

        at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)

        at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)

        ... 11 more

      Caused by: java.io.IOException: Failed to deserialize java.util.ArrayList instance

        at org.gridkit.coherence.utils.pof.ReflectionPofSerializer$CollectionSerializer.deserialize(ReflectionPofSerializer.java:317)

        at org.gridkit.coherence.utils.pof.ReflectionPofSerializer.internalDeserialize(ReflectionPofSerializer.java:101)

        ... 17 more

      Caused by: java.io.EOFException

        at com.tangosol.io.AbstractByteArrayReadBuffer$ByteArrayBufferInput.readPackedInt(AbstractByteArrayReadBuffer.java:430)

        at com.tangosol.io.pof.PofBufferReader$UserTypeReader.complete(PofBufferReader.java:3819)

        at com.tangosol.io.pof.PofBufferReader.readCollection(PofBufferReader.java:2452)

        at org.gridkit.coherence.utils.pof.ReflectionPofSerializer$CollectionSerializer.deserialize(ReflectionPofSerializer.java:306)

        ... 18 more

       

      I am not sure why I am getting the error. Any help would be appreciated