[jboss-jira] [JBoss JIRA] Updated: (JBSER-126) MetadataSerializationError by StackOverflowError writing Serializable objects that have writeReplace() and readResolve() implemented

Axel Großmann (JIRA) jira-events at lists.jboss.org
Mon Jun 6 06:12:59 EDT 2011


     [ https://issues.jboss.org/browse/JBSER-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Axel Großmann updated JBSER-126:
--------------------------------

    Description: 
We're experiencing {{MetadataSerializationError}} caused by {{StackOverflowError}} when we're trying to write objects of classes that
* implement {{Serializable}}
* have {{writeReplace()}} and {{readResolve()}} implemented and use _objects of the same class_ as replacement
* hold member object of private inner class implementing {{Serializable}} as well

(!) Please have a look at the attached JUnit test and trace - it replays the problem nicely.

  was:
We're experiencing MetadataSerializationError caused by StackOverflowError when we're trying to write objects of classes that
* implement Serializable
* have writeReplace() and readResolve() implemented and use _objects of the same class_ as replacement
* hold member object of private inner class implementing Serializable as well

(!) Please have a look at the attached JUnit test - it replays the problem nicely.



> MetadataSerializationError by StackOverflowError writing Serializable objects that have writeReplace() and readResolve() implemented
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBSER-126
>                 URL: https://issues.jboss.org/browse/JBSER-126
>             Project: JBoss Serialization
>          Issue Type: Bug
>    Affects Versions: 1.0.3 GA
>         Environment: Mac OS X 10.6.7 Java 1.6.0_24-b07-334
>            Reporter: Axel Großmann
>            Assignee: Clebert Suconic
>         Attachments: JBossSerializationTest.java, JBossSerialTestObject.java, trace.txt
>
>
> We're experiencing {{MetadataSerializationError}} caused by {{StackOverflowError}} when we're trying to write objects of classes that
> * implement {{Serializable}}
> * have {{writeReplace()}} and {{readResolve()}} implemented and use _objects of the same class_ as replacement
> * hold member object of private inner class implementing {{Serializable}} as well
> (!) Please have a look at the attached JUnit test and trace - it replays the problem nicely.

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