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
|