cancel
Showing results for 
Search instead for 
Did you mean: 

Exception during lookup of object *defaultPMF, cannot resolve object ref

kumarkk
Explorer
0 Kudos

Hi,

We have a EJB built on 7.0 which was working fine. After migrating to 7.3 when I run the application it is throwing the below exception;

javax.naming.NamingException: Exception during lookup operation of object with name ejbContexts/.........../JDODataManagerBean/java:comp/env/jdo/defaultPMF, cannot resolve object reference. [Root exception is com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "" does not exist. Possible reasons: the adapter in which ConnectionFactory "" is defined is not deployed or not started.]

The status of below in NWA are green;

1) JDBC data source alias

2) jdo/defaultPMF-com.sap.jdo.jca.spi.SAPJDOManagedConnectionFactory (JCA managed connection factory)

3) jdo/defaultPMF (Resource)

Code:




Context ctx = new InitialContext();



PersistenceManagerFactory pmf = (PersistenceManagerFactory) ctx.lookup("java:comp/env/jdo/defaultPMF");



pm = pmf.getPersistenceManager();

Apparently in the above error message, it is not showing which ConnectionFactory it is looking for (it just says "") so i can check the connection factory as well as the adapter in which the connection factory it is defined.

Can anyone please advise?

Accepted Solutions (0)

Answers (1)

Answers (1)

kumarkk
Explorer
0 Kudos

Any thoughts ?