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.
|