Which version of Rampart are you using? I'm trying to figure out the
issue by checking the line number information available in the stack trace.

Thanks,
Ruchith

shams jawaid wrote:
> Hi,
> 
> i am trying to run rampart sample 07, but when i use tcp mon to see the
> messages, i see the request - encrypted and signed, but at the
> response..there is a null pointed exception..
> here is the output from tcp mon, if anyone can give advice, please do iv
> been stuck on rampart for very long!
> 
> 
> POST /axis2/services/sample07 HTTP/1.1
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: "urn:echo"
> User-Agent: Axis2
> Host: 127.0.0.1:9080
> Transfer-Encoding: chunked
> 
> f9c
> <?xml version='1.0' encoding='UTF-8'?>
>   <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#";>
>      <soapenv:Header>
>         <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> soapenv:mustUnderstand="1">
>            <wsse:BinarySecurityToken
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
> wsu:Id="CertId-3468159">MIIC7DCCAlWgAwIBAgIBATANBgkqhkiG9w0BAQQFADBNMQswCQYDVQQGEwJMSzEQMA4GA1UECBMHV2VzdGVybjEQMA4GA1UEBxMHQ29sb21ibzENMAsGA1UEChMEV1NPMjELMAkGA1UEAxMCQ0EwHhcNMDYwNzIxMTAwOTIxWhcNMDcwNzIxMTAwOTIxWjBOMQswCQYDVQQGEwJMSzEQMA4GA1UECBMHV2VzdGVybjENMAsGA1UEChMEV1NPMjENMAsGA1UECxMEV1NPMjEPMA0GA1UEAxMGQ2xpZW50MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLZbE6nuAkO6f4xEAmjwkbt83/kLZOC09h8XIzTpNgowkSE7fEffmZ55auT4kr+ZlQWPntN6yUL3UdjCjswzgb6YxCYXAN+AIwdEDfHiY2LEhWJIUi4wxvELEBohUOtvFD6U/Wb3bp0inHW9kjueqvTQPvY/E+DxWJtdcAAPbIKQIDAQABo4HaMIHXMAkGA1UdEwQCMAAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2VuZXJhdGVkIENlcnRpZmljYXRlMB0GA1UdDgQWBBQxLMCTSZb+3pG0f+eXvVT8HWn7UDB9BgNVHSMEdjB0gBTqjpU/ODKOIhKC4vphl14m26jJh6FRpE8wTTELMAkGA1UEBhMCTEsxEDAOBgNVBAgTB1dlc3Rlcm4xEDAOBgNVBAcTB0NvbG9tYm8xDTALBgNVBAoTBFdTTzIxCzAJBgNVBAMTAkNBggkAo5RPqifQLL0wDQYJKoZIhvcNAQEEBQADgYEAdqTpO79RlL+e50rmK+tcEhB/SJw4cwXCtHWkloLdrIcd
> 
> Rxl6uDEZBGacxyQtBeLbgTp7jCTKLPuhJ7Hhguyp2ggr26a/Prt32zsu5XTUVIQMrZLJ2CemA0sOS8UJ7KSvG1ksE38whcFJnaGMbGdP5H2hzDpgQ1DAN38D/eQr3dI=</wsse:BinarySecurityToken>
> 
>            <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#";
> Id="Signature-33320514">
>               <ds:SignedInfo>
>                  <ds:CanonicalizationMethod
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"; />
>                  <ds:SignatureMethod
> Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"; />
>                  <ds:Reference URI="#id-18306082">
>                     <ds:Transforms>
>                        <ds:Transform
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"; />
>                     </ds:Transforms>
>                     <ds:DigestMethod
> Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"; />
>                    
> <ds:DigestValue>U2NGrICzLf80VD5ZY3ufjFaOcEo=</ds:DigestValue>
>                  </ds:Reference>
>               </ds:SignedInfo>
>              
> <ds:SignatureValue>tcOwjLh18L+UITZdA6DwEd65ckJ2k4QMRbhzY76tKgUqdWOuhmKzAauNZ7cq55KDrPRf0F9+1rHpSHbJ19w7zcs3H5ceWwBnZhNIWhqqBKc4P7pU8YBo4goLjyAuooM9vZqFOspmegj4F3qPuhJ1+JR4gYv+4mGK4k2HkRxt8j8=</ds:SignatureValue>
> 
>               <ds:KeyInfo Id="KeyId-27296482">
>                  <wsse:SecurityTokenReference
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> wsu:Id="STRId-15779934">
>                     <wsse:Reference URI="#CertId-3468159"
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
> />
>                  </wsse:SecurityTokenReference>
>               </ds:KeyInfo>
>            </ds:Signature>
>            <xenc:EncryptedKey Id="EncKeyId-26752749">
>               <xenc:EncryptionMethod
> Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"; />
>               <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#";>
>                  <wsse:SecurityTokenReference>
>                     <wsse:KeyIdentifier
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier";>Aq2jUp6PfWMM7x2mlyPUJ3kA9Dw=</wsse:KeyIdentifier>
> 
>                  </wsse:SecurityTokenReference>
>               </ds:KeyInfo>
>               <xenc:CipherData>
>                 
> <xenc:CipherValue>CmvnM5ZQ+w0RT0KU44avpyCMAJFW2F9sVtZYmvoorrGHZg1gKTB6BctkPCbjKj2XfamBA/TGskqrt+pCvTmPjPSJQH5/6nF7ueXWyOcTBgrEPgeagTnqbFtdiRAdsjdMxto9uBFqWbRKMsHm3/0696MjC3OYC8bYibkf8taN7JE=</xenc:CipherValue>
> 
>               </xenc:CipherData>
>               <xenc:ReferenceList>
>                  <xenc:DataReference URI="#EncDataId-18306082" />
>               </xenc:ReferenceList>
>            </xenc:EncryptedKey>
>            <wsu:Timestamp
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> wsu:Id="Timestamp-4877503">
>               <wsu:Created>2007-09-17T14:11:46.562Z</wsu:Created>
>               <wsu:Expires>2007-09-17T14:16:46.562Z</wsu:Exp328ires>
>            </wsu:Timestamp>
>         </wsse:Security>
>      </soapenv:Header>
>      <soapenv:Body
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> wsu:Id="id-18306082">
>         <xenc:EncryptedData Id="EncDataId-18306082"
> Type="http://www.w3.org/2001/04/xmlenc#Content";>
>            <xenc:EncryptionMethod
> Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"; />
>            <xenc:CipherData>
>              
> <xenc:CipherValue>s3ySU/3rQ9XmIvlYxDTDWYAY5sPEvmc1dpQzUdKVKtSPwOULjdqFOnwB1vqut973QD/ROz0jzl+022oHjUfGgpK8cq4TPodGD2d79KX/trJ319uUqvHxVqL08nnoxdSqFJ2qH9gPhyoJ+dJ4v56/+hNDqGhM087Me0j64OzrJI9QVeCvzNKN09y/Aq+pvqGjTvubdFp3jCV493AwfsYPjCptighdmlqm7T/1vTsvV+Xh4O7IzDctYlQhzYMHdnwg0DYmxAaw5bVvOCMCQB/ZK//isH/A8cjNxd+AUrW+BF8lWp6wDYDLQgAttpBT0GuN</xenc:CipherValue>
> 
>            </xenc:CipherData>
>         </xenc:EncryptedData>
>      </soapenv:Body>
>   </soapenv:Envelope>0
> 
> 
> HTTP/1.1 500 Internal Server Error
> Server: Apache-Coyote/1.1
> Content-Type: text/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Mon, 17 Sep 2007 14:11:47 GMT
> Connection: close
> 
> aca
> <?xml version='1.0' encoding='UTF-8'?>
>   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing";
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>      <soapenv:Header>
>        
> <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
>      </soapenv:Header>
>      <soapenv:Body>
>         <soapenv:Fault>
>            <faultcode>soapenv:Client</faultcode>
>            <faultstring>java.lang.NullPointerException</faultstring>
>            <detail>
>               <Exception>org.apache.axis2.AxisFault:
> java.lang.NullPointerException&#xd;    at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:178)&#xd; 
>   
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)&#xd;   
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)&#xd;   
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)&#xd;
>    
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&#xd;
>    
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)&#xd;
>    
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)&#xd;
>    
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)&#xd;
>    
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)&#xd;
>    
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)&#xd;
>    
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)&#xd;
>    
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)&#xd;
>    
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)&#xd;
>    
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)&#xd;
>    
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)&#xd;
>    
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)&#xd;
>    
> at java.lang.Thread.run(Thread.java:619)&#xd;Caused by:
> java.lang.NullPointerException&#xd;    at
> org.apache.rampart.RampartMessageData.&lt;init>(RampartMessageData.java:163)&#xd;
>    
> at
> org.apache.rampart.RampartEngine.process(RampartEngine.java:38)&#xd;   
> at
> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:71)&#xd;
>    
> at org.apache.axis2.engine.Phase.invoke(Phase.java:383)&#xd;    at
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)&#xd;   
> at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131)&#xd;   
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279)&#xd;
>    
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116)&#xd; 
>   
> ... 16 more&#xd;</Exception>
>            </detail>
>         </soapenv:Fault>
>      </soapenv:Body>
>   </soapenv:Envelope>
> 0
> 
> _________________________________________________________________
> Got a favourite clothes shop, bar or restaurant? Share your local
> knowledge  http://www.backofmyhand.com
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to