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 Murach's Java Servlets and JSP this week in the Servlets 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
I agree. Here's the link:
subject: JVM does not support Statement.getGeneratedKeys()
Similar Threads
Statement.getGeneratedKeys() with Sybase not working
UnsupportedOperationException Statement.getGeneratedKeys()
purpose of using statement.getGeneratedKeys
mysql and statement.getGeneratedKeys()
Unable to create schema