Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-252

ControlPanel fails with a Null Pointer Exception with Oracle JDK7.

    XMLWordPrintable

    Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • tools
    • None

      Description

      This was reported on OpenDS mailing list.
      After running Setup and launching the Control Panel, it throws a Null Pointer Exception.

      From the opends-control-panel-xxx.log, the traceback is:
      Aug 03, 2011 4:39:40 PM org.opends.guitools.controlpanel.util.ConfigFromFile readConfiguration
      WARNING: Error reading configuration: java.lang.NullPointerException
      java.lang.NullPointerException
      at org.opends.guitools.controlpanel.datamodel.BaseDNDescriptor.compareTo(BaseDNDescriptor.java:147)
      at org.opends.guitools.controlpanel.datamodel.BaseDNDescriptor.compareTo(BaseDNDescriptor.java:38)
      at java.util.TreeMap.compare(TreeMap.java:1188)
      at java.util.TreeMap.put(TreeMap.java:531)
      at java.util.TreeSet.add(TreeSet.java:255)
      at org.opends.guitools.controlpanel.util.ConfigFromFile.readConfiguration(ConfigFromFile.java:174)
      at org.opends.guitools.controlpanel.datamodel.ControlPanelInfo.regenerateDescriptor(ControlPanelInfo.java:604)
      at org.opends.guitools.controlpanel.ui.LocalOrRemotePanel$3.processBackgroundTask(LocalOrRemotePanel.java:575)
      at org.opends.guitools.controlpanel.ui.LocalOrRemotePanel$3.processBackgroundTask(LocalOrRemotePanel.java:641)
      at org.opends.guitools.controlpanel.util.BackgroundTaskThread.run(BackgroundTaskThread.java:64)

      Comment was added that treeMap was fixed in JDK7 and now calls CompareTo() method.
      In the control panel, the backend is not identified yet, and thus Null which results in the exception.
      It's been reproduced on Windows 2008, Oracle JDK7.

        Attachments

          Issue Links

            Activity

              People

              ludo Ludovic Poitou
              ludo Ludovic Poitou
              Ludovic Poitou Ludovic Poitou
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: