Error during a POST to a servlet in weblogic

F

Frederic Houbie

Hi,

I have a problem with Weblogic 8.1. In a servlet, I'm trying to connect
to another server, doing a post request.

URL serverUrl = new URL(request.getParameter("server"));
HttpURLConnection Con = null;
Con = (HttpURLConnection) serverUrl.openConnection();
OutputStream os = Con.getOutputStream();
DataOutputStream dos = new DataOutputStream(os);
dos.writeChars(getRecordRequest); // which is line 80
dos.flush();
dos.close();

I tried setting BufferSize on response but no changes, I also modified
MaxPostSize parameter in Weblogic console but no changes.
Here is the stack trace.
I'm using Weblogic 8.1 SP3


java.net.ProtocolException: Exceeding stated content length of 4202
at
weblogic.net.http.ContentLengthOutputStream.write(ContentLengthOutputStream.java:31)
at java.io.DataOutputStream.writeChars(DataOutputStream.java:275)
at
com.ionicsoft.wrs.querytutorial.GetRecordRequest.execute(GetRecordRequest.java:80)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)


Thanks

Frederic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top