[
https://issues.jboss.org/browse/WELD-1067?page=com.atlassian.jira.plugin....
]
Ales Justin resolved WELD-1067.
-------------------------------
Fix Version/s: 1.2.0.Beta1
2.0.0.Alpha2
Resolution: Done
Thread safety issue in BeansClosure
-----------------------------------
Key: WELD-1067
URL:
https://issues.jboss.org/browse/WELD-1067
Project: Weld
Issue Type: Bug
Affects Versions: 1.1.4.Final
Environment: AS 7.1.0.CR1b
Reporter: Magesh Bojan
Assignee: Ales Justin
Fix For: 1.2.0.Beta1, 2.0.0.Alpha2
The getClosure() method does not synchronize on get. This leads to multiple Weld
deployments on AS7 calling the get method, all at once and leads to the following error:
java.lang.NullPointerException
at
org.jboss.weld.manager.BeanManagerImpl.getMostSpecializedBean(BeanManagerImpl.java:931)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:605)
at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:228)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207)
at
org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)
at
org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)
at
org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:46)
at
org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:322)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80)
at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira