accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-3245) Property.createInstanceFromPropertyName doesn't validate nulls
Date Wed, 22 Oct 2014 12:55:33 GMT


Christopher Tubbs commented on ACCUMULO-3245:

Not sure how this is possible. Any property on which this is used should have a default value
in the DefaultConfiguration if it's value is null. If that property doesn't have a default
value, for whatever reason, then we probably don't want to try to instantiate it without checking
its value first.

> Property.createInstanceFromPropertyName doesn't validate nulls
> --------------------------------------------------------------
>                 Key: ACCUMULO-3245
>                 URL:
>             Project: Accumulo
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.6.2
>            Reporter: John Vines
> I am using Property.createInstanceFromPropertyName in code which is not running via the
accumulo start classloader so it's not being configured (may not be relevent). I get the following
error logged-
> {code}2014-10-21 12:44:23,423 [conf.Property] WARN : Failed to load class 
> java.lang.NullPointerException
> 	at org.apache.accumulo.start.classloader.AccumuloClassLoader$2.loadClass(
> 	at java.lang.ClassLoader.loadClass(
> 	at java.lang.ClassLoader.loadClass(
> 	at org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader.loadClass(
> 	at org.apache.accumulo.core.conf.Property.createInstance(
> 	at org.apache.accumulo.core.conf.Property.createInstanceFromPropertyName({code}
> This is considered public code and should probably have better handling for null configurations

This message was sent by Atlassian JIRA

View raw message