[ 
https://issues.apache.org/jira/browse/SYNAPSE-854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15305424#comment-15305424
 ] 

Chanaka Fernando commented on SYNAPSE-854:
------------------------------------------

Root cause for this issue is the following line in the sample configuration 
file.

<publishWSDL uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>

When we have the above configuration, it exposes a set of operations to the 
outside world according to the WSDL. Since this is a mail transport receiver, 
we don't need to publish the WSDL. Actual failure happens at axis engine inside 
DispatchPhase class where it cannot find an operation since it was not set at 
the ProtocolEndpoint class inside createMessageContext method due to the 
operations exposed by WSDL does not match with default urn:mediate operation.

> Mail proxcy sample broken 
> --------------------------
>
>                 Key: SYNAPSE-854
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-854
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: NIGHTLY
>            Reporter: Sagara Gunathunga 
>            Assignee: Rajika Kumarasiri
>            Priority: Blocker
>
> Getting following exception when running sample256 with latest snapshot 
> version of Synapse.. Please note that I have tested same mail transport 
> component used in here with Axis2 without any issue also this sample worked 
> fine with a WSO2 ESB 4.0.2 that also based on Synapse.
> 012-03-14 11:56:02,401 [-] [mailto-Worker-4] ERROR AxisEngine The
> endpoint reference (EPR) for the Operation not found is  and the WSA
> Action = null. If this EPR was previously reachable, please contact
> the server administrator.
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
> Operation not found is  and the WSA Action = null. If this EPR was
> previously reachable, please contact the server administrator.
>        at 
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:117)
>        at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
>        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
>        at 
> org.apache.axis2.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:328)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.processMail(MailTransportListener.java:524)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.access$000(MailTransportListener.java:61)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener$MailProcessor.run(MailTransportListener.java:331)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.processMail(MailTransportListener.java:295)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.checkMail(MailTransportListener.java:199)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.poll(MailTransportListener.java:80)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.poll(MailTransportListener.java:61)
>        at 
> org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
>        at 
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> 2012-03-14 11:56:02,403 [-] [mailto-Worker-4] ERROR
> MailTransportSender To address for outgoing message cannot be
> determined
> 2012-03-14 11:56:02,404 [-] [mailto-Worker-4] ERROR
> MailTransportSender Error generating mail message
> org.apache.axis2.AxisFault: To address for outgoing message cannot be 
> determined
>        at 
> org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:231)
>        at 
> org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:314)
>        at 
> org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:175)
>        at 
> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:119)
>        at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:526)
>        at 
> org.apache.axis2.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:336)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.processMail(MailTransportListener.java:524)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.access$000(MailTransportListener.java:61)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener$MailProcessor.run(MailTransportListener.java:331)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.processMail(MailTransportListener.java:295)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.checkMail(MailTransportListener.java:199)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.poll(MailTransportListener.java:80)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.poll(MailTransportListener.java:61)
>        at 
> org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
>        at 
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> 2012-03-14 11:56:02,405 [-] [mailto-Worker-4] ERROR
> MailTransportListener Failed to process message
> org.apache.axis2.AxisFault: Error generating mail message
>        at 
> org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226)
>        at 
> org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:184)
>        at 
> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:119)
>        at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:526)
>        at 
> org.apache.axis2.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:336)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.processMail(MailTransportListener.java:524)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.access$000(MailTransportListener.java:61)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener$MailProcessor.run(MailTransportListener.java:331)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.processMail(MailTransportListener.java:295)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.checkMail(MailTransportListener.java:199)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.poll(MailTransportListener.java:80)
>        at 
> org.apache.axis2.transport.mail.MailTransportListener.poll(MailTransportListener.java:61)
>        at 
> org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
>        at 
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: org.apache.axis2.AxisFault: To address for outgoing message
> cannot be determined
>        at 
> org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:231)
>        at 
> org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:314)
>        at 
> org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:175)
>        ... 15 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org

Reply via email to