Announcement Announcement Module
Collapse
No announcement yet.
De-serialization using HttpInvoker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • De-serialization using HttpInvoker

    Hello, I am new to remoting with Spring.
    I'm using Spring 2.0.6 http remoting with servers and clients all running java 1.5.0_12. My problem is very similar http://forum.springframework.org/showthread.php?t=33289 but I want use http protocol to send data files. I run the exact data and I obtain (during data De-serialization with httpInvoker) in some case (so I call this "random error") this exception
    java.io.EOFException
    at java.io.ObjectInputStream$PeekInputStream.readFull y(ObjectInputStream.java:2228)
    at java.io.ObjectInputStream$BlockDataInputStream.rea dUTFBody(ObjectInputStream.java:2963)
    at java.io.ObjectInputStream$BlockDataInputStream.rea dUTF(ObjectInputStream.java:2764)
    at java.io.ObjectInputStream.readString(ObjectInputSt ream.java:1567)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1296)
    at java.io.ObjectInputStream.readArray(ObjectInputStr eam.java:1634)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1299)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1908)
    at java.io.ObjectInputStream.defaultReadObject(Object InputStream.java:479)
    at it.pitagora.rtx.indexer.RtxDocument.readObject(Rtx Document.java:70)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectS treamClass.java:946)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1809)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1719)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1305)
    at java.io.ObjectInputStream.readArray(ObjectInputStr eam.java:1634)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1299)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1908)
    at java.io.ObjectInputStream.defaultReadObject(Object InputStream.java:479)
    at it.pitagora.rtx.server.RtxResponse.readObject(RtxR esponse.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectS treamClass.java:946)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1809)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1719)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1305)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1908)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1832)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1719)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1305)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:348)
    at org.springframework.remoting.httpinvoker.AbstractH ttpInvokerRequestExecutor.doReadRemoteInvocationRe sult(AbstractHttpInvokerRequestExecutor.java:291)
    at org.springframework.remoting.httpinvoker.AbstractH ttpInvokerRequestExecutor.readRemoteInvocationResu lt(AbstractHttpInvokerRequestExecutor.java:240)
    at org.springframework.remoting.httpinvoker.SimpleHtt pInvokerRequestExecutor.doExecuteRequest(SimpleHtt pInvokerRequestExecutor.java:65)
    at org.springframework.remoting.httpinvoker.AbstractH ttpInvokerRequestExecutor.executeRequest(AbstractH ttpInvokerRequestExecutor.java:134)
    Is this a httpInvoker or java problem?

    Can you help me???

    Thanks
Working...
X