Re: [Simple-support] De-serialization problem -- valid reference not valid?
Brought to you by:
niallg
|
From: Alan D. <Ala...@zn...> - 2009-02-17 23:10:18
|
Niall Gallagher wrote:
> Is this easy to reproduce? Would it be possible to write a test case to expose this problem, at least then I could fix the issue from a known reproducable test.
>
OK, I think I have test case for you in the attached file. The program
run without a command-line parameter will write the file
"SimpleBug.xml". If you run it with the command line parameter "-r" it
will try to read that file, with the exception. The exception I got was:
org.simpleframework.xml.graph.CycleException: Invalid reference '4'
found
The file it should generate (but can't read) looks like this:
<simpleBug id="0">
<test1 id="1">
<data id="2">
<entry>
<string id="3">key1</string>
<object class="java.lang.String" id="4">value</object>
</entry>
</data>
</test1>
<test2 id="5">
<data id="6">
<entry>
<string id="7">key2</string>
<object class="java.lang.String" ref="4"/>
</entry>
</data>
</test2>
</simpleBug>
Thanks again for this great class library.
--
Alan Deikman
ZNYX Networks
|