Return-Path: X-Original-To: apmail-ws-dev-archive@www.apache.org Delivered-To: apmail-ws-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C057981C for ; Mon, 3 Oct 2011 09:07:13 +0000 (UTC) Received: (qmail 79051 invoked by uid 500); 3 Oct 2011 09:06:19 -0000 Delivered-To: apmail-ws-dev-archive@ws.apache.org Received: (qmail 70987 invoked by uid 500); 3 Oct 2011 09:06:10 -0000 Mailing-List: contact dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list dev@ws.apache.org Received: (qmail 64995 invoked by uid 99); 3 Oct 2011 09:05:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 09:05:59 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 09:05:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 12FFF2A69E0 for ; Mon, 3 Oct 2011 09:04:39 +0000 (UTC) Date: Mon, 3 Oct 2011 09:04:39 +0000 (UTC) From: "Colm O hEigeartaigh (Closed) (JIRA)" To: dev@ws.apache.org Message-ID: <296328891.2516.1317632679079.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2086222510.70866.1307339327369.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (WSS-293) Getting exception when rampart is engaged without addressing at client side MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WSS-293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colm O hEigeartaigh closed WSS-293. ----------------------------------- > Getting exception when rampart is engaged without addressing at client side > --------------------------------------------------------------------------- > > Key: WSS-293 > URL: https://issues.apache.org/jira/browse/WSS-293 > Project: WSS4J > Issue Type: Bug > Components: WSS4J Core > Affects Versions: 1.5.10 > Environment: windows > Reporter: shivendra tripathi > Assignee: Colm O hEigeartaigh > > Steps to reproduce: > 1. Engage rampart and use policy based configuarion > 2. Don't engage any other module like addressing > 3. Use OperationClient at client side and create soap envelope as follows > SOAPEnvelope envelope = soapFactory.createSOAPEnvelope();// don't use soapFactory.getDefaultEnvelope() to create soap envelope > SOAPBody sb = soapFactory.createSOAPBody(envelope); > On execution following exception is thrown, since WSS4J is inserting the header which is instance of OMElement and not of SOAPHeader. > Caused by: org.apache.rampart.RampartException: Error in extracting message properties > at org.apache.rampart.RampartMessageData.(RampartMessageData.java:389) > at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61) > at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64) > ... 59 more > Caused by: org.apache.axiom.soap.SOAPProcessingException: SOAP Envelope can not have children other than SOAP Header and Body > at org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl.checkChild(SOAPEnvelopeImpl.java:110) > at org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl.insertBefore(SOAPEnvelopeImpl.java:164) > at org.apache.ws.security.util.WSSecurityUtil.prependChildElement(WSSecurityUtil.java:646) > at org.apache.ws.security.util.WSSecurityUtil.findWsseSecurityHeaderBlock(WSSecurityUtil.java:722) > at org.apache.ws.security.message.WSSecHeader.insertSecurityHeader(WSSecHeader.java:146) > at org.apache.rampart.RampartMessageData.(RampartMessageData.java:379) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org For additional commands, e-mail: dev-help@ws.apache.org