DWR

NPE in OutputAlarm.cancel()

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.2
  • Fix Version/s: 2.0.3
  • Component/s: DWRP
  • Description:
    Hide
    java.lang.NullPointerException
           at org.directwebremoting.dwrp.OutputAlarm.cancel(OutputAlarm.java:68)
           at org.directwebremoting.dwrp.PollHandler$1.run(PollHandler.java:185)
           at org.directwebremoting.dwrp.ThreadWaitSleeper.goToSleep(ThreadWaitSleeper.java:43)
           at org.directwebremoting.dwrp.PollHandler.handle(PollHandler.java:207)
           at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:103)
           at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    The OutputAlarm is created the handle method of org.directwebremoting.servlet.PlainPollHandler

    I've modified the source to identify the source, otherwise only a message would be printed on the console: [directwebremoting.servlet.ExceptionHandler] Error: java.lang.NullPointerException.

    The error isn't propagated to the error handler... I've even set the converters for the Exception and StackTraceElement.
    This happens when using dwr 2.0.2 and Internet Explorer, DwrServlet has debug and activeReverseAjaxEnabled set to true.

    If I set a breakpoint on the constructor of OutputAlarm and I resume the thread imediately after it's suspended, it throws a NPE even using Firefox... otherwise OutputAlarm.cancel() is not executed...
    Show
    java.lang.NullPointerException        at org.directwebremoting.dwrp.OutputAlarm.cancel(OutputAlarm.java:68)        at org.directwebremoting.dwrp.PollHandler$1.run(PollHandler.java:185)        at org.directwebremoting.dwrp.ThreadWaitSleeper.goToSleep(ThreadWaitSleeper.java:43)        at org.directwebremoting.dwrp.PollHandler.handle(PollHandler.java:207)        at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:103)        at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) The OutputAlarm is created the handle method of org.directwebremoting.servlet.PlainPollHandler I've modified the source to identify the source, otherwise only a message would be printed on the console: [directwebremoting.servlet.ExceptionHandler] Error: java.lang.NullPointerException. The error isn't propagated to the error handler... I've even set the converters for the Exception and StackTraceElement. This happens when using dwr 2.0.2 and Internet Explorer, DwrServlet has debug and activeReverseAjaxEnabled set to true. If I set a breakpoint on the constructor of OutputAlarm and I resume the thread imediately after it's suspended, it throws a NPE even using Firefox... otherwise OutputAlarm.cancel() is not executed...
  1. patch.txt
    (0.5 kB)
    Andrei Ivanov
    01/Feb/08 7:41 PM

Activity

Hide
Andrei Ivanov added a comment - 01/Feb/08 7:41 PM

This patch seems to fix it...

Show
Andrei Ivanov added a comment - 01/Feb/08 7:41 PM This patch seems to fix it...
Hide
Joe Walker added a comment - 02/Feb/08 8:01 PM

See mailing list with Subject: [dwr-user] NPE with reverse ajax

Show
Joe Walker added a comment - 02/Feb/08 8:01 PM See mailing list with Subject: [dwr-user] NPE with reverse ajax
Hide
Joe Walker added a comment - 08/Feb/08 12:28 PM

RC for 2.0.3 should be around very shortly.

Show
Joe Walker added a comment - 08/Feb/08 12:28 PM RC for 2.0.3 should be around very shortly.

People

Dates

  • Created:
    01/Feb/08 7:40 PM
    Updated:
    29/Feb/08 10:29 AM
    Resolved:
    08/Feb/08 12:28 PM