[ 
https://wso2.org/jira/browse/ESBJAVA-487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Evanthika Amarasiri closed ESBJAVA-487.
---------------------------------------

    Resolution: Not a bug

For testing purposes I used my personal email account which had binary files 
and that is why I received this exception. Will be closing this issue since it 
is a fault of mine.

> BaseUtils Error thrown when sending emails using sample 256
> -----------------------------------------------------------
>
>                 Key: ESBJAVA-487
>                 URL: https://wso2.org/jira/browse/ESBJAVA-487
>             Project: WSO2 ESB
>          Issue Type: Bug
>    Affects Versions: NIGHTLY
>         Environment: Ubuntu7.04, JDK1.5.0_14
>            Reporter: Evanthika Amarasiri
>            Assignee: Ruwan Linton
>
> 1. Started the ESB server with sample  256
> 2. Make sure that you have properly changed the relevant email addresses and 
> that you have enabled mail transport sender in the axis2.xml
> 3. Send an email from any mail account to the account that you have specified 
> in the configuration. 
> 4. After some time you will see the following exception on the ESB console
> ********************************************************************************************************************************
> 2008-05-21 13:50:38,680 [-] [mailto-Worker-1] ERROR BaseUtils Could not 
> completely read the stream to conver to a byte[]
> 2008-05-21 13:50:38,681 [-] [mailto-Worker-1] ERROR BaseUtils Could not 
> completely read the stream to conver to a byte[]
> 2008-05-21 13:50:38,681 [-] [mailto-Worker-1] ERROR BaseUtils Error reading 
> message payload as a byte[] for : 61
> org.apache.synapse.transport.base.BaseTransportException: Could not 
> completely read the stream to conver to a byte[]
>         at 
> org.apache.synapse.transport.base.BaseUtils.handleException(BaseUtils.java:376)
>         at 
> org.apache.synapse.transport.mail.MailUtils.getBytesFromInputStream(MailUtils.java:144)
>         at 
> org.apache.synapse.transport.mail.MailUtils.getMessageBinaryPayload(MailUtils.java:122)
>         at 
> org.apache.synapse.transport.base.BaseUtils.handleLegacyMessage(BaseUtils.java:318)
>         at 
> org.apache.synapse.transport.base.BaseUtils.setSOAPEnvelope(BaseUtils.java:259)
>         at 
> org.apache.synapse.transport.mail.MailTransportListener.processMail(MailTransportListener.java:366)
>         at 
> org.apache.synapse.transport.mail.MailTransportListener.checkMail(MailTransportListener.java:193)
>         at 
> org.apache.synapse.transport.mail.MailTransportListener.onPoll(MailTransportListener.java:84)
>         at 
> org.apache.synapse.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:86)
>         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.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to