• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Socket Exception error  RSS feed

 
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)
 
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
 
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
 
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!