-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate issues with my SQL
PostPosted: Wed Mar 31, 2004 1:48 pm 
Newbie

Joined: Tue Mar 23, 2004 2:35 pm
Posts: 3
I am having issues with Hibernate and my SQL this problem doesn't occur until a certain ammount of select / update statements is reached. Whenerver a certain limit is reached hibernate is giving me a null pointer error. Also I made 100% sure that its not an error in the method I created since this is just a simple hibernate statement.....

Code
------
makeRecords(30); // OK works fine

makeRecords(100); //gives error
gives

Hibernate: insert into accomodation_price (price_single, price_double, price_children, price_id) values (?, ?, ?, ?)
19:46:06,765 DEBUG SQL:237 - update accomodation set accomodation_name=?, accomodation_type=?, accomodation_category=?, accomodation_description=?, accomodation_city=?, accomodation_street=?, accomodation_pcode=?, accomodation_island=?, accomodation_fax=?, accomodation_email=?, accomodation_phone=?, accomodation_photoUrl=?, accomodation_contact=? where accomodation_id=?
Hibernate: update accomodation set accomodation_name=?, accomodation_type=?, accomodation_category=?, accomodation_description=?, accomodation_city=?, accomodation_street=?, accomodation_pcode=?, accomodation_island=?, accomodation_fax=?, accomodation_email=?, accomodation_phone=?, accomodation_photoUrl=?, accomodation_contact=? where accomodation_id=?
java.lang.NullPointerException
at Hibernate.Tester.TestCreator.populateRecords(TestCreator.java:545)
at Hibernate.Tester.TestCreator.main(TestCreator.java:594)
Exception in thread "main" Process terminated with exit code 1


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 7:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Oh please. Look at the stack trace. Do you see any Hibernate method listed there?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.