Hi All

I have a problem that I found a bit frustrating, to say the least.

I am explaining the environment below.
On a Solaris box, we have JRun (3.0 with SP2) running. We have a
framework for our software which involves writing services which call
the appropriate ejbs which returns xml and is transformed using xsl.
On the same box, I set up tomcat 3.2.2 listening on a different port.
Both tomcat and jrun take our software from the same directory and both
the servers are owned by the same user "jrun". Also, both use the same
jdk which is version 1.2.2 from the same directory.
What I am trying to say is that there is no difference between the 2
servers except for the actual servers themselves.

The problem is that when using jrun, one of the services I call gives
the following exception
java.lang.IllegalArgumentException: Short Read
 at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:238)
 at allaire.jrun.servlet.JRunRequest.getParameters(JRunRequest.java:320)

 at allaire.jrun.servlet.JRunRequest.getParameter(JRunRequest.java:222)
 at
allaire.jrun.servlet.ForwardRequest.getParameter(ForwardRequest.java:196)

 at
allaire.jrun.session.JRunSessionService.getUrlSessionID(JRunSessionService.java:304)

 at
allaire.jrun.servlet.ForwardRequest.getRequestedSessionId(ForwardRequest.java:329)

 at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:891)
 at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)

 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
 at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
 at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
 at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
 at allaire.jrun.WorkerThread.run(WorkerThread.java:75)

The exact code works perfectly when I use apache, as I said, using the
same source and jdk.

I tried retrieving the input parameters using
HttpUtils.parsePostData(request.getContentLength(),
request.getInputStream()) but it gives the same error at that point.

The request is actually quite big, the size of the hashtable through the
HttpUtils method comes to about 340.

I was wondering whether any of you would have had a similar problem and
would be able to help me on this.

Thanks in advance
Vijay




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to