Hi,
I've built synapse from trunk and updated synapse.mar, synapse-core.jar 
and synapse-extensions.jar in my web app.
The synapse.xml file is correctly loaded now. 

When I send a request, it is correctly forwarded to the other web service 
but I get following exception when synapse tries to send back the message 
to the client:

[WebContainer : 1] 2008-08-04 14:06:37,069 DEBUG 
Axis2SynapseEnvironment.java [injectMessage] Injecting MessageContext
[WebContainer : 1] 2008-08-04 14:06:37,069 DEBUG 
Axis2SynapseEnvironment.java [injectMessage] Using the anonymous 
out-sequence specified in the proxy service ServiceTest for outgoing 
message mediation
[WebContainer : 1] 2008-08-04 14:06:37,069 DEBUG AbstractMediator.java 
[traceOrDebug] Start : Sequence <anonymous>
[WebContainer : 1] 2008-08-04 14:06:37,069 DEBUG AbstractMediator.java 
[traceOrDebug] Sequence <SequenceMediator> :: mediate()
[WebContainer : 1] 2008-08-04 14:06:37,069 DEBUG MediatorLog.java 
[traceOrDebug] Start : Send mediator
[WebContainer : 1] 2008-08-04 14:06:37,069 DEBUG MediatorLog.java 
[traceOrDebug] Sending response message using implicit message 
properties..
Sending To: http://www.w3.org/2005/08/addressing/anonymous
SOAPAction: 
org.apache.axis2.AxisFault: problem accessing the parser. Parser already 
accessed!
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at 
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:330)
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:213)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
        at 
org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:139)
        at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:219)
        at 
org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:147)
        at 
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
        at 
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:162)
        at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:301)
        at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:131)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
        at 
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:235)
        at 
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:174)
        at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at 
org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:294)
        at 
org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:58)
        at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:222)
        at 
org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:195)
        at 
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:179)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
        at com.almerys.medline.fsa.FSAServlet.doPost(FSAServlet.java:330)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
        at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
        at 
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
        at 
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
        at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
        at 
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
        at 
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
        at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
        at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
        at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
        at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
        at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
        at 
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: javax.xml.stream.XMLStreamException: problem accessing the 
parser. Parser already accessed!
        at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:960)
        at 
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:100)
        at 
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:68)
        at 
org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:57)
        at 
org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:548)
        at 
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:232)
        at 
org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)
        at 
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:471)
        at 
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:79)
        ... 46 more



Where is the problem? Do I need to switch to Axis2 trunk also? If so, I 
won't be able to use synapse as my web app is in production using Axis2 
1.4.

Thanks in advance,

Pierre






"Ruwan Linton" <[EMAIL PROTECTED]> 
04/08/2008 11:10
Veuillez répondre à
[email protected]


A
[email protected]
cc

Objet
Re: [Synapse 1.2] Can't initialize synapse






I should also say that it is not supported to set the synapse config
parameters through axis2 xml parameters in the 1.2 release.

Thanks,
Ruwan

On Mon, Aug 4, 2008 at 2:34 PM, Ruwan Linton <[EMAIL PROTECTED]> 
wrote:

> Hi Pierre,
>
> I am sorry that KB has been outdated. Here is the new set of parameters 
for
> you to try if you are using synapse built from trunk,
>
> <parameter name="SynapseConfig.ConfigurationFile"
> locked="false">C:/synapse.xml</parameter>
>
> Apart from that, f you need to do advanced tasks you may need the 
following
> parameters as well,
>
>         /** Synapse Home directory */
>         "SynapseConfig.HomeDirectory"
>         /** Synapse resolve root */
>         "SynapseConfig.ResolveRoot"
>         /** Synapse server name */
>         "SynapseConfig.ServerName"
>
> But all these are for the SNAPSHOT build and this will not work for the 
12
> release.
>
> Thanks,
> Ruwan
>
>
> On Mon, Aug 4, 2008 at 2:25 PM, <[EMAIL PROTECTED]> wrote:
>
>> Hello all,
>> I am trying to use synapse as an axis2 module.
>> - I have dropped synapse-1.2.mar file (the one in the synapse 1.2 
binary
>> distribution) inside the module directory of my web app unsing Axis2.
>> - I have modified axis2.xml configuration to add: <module 
ref="synapse"/>
>> Axis2 is correctly engaging the module:
>> Deploying module: synapse-1.2 - file:/C:/[...]
>> Initializing Synapse at : Mon Aug 04 10:46:55 CEST 2008
>>
>> Now, I want to configure Synapse using the axis2.xml file.
>> According to [1], I have added the following line: <parameter name="
>> SynapseConfiguration" locked="true">C:/synapse.xml</parameter>
>> But I get the following error: System property or init-parameter
>> 'synapse.xml' is not specified. Using default configuration..
>>
>> So I tried to put this in axis2.xml file: <parameter name="synapse.xml"
>> locked="true">C:/synapse.xml</parameter>
>>
>> But I still get the same warning message. I have tried using relative 
path
>> and absolute path but it is the same.
>>
>> Where is my mistake?
>> How can I configure path to synapse.xml?
>>
>> Thanks in advance.
>>
>> Pierre
>>
>>
>> [1]: http://wso2.org/library/201
>>
>
>
>
> --
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.com/
>



-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

Reply via email to