[jboss-dev] AbstractTypeMetaData.preinstantiatedLookup() hides exception stacktrace

Galder Zamarreno galder.zamarreno at redhat.com
Sun Feb 10 19:18:58 EST 2008


Hi,

Just running some tests in trunk and I'm seeing some exceptions without 
stacktrace:

2008-02-11 00:54:23,416 WARN 
[org.jboss.beans.metadata.plugins.AbstractListMetaData] Exception in 
preinstantiated lookup for: 
TomcatClusteringEvictionConfig.evictionRegionConfigs, 
org.jboss.cache.config.ConfigurationException: 
org.jboss.cache.config.ConfigurationException: timeToLiveSeconds must be 
configured to a value greater than or equal to 0
....

2008-02-11 00:54:59,867 WARN 
[org.jboss.beans.metadata.plugins.AbstractListMetaData] Exception in 
preinstantiated lookup for: 
EJB3SFSBEvictionConfig.evictionRegionConfigs, 
org.jboss.cache.config.ConfigurationException: 
java.lang.ClassCastException: 
org.jboss.cache.eviction.NullEvictionPolicyConfig

Shouldn't AbstractTypeMetaData.preinstantiatedLookup() print the 
stacktrace? That would certainly help debugging them :)

So, instead of:

catch (Throwable t)
{
   log.warn("Exception in preinstantiated lookup for: " + beanName + "." 
+ propertyName + ", " + t);
}

do:

catch (Throwable t)
{
   log.warn("Exception in preinstantiated lookup for: " + beanName + "." 
+ propertyName, t);
}

-- 
Galder Zamarreño
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat



More information about the jboss-development mailing list