Skip to Content
author's profile photo Former Member
Former Member

NullPointerException

Hello,

When I launch the first persistence example from the mdk by exporting the project in eclipse (I have to work offline, i.e without synchronisation), I always get following error:

Me Persistence initialization, step 1: start create instance of com.sap.ip.me.api.persist.core.PersistenceRuntime

java.lang.NullPointerException

at java.util.Hashtable.get(Unknown Source)

at com.sap.ip.me.persist.core.PersistenceRuntimeImpl.getTransactionManager(Unknown Source)

at com.sap.ip.me.persist.core.PersistenceRuntimeImpl.getTransactionManager(Unknown Source)

at com.sap.ip.me.api.persist.core.PersistenceRuntime.getTransactionManager(Unknown Source)

at persistenceexample1.datafactory.ReadWriteEntities.setupPersistenceRuntime(ReadWriteEntities.java:37)

at persistenceexample1.PersistenceExample.doInitialize(PersistenceExample.java:40)

at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.init(Unknown Source)

at javax.servlet.GenericServlet.init(GenericServlet.java)

at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

at org.apache.tomcat.core.Handler.init(Handler.java:215)

at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)

at org.apache.tomcat.core.Handler.service(Handler.java:254)

at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)Error during startup

at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)

at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

at java.lang.Thread.run(Unknown Source)

I think it comes when there is a getTransactionManager() call.

Do I have to configure something special to make it work ?

Has someone else ever had that kind of error before ?

Regards, Paul

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 03, 2004 at 09:55 AM

    Hi Paul,

    do you have the IBM DB2e database installed? If so, the persistence example should run if you uninstall the database.

    I know, that this is no satisfactory solution, but in my case it helped me testing the example.

    Regards, Hannes

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Johannes

      I have nothing excepted eclipse + SAP ME Client installed on my computer (no DB). I need to persist data by serialization, so I don't need any DB.

      The problem comes probably from the SAP MDK plugin (bug?) itself because once synchronized, my web application runs when started from eclipse or/and in the SAP ME Client (browser).

      There might be a "security lock" in the ME Client that can only be unlocked after synchronization so that when developping locally with eclipse, it refuses to persist any data.

      I used following workaround:

      When developping a new app. always use the same name as the previously synchronized app. When finished, rename it, upload on server and finally synchronize with client.

      Regards, Paul

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.