aspose file tools*
The moose likes JDBC and the fly likes connection to database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connection to database" Watch "connection to database" New topic
Author

connection to database

srinivas anigani
Greenhorn

Joined: Aug 28, 2005
Posts: 7
Hi,
Database :7.2.0
WebSphere :4.0
OS : windows XP

Database & Application server both on single machine win XP.when I deployed the application on app server I am not able to connect to database server.
I am getting the following errors :


05.09.21 11:34:01:281 GMT+05:30] 6672fb1d SystemOut U Error ->
[05.09.21 11:34:02:578 GMT+05:30] 6672fb1d ServletInstan X SRVE0068E: Did not realize service() exception thrown by servlet JSP 1.1 Processor: javax.servlet.ServletException: Connection reset by peer: socket write error
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:538)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:718)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
at com.ibm.servlet.engine.webapp.ServicingServletState.service(StrictLifecycleServlet.java:307)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:428)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:870)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:788)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:439)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:239)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:104)
at com.mst.common.helper.Log.servletErrorLog(Log.java:247)
at com.mst.security.servlet.SecurityController.doPost(SecurityController.java:283)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:718)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:428)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:870)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:788)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:439)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:239)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:104)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:61)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:132)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:271)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:49)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:303)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:232)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

[05.09.21 11:34:02:625 GMT+05:30] 6672fb1d ServletInstan X SRVE0014E: Uncaught service() exception root cause JSP 1.1 Processor: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:95)
at com.ibm.ws.io.Stream.write(Stream.java:26)
at com.ibm.ws.io.WriteStream.flush(WriteStream.java:129)
at com.ibm.ws.http.ResponseStream.flush(ResponseStream.java:316)
at com.ibm.ws.io.WriteStream.flush(WriteStream.java:133)
at com.ibm.servlet.engine.http11.HttpConnection.flush(HttpConnection.java:325)
at com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java:208)
at com.ibm.servlet.engine.srt.SRTOutputStream.flush(SRTOutputStream.java:41)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:251)
at com.ibm.servlet.engine.srt.BufferedWriter.flushChars(BufferedWriter.java:364)
at com.ibm.servlet.engine.srt.BufferedWriter.flush(BufferedWriter.java:342)
at com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java:471)
at com.ibm.servlet.engine.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:632)
at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServletResponseProxy.java:116)
at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServletResponseProxy.java:116)
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:220)
at common.jsp.ErrorPage_jsp_0._jspService(ErrorPage_jsp_0.java:142)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:532)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:718)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
at com.ibm.servlet.engine.webapp.ServicingServletState.service(StrictLifecycleServlet.java:307)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:428)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:870)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:788)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:439)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:239)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:104)
at com.mst.common.helper.Log.servletErrorLog(Log.java:247)
at com.mst.security.servlet.SecurityController.doPost(SecurityController.java:283)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:718)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:428)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:870)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:788)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:439)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:239)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:104)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:61)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:132)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:271)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:49)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:303)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:232)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

[05.09.21 11:34:02:687 GMT+05:30] 6672fb1d WebGroup X Servlet Error (Root + 1):
[05.09.21 11:34:02:718 GMT+05:30] 6672fb1d WebGroup X SRVE0030E: Root Cause java.lang.NullPointerException
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:457)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:239)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:104)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:61)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:132)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:271)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:49)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:303)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:232)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

[05.09.21 11:34:02:734 GMT+05:30] 6672fb1d WebAppInvoker X SRVE0063E: An internal engine error occurred while sending error to client: /Mahavikas/SecurityController/
[05.09.21 11:34:02:765 GMT+05:30] 6672fb1d SRTServletRes X Servlet.Exception:.Error.while.finishing.response
[05.09.21 11:34:02:796 GMT+05:30] 6672fb1d WebGroup X Servlet Error (Root + 1): Error while finishing the connection
[05.09.21 11:34:02:843 GMT+05:30] 6672fb1d WebGroup X SRVE0030E: Root Cause java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:95)
at com.ibm.ws.io.Stream.write(Stream.java:26)
at com.ibm.ws.io.WriteStream.write(WriteStream.java:108)
at com.ibm.ws.http.ResponseStream.writeChunk(ResponseStream.java:305)
at com.ibm.ws.http.ResponseStream.write(ResponseStream.java:143)
at com.ibm.ws.io.WriteStream.flush(WriteStream.java:129)
at com.ibm.servlet.engine.http11.HttpConnection.flush(HttpConnection.java:325)
at com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java:208)
at com.ibm.servlet.engine.srt.SRTOutputStream.flush(SRTOutputStream.java:41)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:251)
at com.ibm.servlet.engine.srt.BufferedWriter.flushChars(BufferedWriter.java:364)
at com.ibm.servlet.engine.srt.BufferedWriter.flush(BufferedWriter.java:342)
at com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java:471)
at com.ibm.servlet.engine.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:632)
at com.ibm.servlet.engine.srt.SRTServletResponse.finish(SRTServletResponse.java:255)
at com.ibm.servlet.engine.srt.SRTConnectionContext.finishConnection(SRTConnectionContext.java:96)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:78)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:132)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:271)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:49)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:303)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:232)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

How to get the database connection to server.Thanks in advance...

anigani
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

The stack trace(s) displayed are caused by the client stopping the page from loading before it has completed loading. They are not related to any JDBC or database issue.

Atleast I can't see how, without seeing your code.

Dave
srinivas anigani
Greenhorn

Joined: Aug 28, 2005
Posts: 7
Hi Dave
Thanks.How to overcome this problem.Did I need to set any parameters.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Don't click the stop button on your browser while the page is loading?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection to database