commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adamowski, Marcin" <Marcin.Adamow...@turner.com>
Subject [HttpClient] HttpClient with JRun Webserver
Date Wed, 11 Aug 2004 12:24:24 GMT
Does anyone used HttpClient with JRun Webserver?

I'm trying to do something like that

Code from the client

String url = "http://localhost:8100/test.jsp";
HttpClient client = new HttpClient();
PostMethod post = new PostMethod(url);
post.setRequestEntity(new StringRequestEntity("sample String"));
client.executeMethod(post);

Code from the jsp page

ServletInputStream s = request.getInputStream();
java.io.ObjectInputStream ois = new java.io.ObjectInputStream(s);

When I'm using Tomcat, everything is fine, but on JRun when I'm trying to create ObjectInputStream
I've got an exception.

error 
java.io.EOFExceptionat java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2165)
...

Does onyone know what's wrong?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message