You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Guido Spadotto <gs...@soluta.net> on 2009/06/18 00:58:31 UTC

Felix File Install - "Looping" NullPointerException

Hi all,
 I've discovered that a NullPointerException is raised
in the "traverse" method of the DirectoryWatcher class
if the polled directory is removed *after* the File Install
bundle is started.

As that method is always called in the outer loop of the
thread, the log will be flooded by stacktraces.

I've noticed this because my polled directory is
the target/ directory of a Maven project.
When I run "mvn package" the new bundle is
updated, but when I run "mvn clean" the loop starts.

Maybe the "traverse" method should also try to create
the watched folder if it doesn't exist (same logic as in the
class constructor), so that the conditions are brought back
to "normal" and the exception will be thrown no more.

I've filed the following issue (with a candidate, partial fix) on jira:
http://issues.apache.org/jira/browse/FELIX-1251


BR,
-- 
Logo
Guido Spadotto
Soluta.net, Italy
http://www.soluta.net



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org