cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: [jira] Commented: (CXF-1956) Garbage Appended to SOAP Envelope
Date Sat, 21 Feb 2009 21:34:29 GMT
I believe that tomcat is responsible for the content-length or lack
thereof. But it might be the servlet itself. Are you just using the
stock CXF servlet?

On Sat, Feb 21, 2009 at 4:32 PM, Ron Grimes (JIRA) <jira@apache.org> wrote:
>
>    [ https://issues.apache.org/jira/browse/CXF-1956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675602#action_12675602
]
>
> Ron Grimes commented on CXF-1956:
> ---------------------------------
>
> This observation does make sense, and I agree could very well explain the problem. Let
me look into the content-length problem before you do anything else with investigating this.
Quite frankly, I'm not sure how the content-length is being set either. I'm running Tomcat
5.5.25 on Windows Server 2003. So, I'm a bit puzzled as to which part of this puzzle is messing
up the content-length.
>
> Ron
>
>
>
>
>> Garbage Appended to SOAP Envelope
>> ---------------------------------
>>
>>                 Key: CXF-1956
>>                 URL: https://issues.apache.org/jira/browse/CXF-1956
>>             Project: CXF
>>          Issue Type: Bug
>>    Affects Versions: 2.1.2, 2.1.3
>>         Environment: Windows Server 2003 R2, Apache Tomcat 5.5.26, Web Services developed
with Apache CXF 2.1.3 and Spring 2.5
>>            Reporter: Ron Grimes
>>            Priority: Critical
>>         Attachments: countries.sql, Country.java, CountryDao.java, CountryDaoImpl.java,
CountryFault.java, CountryService.java, CountryServiceImpl.java, FlexDump.xml, WireShark_Packet_Bytes.xml,
WireShark_Raw_TCP_Stream.xml, ws_dump_20090221.pcap
>>
>>
>> I have a web service that returns a list of ISO Country Codes and Names. Garbage
is being returned at the end of the SOAP envelope, which in turn throws a CXFServlet exception:
>> - Servlet.service() for servlet CXFServlet threw exception
>> java.lang.NullPointerException
>>       at org.apache.xerces.dom.DeferredAttrNSImpl.synchronizeData(Unknown Source)
>>       at org.apache.xerces.dom.AttrImpl.getNodeName(Unknown Source)
>>       at org.apache.xerces.dom.AttributeMap.setNamedItem(Unknown Source)
>>       at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown Source)
>>       at org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source)
>>       at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
>>       at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
>>       at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
>>       at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
>>       at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
>>       at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(Unknown
Source)
>>       at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown
Source)
>>       at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown
Source)
>>       at org.apache.cxf.wsdl11.SchemaSerializer.writeXml(SchemaSerializer.java:60)
>>       at org.apache.cxf.wsdl11.SchemaSerializer.marshall(SchemaSerializer.java:48)
>>       at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)
>>       at com.ibm.wsdl.xml.WSDLWriterImpl.printTypes(Unknown Source)
>>       at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
>>       at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
>>       at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
>>       at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:171)
>>       at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:152)
>>       at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:174)
>>       at org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet.java:156)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>>       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>>       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>>       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>>       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>>       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>>       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>>       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>>       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>>       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>>       at java.lang.Thread.run(Unknown Source)
>> Sample of returned SOAP envelope with appended garbage:
>> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>>    <soap:Body><ns1:queryCountryCodesResponse xmlns:ns1="http://ws.common.ssc.com/">
>>       <InformationResult>
>>          <ns2:Country xmlns:ns2="http://model.common.ssc.com">
>>             <ns2:countryCode>AD</ns2:countryCode>
>>             <ns2:countryName>Andorra</ns2:countryName>
>>          </ns2:Country>
>>          .
>>          .
>>          .
>>       </InformationResult>
>>    </ns1:queryCountryCodesResponse>
>> </soap:Body></soap:Envelope>co«×y
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

Mime
View raw message