You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Asankha C. Perera (JIRA)" <ji...@apache.org> on 2007/03/21 13:30:32 UTC

[jira] Resolved: (SYNAPSE-77) Exception occurred when executing a sequence where security is enabled

     [ https://issues.apache.org/jira/browse/SYNAPSE-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asankha C. Perera resolved SYNAPSE-77.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0-RC1-B2

Fixed, updated to latest rampart and axis2 levels

> 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
>             Fix For: 1.0-RC1-B2
>
>
> 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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org