1 Reply Latest reply on Jun 19, 2013 1:44 PM by Jonathan.Knight

    java.io.OptionalDataException in Coherence Java Client

    LSV

      Hi,

       

      I see below error in my coherence java client. when i google, i saw a similar issue http://stackoverflow.com/questions/10476056/java-io-optionaldataexception-in-run-method. But my coherence cache does not store any complex objects. They are just string type. Any idea what would be the issue ?

       

       

      (Wrapped) java.io.OptionalDataException

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

              at com.tangosol.coherence.component.net.extend.RemoteNamedCache$ConverterFromBinary.convert(RemoteNamedCache.CDB:4)

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

              at com.tangosol.coherence.component.net.extend.RemoteNamedCache.get(RemoteNamedCache.CDB:1)

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

              at com.tangosol.net.cache.CachingMap.get(CachingMap.java:491)

              ..............

              ..............

              ..............

              ..............

           

      Caused by: java.io.OptionalDataException

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)

              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

              at java.util.HashMap.readObject(HashMap.java:1029)

              at sun.reflect.GeneratedMethodAccessor501.invoke(Unknown Source)

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

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

              at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)

              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

              at java.util.HashMap.readObject(HashMap.java:1030)

              at sun.reflect.GeneratedMethodAccessor501.invoke(Unknown Source)

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

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

              at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)

              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

              at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2180)

              at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2311)

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

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

              ... 20 more

       

      Thanks,