Skip to Content
0
Former Member
Oct 11, 2005 at 02:11 AM

JNDI Naming Exception for Datasource

293 Views

This is the error that is thrown for a JNDI Lookup for an oracle datasource. This works correctly with j2ee components(ejbs/jsps) but when I do a look up from a remote swing client this exception is thrown. I have checked the jndi tree and the driver/aliases/jndi names are all correct. Tried the java:comp/env prefix too..Did not work. This is code that is used..

Object o = ctx.lookup("jdbc/POCJDBC");

javax.sql.DataSource ds = (javax.sql.DataSource) o ;

Any tips?

Thanks

Sid

com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name jdbc/POCJDBC, cannot resolve object reference. [Root exception is com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot lookup ManageConnectionFactory "oracle". Cannot deserialize object: java.lang.NullPointerException

at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.readObject(CPManagedConnectionFactoryImpl.java:307)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)