File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JVM does not support Statement.getGeneratedKeys()