[webbeans-issues] [JBoss JIRA] Updated: (WBRI-140) Proxied beans cannot be deserialized
Pete Muir (JIRA)
jira-events at lists.jboss.org
Fri Mar 13 08:27:22 EDT 2009
[ https://jira.jboss.org/jira/browse/WBRI-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated WBRI-140:
---------------------------
Assignee: Pete Muir (was: Ales Justin)
Waiting on new release of javasssit and inclusion in JBoss AS.
> Proxied beans cannot be deserialized
> ------------------------------------
>
> Key: WBRI-140
> URL: https://jira.jboss.org/jira/browse/WBRI-140
> Project: Web Beans
> Issue Type: Bug
> Components: Contexts
> Affects Versions: 1.0.0.ALPHA2
> Reporter: David Allen
> Assignee: Pete Muir
> Priority: Minor
> Fix For: 1.0.0.BETA2
>
> Attachments: javassist-3.10.0.GA.jar
>
>
> The test ClientProxyTest.testSimpleWebBeanClientProxyIsSerializable fails when run in a container due to classloader issues. Javassist is trying to use its own classloader, which in JBoss AS is a server classloader, to load the class loaded by the WAR classloader. The correct classloaders need to be setup with Javassist in order for persistence to work.
> Current error in the server is:
> java.io.InvalidClassException: org.jboss.jsr299.tck.unit.lookup.clientProxy.TunedTuna
> at javassist.util.proxy.SerializedProxy.readResolve(SerializedProxy.java:63)
> 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.invokeReadResolve(ObjectStreamClass.java:1061)
> at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1762)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
> at org.jboss.jsr299.tck.AbstractTest.deserialize(AbstractTest.java:268)
> at org.jboss.jsr299.tck.unit.lookup.clientProxy.ClientProxyTest.testSimpleWebBeanClientProxyIsSerializable(ClientProxyTest.java:55)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list