[jboss-jira] [JBoss JIRA] (WFLY-1595) Possible race in jboss-invocation proxies resulting in NPE in initializer
RH Bugzilla Integration (JIRA)
jira-events at lists.jboss.org
Tue Aug 20 02:45:26 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797808#comment-12797808 ]
RH Bugzilla Integration commented on WFLY-1595:
-----------------------------------------------
Stuart Douglas <sdouglas at redhat.com> made a comment on [bug 978603|https://bugzilla.redhat.com/show_bug.cgi?id=978603]
Because jboss-invocation was using a ThreadLocal to pass information into the proxies static initializer, there was a very short window where if a second thread attempted to use the proxy immediately after it had been defined this second thread would call the static initializer, and the ThreadLocal data that the initializer was expecting would not be present, resulting in a NullPointerException.
> Possible race in jboss-invocation proxies resulting in NPE in initializer
> -------------------------------------------------------------------------
>
> Key: WFLY-1595
> URL: https://issues.jboss.org/browse/WFLY-1595
> Project: WildFly
> Issue Type: Bug
> Components: EE
> Affects Versions: 8.0.0.Alpha2
> Reporter: Stuart Douglas
> Assignee: Stuart Douglas
> Fix For: 8.0.0.Alpha3
>
>
> jboss-invocation proxies use a thread local to pass information into the initializer, in most cases this works fine as long as only a single thread is attempting to define the class. It is possible for a different thread to load the class that the one that defines it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list