使用Hibernate与SAP HANA云数据库建立连接 [英] Connectivity with SAP HANA cloud data base with Hibernate

查看:141
本文介绍了使用Hibernate与SAP HANA云数据库建立连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



1)在Eclipse IDE中使用Java,Struts2和Hibernate创建一个应用程序

2)应用程序指向SAP HANA数据库

3)在Eclipse IDE中执行应用程序时,能够看到接收输入的索引页面。

4)输入所需数据后,提交页面。

5)在某些过程中显示以下错误消息:



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 :

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)





请尽快告诉我你的建议。



如果Hibernate向SAP HANA提供任何演示示例,请分享。

这将有助于解决问题。



提前感谢您的指导。



谢谢和问候,

Avinash



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

推荐答案

TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java: 342
com。 sun.proxy。
TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:342) com.sun.proxy.


Proxy119 .getTransaction(未知来源)
net.viralpatel.contact.controller.ContactManager。 list(ContactManager.java: 87
net.viralpatel.contact.view.ContactAction.add(ContactAction.java: 36
sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)
sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)
sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)
java.lang.reflect.Method.invoke(未知来源)
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)





请尽快通知我你的建议。



如果Hibernate向SAP HANA提供任何演示示例,请分享。

这将有助于解决问题。



提前感谢您的指导。



谢谢和问候,

Avinash



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


这篇关于使用Hibernate与SAP HANA云数据库建立连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆