D
David Baer
I get the following EOFException at ObjectInputStream.readObject:
java.io.EOFException
at
java.ibjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2435)
at
java.ibjectInputStream.skipCustomData(ObjectInputStream.java:1798)
at
java.ibjectInputStream.readNonProxyDesc(ObjectInputStream.java:1519)
at
java.ibjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at
java.ibjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.ibjectInputStream.readObject(ObjectInputStream.java:324)
Server Side Code parts:
public int readFromClient(){
Object obj = null;
try {
obj = fromClient.readObject();
(...)
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException {
ObjectInputStream fromClient = null;
ObjectOutputStream toClient = null;
try {
toClient = new ObjectOutputStream(response.getOutputStream());
fromClient = new ObjectInputStream(request.getInputStream());
(...)
I'm happy to post more code if needed.
can anybody help me with this exception?
thanks!
dave
java.io.EOFException
at
java.ibjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2435)
at
java.ibjectInputStream.skipCustomData(ObjectInputStream.java:1798)
at
java.ibjectInputStream.readNonProxyDesc(ObjectInputStream.java:1519)
at
java.ibjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at
java.ibjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.ibjectInputStream.readObject(ObjectInputStream.java:324)
Server Side Code parts:
public int readFromClient(){
Object obj = null;
try {
obj = fromClient.readObject();
(...)
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException {
ObjectInputStream fromClient = null;
ObjectOutputStream toClient = null;
try {
toClient = new ObjectOutputStream(response.getOutputStream());
fromClient = new ObjectInputStream(request.getInputStream());
(...)
I'm happy to post more code if needed.
can anybody help me with this exception?
thanks!
dave