Petals ESB Container

NPE if directories used by the autoloader are deleted when it runs

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 4.0.0
  • Fix Version/s: 4.1.0
  • Component/s: Autoloader
  • Security Level: Public
  • Description:
    Hide
    1. start Petals ESB (the autoloader is enabled)
    2. remove directories: $PETALS_HOME/install, $PETALS_HOME/installed


    The following error occurs:

    Exception in thread "Timer-0" java.lang.NullPointerException
    	at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:59)
    	at java.util.TimerThread.mainLoop(Timer.java:512)
    	at java.util.TimerThread.run(Timer.java:462)
    Exception in thread "Timer-1" java.lang.NullPointerException
    	at java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
    	at java.util.Arrays.asList(Arrays.java:3343)
    	at org.ow2.petals.jbi.management.autoload.InstalledDirectoryScanner.run(InstalledDirectoryScanner.java:52)
    	at java.util.TimerThread.mainLoop(Timer.java:512)
    	at java.util.TimerThread.run(Timer.java:462)
    Show
    1. start Petals ESB (the autoloader is enabled)
    2. remove directories: $PETALS_HOME/install, $PETALS_HOME/installed

    The following error occurs:
    Exception in thread "Timer-0" java.lang.NullPointerException
    	at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:59)
    	at java.util.TimerThread.mainLoop(Timer.java:512)
    	at java.util.TimerThread.run(Timer.java:462)
    Exception in thread "Timer-1" java.lang.NullPointerException
    	at java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
    	at java.util.Arrays.asList(Arrays.java:3343)
    	at org.ow2.petals.jbi.management.autoload.InstalledDirectoryScanner.run(InstalledDirectoryScanner.java:52)
    	at java.util.TimerThread.mainLoop(Timer.java:512)
    	at java.util.TimerThread.run(Timer.java:462)
  • Environment:
    Linux Ubuntu 11.10

Activity

Christophe DENEUX made changes - Wed, 28 Mar 2012 - 10:40:42 +0200
Field Original Value New Value
Fix Version/s 3.3.0 [ 10334 ]
Priority Minor [ 4 ]
Christophe DENEUX made changes - Wed, 28 Mar 2012 - 11:10:09 +0200
Status New [ 10000 ] Open [ 10002 ]
Christophe DENEUX made changes - Wed, 28 Mar 2012 - 11:10:13 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Wed, 28 Mar 2012 - 11:10:30 +0200
Description # start Petals ESB (the autoloader is enabled)
# remove directories: $PETALS_HOME/install, $PETALS_HOME/installed, $PETALS_HOME/uninstalled

\\
The following error occurs:
{code}
Exception in thread "Timer-0" java.lang.NullPointerException
at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:59)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Exception in thread "Timer-1" java.lang.NullPointerException
at java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
at java.util.Arrays.asList(Arrays.java:3343)
at org.ow2.petals.jbi.management.autoload.InstalledDirectoryScanner.run(InstalledDirectoryScanner.java:52)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
{code}
# start Petals ESB (the autoloader is enabled)
# remove directories: $PETALS_HOME/install, $PETALS_HOME/installed

\\
The following error occurs:
{code}
Exception in thread "Timer-0" java.lang.NullPointerException
at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:59)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Exception in thread "Timer-1" java.lang.NullPointerException
at java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
at java.util.Arrays.asList(Arrays.java:3343)
at org.ow2.petals.jbi.management.autoload.InstalledDirectoryScanner.run(InstalledDirectoryScanner.java:52)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
{code}
Christophe DENEUX made changes - Wed, 28 Mar 2012 - 11:14:43 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Hide
Christophe DENEUX added a comment - Wed, 28 Mar 2012 - 11:15:13 +0200

The NPE was replaced by a WARNING message

Show
Christophe DENEUX added a comment - Wed, 28 Mar 2012 - 11:15:13 +0200 The NPE was replaced by a WARNING message
Christophe DENEUX made changes - Wed, 27 Feb 2013 - 11:23:02 +0100
Component/s Autoloader [ 10253 ]
Component/s Installation/Deployment [ 10041 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
29m 41s
1
Christophe DENEUX
Wed, 28 Mar 2012 - 11:10:09 +0200
Open Open In Progress In Progress
4s
1
Christophe DENEUX
Wed, 28 Mar 2012 - 11:10:13 +0200
In Progress In Progress Resolved Resolved
4m 30s
1
Christophe DENEUX
Wed, 28 Mar 2012 - 11:14:43 +0200



People

Dates

  • Created:
    Wed, 28 Mar 2012 - 10:40:28 +0200
    Updated:
    Wed, 27 Feb 2013 - 11:23:02 +0100
    Resolved:
    Wed, 28 Mar 2012 - 11:14:43 +0200