permaculture playing cards*
The moose likes Object Relational Mapping and the fly likes getNextException SQLGrammarException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "getNextException SQLGrammarException" Watch "getNextException SQLGrammarException" New topic
Author

getNextException SQLGrammarException

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
How can I get the nextException from a SQLGrammarException?

I use Hibernate and want to store a record and get the following exception:



Now, I want the to "Use getNextException() to retrieve the exceptions for specific batched elements". But this does not print the nextException to my console:



But this does not work..I guess. I cannot get the next SQL Exception. The stacktrace is the same as above, even I catch and want to get the nextException.

Use getNextException() to retrieve the exceptions for specific batched elements
Yes, but how???
Marcella Spiropulos
Greenhorn

Joined: Feb 02, 2006
Posts: 10
Hey Folks,

I know this topic a little old, but I'm facing the same issue. I'll appreciate if someone could help me to understand this exception.

Best Regads,
Marcy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: getNextException SQLGrammarException