You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Adamowski, Marcin" <Ma...@turner.com> on 2004/08/11 14:24:24 UTC
[HttpClient] HttpClient with JRun Webserver
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