[jboss-dev] AbstractTypeMetaData.preinstantiatedLookup() hides exception stacktrace
Ales Justin
ales.justin at gmail.com
Sun Feb 10 22:26:44 EST 2008
Don't blame your problems on the stack trace. :-)
1st one is obvious, and no stack trace would tell you more.
The 2nd needs a bit more, probably 3sec of a look at xml. ;-)
Galder Zamarreno wrote:
> 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);
> }
>
More information about the jboss-development
mailing list