[jboss-jira] [JBoss JIRA] Updated: (JBSER-121) Unable to deserialize java.io.File in java 6
Brad Maxwell (JIRA)
jira-events at lists.jboss.org
Tue Mar 15 18:56:46 EDT 2011
[ https://issues.jboss.org/browse/JBSER-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brad Maxwell updated JBSER-121:
-------------------------------
Workaround Description:
Edit $JBOSS_HOME/server/$PROFILE/deploy/ejb3-interceptors-aop.xml
-Remove IsLocalInterceptor and ClusteredIsLocalInterceptor
Edit $JBOSS_HOME/server/$PROFILE/deploy/ejb3.deployer/META-INF/jboss-service.xml
- comment out the first org.jboss.remoting.transport.Connector
- uncomment the second org.jboss.remoting.transport.Connector
- add <attribute name="force_remote" isParam="true">true</attribute>
Steps to Reproduce:
On JBoss using Sun JDK 6_19 or higher
Deploy an EJB3 bean that has a return object that includes a java.io.File
Deploy an EJB3 client in the same JVM as the EJB3 bean and call the EJB
> Unable to deserialize java.io.File in java 6
> --------------------------------------------
>
> Key: JBSER-121
> URL: https://issues.jboss.org/browse/JBSER-121
> Project: JBoss Serialization
> Issue Type: Bug
> Affects Versions: 1.0.3 GA
> Environment: Windows XP. Java jdk1.6.0_20
> Reporter: Yannick Boucher
> Assignee: Clebert Suconic
> Attachments: JBSER-121-ver2.patch, JBSER-121.patch, MyObject.java
>
>
> After investigation the implementation of File changed between java 5 & 6. The new implementation use ObjectInputStream.readFields() instead of ObjectInputStream.defaultReadObject(). After a little more investigation I found that any call to readFields() would throw an exception.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list