File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes java.net.SocketException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "java.net.SocketException" Watch "java.net.SocketException" New topic
Author

java.net.SocketException

Suresh Selvaraj
Ranch Hand

Joined: Nov 14, 2000
Posts: 104
Hello,
When I try to send name-value pairs attached to the URL from a POP up screen to Servlet, I get java.net.SocketException.

I have try-ctach blocks in all the methods in Servlet and Session EJBs. But no exceptions are thrown in any of the methods.

The Exception is thrown even before entering doPost() method. I call doPost() from doGet() method.

The exception is thrown between doGet() and doPost().

Here is the stack trace.

[
Servlet failed with Exception

java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read

at java.net.SocketInputStream.socketRead(Native Method)

at java.net.SocketInputStream.read(SocketInputStream.java:86)

at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:124)

at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:97)

at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletRequestImpl.java:907)

at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(ServletRequestImpl.java:795)

at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:969)

at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:955)

at gosi.core.security.servlet.SecurityServlet.doPost(SecurityServlet.java:97)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)

at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

--------------- nested within: ------------------

weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request: '/SecurityServlet' - with nested exception:

[java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read]

at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletRequestImpl.java:927)

at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(ServletRequestImpl.java:795)

at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:969)

at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:955)

at gosi.core.security.servlet.SecurityServlet.doPost(SecurityServlet.java:97)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)

at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

]


Thanks,
Selvaraj Suresh
[ January 02, 2006: Message edited by: Bear Bibeault ]

Suresh Selvaraj, (author of JQuiz)<br />SCJP2<br /><a href="http://www.decontconsulting.com" target="_blank" rel="nofollow">www.decontconsulting.com</a>
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1845
weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request: '/SecurityServlet' - with nested exception:

The above line is intresting. What exactly are you trying to send with get parameters. I do not understand why it says "cannot parse"
Anthony Estelita
Greenhorn

Joined: May 21, 2003
Posts: 1
I just ran across this same exact error. And I was able to resolve it by doing the following:
In my JSP page I had a button of type "submit" that I was trapping the "onclick" event handler for, but in the "onclick" method I was doing a form.submit. For example,

Hope this helps someone,


<b>Anthony</b>
ajch Chawla
Greenhorn

Joined: Jan 10, 2005
Posts: 7
Hi,
Iam also facing similar problem.
In my case on change of a combo the page reloads and the focus is
returned to that combo again.
So when I scroll multiple times with focus on combo, multiple requests
get submitted within say a fraction of seconds giving me this error.
My application is based on struts framework, deployed on weblogic with
platform as linux.
I think if somehow the next request is made to wait till the previous request gets submitted completely, the problem could be resolved.

Any Clues??

Ajay
Amol Chavan
Greenhorn

Joined: Sep 04, 2005
Posts: 28
I need your help.I'm getting following error:
I don't bcos of why?I never faced this problem before.Please reply asap.

java.net.ProtocolException: EOF after reading only: '0' of: '3467' promised bytes, out of which at least: '0' were already buffered
at weblogic.servlet.internal.PostInputStream.complain(PostInputStream.java:81)
at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:172)
at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:97)
at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletRequestImpl.java:1095)
at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(ServletRequestImpl.java:963)
at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:1168)
at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:1154)
at jsp_servlet._transaction.__CommitTransactionUpdate._jspService(__CommitTransactionUpdate.java:287)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request: '/transaction/CommitTransactionUpdate.jsp' - with nested exception:
[java.net.ProtocolException: EOF after reading only: '0' of: '3467' promised bytes, out of which at least: '0' were already buffered]
at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletRequestImpl.java:1121)
at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(ServletRequestImpl.java:963)
at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:1168)
at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:1154)
at jsp_servlet._transaction.__CommitTransactionUpdate._jspService(__CommitTransactionUpdate.java:287)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(Execute



Thanks,
Amol


Thanks n Regards,<br />Amol
Jatin Kumar Patel
Greenhorn

Joined: Jul 30, 2007
Posts: 2
I found interesting stuff for this from other blogs.

If the client is getting the reset exception it will be the server that is doing the reset. There are several possible reasons for this:

a. It calls Socket.setSoLinger() before closing. Don't.
b. It closes the socket without reading all the data you have sent.
c. An intermediate firewall is misbehaving.
d. The server is using the WINSOCK API and is not calling WSAShutdown() or shutdown() before closing. Some MS products do this.

C is the most likely to be the cause.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.net.SocketException
 
Similar Threads
SocketTimeoutException in Weblogic Server
I amgetting the java.net.SocketException: Connection reset error
[Weblogic exception]
SocketTimeoutException in Weblogic Server
Connection reset by peer: JVM_recv in socket input stream read