-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate Error When I use Sun Microsystem J2SDK 1.5 !!
PostPosted: Tue Nov 02, 2004 12:43 am 
Newbie

Joined: Tue Feb 10, 2004 11:15 pm
Posts: 7
Dear All,

For sometime I have been using hibernate 2 in a project and it is work well (with Sun Microsystem J2SDK 1.4), but when I change the JVM becoming Sun Microsystem J2SDK 1.5 from Sun Microsystem J2SDK 1.4 the JVM generates error like this :

java.lang.NullPointerException
at net.sf.hibernate.impl.SessionImpl.preFlushEntities(SessionImpl.java:2253)
at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2018)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2007)
at appserver.isoserver.handler.ISO_0200_809090.process(ISO_0200_809090.java:1040)

When I call flush in the code like :

Session hs = sessionFactory.openSession();

DayVoucher dayVoucher = new DayVoucher();
dayVoucher.setAddedBy("appserver");
dayVoucher.setAddedDate(now);
dayVoucher.setAllocated(new Short(m.getString(60)));
hs.save(dayVoucher);

hs.flush();

Can any body tell me this is happen or anybody has the same problem?

Thank You,


Rahmat Bagas Santoso.


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

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.