[weld-issues] [JBoss JIRA] Updated: (WELD-743) Serialization failure for Events injected into non-contextual instances
Marius Bogoevici (JIRA)
jira-events at lists.jboss.org
Mon Nov 1 13:03:54 EDT 2010
[ https://jira.jboss.org/browse/WELD-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marius Bogoevici updated WELD-743:
----------------------------------
Fix Version/s: 1.1.0.CR1
> Serialization failure for Events injected into non-contextual instances
> -----------------------------------------------------------------------
>
> Key: WELD-743
> URL: https://jira.jboss.org/browse/WELD-743
> Project: Weld
> Issue Type: Bug
> Affects Versions: 1.1.0.Beta1
> Reporter: Clint Popetz
> Fix For: 1.1.0.CR1
>
>
> If a class has an @Inject Event, and a non-contextual instance of that class is injected programmatically via the BeanManager API, the resulting proxies will fail with a NPE when serialized.
> {noformat}
> java.lang.NullPointerException
> at org.jboss.weld.serialization.ContextualStoreImpl.putIfAbsent(ContextualStoreImpl.java:109)
> at org.jboss.weld.injection.WeldInjectionPoint$WeldInjectionPointSerializationProxy.<init>(WeldInjectionPoint.java:43)
> at org.jboss.weld.injection.FieldInjectionPoint$SerializationProxy.<init>(FieldInjectionPoint.java:197)
> at org.jboss.weld.injection.FieldInjectionPoint.writeReplace(FieldInjectionPoint.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1032)
> {noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list