subhashchandra medhiassam wrote:Dear friends,
But when i execute FirstExample.java, i am getting a NulPointerException corresponding to the statement session.flush(); which is in the finally block.
What should i do now ? Kindly help me out.
Subhash
you can try in this way:
......
finally {
if(session != null) {
session.flush();
session.close();
session = null;
}
}
I'm a chinese, my english is so bad, I need help. If you want to help me, you can send your question to my e-mail: lgg860911@yahoo.com.cn, I will help you, and improve my english. Thanks everyone.