Exception occurred when executing a sequence where security is enabled
----------------------------------------------------------------------

                 Key: SYNAPSE-77
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-77
             Project: Synapse
          Issue Type: Bug
    Affects Versions: 1.0-RC1-B1
         Environment: Windows XP, JDK 1.5.0_06
            Reporter: Evanthika Amarasiri


I tried enabling security by assigning a security policy to the sequence. Below 
is the sequence which is used.

<definitions xmlns="http://ws.apache.org/ns/synapse";>
<localEntry key="sec_policy" 
src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
<endpoint name="Subtraction">
        <address 
uri="http://localhost:9000/axis2/services/SecureStockQuoteService3";>
         <enableSec policy="sec_policy"/>
          <enableAddressing/>
        </address>
</endpoint>
<in>
        <header name="To" 
value="http://localhost:9000/axis2/services/SecureStockQuoteService3"/>
      <send>
                <endpoint key="Subtraction"/>
      </send>
</in>
<out>
        <header name="wsse:Security" action="remove" 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
        <send/>
</out>
</definitions>

When the request is sent through the client application, got the following 
error in the Synapse console.

Exception in thread "HttpServerWorker-1" java.lang.NullPointerException
        at 
org.apache.rampart.RampartMessageData.getServicePolicyKey(RampartMessageData.java:583)
        at 
org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:168)
        at org.apache.rampart.RampartEngine.process(RampartEngine.java:38)
        at 
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:69)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:280)
        at 
org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:184)
        at 
org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:156)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:595)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to