Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 24012 invoked from network); 22 May 2006 03:26:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 May 2006 03:26:17 -0000 Received: (qmail 19423 invoked by uid 500); 22 May 2006 03:25:47 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 19371 invoked by uid 500); 22 May 2006 03:25:46 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 19346 invoked by uid 99); 22 May 2006 03:25:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 May 2006 20:25:46 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DATE_IN_PAST_06_12 X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.17] (HELO relay03.pair.com) (209.68.5.17) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 21 May 2006 20:25:45 -0700 Received: (qmail 87210 invoked from network); 22 May 2006 03:25:24 -0000 Received: from unknown (HELO ?127.0.0.1?) (unknown) by unknown with SMTP; 22 May 2006 03:25:24 -0000 X-pair-Authenticated: 222.165.173.188 Message-ID: <4470A93A.309@opensource.lk> Date: Sun, 21 May 2006 23:24:02 +0530 From: Deepal Jayasinghe User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: [Axis2] ServiceClient.addStringHeader() problems References: <446B0BFD.4010704@ncl.ac.uk> <19e0530f0605170708v596ed791sbf225dc48441e583@mail.gmail.com> <446B4A49.9090400@ncl.ac.uk> In-Reply-To: <446B4A49.9090400@ncl.ac.uk> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N can u pls create a JIRA , I think this is a bug. Michele Mazzucco wrote: >example1/MyService: > >1) no headers added: >HTTP/1.1 200 OK >Server: Apache-Coyote/1.1 >Set-Cookie: JSESSIONID=CF2A6A3A366706087FBBD8818E91A62C; Path=/axis2 >Content-Type: multipart/related; >boundary=MIMEBoundaryurn_uuid_1CAAD3F62EB8F21F2011478815557861; >type="application/xop+xml"; >start="<0.urn:uuid:1CAAD3F62EB8F21F2011478815557862@apache.org>"; >start-info="text/xml";charset=UTF-8 >Transfer-Encoding: chunked >Date: Wed, 17 May 2006 15:59:15 GMT > >23e >--MIMEBoundaryurn_uuid_1CAAD3F62EB8F21F2011478815557861 >content-type:application/xop+xml; charset=UTF-8; type="text/xml"; >content-transfer-encoding:binary >content-id:<0.urn:uuid:1CAAD3F62EB8F21F2011478815557862@apache.org> > >xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">/>xmlns:example1="http://example1.org/example1" >xmlns:tns="http://ws.apache.org/axis2">Axis2 Echo String > >3b > >--MIMEBoundaryurn_uuid_1CAAD3F62EB8F21F2011478815557861-- >0 > > > >2) sender.addHeader(OMElement), where the OMElement is very similar to >the object returned by ClientUtil.getEchoElement(): > > >HTTP/1.1 500 Internal Server Error >Server: Apache-Coyote/1.1 >Content-Type: text/html;charset=utf-8 >Content-Length: 2118 >Date: Wed, 17 May 2006 16:01:31 GMT >Connection: close > >Apache Tomcat/5.5.15 - Error >report >

HTTP Status 500 -


noshade="noshade">

type Exception report

message >

description The server encountered an internal >error () that prevented it from fulfilling this >request.

exception >

org.apache.axiom.om.OMException:
>com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
>'>' (code 62) expected '='
> at [row,col {unknown-source}]: [1,226]
>	org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:207)
>	org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:263)
>	org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.next(OMChildrenQNameIterator.java:101)
>	org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:223)
>	org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
>	org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:194)
>	org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
>	org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
>	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>

note The full stack trace of the root cause is >available in the Apache Tomcat/5.5.15 logs.


noshade="noshade">

Apache Tomcat/5.5.15

> > > > >3) sender.addStringHeader(new QName("qname"), "Header text"): > >HTTP/1.1 500 Internal Server Error >Server: Apache-Coyote/1.1 >Content-Type: text/html;charset=utf-8 >Content-Length: 1857 >Date: Wed, 17 May 2006 16:06:42 GMT >Connection: close > >Apache Tomcat/5.5.15 - Error >report >

HTTP Status 500 -


noshade="noshade">

type Exception report

message >

description The server encountered an internal >error () that prevented it from fulfilling this >request.

exception

java.lang.NullPointerException
>	org.apache.axiom.soap.impl.llom.SOAPHeaderImpl.getHeaderBlocksWithNSURI(SOAPHeaderImpl.java:217)
>	org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(AddressingInHandler.java:64)
>	org.apache.axis2.engine.Phase.invoke(Phase.java:378)
>	org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:492)
>	org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:462)
>	org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:283)
>	org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:137)
>	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>

note The full stack trace of the root cause is >available in the Apache Tomcat/5.5.15 logs.


noshade="noshade">

Apache Tomcat/5.5.15

> > > >Michele > >Davanum Srinivas wrote: > > >>What do you see on the wire? can u please try tcpmon or some other >>mechanism to look at the actual soap messages? >> >>thanks., >>dims >> >>On 5/17/06, Michele Mazzucco wrote: >> >> >>>Hi all, >>> >>>I noticed that the calls ServiceClient.addStringHeader() and >>>ServiceClient.addHeader() cause the message to be not received. >>> >>>Any idea? >>> >>>Michele >>> >>> >>> >> >> > > > > -- Thanks, Deepal ................................................................ ~Future is Open~ --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org