This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Author

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

Baktha Elumalai
Greenhorn

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


Regards
Bakthavachalam E
David Newton
Author
Rancher

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
Greenhorn

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
Cannot add or update a child row: a foreign key constraint fails
ids for this class must be manually assigned before calling save()
org.hibernate.QueryException: could not resolve property: ObjectId of: test.Objtablee
Field 'ID' doesn't have a default value: org.hibernate.exception.GenericJDBCException: could not ins
How to get last insert id from one table and put in to the another table