Issue1831710

classification
Title: PyFileCloser throws NullPointerException on shutdown
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: byronf, pjenvey
Priority: normal Keywords:

Created on 2007-11-14.11:02:29 by byronf, last changed 2007-11-17.01:14:11 by pjenvey.

Files
File name Uploaded Description Edit Remove
closersNull.patch byronf, 2007-11-14.11:02:29 Patch to fix NullPointerException in PyFileCloser
Messages
msg2006 (view) Author: Byron Foster (byronf) Date: 2007-11-14.11:02:29
I'm using jython embedded in a web app.  When running in tomcat through eclipse (using the sysdeo tomcat plugin) I find that when I shutdown tomcat the PyFileCloser thread throws a NullPointerException.  This is caused by the closers static member of PyFile is null when the run method is called.  I'm not sure how this happens since closers is private, and statically intialized, and there doesn't seem to be any code that sets it to null.  None the less, it is happening, and the attached patch prevents this Exception.
msg2007 (view) Author: Philip Jenvey (pjenvey) Date: 2007-11-17.01:14:11
applied in r3692-3693, thanks
History
Date User Action Args
2007-11-14 11:02:29byronfcreate