Race condition in CommandStateManager
-------------------------------------
Key: JSIEVE-10
URL: http://nagoya.apache.org/jira/browse/JSIEVE-10
Project: jSieve
Type: Bug
Reporter: Kirk Chen
The resetInstance method in CommandStateManager should be synchronized. In
multithreaded environment, I encountered the following exception:
java.lang.NullPointerException
at
org.apache.jsieve.commands.CommandStateManager.setInstance(CommandStateManager.java:122)
at
org.apache.jsieve.commands.CommandStateManager.updateInstance(CommandStateManager.java:140)
at
org.apache.jsieve.commands.CommandStateManager.getInstance(CommandStateManager.java:95)
at org.apache.jsieve.SieveFactory.evaluate(SieveFactory.java:145)
at RuleManager.applyRules(RuleManager.java:87)
...
which should have been caused by the lack of it. I am yet to verify this
theory, however.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]