Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 59039 invoked from network); 12 Dec 2009 04:32:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Dec 2009 04:32:47 -0000 Received: (qmail 66658 invoked by uid 500); 12 Dec 2009 04:32:47 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 66579 invoked by uid 500); 12 Dec 2009 04:32:46 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 66569 invoked by uid 99); 12 Dec 2009 04:32:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Dec 2009 04:32:46 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Dec 2009 04:32:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EA9A2234C04C for ; Fri, 11 Dec 2009 20:32:19 -0800 (PST) Message-ID: <1428966483.1260592339955.JavaMail.jira@brutus> Date: Sat, 12 Dec 2009 04:32:19 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2554) JaxWsDynamicClientFactory.createClient(URL) and o.a.cxf.endpoint.Client.invoke(String operationName, Object... params) generates illegal XML, WstxParsingException on server. In-Reply-To: <1105652160.1258746819586.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-2554?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D127896= 79#action_12789679 ]=20 Daniel Kulp commented on CXF-2554: ---------------------------------- the soap message in the log in the description of this bug is DEFINITELY wr= ong. It DOES have duplicate wsu prefixes. The question is how was that= message created. It LOOKS like your test case is not producing the same = message as shown in the above log. That's what I'm trying to figure out i= s how was that message created and what could possibly be going wrong to en= d up with a message like that. My gut feeling is that the XMLStreamWriter= that is being used is different than the one I'm using. (maybe the sun ve= rsion built into the JDK or a bea version or something compared to the wood= stox version I'm using) and the StaxUtils stuff isn't behaving correctly wi= th that writer. In anycase, I just committed some changes to StaxUtils that may make it wor= k better with a different XMLStreamWriter. Tomorrows snapshots might beha= ve a little different. > JaxWsDynamicClientFactory.createClient(URL) and o.a.cxf.endpoint.Client.i= nvoke(String operationName, Object... params) generates illegal XML, WstxPa= rsingException on server. > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ------------------------- > > Key: CXF-2554 > URL: https://issues.apache.org/jira/browse/CXF-2554 > Project: CXF > Issue Type: Bug > Affects Versions: 2.2.5, 2.2.6 > Environment: Microsoft Windows [Version 6.0.6002] (Vista Buisines= s N 64 bits) > java version "1.6.0_16" > Java(TM) SE Runtime Environment (build 1.6.0_16-b01) > Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) > Reporter: Gary Gregory > Assignee: Daniel Kulp > Attachments: Apache CXF-2554.zip, Jre16_xml-Capture.JPG, TestBack= EndWss.wsdl > > > Creating a client with: > JaxWsDynamicClientFactory.newInstance().createClient(URL)=20 > and calling it with: > org.apache.cxf.endpoint.Client.invoke(String operationName, Object... par= ams)=20 > throws the Exception=20 > com.ctc.wstx.exc.WstxParsingException: Duplicate declaration for namespac= e prefix 'wsu'. > on in server built with CXF > Attaching WSDL. > Logging output: > Nov 20, 2009 11:31:12 AM org.apache.cxf.endpoint.dynamic.DynamicClientFac= tory outputDebug > INFO: Created classes: appinterface.seagullsw.com.appinterfaceserver.Obje= ctFactory, appinterface.seagullsw.com.appinterfaceserver.TestOneStringArgWs= sAll, appinterface.seagullsw.com.appinterfaceserver.TestOneStringArgWssAllI= nResponse, appinterface.seagullsw.com.appinterfaceserver.TestOneStringArgWs= sAllInResponseResponse, appinterface.seagullsw.com.appinterfaceserver.TestO= neStringArgWssAllResponse, appinterface.seagullsw.com.appinterfaceserver.Te= stOneStringArgWssEncrypt, appinterface.seagullsw.com.appinterfaceserver.Tes= tOneStringArgWssEncryptResponse, appinterface.seagullsw.com.appinterfaceser= ver.TestOneStringArgWssSignature, appinterface.seagullsw.com.appinterfacese= rver.TestOneStringArgWssSignatureResponse, appinterface.seagullsw.com.appin= terfaceserver.TestOneStringArgWssTimestamp, appinterface.seagullsw.com.appi= nterfaceserver.TestOneStringArgWssTimestampResponse, appinterface.seagullsw= .com.appinterfaceserver.TestOneStringArgWssUsernameToken, appinterface.seag= ullsw.com.appinterfaceserver.TestOneStringArgWssUsernameTokenResponse > Nov 20, 2009 11:31:18 AM org.apache.cxf.interceptor.LoggingInInterceptor = logging > INFO: Inbound Message > ---------------------------- > ID: 15 > Address: /AppInterfaceServer > Encoding: UTF-8 > Content-Type: text/xml; charset=3DUTF-8 > Headers: {content-type=3D[text/xml; charset=3DUTF-8], connection=3D[keep-= alive], transfer-encoding=3D[chunked], Host=3D[localhost:8070], SOAPAction= =3D["test.oneStringArgWssAll"], User-Agent=3D[Apache CXF 2.2.5], Content-Ty= pe=3D[text/xml; charset=3DUTF-8], Accept=3D[*/*], Pragma=3D[no-cache], Cach= e-Control=3D[no-cache]} > Payload: 2009-11-20T19:31:18= .544Z2009-11-20T19:31:28.544Z > > > CN=3DserverKeys > 1205178067 > > > RL7Dc35cwFOyIjqrPbFrbTuQU= jRrn4l4Xr5KGBhZlbyFCAnI/CO6oNdgk10kKajImSpFa+zw0LmrCZYhYE2k0VYs3fexwdmM6Upe= IWqdEOVmpMiruqgY+39pd8AKJOqT9IQCnG9zQ3IP4TJKrdugBcYgLhsSnUvmh//mXEV96mE=3D<= /xenc:CipherValue> > > > > > > > > > yVtODoPiC9+aUxFYj19IRxHI5fo=3D > > > > RDIY/X+KWeofWR0aN5ErYSxs0AOJF9DE+8K+xFZb8VPMSRFO6UBZW/x59KtzvBeUR7nlLk+QG= I3G > 6O/tz7AAKG9m7Jwkxr/dWZBWXuZNaxid9+Lh7Vx+BOes/KziskHZQyXl60zPouUpyqf1u3EMB= 3iC > B76Wdy4CfppmhZFyAnA=3D > > > > > CN=3DclientKeys > 1205178070 > > > > clien= tKeysclientKey= sPassword > > ds6OLheJbTyDK/oxqto7mEzxd= b44E3OD+HKxxI2Z44bSNccEZ02Uuw9q2SipHb313BiTXp4V6Dr9 > WAvRjMFLaqDLfvGIV7fEH9Fyx59A1qI0p/ByNX3q8KtHgxXhQBCTICk56Ja+TVO1jScEFjSm3= 2FZ > tNWoT1jz3qfpDnz+hs2EciXsOVA/I6/cSCpkcy0K4BU/wFKVFH486JtJq9dMQHSy6TJHYbGpV= aaB > 04mff4YlauNg2q9HXA9Cwk2iOOJMvGoA43higsinfeM/9cGZaBV+tDXikBNehKaShggsTAN/T= H5N > z9uoZq2B1J8c+aitj0TX5Y68SdZnGyIz5uIMhWSKdd7Y7yLzheU1L/ZMyMiQ4l2JQkFRUnfEF= WY0 > HHy9hxEvNz61+9fzzsQLEYcZxTSZoKJ1Q1Nvzwn4R+roDRwKMPLcsWEO1EVOmDhWzHzDsP+Kb= mcG > DyCxurs4xdLik0Uklo6P313g9KXeYrkR47hPGvuxnIhucLfu5oNgAX3z > -------------------------------------- > Nov 20, 2009 11:31:18 AM org.apache.cxf.phase.PhaseInterceptorChain doInt= ercept > WARNING: Interceptor has thrown exception, unwinding now > org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. > =09at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.hand= leMessage(ReadHeadersInterceptor.java:230) > =09at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.hand= leMessage(ReadHeadersInterceptor.java:60) > =09at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterce= ptorChain.java:236) > =09at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIni= tiationObserver.java:109) > =09at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletD= estination.java:98) > =09at org.apache.cxf.transport.servlet.ServletController.invokeDestinatio= n(ServletController.java:394) > =09at org.apache.cxf.transport.servlet.ServletController.invoke(ServletCo= ntroller.java:170) > =09at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(Abstract= CXFServlet.java:142) > =09at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(= AbstractHTTPServlet.java:179) > =09at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(Abstrac= tHTTPServlet.java:103) > =09at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > =09at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(Abstra= ctHTTPServlet.java:159) > =09at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:5= 11) > =09at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java= :390) > =09at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.j= ava:216) > =09at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java= :182) > =09at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java= :765) > =09at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:41= 8) > =09at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java= :152) > =09at org.mortbay.jetty.Server.handle(Server.java:326) > =09at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:= 542) > =09at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnect= ion.java:938) > =09at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:842) > =09at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) > =09at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > =09at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.= java:409) > =09at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPo= ol.java:451) > Caused by: com.ctc.wstx.exc.WstxParsingException: Duplicate declaration f= or namespace prefix 'wsu'. > at [row,col {unknown-source}]: [26,230] > =09at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.j= ava:605) > =09at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:46= 1) > =09at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.j= ava:3020) > =09at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader= .java:2934) > =09at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.ja= va:2846) > =09at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) > =09at org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamRe= ader.java:220) > =09at org.apache.cxf.staxutils.PartialXMLStreamReader.next(PartialXMLStre= amReader.java:41) > =09at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:9= 08) > =09at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826) > =09at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:8= 68) > =09at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826) > =09at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:8= 68) > =09at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826) > =09at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:8= 68) > =09at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826) > =09at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:8= 68) > =09at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:826) > =09at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:8= 68) > =09at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:755) > =09at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:744) > =09at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.hand= leMessage(ReadHeadersInterceptor.java:144) > =09... 26 more > Nov 20, 2009 11:31:18 AM org.apache.cxf.interceptor.LoggingOutInterceptor= $LoggingCallback onClose --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.