You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Ruwan Linton (JIRA)" <ji...@apache.org> on 2007/10/17 05:54:51 UTC

[jira] Resolved: (SYNAPSE-153) NullpointerException thrown when invoking a configuration with a Cache mediator with WS-Security

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

Ruwan Linton resolved SYNAPSE-153.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.QA.B.2
         Assignee: Ruwan Linton

I have fixed the issue, there was an error in the Digest generation.

But I think we need to disable caching for the secure messages?????

> NullpointerException thrown when invoking a configuration with a Cache mediator with WS-Security
> ------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-153
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-153
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 1.1.QA.B.1
>         Environment: Ubuntu 7.04, JDK1.5.0_12
>            Reporter: Evanthika Amarasiri
>            Assignee: Ruwan Linton
>             Fix For: 1.1.QA.B.2
>
>
> Tried to send a secured request using a Proxy service as follows and received a NullpointerException 
> Request sent
> ===========
> ant stockquote -Dtrpurl=http://localhost:8080/soap/StockQuoteProxy1 -Dpolicy=./../../repository/conf/sample/resources/policy/client_policy_3.xml
> Configuration
> ===========
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>  
>     <localEntry key="sec_policy" src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
>     
>     <proxy name="StockQuoteProxy1">
>         <target>
>             <inSequence>
> 				   <cache timeout="30000" scope="per-host" hashGenerator="org.wso2.caching.digest.DOMHASHGenerator">
> 					   <implementation type="memory" maxSize="1"/>
> 				   </cache>
> 					<send>
> 						<endpoint name="secure">
> 							<address uri="http://10.100.1.228:9001/soap/SecureStockQuoteService">
> 								<enableSec policy="sec_policy"/>
> 								<enableAddressing/>
> 							</address>
> 						</endpoint>
> 					</send>
>             </inSequence>
>             <outSequence>
> 					<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/>
>             </outSequence>
>         </target>
>         <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
>     </proxy>
> </definitions>
> The NullpointerException thrown
> ==========================
> 2007-10-16 15:12:41,648 [127.0.1.1-testc-ubuntu] [HttpServerWorker-3] DEBUG CacheMediator Starting the request message cache lookup
> Exception in thread "HttpServerWorker-3" java.lang.NullPointerException
>         at org.wso2.caching.digest.DOMHASHGenerator.getExpandedName(DOMHASHGenerator.java:253)
>         at org.wso2.caching.digest.DOMHASHGenerator.getAttributesWithoutNS(DOMHASHGenerator.java:269)
>         at org.wso2.caching.digest.DOMHASHGenerator.getDigest(DOMHASHGenerator.java:121)
>         at org.wso2.caching.digest.DOMHASHGenerator.getDigest(DOMHASHGenerator.java:95)
>         at org.wso2.caching.digest.DOMHASHGenerator.getDigest(DOMHASHGenerator.java:138)
>         at org.wso2.caching.digest.DOMHASHGenerator.getDigest(DOMHASHGenerator.java:95)
>         at org.wso2.caching.digest.DOMHASHGenerator.getDigest(DOMHASHGenerator.java:44)
>         at org.apache.synapse.mediators.builtin.CacheMediator.mediate(CacheMediator.java:153)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:121)
>         at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:140)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:211)
>         at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:175)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         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