Respected Sir/Madam,
Below is my api :
<?xml version="1.0" encoding="UTF-8"?>
<api context="/cache" name="cacheAPI" xmlns="http://ws.apache.org/ns/synapse
">
<resource methods="POST GET" uri-template="/headerapi/*">
<inSequence>
<log>
<property name="Cache_Flow" value="Inside Cache Flow
............................."/>
</log>
<cache collector="false"
hashGenerator="org.wso2.carbon.mediator.cache.digest.REQUESTHASHGenerator"
id="cache-sample" maxMessageSize="100000000" scope="per-host"
timeout="5000">
<onCacheHit/>
<implementation maxSize="1000" type="memory"/>
</cache>
<log>
<property name="CacheFinder" value="After Cache Finder
******************"/>
</log>
<property name="uri.var.agreementId" scope="default"
type="STRING" value="1392"/>
<call description="">
<endpoint key="AgreementEP1"/>
</call>
<log description="">
<property name="Call_Mediator" value="After Call Mediator
*********************"/>
</log>
<property name="RESPONSE" scope="default" type="STRING"
value="true"/>
<log level="full">
<property name="msg" value="Direct Response"/>
</log>
<cache collector="true" scope="per-host"/>
<respond/>
</inSequence>
<outSequence/>
<faultSequence/>
</resource>
</api>
and my endpoint :
<?xml version="1.0" encoding="UTF-8"?>
<endpoint name="AgreementEP1" xmlns="http://ws.apache.org/ns/synapse">
<http method="get" uri-template="I used my Project rest service url
here so did not mention"/>
</endpoint>
Getting below error :
ERROR - CacheMediator Error setting response envelope from cache :
mediation.cache_key
javax.xml.soap.SOAPException: org.apache.axiom.om.OMException: SOAP message
MUST NOT contain Processing Instructions(PI)
Please find logs attached.
With Regards,
Aditya
[2018-04-04 15:51:06,021] [EI-Core] INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2018-04-04 15:51:06,021+0530]
[2018-04-04 15:51:18,516] [EI-Core] INFO - ApplicationManager Undeploying
Carbon Application : cacheAppCompositeApplication_1.0.0...
[2018-04-04 15:51:18,522] [EI-Core] INFO - EndpointDeployer Endpoint named
'AgreementEP1' has been undeployed
[2018-04-04 15:51:18,523] [EI-Core] INFO - DependencyTracker API : cacheAPI
was removed from the Synapse configuration successfully - [ Deployed From
Artifact Container: cacheAppCompositeApplication ]
[2018-04-04 15:51:18,524] [EI-Core] INFO - APIDeployer API named 'cacheAPI'
has been undeployed
[2018-04-04 15:51:18,530] [EI-Core] INFO - ApplicationManager Successfully
Undeployed Carbon Application : cacheAppCompositeApplication_1.0.0
{super-tenant}
[2018-04-04 15:51:18,530] [EI-Core] INFO - ApplicationManager Deploying Carbon
Application : cacheAppCompositeApplication_1.0.0.car...
[2018-04-04 15:51:18,545] [EI-Core] INFO - DependencyTracker Endpoint :
AgreementEP1 was added to the Synapse configuration successfully - [ Deployed
From Artifact Container: cacheAppCompositeApplication ]
[2018-04-04 15:51:18,545] [EI-Core] INFO - EndpointDeployer Endpoint named
'AgreementEP1' has been deployed from file :
C:\wso2ei-6.1.1\wso2ei-6.1.1\tmp\carbonapps\-1234\1522837278530cacheAppCompositeApplication_1.0.0.car\AgreementEP1_1.0.0\AgreementEP1-1.0.0.xml
[2018-04-04 15:51:18,548] [EI-Core] INFO - API Initializing API: cacheAPI
[2018-04-04 15:51:18,549] [EI-Core] INFO - DependencyTracker API : cacheAPI
was added to the Synapse configuration successfully - [ Deployed From Artifact
Container: cacheAppCompositeApplication ]
[2018-04-04 15:51:18,549] [EI-Core] INFO - APIDeployer API named 'cacheAPI'
has been deployed from file :
C:\wso2ei-6.1.1\wso2ei-6.1.1\tmp\carbonapps\-1234\1522837278530cacheAppCompositeApplication_1.0.0.car\cacheAPI_1.0.0\cacheAPI-1.0.0.xml
[2018-04-04 15:51:18,549] [EI-Core] INFO - ApplicationManager Successfully
Deployed Carbon Application : cacheAppCompositeApplication_1.0.0 {super-tenant}
[2018-04-04 15:51:32,966] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "GET /cache/headerapi/ HTTP/1.1[\r][\n]"
[2018-04-04 15:51:32,967] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "Host: localhost:8280[\r][\n]"
[2018-04-04 15:51:32,967] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "Connection: keep-alive[\r][\n]"
[2018-04-04 15:51:32,967] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "Cache-Control: no-cache[\r][\n]"
[2018-04-04 15:51:32,967] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36[\r][\n]"
[2018-04-04 15:51:32,967] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "Postman-Token: 193aae6f-0f22-44d1-5c52-ecfe381736f1[\r][\n]"
[2018-04-04 15:51:32,967] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "Accept: */*[\r][\n]"
[2018-04-04 15:51:32,967] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "Accept-Encoding: gzip, deflate, br[\r][\n]"
[2018-04-04 15:51:32,967] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "Accept-Language: en-US,en;q=0.9[\r][\n]"
[2018-04-04 15:51:32,967] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
>> "[\r][\n]"
[2018-04-04 15:51:32,969] [EI-Core] INFO - LogMediator To: /cache/headerapi/,
MessageID: urn:uuid:811b8add-71b4-4022-ae09-992dd41c9306, Direction: request,
Cache_Flow = Inside Cache Flow .............................
[2018-04-04 15:51:33,032] [EI-Core] ERROR - CacheMediator Error setting
response envelope from cache : mediation.cache_key
javax.xml.soap.SOAPException: org.apache.axiom.om.OMException: SOAP message
MUST NOT contain Processing Instructions(PI)
at org.apache.axis2.saaj.SOAPPartImpl.<init>(SOAPPartImpl.java:207)
at
org.apache.axis2.saaj.SOAPMessageImpl.<init>(SOAPMessageImpl.java:112)
at
org.apache.axis2.saaj.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:132)
at
org.wso2.carbon.mediator.cache.util.SOAPMessageHelper.buildSOAPEnvelopeFromBytes(SOAPMessageHelper.java:61)
at
org.wso2.carbon.mediator.cache.CacheMediator.processRequestMessage(CacheMediator.java:363)
at
org.wso2.carbon.mediator.cache.CacheMediator.mediate(CacheMediator.java:222)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
at org.apache.synapse.rest.Resource.process(Resource.java:343)
at org.apache.synapse.rest.API.process(API.java:399)
at
org.apache.synapse.rest.RESTRequestHandler.apiProcess(RESTRequestHandler.java:123)
at
org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:101)
at
org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:69)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:304)
at
org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:78)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:326)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:158)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.axiom.om.OMException: SOAP message MUST NOT contain
Processing Instructions(PI)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createPI(StAXSOAPModelBuilder.java:467)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:285)
at org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:447)
at org.apache.axis2.saaj.SOAPPartImpl.<init>(SOAPPartImpl.java:203)
... 22 more
[2018-04-04 15:51:33,033] [EI-Core] ERROR - cacheAPI Error setting response
envelope from cache : mediation.cache_key
javax.xml.soap.SOAPException: org.apache.axiom.om.OMException: SOAP message
MUST NOT contain Processing Instructions(PI)
at org.apache.axis2.saaj.SOAPPartImpl.<init>(SOAPPartImpl.java:207)
at
org.apache.axis2.saaj.SOAPMessageImpl.<init>(SOAPMessageImpl.java:112)
at
org.apache.axis2.saaj.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:132)
at
org.wso2.carbon.mediator.cache.util.SOAPMessageHelper.buildSOAPEnvelopeFromBytes(SOAPMessageHelper.java:61)
at
org.wso2.carbon.mediator.cache.CacheMediator.processRequestMessage(CacheMediator.java:363)
at
org.wso2.carbon.mediator.cache.CacheMediator.mediate(CacheMediator.java:222)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
at org.apache.synapse.rest.Resource.process(Resource.java:343)
at org.apache.synapse.rest.API.process(API.java:399)
at
org.apache.synapse.rest.RESTRequestHandler.apiProcess(RESTRequestHandler.java:123)
at
org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:101)
at
org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:69)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:304)
at
org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:78)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:326)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:158)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.axiom.om.OMException: SOAP message MUST NOT contain
Processing Instructions(PI)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createPI(StAXSOAPModelBuilder.java:467)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:285)
at org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:447)
at org.apache.axis2.saaj.SOAPPartImpl.<init>(SOAPPartImpl.java:203)
... 22 more
[2018-04-04 15:51:33,039] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
<< "HTTP/1.1 202 Accepted[\r][\n]"
[2018-04-04 15:51:33,039] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
<< "Date: Wed, 04 Apr 2018 10:21:33 GMT[\r][\n]"
[2018-04-04 15:51:33,039] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
<< "Transfer-Encoding: chunked[\r][\n]"
[2018-04-04 15:51:33,039] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
<< "Connection: keep-alive[\r][\n]"
[2018-04-04 15:51:33,039] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
<< "[\r][\n]"
[2018-04-04 15:51:33,040] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
<< "0[\r][\n]"
[2018-04-04 15:51:33,040] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3
<< "[\r][\n]"
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev