Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi All,

1) Created an application in Eclipse IDE with Java,Struts2 and Hibernate
2) Application is pointing to SAP HANA Database
3) When executing an application in Eclipse IDE , able to see index page which receives input.
4) After entering required data, submitting the page.
5) After some process showing following error message :

Java
Exception message details :
org.hibernate.SessionException: Session is closed!
	org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)
	org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1341)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	java.lang.reflect.Method.invoke(Unknown Source)
	org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:342)
	com.sun.proxy.$Proxy119.getTransaction(Unknown Source)
	net.viralpatel.contact.controller.ContactManager.list(ContactManager.java:87)
	net.viralpatel.contact.view.ContactAction.add(ContactAction.java:36)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	java.lang.reflect.Method.invoke(Unknown Source)


Please let me know your suggestions ASAP.

If there is any demo example available with Hibernate to SAP HANA please share.
It will help lot to resolve issue.

Thank you in advance for your guidance.

Thanks and Regards,
Avinash
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900