This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32481
    
214

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!


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: CONM7007I: Mapping the following SQLException, with ErrorCode -901 and SQLState 58004
 
It's not a secret anymore!