Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

JDO not persistence capable

I have implemented getting started with JDO example but I am getting following errors continuously:

javax.jdo.JDOUserException: Object not PersistenceCapable.
FailedObject:com.test.jdo.Department@d1f7fe
	at com.sap.jdo.common.PersistenceManagerImpl.assertPersistenceCapable(PersistenceManagerImpl.java:1788)
	at com.sap.jdo.common.PersistenceManagerImpl.makePersistentInternal(PersistenceManagerImpl.java:1845)
	at com.sap.jdo.common.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:763)
	at com.sap.jdo.jca.cci.SAPJDOConnection.makePersistent(SAPJDOConnection.java:278)
	at com.test.jdo.BusinessLogic.createDepartment(BusinessLogic.java:49)
	at com.test.web.ProcessInput.doGet(ProcessInput.java:35)
	at com.test.web.ProcessInput.doPost(ProcessInput.java:86)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
	at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
	at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
	at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
	at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
	at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
	at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
	at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
	at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
	at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
	at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
	at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

I have also run the JDO enhance and check commands using build.xml, but problem still persists. Can any body tell me whether it is possible to implement javax.jdo.spi.PersistenceCapable interface?

Regards,

Jawed Ali

Former Member
Not what you were looking for? View more on this topic or Ask a question