I spotted my issue. It's the return object from the createItem() method that has a circular reference. I read from some other posts that XFire w/Aegis can not handle circular references and hence I'll need to flatten the return object. Is there another way, maybe with jaxb2, to make this work with circular references? Or maybe is there going to be an enhancement of some sort in the future for this circular reference to work with XFire/Aegis? Thanks in advance.
-los Tomek Sztelak wrote: > > Can you show us what objects are you trying to send ? > > On 2/20/07, moraleslos <[EMAIL PROTECTED]> wrote: >> >> I'm using XFire 1.2.4 and am running into a StackOverflowError: >> >> ********************************************************************* >> StandardWrapperValve[XFireServlet]: Servlet.service() for servlet >> XFireServlet threw exception >> java.lang.StackOverflowError >> at >> org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:108) >> at >> org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:569) >> at org.apache.coyote.Response.doWrite(Response.java:542) >> at >> org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:368) >> at >> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:398) >> at >> org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:318) >> at >> org.apache.coyote.tomcat5.OutputBuffer.writeBytes(OutputBuffer.java:401) >> at >> org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:388) >> at >> org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutputStream.java:76) >> at >> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) >> at >> java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) >> at com.ctc.wstx.io.UTF8Writer.write(UTF8Writer.java:139) >> at >> com.ctc.wstx.sw.BufferingXmlWriter.flushBuffer(BufferingXmlWriter.java:1073) >> at >> com.ctc.wstx.sw.BufferingXmlWriter.fastWriteRaw(BufferingXmlWriter.java:1119) >> at >> com.ctc.wstx.sw.BufferingXmlWriter.writeEndTag(BufferingXmlWriter.java:741) >> at >> com.ctc.wstx.sw.BufferingXmlWriter.writeEndTag(BufferingXmlWriter.java:759) >> at >> com.ctc.wstx.sw.BaseNsStreamWriter.doWriteEndTag(BaseNsStreamWriter.java:668) >> at >> com.ctc.wstx.sw.BaseNsStreamWriter.writeEndElement(BaseNsStreamWriter.java:281) >> at >> org.codehaus.xfire.aegis.stax.ElementWriter.close(ElementWriter.java:176) >> at >> org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:394) >> at >> org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392) >> at >> org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392) >> at >> org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:392) >> at >> org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:293) >> at >> org.codehaus.xfire.aegis.type.basic.ArrayType.writeObject(ArrayType.java:210) >> .... >> ******************************************************************** >> >> I don't think I have a circular reference. Below is a snippet of the >> WSDL >> generated by XFire: >> >> ******************************************************************** >> <wsdl:definitions targetNamespace="http://soap.test.com"> >> <wsdl:types> >> <xsd:schema attributeFormDefault="qualified" >> elementFormDefault="qualified" >> targetNamespace="http://books.test.com"> >> <xsd:complexType name="Item"> >> <xsd:sequence> >> <xsd:element minOccurs="0" name="itemAddress" nillable="true" >> type="ns1:Address"/> >> <xsd:element minOccurs="0" name="itemContact" nillable="true" >> type="ns1:Contact"/> >> <xsd:element minOccurs="0" name="itemStock" nillable="true" >> type="xsd:string"/> >> <xsd:element minOccurs="0" name="rfid" nillable="true" >> type="xsd:string"/> >> </xsd:sequence> >> </xsd:complexType> >> <xsd:complexType name="Address"> >> <xsd:sequence> >> <xsd:element minOccurs="0" name="city" nillable="true" >> type="xsd:string"/> >> <xsd:element minOccurs="0" name="state" nillable="true" >> type="xsd:string"/> >> <xsd:element minOccurs="0" name="streetAddress" nillable="true" >> type="xsd:string"/> >> <xsd:element minOccurs="0" name="zip" nillable="true" type="xsd:string"/> >> </xsd:sequence> >> </xsd:complexType> >> <xsd:complexType name="Contact"> >> <xsd:sequence> >> <xsd:element minOccurs="0" name="email" nillable="true" >> type="xsd:string"/> >> <xsd:element minOccurs="0" name="fax" nillable="true" type="xsd:string"/> >> <xsd:element minOccurs="0" name="phone1" nillable="true" >> type="xsd:string"/> >> </xsd:sequence> >> </xsd:complexType> >> </xsd:schema> >> <xsd:schema attributeFormDefault="qualified" >> elementFormDefault="qualified" >> targetNamespace="http://soap.test.com"> >> <xsd:element name="createItem"> >> <xsd:complexType> >> <xsd:sequence> >> <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" >> type="ns1:Item"/> >> </xsd:sequence> >> </xsd:complexType> >> </xsd:element> >> ... >> *********************************************************************** >> >> Any ideas of what may be causing the XFire issue? Thanks in advance! >> >> -los >> -- >> View this message in context: >> http://www.nabble.com/StackFlowError-tf3256589.html#a9054147 >> Sent from the XFire - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list please visit: >> >> http://xircles.codehaus.org/manage_email >> >> > > > -- > ----- > When one of our products stops working, we'll blame another vendor > within 24 hours. > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > -- View this message in context: http://www.nabble.com/StackFlowError-tf3256589.html#a9062776 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
