Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.4
-
Fix Version/s: None
-
Component/s: Aegis Module
-
Labels:None
-
Number of attachments :
Description
========soap request================
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<objectArrayTest xmlns="http://abc.com/V1">
<params>
<xsd:anyType>1</xsd:anyType>
<xsd:anyType>2</xsd:anyType>
</params>
</objectArrayTest>
</soapenv:Body>
</soapenv:Envelope>
===========wsdl snippet========
<xsd:element name="objectArrayTest">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="params" nillable="true" type="xsd:ArrayOfAnyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="ArrayOfAnyType">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="anyType" nillable="true" type="xsd:anyType"/>
</xsd:sequence>
</xsd:complexType>
==================java.lang.StackOverflowError================
java.lang.StackOverflowError
com.ctc.wstx.sr.NsAttributeCollector.getValue(NsAttributeCollector.java:293)
com.ctc.wstx.sr.WstxStreamReader.getAttributeValue(WstxStreamReader.java:534)
org.codehaus.xfire.util.stax.DepthXMLStreamReader.getAttributeValue(DepthXMLStreamReader.java:75)
org.codehaus.xfire.util.stax.DepthXMLStreamReader.getAttributeValue(DepthXMLStreamReader.java:75)
org.codehaus.xfire.aegis.stax.ElementReader.getAttributeReader(ElementReader.java:251)
org.codehaus.xfire.aegis.type.basic.ObjectType.readObject(ObjectType.java:70)
org.codehaus.xfire.aegis.type.basic.ObjectType.readObject(ObjectType.java:133)
org.codehaus.xfire.aegis.type.basic.ObjectType.readObject(ObjectType.java:133)
org.codehaus.xfire.aegis.type.basic.ObjectType.readObject(ObjectType.java:133)
.......
org.codehaus.xfire.aegis.type.basic.ObjectType.readObject(ObjectType.java:133)
org.codehaus.xfire.aegis.type.basic.ObjectType.readObject(ObjectType.java:133)
org.codehaus.xfire.aegis.type.basic.ObjectType.readObject(ObjectType.java:133)
=============xfire code=======
org.codehaus.xfire.aegis.type.basic.ObjectType:
110: type = tm.getType( typeQName );
<code>type</code> here always returns the same instance causing the recursion to stackoverflow.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | XFireAegis831Test.java [ 25688 ] |
| Attachment | xfire.patch [ 47974 ] |
I have the same error (StackOverflow) when I am using a Map<String, Object> where the values can be collections of Map<String, Object>, for transfering something like:
<name>
<first>Firstname</first>
<last>Lastname</last>
</name>
<key>akey</key>
I think this error prevents the embedding of Maps or Collections into any Map or Collection with a value of Object (AnyType). Is there a workaround for this error?