This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes CONM7007I: Mapping the following SQLException, with ErrorCode -901 and SQLState 58004 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "CONM7007I: Mapping the following SQLException, with ErrorCode -901 and SQLState 58004" Watch "CONM7007I: Mapping the following SQLException, with ErrorCode -901 and SQLState 58004" New topic
Author

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

Maria del Carmen Castillo MArtini
Greenhorn

Joined: Oct 22, 2004
Posts: 3
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

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!


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CONM7007I: Mapping the following SQLException, with ErrorCode -901 and SQLState 58004
 
Similar Threads
stale connection exception
java.sql.SQLException: [SQL0901]
SQL Exception
SQL Exceptions
Struts file upload to blob - Connection reset Error !