You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Ruwan Linton (JIRA)" <ji...@apache.org> on 2008/03/19 20:40:24 UTC

[jira] Resolved: (SYNAPSE-256) NullPointerException thrown when executing sample 256 (Proxy services with the mail transport)

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

Ruwan Linton resolved SYNAPSE-256.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2

The issue is not with the user defined values for the mail transport but google (gmail) sending the contentType as text/plain (I hope you have used gmail to send the mail) and missing a null check in the code. :-)

Now it is fixed on the svn head. Please verify.

> NullPointerException thrown when executing sample 256 (Proxy services with the mail transport)
> ----------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-256
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-256
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: NIGHTLY
>         Environment: JDK1.5.0_14, Ubuntu7.10
>            Reporter: Evanthika Amarasiri
>            Assignee: Ruwan Linton
>             Fix For: 1.2
>
>
> Below are the steps followed to reproduce the issue
> 1. Enable mail transport sender of /repository/conf/axis2.xml
> 2. Changed the following parameters to hold user defined values
>  - mail.smtp.user
>  - mail.smtp.password
>  - mail.smtp.from
> 3. Start sample 256 and send an email with the following in the mail body
> 4. Once the email is sent, the following exception was thrown on the Synapses console
> 2008-03-19 12:16:39,956 [-] [mailto-Worker-4] ERROR BaseUtils Error creating an input stream to : 1
> **********************************************************************************************************************************
> java.lang.NullPointerException
>         at org.apache.synapse.transport.mail.MailUtils.getInputStream(MailUtils.java:87)
>         at org.apache.synapse.transport.base.BaseUtils.setSOAPEnvelope(BaseUtils.java:169)
>         at org.apache.synapse.transport.mail.MailTransportListener.processMail(MailTransportListener.java:345)
>         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:77)
>         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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org