Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.3 GA
    • Fix Version/s: 1.0.5.FINAL
    • Labels:
      None
    • Environment:

      Windows XP. Java jdk1.6.0_20

    • Steps to Reproduce:
      Hide

      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

      Show
      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
    • Workaround Description:
      Hide

      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>
      Show
      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>

      Description

      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.

        Gliffy Diagrams

          Attachments

          1. JBSER-121.patch
            8 kB
          2. JBSER-121-ver2.patch
            17 kB
          3. MyObject.java
            1 kB

            Issue Links

              Activity

                People

                • Assignee:
                  clebert.suconic Clebert Suconic
                  Reporter:
                  yenki Yannick Boucher
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: