NullPointer in FileCleaner causes infinite loop
-----------------------------------------------

                 Key: WICKET-1065
                 URL: https://issues.apache.org/jira/browse/WICKET-1065
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.0-beta4
         Environment: OpenSuse 10.3, Java 1.6.0 update 3, Apache Tomcat 5.5.25, 
Eclipse 3.3.0
            Reporter: Geir Ove Grønmo


While hot deploying a Wicket application from Eclipse to a Tomcat instance the 
"File Reaper" thread seems to go into an infinite loop making the CPU running 
at 100%. From the thread dump it is clear that a NullPointerException is being 
thrown on line 61 in FileCleaner.java. Looking at the source code reveals that 
the ReferenceQueue q member in FileCleaner is null.

"File Reaper" daemon prio=10 tid=0x08265c00 nid=0x18cf runnable 
[0x9a2d9000..0x9a2d9f30]
   java.lang.Thread.State: RUNNABLE
        at java.lang.Throwable.fillInStackTrace(Native Method)
        - locked <0x701b0000> (a java.lang.NullPointerException)
        at java.lang.Throwable.<init>(Throwable.java:181)
        at java.lang.Exception.<init>(Exception.java:29)
        at java.lang.RuntimeException.<init>(RuntimeException.java:32)
        at java.lang.NullPointerException.<init>(NullPointerException.java:36)
        at org.apache.wicket.util.file.FileCleaner$1.run(FileCleaner.java:61)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to