Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9997

NullPointerException when removing configuration history

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR16
    • None
    • Management
    • None
    • Hide
      1. start EAP
      2. do configuration change
        /system-property=foo:add(value=bar)
        
      3. stop eap
        history is now stored in /standalone_xml_history/current
      4. start eap again
      5. stop eap
        history is now in /standalone_xml_history/TIMESTAMP
      6. change permission of /standalone_xml_history/TIMESTAMP to 555
        chmod 555 20170221-114800298/
        
      7. rename TIMESTAMP dir, change months to -2
        EAP by default deletes history older than 30 days
      8. start EAP -> boot fails

      it doesn't exactly reproduce NPE, but it shows that error while removing old config files prevents server from boot

      Show
      start EAP do configuration change /system-property=foo:add(value=bar) stop eap history is now stored in /standalone_xml_history/current start eap again stop eap history is now in /standalone_xml_history/TIMESTAMP change permission of /standalone_xml_history/TIMESTAMP to 555 chmod 555 20170221-114800298/ rename TIMESTAMP dir, change months to -2 EAP by default deletes history older than 30 days start EAP -> boot fails it doesn't exactly reproduce NPE, but it shows that error while removing old config files prevents server from boot

      org.jboss.as.controller.persistence.ConfigurationFile#deleteRecursively is missing error checking.

      If an I/O error occurs while listing the directory contents (file permission error/etc) it still tries to use the listing and gets a NullPointerException.

      This method is used while removing old configuration history directories during boot, and the NullPointerException causes the EAP boot to abort.

              kwills@redhat.com Ken Wills
              rhn-support-dereed Dennis Reed
              Martin Simka Martin Simka
              Martin Simka Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: