wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes org.hibernate.exception.GenericJDBCException: could not insert: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.exception.GenericJDBCException: could not insert: " Watch "org.hibernate.exception.GenericJDBCException: could not insert: " New topic

org.hibernate.exception.GenericJDBCException: could not insert:

Baktha Elumalai

Joined: Mar 13, 2010
Posts: 28
i am getting the following error

the application is running locally is fine, but whenever i put into server i got the following error

Error stack trace

o am not getting the exactly where the error is coming

AllDatabase.java file

please help to solve the problem

thanks in advance

Bakthavachalam E
David Newton

Joined: Sep 29, 2008
Posts: 12617

I'm guessing something's funky with the connection pool manager, handler, or connection pool management. The code is a little difficult to follow; at the very least delete the commented-out lines--they're just noise. Some refactoring would clean things up too.
Baktha Elumalai

Joined: Mar 13, 2010
Posts: 28

I agree. Here's the link: http://aspose.com/file-tools
subject: org.hibernate.exception.GenericJDBCException: could not insert:
Similar Threads
ids for this class must be manually assigned before calling save()
Field 'ID' doesn't have a default value: org.hibernate.exception.GenericJDBCException: could not ins
Cannot add or update a child row: a foreign key constraint fails
How to get last insert id from one table and put in to the another table
org.hibernate.QueryException: could not resolve property: ObjectId of: test.Objtablee