Where are Hibernate console errors logged?

I'm getting the following unhelpful exception when running an HQL query:

"java.lang.ClassCastException: org.hibernate.exception.SQLGrammarException cannot be cast to java.sql.SQLException"

This is likely the result of an incorrect mapping, unfortunately this is the only information returned by the console.  Are more verbose exceptions logged anywhere?  I already tried looking in \(user home)\.IntelliJIdea90\system\log but there's nothing in there besides normal IntelliJ startup/stop info.

2 comments

Fixed in 9.0.3 branch.
Thanks for report.
See the next EAP.

On 16.05.2010 0:20, Matthew D. Brock wrote:

I'm getting the following unhelpful exception when running an HQL query:

>

"java.lang.ClassCastException: org.hibernate.exception.SQLGrammarException cannot be cast to java.sql.SQLException"

>

This is likely the result of an incorrect mapping, unfortunately this is the only information returned by the console.  Are more verbose exceptions logged anywhere?  I already tried looking in \(user home)\.IntelliJIdea90\system\log but there's nothing in there besides normal IntelliJ startup/stop info.

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5263310#5263310


0

Wow, that was fast...  thank you!

0

Please sign in to leave a comment.