synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evanthika Amarasiri (JIRA)" <j...@apache.org>
Subject [jira] Closed: (SYNAPSE-153) NullpointerException thrown when invoking a configuration with a Cache mediator with WS-Security
Date Wed, 31 Oct 2007 04:07:50 GMT

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

Evanthika Amarasiri closed SYNAPSE-153.
---------------------------------------


> 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-B1
>         Environment: Ubuntu 7.04, JDK1.5.0_12
>            Reporter: Evanthika Amarasiri
>            Assignee: Ruwan Linton
>             Fix For: 1.1-QA-B2
>
>
> 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


Mime
View raw message