<cfset stcStruct = StructNew()/>
<cfset xmlDoc = "<myxml><name>Kevin Penny</name></myxml>">
<cfset stcStruct.xml = xmlParse(xmlDoc)/>
<cfset stcStruct.id = 1>
<cfwddx action="cfml2wddx" input="#stcStruct#" output="tmp"/>
This takes a Structure, adds a key of 'xml' and places a parsed xml object in it's position. I'm then serializing the data into wddx via cfwddx as cfml2wddx.
I originally thought it was the date fields that I had in the structure, so I removed those, but the problem was the xml object's serialization.
Here's the error I get along with a partial dump:
java.lang.StackOverflowError
....
at java.beans.Introspector.instantiate(Introspector.java:1438)
at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:410)
at java.beans.Introspector.
at java.beans.Introspector.getBeanInfo(Introspector.java:222)
at java.beans.Introspector.
at java.beans.Introspector.getBeanInfo(Introspector.java:222)
at java.beans.Introspector.
at java.beans.Introspector.getBeanInfo(Introspector.java:222)
at java.beans.Introspector.
at java.beans.Introspector.getBeanInfo(Introspector.java:222)
at java.beans.Introspector.
at java.beans.Introspector.getBeanInfo(Introspector.java:222)
at java.beans.Introspector.
at java.beans.Introspector.getBeanInfo(Introspector.java:222)
at java.beans.Introspector.getBeanInfo(Introspector.java:208)
at coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:48)
at coldfusion.wddx.WddxOutputStream.writeObject(WddxOutputStream.java:310)
at coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:120)
at coldfusion.wddx.WddxOutputStream.writeObject(WddxOutputStream.java:310)
at coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:120)
at coldfusion.wddx.WddxOutputStream.writeObject(WddxOutputStream.java:310)
I've submitted this as a bug to Adobe #75230.
4 comments:
Does SerializeJSON() work for xml object? If it doesn't, then I guess xml object is not a serializable "data type".
Can you maybe serialize the xml string instead? For sure that will work 'cause it'll just be a string.
You mean instead of using WDDX to use SerializeJSON()? I have to do some XSL on the data afterwards in this case - so the data needs to be in a format that I can reference syntactially via XPath - but certainly worth noting - Thanks Henry (and worth looking into the equivalent XSL for Json - visa vi JsonPath)
I think that this application help to mane people to use in the best way many sites like viagraonline and alpino.com, so I feel so happy with the information.
Post a Comment