3 Replies Latest reply: Sep 19, 2010 4:58 AM by EJP RSS

    java.io.NotSerializableException: java.util.RandomAccessSubList

    843790
      Hi,
      I'm testing a software but I receive this error message:
      java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
              java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.util.RandomAccessSubList
              at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173)
              at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
              at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
              at $Proxy7.getDataPackage(Unknown Source)
              at gaia.dpct.cu3.avu.gsr.server.GsrSourceIdServerRmiImpl.getDataPackage(GsrSourceIdServerRmiImpl.java:73)
              at gaia.dpct.cu3.avu.gsr.reader.GsrSystemRowReaderStrategy.loadData(GsrSystemRowReaderStrategy.java:52)
              at gaia.dpct.pfs.infraimpl.PFSGenericPersistenceManager.loadData(PFSGenericPersistenceManager.java:455)
              at gaia.dpct.pfs.infraimpl.PFSPersistenceManagerAdpaterImpl.loadData(PFSPersistenceManagerAdpaterImpl.java:318)
              at gaia.cu1.tools.infraimpl.GenericDataTrain.run(GenericDataTrain.java:546)
              at gaia.dpct.pfs.infraimpl.PFSDataTrainAdapterImpl.run(PFSDataTrainAdapterImpl.java:166)
              at gaia.dpct.pfs.nodes.TrainManager$TrainExecution.run(TrainManager.java:735)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.util.RandomAccessSubList
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
              at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
              at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)
              ... 16 more
      Caused by: java.io.NotSerializableException: java.util.RandomAccessSubList
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
              at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:315)
              at sun.rmi.transport.Transport$1.run(Transport.java:159)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
              ... 3 more
      I checked all the code but the objects I use are instantiated from Serializable classes.
      I read something about "java.util.RandomAccessSubList" but what is this? I use List and Map.
      Are there problem with the List and the Map I use?
      Could someone help me?
      Thanks, bye bye.