I'm using the class org.apache.servicemix.components.email.MimeMailPoller to
receive emails. The connection to the server seems to be working. When there
is an incoming email though, an NPE is thrown:
java.lang.NullPointerException
at java.util.Calendar.setTime(Calendar.java:1032)
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:785)
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:778)
at java.text.DateFormat.format(DateFormat.java:314)
at
org.apache.servicemix.components.email.MimeMailMarshaler.prepareExchange(MimeMailMarshaler.java:72)
MimeMailMarshaler.java:72 reads: String sentDate =
getDateFormat().format(mimeMessage.getSentDate());
So I guess that the message's sent date is returned as null. The email
header does contain a 'Date' field, though.
Is there any way to resolve this problem?
Cheers,
Paul
--
View this message in context:
http://www.nabble.com/NPE-when-receiving-email-tf2456036.html#a6845571
Sent from the ServiceMix - User mailing list archive at Nabble.com.