xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44178] Race condition in CleanerThread.java getReferenceQueue() method
Date Tue, 04 Aug 2009 06:53:27 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44178



--- Comment #1 from Eddie Moojen <nejoom@elements.ac> 2009-08-03 23:53:25 PDT ---
Synchronizing on the getReferenceQueue() method is IMHO correct.

Also changing line 104 from:
                    ref = queue.remove();

to:
                    ref = getReferenceQueue().remove();

Solves NullPointerExceptions being thrown in eclipse & tomcat after reloading
the context.

Because this error is thrown in a while(true) { //clean references } loop, it
overflows the log files.

Please fix.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Mime
View raw message