-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Null Pointer exception when Hibernate Code generation
PostPosted: Wed Mar 28, 2007 1:13 pm 
Newbie

Joined: Wed Mar 28, 2007 1:05 pm
Posts: 3
Hi,
I m getting a Null pointer exception after running code generation.

I m using Eclipse 3.2 (object web lomboz) on Red Hat Entreprise Linux , and using Hibernate 3.2beta9.
I read hat this bug has been fixed in previous release.
any help
adil


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 28, 2007 2:05 pm 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
How about a stack trace? Just saying you got an NPE is not all that informative.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 28, 2007 2:13 pm 
Newbie

Joined: Wed Mar 28, 2007 1:05 pm
Posts: 3
There was no stuck trace,
Problem resolved, problem with path for hibernate.cfg.xml
Thinks lot.


Top
 Profile  
 
 Post subject: re
PostPosted: Wed May 02, 2007 4:33 am 
Newbie

Joined: Wed May 02, 2007 3:52 am
Posts: 2
Location: indoe
Dear i am also facing this type of problem , i u find any solution plz mail me,
I have pdf on hibernate if u want mail me on nikunj.prmr@gmail.com


Top
 Profile  
 
 Post subject: Duplicate key or integrity constraint violation message from
PostPosted: Tue May 13, 2008 1:11 pm 
Newbie

Joined: Wed May 02, 2007 3:52 am
Posts: 2
Location: indoe
Hii All,


I want to save a object which has 9 child object 1 parent table with 9 child table . I use increment operator. when i save an object it give error message of duplicate key. if any great minded suggest me i am very thankful.....

Caused by: java.sql.BatchUpdateException: Duplicate key or integrity constraint violation message from server: "Duplicate entry '4' for key 1"
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1540)
at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
... 44 more


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 14, 2008 4:15 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Post it in the hibernate users forum. This forum is only for tools related discussions. Also post the complete set of details like database used, the code that performs the update operation, the generated sql, the mapping files. I am sure people will be able to help you out better if you provided them with all the basic details. :)

_________________
Sukirtha


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.