users@glassfish.java.net

Re: NullPointerException in ...

From: <forums_at_java.net>
Date: Thu, 5 May 2011 08:15:54 -0500 (CDT)

Thank you for the answer,

I do have build 43 and I'm getting this issue with it.

Is there a place where I can download the sourcecode of glassfish other than
getting it from svn (takes too long)?

Anyway, this is the method isJdbcPoolReferredInServerInstance I'm getting
from svn:

public boolean isJdbcPoolReferredInServerInstance(PoolInfo poolInfo) {
Collection<JdbcResource> jdbcResources =
getRuntime().getResources(poolInfo).getResources(JdbcResource.class); for
(JdbcResource resource : jdbcResources) { ResourceInfo resourceInfo =
ConnectorsUtil.getResourceInfo(resource); //Have to check isReferenced here!
if ((resource.getPoolName().equalsIgnoreCase(poolInfo.getName())) &&
isReferenced(resourceInfo) && isEnabled(resource)){ if
(_logger.isLoggable(Level.FINE)) { _logger.fine("pool " + poolInfo +
"resource " + resourceInfo + " referred " + isReferenced(resourceInfo));
_logger.fine("JDBC resource " + resource.getJndiName() + "refers " + poolInfo
+ "in this server instance and is enabled"); } return true; } }
if(_logger.isLoggable(Level.FINE)) { _logger.fine("No JDBC resource refers [
" + poolInfo + " ] in this server instance"); } return false; }
 


--
[Message sent by forum member 'MohamzJava']
View Post: http://forums.java.net/node/798500