Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3245

Property.createInstanceFromPropertyName doesn't validate nulls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 1.6.2
    • None
    • client
    • None

    Description

      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-

      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(AccumuloClassLoader.java:261)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
      	at org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader.loadClass(AccumuloVFSClassLoader.java:112)
      	at org.apache.accumulo.core.conf.Property.createInstance(Property.java:641)
      	at org.apache.accumulo.core.conf.Property.createInstanceFromPropertyName(Property.java:668)

      This is considered public code and should probably have better handling for null configurations

      Attachments

        Activity

          People

            Unassigned Unassigned
            vines John Vines
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: