Index: connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/allocator/AbstractConnectorAllocator.java =================================================================== --- connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/allocator/AbstractConnectorAllocator.java (revision 30818) +++ connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/allocator/AbstractConnectorAllocator.java (working copy) @@ -118,6 +118,21 @@ invalids = getInvalidConnections(conn); } catch (ResourceException re) { //ignore and continue?? + //there's nothing the container can do but log it. + Object[] args = new Object[] { + h.getResourceSpec().getConnectionPoolName(), + re.getClass(), + re.getMessage() }; + _logger.log(Level.WARNING, + "pool.get_invalid_connections_resourceexception", args); + _logger.log(Level.FINE, "", re); + } catch (Exception ex) { + //don't let runtime exceptions from the RA propagate up; + //there's nothing the container can do but log it. + _logger.log(Level.WARNING, + "pool.get_invalid_connections_exception", h + .getResourceSpec().getConnectionPoolName()); + _logger.log(Level.WARNING, "", ex); } if ((invalids != null && invalids.size() > 0) || Index: connectors/connectors-runtime/src/main/resources/com/sun/logging/enterprise/resource/resourceadapter/LogStrings.properties =================================================================== --- connectors/connectors-runtime/src/main/resources/com/sun/logging/enterprise/resource/resourceadapter/LogStrings.properties (revision 30818) +++ connectors/connectors-runtime/src/main/resources/com/sun/logging/enterprise/resource/resourceadapter/LogStrings.properties (working copy) @@ -393,6 +393,12 @@ RAR8020.diag.cause.2=Caused by unsupported/incorrect values for database connectivity properties. validation.constraints.violation=RAR8021: Following validation constraints violated for Java Bean of type [ {0} ] of resource-adapter [ {1} ] : Message = {2}) RAR8021.diag.cause.1=There could be erraneous values (not acceptable according to the constraints) specified in the bean +pool.get_invalid_connections_resourceexception= RAR8022: Failed to get invalid connections from Managed Connection Factory {0}. Exception = {1}; Message = {2} +RAR8022.diag.cause.1=Resource Adapter threw a ResourceException. +RAR8022.diag.check.1=Check the resource adapter's documentation. +pool.get_invalid_connections_exception= RAR8023: Exception while trying to get invalid connections from Managed Connection Factory {0}. +RAR8023.diag.cause.1=Resource Adapter threw a runtime exception. +RAR8023.diag.check.1=Check the resource adapter's documentation or contact the resource adapter provider. #------------------------------------------------------------------------------------------------------ #RAR8010 till RAR8500 reserved for connectors-runtime LogStrings.