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 Object Relational Mapping and the fly likes JVM does not support Statement.getGeneratedKeys() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JVM does not support Statement.getGeneratedKeys()" Watch "JVM does not support Statement.getGeneratedKeys()" New topic

JVM does not support Statement.getGeneratedKeys()

Ramona Gabriela

Joined: Jul 16, 2007
Posts: 4

I am developing a struts + hibernate application under IBM Portal. I keep getting this error though, when trying to initialize hibernate:

net.sf.hibernate.cfg.Environment: JVM does not support Statement.getGeneratedKeys()

java.lang.ExceptionInInitializerError: java.lang.SecurityException: Prohibited package name: java.util

Does anyone have any idea what's going on?

Thanks a lot in advance.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Sounds like your driver doesn't support the getGeneratedKeys method. Check your driver documentation.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: JVM does not support Statement.getGeneratedKeys()
It's not a secret anymore!