cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Grimes (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1956) Garbage Appended to SOAP Envelope
Date Wed, 24 Dec 2008 21:32:47 GMT

    [ https://issues.apache.org/jira/browse/CXF-1956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659160#action_12659160
] 

Ron Grimes commented on CXF-1956:
---------------------------------

Thanks. I guess we can close this for now. It is probably a Flex issue, rather than CXF. However,
I would argue that your premise that "we'd have heard about it from other people" might be
incorrect. I'm not sure how may people are using Flex on the client side and consuming Spring/CXF
web services. I have a lot of web services and this is the first one to produce this situation.
I think it partially depends on the client technology being used and whether it would bawk
at garbage attached at the end of the envelope. So, given the peculiarity of the web architecture
that I'm using, together with the intermittent nature of this error, it may well be no surprise
that it hasn't been raised before.

Btw, I'm not used to using a JIRA forum. I worked pretty isolated. So, sorry if I've not handled
this "bug" reporting with the correct protocol.

Thanks again for all your help.

Ron Grimes




> 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
>
>
> 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