Return-Path:
Delivered-To: apmail-ws-axis-dev-archive@www.apache.org
Received: (qmail 92132 invoked from network); 25 May 2006 14:26:36 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 25 May 2006 14:26:36 -0000
Received: (qmail 52673 invoked by uid 500); 25 May 2006 14:26:31 -0000
Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org
Received: (qmail 52578 invoked by uid 500); 25 May 2006 14:26:30 -0000
Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm
Precedence: bulk
Reply-To: axis-dev@ws.apache.org
list-help:
list-unsubscribe:
List-Post:
List-Id:
Delivered-To: mailing list axis-dev@ws.apache.org
Received: (qmail 52520 invoked by uid 99); 25 May 2006 14:26:30 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 07:26:30 -0700
X-ASF-Spam-Status: No, hits=0.0 required=10.0
tests=
X-Spam-Check-By: apache.org
Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 07:26:28 -0700
Received: from brutus (localhost [127.0.0.1])
by brutus.apache.org (Postfix) with ESMTP id 982CC7141FA
for ; Thu, 25 May 2006 14:25:46 +0000 (GMT)
Message-ID: <19887025.1148567146606.JavaMail.jira@brutus>
Date: Thu, 25 May 2006 14:25:46 +0000 (GMT+00:00)
From: "Michele Mazzucco (JIRA)"
To: axis-dev@ws.apache.org
Subject: [jira] Created: (AXIS2-767) ServiceClient.addStringHeader()
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
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
ServiceClient.addStringHeader()
-------------------------------
Key: AXIS2-767
URL: http://issues.apache.org/jira/browse/AXIS2-767
Project: Apache Axis 2.0 (Axis2)
Type: Bug
Versions: 1.0
Environment: Windows XP SP2, Java Sun JDK 1.5.0_03, ant 1.6.5
Reporter: Michele Mazzucco
Priority: Critical
The calls ServiceClient.addStringHeader() and ServiceClient.addHeader() cause the message to be not received.
Using tcpmon and the MyService sample (provided with Axis2) you get:
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>
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 -
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.
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 -
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.
Apache Tomcat/5.5.15
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org