Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 80942 invoked from network); 21 Jul 2006 06:22:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jul 2006 06:22:00 -0000 Received: (qmail 25843 invoked by uid 500); 21 Jul 2006 06:21:50 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 25407 invoked by uid 500); 21 Jul 2006 06:21:48 -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 25396 invoked by uid 99); 21 Jul 2006 06:21:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2006 23:21:48 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MAILTO_TO_SPAM_ADDR,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of wan1551@hotmail.com designates 65.54.246.146 as permitted sender) Received: from [65.54.246.146] (HELO bay0-omc2-s10.bay0.hotmail.com) (65.54.246.146) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2006 23:21:46 -0700 Received: from hotmail.com ([65.54.169.25]) by bay0-omc2-s10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Jul 2006 23:21:25 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 20 Jul 2006 23:21:25 -0700 Message-ID: Received: from 65.54.169.200 by by114fd.bay114.hotmail.msn.com with HTTP; Fri, 21 Jul 2006 06:21:24 GMT X-Originating-IP: [139.30.241.28] X-Originating-Email: [wan1551@hotmail.com] X-Sender: wan1551@hotmail.com In-Reply-To: <559c463d0607200516u221a29cai4a1931cb4d1f7d17@mail.gmail.com> From: "Wan Kaveevivitchai" To: axis-user@ws.apache.org Subject: Re: [Axis2 v1.0] send file with security Date: Fri, 21 Jul 2006 06:21:24 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 21 Jul 2006 06:21:25.0318 (UTC) FILETIME=[E4A76660:01C6AC8D] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Ruchith, The result after i have done changing the enableMTOM parameters as you've suggested. from TCPMON server: HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: JSESSIONID=747hh2970j5g6;path=/axis2 Content-Type: text/xml; charset=UTF-8 Transfer-Encoding: chunked Server: Jetty(6.0.x) 2BE http://www.w3.org/2005/08/addressing/anonymoushttp://www.w3.org/2005/08/addressing/anonymousurn:uuid:7C4E23A809E753F67F11534625977653http://www.w3.org/2005/08/addressing/faulturn:uuid:ABD64AE313FF73B9DF11534625909471soapenv:Client 22 unknown 77A org.apache.axis2.AxisFault at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144) at javax.servlet.http.HttpServlet.service(HttpServlet.java:767) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119) at org.mortbay.jetty.Server.handle(Server.java:245) at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365) at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296) at org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435) 32 0 from TCPMON client seems to be ok. Server response on the shell: 21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify INFO: Verification successful for URI "#id-22377952" 21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify INFO: Verification successful for URI "#id-8499707" 21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify INFO: Verification successful for URI "#id-13359904" 21.07.2006 08:16:37 org.apache.xml.security.signature.Reference verify INFO: Verification successful for URI "#Timestamp-4300037" before creating OMText Client response: 21.07.2006 08:16:28 org.apache.axis2.deployment.DeploymentEngine prepareRepository INFO: no services directory found , new one created 21.07.2006 08:16:28 org.apache.axis2.deployment.DeploymentEngine doDeploy INFO: Deploying module : addressing 21.07.2006 08:16:30 org.apache.axis2.deployment.DeploymentEngine doDeploy INFO: Deploying module : rampart 16145 org.apache.axis2.AxisFault: unknown at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472) at security.SecureClient.main(SecureClient.java:68) Caused by: java.lang.Exception: org.apache.axis2.AxisFault at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:480) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144) at javax.servlet.http.HttpServlet.service(HttpServlet.java:767) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119) at org.mortbay.jetty.Server.handle(Server.java:245) at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365) at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296) at org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435) at org.apache.axis2.AxisFault.(AxisFault.java:159) ... 4 more Is it about the receiver now? because i have change the receiver from RAWXMLInOutMessageReceiver to RPCMessageReceiver in order to see the wsdl file? Thank you for help, Wan >From: "Ruchith Fernando" >Reply-To: axis-user@ws.apache.org >To: axis-user@ws.apache.org >Subject: Re: [Axis2 v1.0] send file with security >Date: Thu, 20 Jul 2006 17:46:18 +0530 > >Hi Wan, > >Can you also change >true >to >false > >in both axis2.xml s (client and server) and try again. > >And if this fails please send what you see in tcpmon and the exception. > >Thanks, >Ruchith > >On 7/20/06, Wan Kaveevivitchai wrote: >>Thank you Ruchith, >> >> I have made change as your advice. However, i still got the same >>error... >> >> Any other possibility? >> >> Best regards, >> >> Wan >> >> >> >From: "Ruchith Fernando" >> >Reply-To: axis-user@ws.apache.org >> >To: axis-user@ws.apache.org >> >Subject: Re: [Axis2 v1.0] send file with security >> >Date: Thu, 20 Jul 2006 16:09:23 +0530 >> > >> >Yes from your services.xml and the client's axis2.xml >> > >> >Thanks, >> >Ruchith >> > >> >On 7/20/06, Wan Kaveevivitchai wrote: >> >>Dear Ruchith, >> >> >> >> you means >> >>remove : >> >>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue >> >> >> >> from my services.xml right? or other place? >> >> >> >> Wan >> >> >> >> > >> >> >Hi Wan, >> >> > >> >> >Please remove : >> >> >> >//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue >> >> > >> >> >entry from your rampart configuration parameters and try again. >> >> > >> >> >Thanks, >> >> >Ruchith >> >> > >> >> >On 7/20/06, Wan Kaveevivitchai wrote: >> >> >>Dear All, >> >> >> >> >> >> I have been trying to combine the test about sending file >>and >> >> >>securing message. >> >> >> My environment is Axis2 v1.0, nightly build released 4 June >>06 >> >>on >> >> >>the >> >> >>Jetty Servlet. >> >> >> >> >> >> From other individual test such as sending text file, and >> >>security >> >> >>sample had no problem on this, however with the combination one i >>got >> >>the >> >> >>following error. >> >> >> >> >> >> Client code: >> >> >> >> >> >>/* >> >> >>* Created on 19.07.2006 >> >> >>* >> >> >>* TODO To change the template for this generated file go to >> >> >>* Window - Preferences - Java - Code Style - Code Templates >> >> >>*/ >> >> >>package security; >> >> >> >> >> >>/** >> >> >>* @author alice3 >> >> >>* >> >> >>* TODO To change the template for this generated type comment go to >> >> >>* Window - Preferences - Java - Code Style - Code Templates >> >> >>*/ >> >> >> >> >> >>import org.apache.axiom.om.OMAbstractFactory; >> >> >>import org.apache.axiom.om.OMElement; >> >> >>import org.apache.axiom.om.OMFactory; >> >> >>import org.apache.axiom.om.OMNamespace; >> >> >>import org.apache.axiom.om.OMText; >> >> >>import org.apache.axis2.AxisFault; >> >> >>import org.apache.axis2.Constants; >> >> >>import org.apache.axis2.addressing.EndpointReference; >> >> >>import org.apache.axis2.client.Options; >> >> >>import org.apache.axis2.client.ServiceClient; >> >> >>import org.apache.axis2.context.ConfigurationContext; >> >> >>import org.apache.axis2.context.ConfigurationContextFactory; >> >> >> >> >> >>//import org.apache.axis2.soapmonitor.*; >> >> >> >> >> >>import javax.activation.DataHandler; >> >> >>import javax.activation.FileDataSource; >> >> >>import javax.xml.namespace.QName; >> >> >>import javax.xml.stream.XMLOutputFactory; >> >> >>import javax.xml.stream.XMLStreamException; >> >> >> >> >> >>import java.io.File; >> >> >>import java.io.StringWriter; >> >> >> >> >> >> >> >> >>public class SecureClient { >> >> >> >> >> >> private File inputFile = null; >> >> >> >> >> >> private QName operationName = new QName("fileSecurity"); >> >> >> >> >> >> public static void main(String[] args) { >> >> >> >> >> >> try { >> >> >> >> >> >> // Get the repository location from the args >> >> >> String repo = args[0]; >> >> >> String port = args[1]; >> >> >> >> >> >> OMElement payload = >> >> >>getEchoElement("/users/alice3/myDoc/Jettty6-Axis2.txt"); >> >> >> ConfigurationContext configContext = >> >> >> >>ConfigurationContextFactory.createConfigurationContextFromFileSystem(repo, >> >> >>null); >> >> >> ServiceClient serviceClient = new >> >> >>ServiceClient(configContext, >> >> >>null); >> >> >> Options options = new Options(); >> >> >> options.setTo(new EndpointReference("http://127.0.0.1:" >>+ >> >> >>port + >> >> >>"/axis2/services/FileSecurity")); >> >> >> //options.setTo(new >> >> >> >>EndpointReference("http://localhost:8080/axis2_new/services/SecureService")); >> >> >> >>options.setTransportInProtocol(Constants.TRANSPORT_HTTP); >> >> >> >>options.setProperty(Constants.Configuration.ENABLE_MTOM, >> >> >>Constants.VALUE_TRUE); >> >> >> options.setAction("urn:fileSecurity"); >> >> >> serviceClient.setOptions(options); >> >> >> >> >> >> //Blocking invocation >> >> >> OMElement result = serviceClient.sendReceive(payload); >> >> >> >> >> >> StringWriter writer = new StringWriter(); >> >> >> result.serialize(XMLOutputFactory.newInstance() >> >> >> .createXMLStreamWriter(writer)); >> >> >> writer.flush(); >> >> >> >> >> >> >> >> >> >> >> >> //System.out.println("Response: " + writer.toString()); >> >> >> >> >> >> System.out.println("SecureService Invocation successful >> >> >>:-)"); >> >> >> } catch (AxisFault axisFault) { >> >> >> axisFault.printStackTrace(); >> >> >> } catch (XMLStreamException e) { >> >> >> e.printStackTrace(); >> >> >> } >> >> >> } >> >> >> >> >> >> >> >> >> private static OMElement getEchoElement(String fileName) { >> >> >> >> >> >> >> >> >> DataHandler dh; >> >> >> >> >> >> OMFactory fac = OMAbstractFactory.getOMFactory(); >> >> >> OMNamespace omNs = >> >> >>fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "example1"); >> >> >> >> >> >> OMElement data = fac.createOMElement("fileSecurity", omNs); >> >> >> OMElement input = fac.createOMElement("file", omNs); >> >> >> OMElement pack = fac.createOMElement("pack", omNs); >> >> >> >> >> >> FileDataSource f1 = new FileDataSource(fileName); >> >> >> dh = new DataHandler(f1); >> >> >> >> >> >> OMElement filename = fac.createOMElement("fileName", omNs); >> >> >> // OMText textName = fac.createOMText(filename, >>"myFile.txt"); >> >> >> >> >> >> OMText textData = fac.createOMText(dh, true); >> >> >> >> >> >> input.addChild(textData); >> >> >> >> >> >> pack.addChild(filename); >> >> >> pack.addChild(input); >> >> >> data.addChild(pack); >> >> >> >> >> >> //System.out.println(data); >> >> >> >> >> >> return data; >> >> >> } >> >> >>} >> >> >> >> >> >> server code: >> >> >> >> >> >>public class fileS { >> >> >> >> >> >> public OMElement fileSecurity(OMElement element) throws >> >>Exception >> >> >> { >> >> >> //System.out.println(element); >> >> >> >> >> >> element.build(); >> >> >> element.detach(); >> >> >> >> >> >> Iterator children = element.getChildElements(); >> >> >> >> >> >> OMElement name = (OMElement)children.next(); >> >> >>//get name of the file, >> >> >>first element of element >> >> >> OMElement content = (OMElement)children.next(); >> >>//get >> >> >>text that >> >> >>contains the file, second element >> >> >> >> >> >> System.out.println("before creating OMText"); >> >> >> OMText fnode = (OMText)content.getFirstOMChild(); >> >> >> System.out.println("after creating OMText"); >> >> >>// fnode.setOptimize(true); >> >> >> //String fname = name.getText(); >> >> >> >> >> >> //create data handler to extract the data handler >>of >> >>the >> >> >>OMText >> >> >> DataHandler dfile; >> >> >> System.out.println("before getDataHandler from >> >>OMText"); >> >> >> >> >> >> //String cid = fnode.getContentID(); >> >> >> //System.out.println(cid); >> >> >> >> >> >> dfile = (DataHandler)fnode.getDataHandler(); >> >> >>//getDataHandler() and >> >> >>broken pipe >> >> >> >> >> >> System.out.println("after create datahandler for >> >> >>OMText"); >> >> >> >> >> >> FileOutputStream outfile = new >>FileOutputStream(new >> >> >>File("/users/alice3/myFile")); >> >> >> System.out.println("after create a >>fileoutputstream"); >> >> >> dfile.writeTo(outfile); >> >> >> System.out.println("after writeTo()"); >> >> >> >> >> >> //System.out.println("Successful Operation!"); >> >> >> >> >> >> OMFactory fac = OMAbstractFactory.getOMFactory(); >> >> >> OMNamespace ns = >>fac.createOMNamespace("urn://fakenamespace", >> >> >>"ns"); >> >> >> OMElement ele = fac.createOMElement("response", ns); >> >> >> ele.setText("Data Saved"); >> >> >> return ele; >> >> >> >> >> >> } >> >> >> >> >> >>} >> >> >> >> >> >> services.xml: >> >> >> >> >> >> >> >> >> >> >> >> This is my service for sending file over >>server-client >> >> >>with security >> >> >>setting >> >> >> >> >> >> > >> >> >security.fileS >> >> >> >> >> >> > >> >>class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" /> >> >> >> >> >> >> >> >> >> >> >> >> Timestamp Signature Encrypt >> >> >> >> >>security.PWCallback >> >> >> sec.properties >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Timestamp Signature Encrypt >> >> >> bob >> >> >> >> >>security.PWCallback >> >> >> sec.properties >> >> >> >> >>SKIKeyIdentifier >> >> >> >> >>SKIKeyIdentifier >> >> >> alice >> >> >> >> >> >> >>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> and the .aar package is constucted as follow >> >> >> >> >> >> security/ >> >> >> security/PWCallback.class >> >> >> security/fileS.class >> >> >> META-INF/ >> >> >> META-INF/services.xml >> >> >> sec.jks >> >> >> sec.properties >> >> >> >> >> >> and the result i get from the TCPMON is that at the server >>side >> >> >> >> >> >>HTTP/1.1 500 INTERNAL%5FSERVER%5FERROR >> >> >>Expires: Thu, 01 Jan 1970 00:00:00 GMT >> >> >>Set-Cookie: JSESSIONID=2217shn5dgknb;path=/axis2 >> >> >>Content-Type: multipart/related; >> >> >>boundary=MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031; >> >> >>type="application/xop+xml"; >> >> >>start="<0.urn:uuid:18DA9EF1316848D89311533845942032@apache.org>"; >> >> >>start-info="text/xml"; charset=UTF-8 >> >> >>Transfer-Encoding: chunked >> >> >>Server: Jetty(6.0.x) >> >> >> >> >> >>2DA >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031 >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml"; >> >> >>content-transfer-encoding:binary >> >> >>content-id:<0.urn:uuid:18DA9EF1316848D89311533845942032@apache.org> >> >> >> >> >> >>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >> >> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymousurn:uuid:EE59E38396186D1F1211533845941701http://www.w3.org/2005/08/addressing/faultsoapenv:Client >> >> >>35B >> >> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031 >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml"; >> >> >>content-transfer-encoding:binary >> >> >>content-id:<0.urn:uuid:18DA9EF1316848D89311533845942032@apache.org> >> >> >> >> >> >>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >> >> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymousurn:uuid:EE59E38396186D1F1211533845941701http://www.w3.org/2005/08/addressing/faultsoapenv:ClientWSDoAllReceiver: >> >> >>security processing failed >> >> >>1383 >> >> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031 >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml"; >> >> >>content-transfer-encoding:binary >> >> >>content-id:<0.urn:uuid:18DA9EF1316848D89311533845942032@apache.org> >> >> >> >> >> >>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >> >> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymousurn:uuid:EE59E38396186D1F1211533845941701http://www.w3.org/2005/08/addressing/faultsoapenv:ClientWSDoAllReceiver: >> >> >>security processing >> >> >>failedorg.apache.axis2.AxisFault: >> >> >>WSDoAllReceiver: security processing failed; nested exception is: >> >> >> org.apache.ws.security.WSSecurityException: Cannot >> >> >>encrypt/decrypt data; >> >> >>nested exception is: >> >> >> org.apache.xml.security.encryption.XMLEncryptionException: >> >>Error >> >> >>while >> >> >>decoding >> >> >>Original Exception was >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error >>while >> >> >>decoding >> >> >> at >> >> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183) >> >> >> at >> >> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) >> >> >> at org.apache.axis2.engine.Phase.invoke(Phase.java:380) >> >> >> at >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499) >> >> >> at >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469) >> >> >> at >> >> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) >> >> >> at >> >> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144) >> >> >> at >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767) >> >> >> at >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860) >> >> >> at >> >> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423) >> >> >> at >> >> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355) >> >> >> at >> >> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219) >> >> >> at >> >> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542) >> >> >> at >> >> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145) >> >> >> at >> >> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126) >> >> >> at >> >> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119) >> >> >> at org.mortbay.jetty.Server.handle(Server.java:245) >> >> >> at >> >> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365) >> >> >> at >> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38) >> >> >> at >> >> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623) >> >> >> at >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690) >> >> >> at >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196) >> >> >> at >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296) >> >> >> at >> >> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740) >> >> >> at >> >> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435) >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot >> >> >>encrypt/decrypt data; nested exception is: >> >> >> org.apache.xml.security.encryption.XMLEncryptionException: >> >>Error >> >> >>while >> >> >>decoding >> >> >>Original Exception was >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error >>while >> >> >>decoding >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404) >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328) >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84) >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76) >> >> >> at >> >> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269) >> >> >> at >> >> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191) >> >> >> at >> >> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180) >> >> >> ... 24 more >> >> >>Caused by: >>org.apache.xml.security.encryption.XMLEncryptionException: >> >> >>Error >> >> >>while decoding >> >> >>Original Exception was >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error >>while >> >> >>decoding >> >> >> at >> >> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown >> >> >>Source) >> >> >> at >> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown >> >> >>Source) >> >> >> at >> >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown >> >> >>Source) >> >> >> at >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown >> >> >>Source) >> >> >> at >> >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown >> >> >>Source) >> >> >> at >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown >> >> >>Source) >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402) >> >> >> ... 30 more >> >> >> >> >> >>13B5 >> >> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031----MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031 >> >> >>content-type:application/xop+xml; charset=UTF-8; type="text/xml"; >> >> >>content-transfer-encoding:binary >> >> >>content-id:<0.urn:uuid:18DA9EF1316848D89311533845942032@apache.org> >> >> >> >> >> >>> >> >>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >> >> >> >>xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymousurn:uuid:EE59E38396186D1F1211533845941701http://www.w3.org/2005/08/addressing/faultsoapenv:ClientWSDoAllReceiver: >> >> >>security processing >> >> >>failedorg.apache.axis2.AxisFault: >> >> >>WSDoAllReceiver: security processing failed; nested exception is: >> >> >> org.apache.ws.security.WSSecurityException: Cannot >> >> >>encrypt/decrypt data; >> >> >>nested exception is: >> >> >> org.apache.xml.security.encryption.XMLEncryptionException: >> >>Error >> >> >>while >> >> >>decoding >> >> >>Original Exception was >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error >>while >> >> >>decoding >> >> >> at >> >> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:183) >> >> >> at >> >> >> >>org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) >> >> >> at org.apache.axis2.engine.Phase.invoke(Phase.java:380) >> >> >> at >> >>org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:499) >> >> >> at >> >> >>org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:469) >> >> >> at >> >> >> >>org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) >> >> >> at >> >> >> >>org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144) >> >> >> at >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:767) >> >> >> at >> >>javax.servlet.http.HttpServlet.service(HttpServlet.java:860) >> >> >> at >> >> >> >>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423) >> >> >> at >> >> >> >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355) >> >> >> at >> >> >> >>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219) >> >> >> at >> >> >> >>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542) >> >> >> at >> >> >> >>org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145) >> >> >> at >> >> >> >>org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126) >> >> >> at >> >> >> >>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119) >> >> >> at org.mortbay.jetty.Server.handle(Server.java:245) >> >> >> at >> >> >> >>org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365) >> >> >> at >> >> >>org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38) >> >> >> at >> >> >> >>org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623) >> >> >> at >>org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690) >> >> >> at >> >> >>org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:196) >> >> >> at >> >> >>org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296) >> >> >> at >> >> >> >>org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740) >> >> >> at >> >> >> >>org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435) >> >> >>Caused by: org.apache.ws.security.WSSecurityException: Cannot >> >> >>encrypt/decrypt data; nested exception is: >> >> >> org.apache.xml.security.encryption.XMLEncryptionException: >> >>Error >> >> >>while >> >> >>decoding >> >> >>Original Exception was >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error >>while >> >> >>decoding >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:404) >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328) >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84) >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76) >> >> >> at >> >> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269) >> >> >> at >> >> >> >>org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191) >> >> >> at >> >> >> >>org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180) >> >> >> ... 24 more >> >> >>Caused by: >>org.apache.xml.security.encryption.XMLEncryptionException: >> >> >>Error >> >> >>while decoding >> >> >>Original Exception was >> >> >>org.apache.xml.security.exceptions.Base64DecodingException: Error >>while >> >> >>decoding >> >> >> at >> >> >> >>org.apache.xml.security.encryption.XMLCipherInput.getDecryptBytes(Unknown >> >> >>Source) >> >> >> at >> >> >>org.apache.xml.security.encryption.XMLCipherInput.getBytes(Unknown >> >> >>Source) >> >> >> at >> >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown >> >> >>Source) >> >> >> at >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown >> >> >>Source) >> >> >> at >> >> >> >>org.apache.xml.security.encryption.XMLCipher.decryptElementContent(Unknown >> >> >>Source) >> >> >> at >> >>org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown >> >> >>Source) >> >> >> at >> >> >> >>org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:402) >> >> >> ... 30 more >> >> >> >> >> >> >>3B >> >> >> >> >> >>--MIMEBoundaryurn_uuid_18DA9EF1316848D89311533845942031-- >> >> >>0 >> >> >> >> >> >> The client side message seems to be ok, with all the >> >>encypted >> >> >>document. >> >> >> >> >> >> Is there any idea what can cause the fault? Greatly >> >>appreciate, >> >> >> >> >> >> Wan >> >> >> >> >> >> >> >> >> >> >> >> >>--------------------------------------------------------------------- >> >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> >> >>For additional commands, e-mail: axis-user-help@ws.apache.org >> >> >> >> >> >> >> >> > >> >> > >> >> >-- >> >> >www.ruchith.org >> >> > >> >> >--------------------------------------------------------------------- >> >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> >> >For additional commands, e-mail: axis-user-help@ws.apache.org >> >> > >> >> >> >> >> >> >> >>--------------------------------------------------------------------- >> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> >>For additional commands, e-mail: axis-user-help@ws.apache.org >> >> >> >> >> > >> > >> >-- >> >www.ruchith.org >> > >> >--------------------------------------------------------------------- >> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> >For additional commands, e-mail: axis-user-help@ws.apache.org >> > >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >>For additional commands, e-mail: axis-user-help@ws.apache.org >> >> > > >-- >www.ruchith.org > >--------------------------------------------------------------------- >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >For additional commands, e-mail: axis-user-help@ws.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org