[weld-issues] [JBoss JIRA] Created: (WELD-743) Serialization failure for Events injected into non-contextual instances
Clint Popetz (JIRA)
jira-events at lists.jboss.org
Tue Oct 26 15:26:55 EDT 2010
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
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