Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CONM7007I: Mapping the following SQLException, with ErrorCode -901 and SQLState 58004

 
Maria del Carmen Castillo MArtini
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem when I execute a query, it Throws:
CONM7007I: Mapping the following SQLException, with ErrorCode -901 and SQLState 58004, to a StaleConnectionException: java.sql.SQLException: [SQL0901] Error del sistema SQL.
and it is as all others querys I execute, so I don�t know why this is happening, I really need your help.
Thanks.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35977
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maria,
That SQL State is for a stale connection. That explains why you are only getting the error sometimes. Try doing a search of this forum for "stale connection." It is a topic frequently discussed. If you have a more specific question, feel free to post it here.

Welcome to JavaRanch!
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!