Emond Papegaaij commented on Bug WELD-1600

Perhaps the testcase is not entirely valid, but the bug is. We are hitting this NPE when trying to deserialize a user session after restarting the container. The problem is that org.jboss.weld.resources.ClassTransformer does not know about noncontextual types until you serialize them at least once. For example:

1. Serialize the object
2. Deserialize the object (no problem)
3. restart container
4. Serialize another object of the same type
5. Deserialize the first object (again no problem)

Now, if you skip step 4, the deserialization fails because the ClassTransformer only learns about the type after serializing 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