Quantcast
Viewing all articles
Browse latest Browse all 3131

Hana JPA EJB example on Hana Cloud local runtime

Dear all,
I tried the tutorial "Adding Persistence Using JPA (SDK 2.x      Beta)"
Deploying the tutorial on hanatrial.ondemand.com works fine. But when I deploy it on the local Hana Cloud runtime I get the following error:
2013 04 05 11:22:44#+0200#ERROR#com.sap.cloud.sample.persistence.PersistenceEJBServlet##anonymous#http-bio-8080-exec-7###Persistence operation failed
java.lang.NullPointerException: while trying to invoke the method com.sap.cloud.sample.persistence.PersonBean.getAllPersons() of an object loaded from field com.sap.cloud.sample.persistence.PersistenceEJBServlet.personBean of an object loaded from local variable 'this'
at com.sap.cloud.sample.persistence.PersistenceEJBServlet.appendPersonTable(PersistenceEJBServlet.java:67)
at com.sap.cloud.sample.persistence.PersistenceEJBServlet.doGet(PersistenceEJBServlet.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
The injection triggered by

@EJB

PersonBean personBean;

 

in the servlet seems to fail only for the local version. Am I missing something in the persistence.xml?

 

I use this SDK:
release.version=2.3.2
platform.version=2.3.0
structure.version=4.0.0
Any hints are much appreciated!
Best regards
Benedikt

Viewing all articles
Browse latest Browse all 3131

Trending Articles