Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-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 06BB29DDD for ; Tue, 6 Dec 2011 23:11:06 +0000 (UTC) Received: (qmail 17906 invoked by uid 500); 6 Dec 2011 23:11:05 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 17784 invoked by uid 500); 6 Dec 2011 23:11:05 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 17771 invoked by uid 99); 6 Dec 2011 23:11:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 23:11:05 +0000 X-ASF-Spam-Status: No, hits=-2001.2 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; Tue, 06 Dec 2011 23:11:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 26E361035E4 for ; Tue, 6 Dec 2011 23:10:40 +0000 (UTC) Date: Tue, 6 Dec 2011 23:10:40 +0000 (UTC) From: "Ruchith Udayanga Fernando (Closed) (JIRA)" To: java-dev@axis.apache.org Message-ID: <1526244705.47437.1323213040160.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (RAMPART-70) RAMPART Problems on building messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/RAMPART-70?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruchith Udayanga Fernando closed RAMPART-70. -------------------------------------------- Resolution: Not A Problem Fix Version/s: 1.6.1 Rampart can encrypt was headers. Verified with version : 1.6.1 =20 > RAMPART Problems on building messages > ------------------------------------- > > Key: RAMPART-70 > URL: https://issues.apache.org/jira/browse/RAMPART-70 > Project: Rampart > Issue Type: Bug > Components: rampart-core > Affects Versions: 1.3 > Environment: Windows XP SP2, Java 1.6.0, Tomcat 6.0 > Reporter: Jorge Fern=C3=A1ndez > Fix For: 1.6.1 > > Attachments: JIRA70.rar, WebServiceTest.rar > > > I'm having some problems with rampart 1.3. Please, read 3 cases: > First problem is fixed when changing phase order on axis2.xml in Axis2 1= .3. This was the first problem: > I'm using basic configuration on client as with 1.2 and policy on server = side. Rampart is engaged in both. In server is engaged in service scope and= in client at global scope. The exception was: > org.apache.axis2.AxisFault: The org.apache.axis2.AxisFault: A required > header representing a Message Addressing Property is not present > at org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressi= ngFault(AddressingFaultsHelper.java:355) > at > org.apache.axis2.addressing.AddressingFaultsHelper.triggerMessageAddressi= ngRequiredFault(AddressingFaultsHelper.java:281) > at org.apache.axis2.handlers.addressing.AddressingValidationHandler.c= heckMessageIDHeader(AddressingValidationHandler.java:168) > at org.apache.axis2.handlers.addressing.AddressingValidationHandler.i= nvoke(AddressingValidationHandler.java:56) > at org.apache.axis2.engine.Phase.invoke(Phase.java:292) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) > at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPost= Request(HTTPTransportUtils.java:275) > at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.jav= a:120) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A= pplicationFilterChain.java:290) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati= onFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp= erValve.java:230) > at org.apache.catalina.core.StandardContextValve.invoke(StandardConte= xtValve.java:175) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv= e.java:128) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv= e.java:104) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine= Valve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.= java:261) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.j= ava:844) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pr= ocess(Http11Protocol.java:581) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java= :447) > at java.lang.Thread.run(Unknown Source) > header is required when WS-Addressing is in use but was not sent. > at org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invo= ke(AddressingInFaultHandler.java:114) > at org.apache.axis2.engine.Phase.invoke(Phase.java:292) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) > at org.apache.axis2.description.OutInAxisOperationClient.handleRespon= se(OutInAxisOperation.java:336) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAx= isOperation.java:389) > at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(= OutInAxisOperation.java:211) > at org.apache.axis2.client.OperationClient.execute(OperationClient.ja= va:163) > at client.Medici_LinkStub.validate(Medici_LinkStub.java:744) > at client.ClientUtilities.validateTest(ClientUtilities.java:61) > at client.Client.main(Client.java:34) > Second, I removed configuration from client but keeping rampart engaged. = In server side the configuration is the same: it expects that some elements= in the message would come encrypted or signed. I receive this exception fr= om the service: > org.apache.axis2.AxisFault: java.lang.NullPointerException > at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Util= s.java:486) > at org.apache.axis2.description.OutInAxisOperationClient.handleRespon= se(OutInAxisOperation.java:343) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAx= isOperation.java:389) > at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(= OutInAxisOperation.java:211) > at org.apache.axis2.client.OperationClient.execute(OperationClient.ja= va:163) > at client.Medici_LinkStub.validate(Medici_LinkStub.java:744) > at client.ClientUtilities.validateTest(ClientUtilities.java:61) > at client.Client.main(Client.java:34) > Third, I disengage rampart in server side and the first operation I invok= e works ok but for subsequent invocations. (I'm using soapsession). I see a= n exception ocurred in the client: > org.apache.axis2.AxisFault: Error in extracting message properties > at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java= :68) > at org.apache.axis2.engine.Phase.invoke(Phase.java:292) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:377) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAx= isOperation.java:374) > at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(= OutInAxisOperation.java:211) > at org.apache.axis2.client.OperationClient.execute(OperationClient.ja= va:163) > at client.Medici_LinkStub.getDetailedMonitoringStages(Medici_LinkStub= .java:4413) > at client.ClientUtilities.getDetailedMonitoringStagesTest(ClientUtili= ties.java:356) > at client.Client.main(Client.java:60) > Caused by: org.apache.rampart.RampartException: Error in extracting > message properties > at org.apache.rampart.RampartMessageData.(RampartMessageData.ja= va:293) > at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:58) > at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java= :62) > ... 9 more > Caused by: org.apache.ws.security.WSSecurityException: Error in > converting SOAP Envelope to Document; nested exception is:=20 > java.lang.ClassCastException: > org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache= .axiom.soap.SOAPHeaderBlock > at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis= 2Util.java:157) > at org.apache.rampart.RampartMessageData.(RampartMessageData.ja= va:150) > ... 11 more > Caused by: java.lang.ClassCastException: > org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to org.apache= .axiom.soap.SOAPHeaderBlock > at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis= 2Util.java:107) > ... 12 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org