Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket Exception error  RSS feed

 
Matt Byrne
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following exception randomly in JSP (JRun) pages. If I refresh everything is fine. I would appreciate any assistance in diagnosing and correcting this problem.

Thanks for your help,

Matt

DbSqlException: Exception thrown in ExecuteSelect:java.net.SocketException: Connection reset at DBAccess.ExecuteSelect(DBAccess.java:264) at TimeCard.managerWarningQuery(TimeCard.java:1651) at jrun__ManagerOverview2ejsp14._jspService(jrun__ManagerOverview2ejsp14.java:254) at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43) at jrun.jsp.JSPServlet.service(JSPServlet.java:106) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:198) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
 
Bindesh Vij
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you also post the code that you are trying to execute. This will really help in debugging it.


Thnx
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Matt Byrne:


DbSqlException: Exception thrown in ExecuteSelect:java.net.SocketException: Connection reset at DBAccess.ExecuteSelect(DBAccess.java:264) at TimeCard.managerWarningQuery(TimeCard.java:1651) at


Pure guesswork this, but -

How are you getting the java.sql.Connection objects?
Did you write the DBAccess, and TimeCard classes?
You could try checking if sometimes the connection is getting closed using the isClosed method in
java.sql.Connection class.

Another possibility (since it says SocketException) if the database is on another computer, is the network failure which causes your JDBC driver to fail when trying to connect to the database.

HTH
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!