Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
NIGHTLY
-
None
-
None
-
JDK1.5.0_14, Ubuntu7.10
Description
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)
**********************************************************************************************************************************