users@glassfish.java.net

Internal connection pool lookup fails only during application deployment

From: <glassfish_at_javadesktop.org>
Date: Wed, 17 Oct 2007 15:53:18 PDT

I have a web application that generates a NullPointerException when trying to lookup a "connector-connection-pool" during application deployment. Restarting Glassfish (v2-b58g) after the initial deployment does not generate the exception:

Caused by: java.lang.NullPointerException
   at SerialContext.lookup(String) line: 315
   at InitialContext.lookup(String) line: 351
   at ConnectorConnectionPoolAdminServiceImpl.getConnectorConnectionPool(String) line: 908
   at ConnectorConnectionPoolAdminServiceImpl.obtainManagedConnectionFactory(String) line: 1027
   at ConnectorConnectionPoolAdminServiceImpl.createConnectorConnectionPool(ConnectorConnectionPool) line: 263
   at ConnectorConnectionPoolAdminServiceImpl.createConnectorConnectionPool(ConnectorConnectionPool, ConnectorDescriptorInfo) line: 238
   at ConnectorConnectionPoolAdminServiceImpl.createConnectorConnectionPool(ConnectorConnectionPool, String, String, ElementProperty[], SecurityMap[]) line: 163
   at ConnectorRuntime.createConnectorConnectionPool(ConnectorConnectionPool, String, String, ElementProperty[], SecurityMap[]) line: 290
   at ConnectorConnectionPoolDeployer.deployResource(Object) line: 132
   at ConnectorServiceImpl.loadDeferredResources(ConfigBean[]) line: 269
   at ConnectorServiceImpl$1.run() line: 217
   at AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]
   at ConnectorServiceImpl.loadResourcesAndItsRar(DeferredResourceConfig) line: 214
   at ConnectorServiceImpl.checkAndLoadResource(String) line: 196
   at ConnectorRuntime.checkAndLoadResource(String) line: 878
   at LocalSerialContextProviderImpl(SerialContextProviderImpl).checkAndLoadResource(String) line: 96
   at LocalSerialContextProviderImpl(SerialContextProviderImpl).lookup(String) line: 77
   at LocalSerialContextProviderImpl.lookup(String) line: 111
   at SerialContext.lookup(String) line: 339
   at InitialContext.lookup(String) line: 351
   at JmsConnector.createConnectionFactory() line: 196
   at JmsConnector.doConnect() line: 325
   at JmsConnector(AbstractConnector).connect() line: 993
   at SingleAttemptConnectionStrategy.doConnect(UMOConnectable) line: 29
   at SingleAttemptConnectionStrategy(AbstractConnectionStrategy).connect(UMOConnectable) line: 86
   at JmsConnector(AbstractConnector).connect() line: 983
   at SingleAttemptConnectionStrategy.doConnect(UMOConnectable) line: 29
   at SingleAttemptConnectionStrategy(AbstractConnectionStrategy).connect(UMOConnectable) line: 86
   at JmsConnector(AbstractConnector).startConnector() line: 324
   at MuleManager.startConnectors() line: 901
   at MuleManager.start() line: 854

The NPE is thrown because the "myEnv" HashTable in "com.sun.enterprise.naming.SerialContext.java" is null when it attempts to lookup the value of "com.sun.appserv.ee.iiop.endpointslist".

Any ideas are greatly appreciated.
[Message sent by forum member 'asos17' (asos17)]

http://forums.java.net/jive/thread.jspa?messageID=240787