Free Support Forum - aspose.com

Bug: racy thread issue with MailMessage.load and MapiMessage.fromMailMessage

Hi there,

Last time, I added a post for the racy thread issue.
And I was told that the bug would be fixed in 5.0.0.0.
Just found that:
1. From outlook MSG to MapiMessage, it seems that the bug was fixed.
2. From EML to MapiMessage, the bug is still there.
We are using #1 so not an issue for us anymore. But it would be better to fix the bug in #2.

Refer: http://www.aspose.com/community/forums/thread/590461/to-header-with-invalid-address-was-dropped.aspx
I attached the source code there.

Basically, I had a function which run inside a thread.
It’s used to convert EML file to MapiMessage.
Then we will add the MapiMessage object to PST in another thread.

If I set the thread number to 1, it worked well.
If I set the thread number to 2+, then I will get lots of random errors.

{code}
private void convertEmlToMsg(File emlFile) throws Exception {
try(InputStream is = new FileInputStream(emlFile);
InputStream bis = new BufferedInputStream (is)) {
MailMessageLoadOptions option = new MailMessageLoadOptions();
option.setFileCompatibilityMode(FileCompatibilityMode.SkipValidityChecking);
option.setMessageFormat(MessageFormat.getEml());
MailMessage mailMsg = MailMessage.load(bis, option); //LINE: 191



MapiMessage outlookMsg = MapiMessage.fromMailMessage(mailMsg, MapiConversionOptions.getUnicodeFormat()); // LINE 195
}
}
{code}

Errors:
{quote}
Failed:C:\tmp\pst\srcdir\eml-with-nested-eml-attachments.eml:null
Failed:C:\tmp\pst\srcdir\envjournal-2010-bcc.eml:null
java.lang.NullPointerException
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.b(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\envjournal-2010-onbehalfof.eml:null
java.lang.NullPointerException
at com.aspose.email.MapiMessage.c(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.b(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\envjournal-wnestedmsg-unwrapped.eml:null
java.lang.NullPointerException
at com.aspose.email.MailMessage.o(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.b(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\envjournal_header_only_sender.eml:Item has already been added. Key in dictionary: ‘Content-Transfer-Encoding’ Key being added: 'Content-Transfer-Encoding’
class com.aspose.email.system.exceptions.ArgumentException: Item has already been added. Key in dictionary: ‘Content-Transfer-Encoding’ Key being added: 'Content-Transfer-Encoding’
com.aspose.email.system.collections.Hashtable.a(Unknown Source)
com.aspose.email.system.collections.Hashtable.addItem(Unknown Source)
com.aspose.email.HeaderCollection.a(Unknown Source)
com.aspose.email.HeaderCollection.a(Unknown Source)
com.aspose.email.HeaderCollection.set_Item(Unknown Source)
com.aspose.email.vd.a(Unknown Source)
com.aspose.email.vd.a(Unknown Source)
com.aspose.email.uy.a(Unknown Source)
com.aspose.email.uy.a(Unknown Source)
com.aspose.email.uy.c(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.load(Unknown Source)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.email.system.collections.Hashtable.a(Unknown Source)
at com.aspose.email.system.collections.Hashtable.addItem(Unknown Source)
at com.aspose.email.HeaderCollection.a(Unknown Source)
at com.aspose.email.HeaderCollection.a(Unknown Source)
at com.aspose.email.HeaderCollection.set_Item(Unknown Source)
at com.aspose.email.vd.a(Unknown Source)
at com.aspose.email.vd.a(Unknown Source)
at com.aspose.email.uy.a(Unknown Source)
at com.aspose.email.uy.a(Unknown Source)
at com.aspose.email.uy.c(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\grfield_set_ib.eml:null
Failed:C:\tmp\pst\srcdir\gr_fieldset_bloomberg.eml:Value cannot be null.
Parameter name: contentType
class com.aspose.email.system.exceptions.ArgumentNullException: Value cannot be null.
Parameter name: contentType
com.aspose.email.AttachmentBase.a(Unknown Source)
com.aspose.email.AttachmentBase.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.load(Unknown Source)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.email.AttachmentBase.a(Unknown Source)
at com.aspose.email.AttachmentBase.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\gr_fieldset_ib.eml:Item has already been added. Key in dictionary: ‘Content-Transfer-Encoding’ Key being added: 'Content-Transfer-Encoding’
Failed:C:\tmp\pst\srcdir\html-email-with-attachments.eml:null
Failed:C:\tmp\pst\srcdir\html-eml-with-text.eml:null
Failed:C:\tmp\pst\srcdir\html-japanese-invalid-charsetincontenttypes.eml:null
Failed:C:\tmp\pst\srcdir\icq-im.eml:null
class com.aspose.email.system.exceptions.ArgumentException: Item has already been added. Key in dictionary: ‘Content-Transfer-Encoding’ Key being added: 'Content-Transfer-Encoding’
com.aspose.email.system.collections.Hashtable.a(Unknown Source)
com.aspose.email.system.collections.Hashtable.addItem(Unknown Source)
com.aspose.email.HeaderCollection.a(Unknown Source)
com.aspose.email.HeaderCollection.a(Unknown Source)
com.aspose.email.HeaderCollection.set_Item(Unknown Source)
com.aspose.email.vd.a(Unknown Source)
com.aspose.email.vd.a(Unknown Source)
com.aspose.email.uy.a(Unknown Source)
com.aspose.email.uy.a(Unknown Source)
com.aspose.email.uy.a(Unknown Source)
com.aspose.email.uy.a(Unknown Source)
com.aspose.email.uy.c(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.load(Unknown Source)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.email.system.collections.Hashtable.a(Unknown Source)
at com.aspose.email.system.collections.Hashtable.addItem(Unknown Source)
at com.aspose.email.HeaderCollection.a(Unknown Source)
at com.aspose.email.HeaderCollection.a(Unknown Source)
at com.aspose.email.HeaderCollection.set_Item(Unknown Source)
at com.aspose.email.vd.a(Unknown Source)
at com.aspose.email.vd.a(Unknown Source)
at com.aspose.email.uy.a(Unknown Source)
at com.aspose.email.uy.a(Unknown Source)
at com.aspose.email.uy.a(Unknown Source)
at com.aspose.email.uy.a(Unknown Source)
at com.aspose.email.uy.c(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\incorrect-html-charset.eml:Value cannot be null.
Parameter name: contentType
class com.aspose.email.system.exceptions.ArgumentNullException: Value cannot be null.
Parameter name: contentType
com.aspose.email.AlternateView.b(Unknown Source)
com.aspose.email.AlternateView.createAlternateViewFromString(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.d(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.load(Unknown Source)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.email.AlternateView.b(Unknown Source)
at com.aspose.email.AlternateView.createAlternateViewFromString(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.d(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\japanese-with-attachment.eml:null
java.lang.NullPointerException
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\Lync Conversation- 2 Users, 5 Messages, 0 Hours, 0 Minutes.eml:null
java.lang.NullPointerException
at com.aspose.email.MailMessage.p(Unknown Source)
at com.aspose.email.MailMessage.setHtmlBody(Unknown Source)
at com.aspose.email.MailMessage.o(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\lots-of-bad-addresses.eml:null
java.lang.NullPointerException
at com.aspose.email.wu.c(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.c(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.b(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\MA-4745-2.eml:null
Failed:C:\tmp\pst\srcdir\malformed-multiplepart-missingboundary-withdashinbody.eml:null
java.lang.NullPointerException
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.b(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\malformed-multiplepart-missingboundary.eml:null
Failed:C:\tmp\pst\srcdir\message_with_bccs.eml:null
java.lang.NullPointerException
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\message_with_links.eml:null
Failed:C:\tmp\pst\srcdir\ms-exchange-crosspremises-bcc-header.eml:null
java.lang.NullPointerException
at com.aspose.email.MailMessage.o(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.wu.b(Unknown Source)
at com.aspose.email.MapiMessage.c(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
class com.aspose.email.system.exceptions.ArgumentException: Item has already been added. Key in dictionary: ‘Content-Transfer-Encoding’ Key being added: 'Content-Transfer-Encoding’
com.aspose.email.system.collections.Hashtable.a(Unknown Source)
com.aspose.email.system.collections.Hashtable.addItem(Unknown Source)
com.aspose.email.HeaderCollection.a(Unknown Source)
com.aspose.email.HeaderCollection.a(Unknown Source)
com.aspose.email.HeaderCollection.set_Item(Unknown Source)
com.aspose.email.vd.a(Unknown Source)
com.aspose.email.AttachmentBase.a(Unknown Source)
com.aspose.email.AlternateView.b(Unknown Source)
com.aspose.email.AlternateView.createAlternateViewFromString(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.c(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.load(Unknown Source)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.email.system.collections.Hashtable.a(Unknown Source)
at com.aspose.email.system.collections.Hashtable.addItem(Unknown Source)
at com.aspose.email.HeaderCollection.a(Unknown Source)
at com.aspose.email.HeaderCollection.a(Unknown Source)
at com.aspose.email.HeaderCollection.set_Item(Unknown Source)
at com.aspose.email.vd.a(Unknown Source)
at com.aspose.email.AttachmentBase.a(Unknown Source)
at com.aspose.email.AlternateView.b(Unknown Source)
at com.aspose.email.AlternateView.createAlternateViewFromString(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.c(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\msg-auto-forwarded-by-outlook-rule.eml:Item has already been added. Key in dictionary: ‘Content-Transfer-Encoding’ Key being added: 'Content-Transfer-Encoding’
java.lang.NullPointerException
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\msg-with-nested-message-attachment.eml:null
Failed:C:\tmp\pst\srcdir\multipart-alternative-body-part.eml:null
Failed:C:\tmp\pst\srcdir\multipart-alternative.eml:null
Failed:C:\tmp\pst\srcdir\multipart-boundary-ends-in-dashdash.eml:Value cannot be null.
Parameter name: contentType
java.lang.NullPointerException
at com.aspose.email.Attachment.j(Unknown Source)
at com.aspose.email.Attachment.getName(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.b(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
class com.aspose.email.system.exceptions.ArgumentNullException: Value cannot be null.
Parameter name: contentType
com.aspose.email.AlternateView.b(Unknown Source)
com.aspose.email.AlternateView.createAlternateViewFromString(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.c(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.load(Unknown Source)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.email.AlternateView.b(Unknown Source)
at com.aspose.email.AlternateView.createAlternateViewFromString(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.c(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\multpart-related.eml:null
java.lang.NullPointerException
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.d(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\multiple_identical_fwd_emls.eml:null
Failed:C:\tmp\pst\srcdir\nested-message-is-attachment.eml:null
java.lang.NullPointerException
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.b(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.b(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\non-envjournal-removeheaders.eml:Value cannot be null.
Parameter name: contentType
class com.aspose.email.system.exceptions.ArgumentNullException: Value cannot be null.
Parameter name: contentType
com.aspose.email.AlternateView.b(Unknown Source)
com.aspose.email.AlternateView.createAlternateViewFromString(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.c(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.load(Unknown Source)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.email.AlternateView.b(Unknown Source)
at com.aspose.email.AlternateView.createAlternateViewFromString(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.c(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\nonascii-subject.eml:null
java.lang.NullPointerException
at com.aspose.email.wu.c(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.c(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\smime-nested-encrypted.eml:Item has already been added. Key in dictionary: ‘Content-Transfer-Encoding’ Key being added: 'Content-Transfer-Encoding’
Failed:C:\tmp\pst\srcdir\smime-signed.eml:null
class com.aspose.email.system.exceptions.ArgumentException: Item has already been added. Key in dictionary: ‘Content-Transfer-Encoding’ Key being added: 'Content-Transfer-Encoding’
com.aspose.email.system.collections.Hashtable.a(Unknown Source)
com.aspose.email.system.collections.Hashtable.addItem(Unknown Source)
com.aspose.email.HeaderCollection.a(Unknown Source)
com.aspose.email.HeaderCollection.a(Unknown Source)
com.aspose.email.HeaderCollection.set_Item(Unknown Source)
com.aspose.email.vd.a(Unknown Source)
com.aspose.email.vd.a(Unknown Source)
com.aspose.email.uy.a(Unknown Source)
com.aspose.email.uy.a(Unknown Source)
com.aspose.email.uy.a(Unknown Source)
com.aspose.email.uy.c(Unknown Source)
com.aspose.email.MailMessage.b(Unknown Source)
com.aspose.email.MailMessage.a(Unknown Source)
com.aspose.email.MailMessage.load(Unknown Source)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.email.system.collections.Hashtable.a(Unknown Source)
at com.aspose.email.system.collections.Hashtable.addItem(Unknown Source)
at com.aspose.email.HeaderCollection.a(Unknown Source)
at com.aspose.email.HeaderCollection.a(Unknown Source)
at com.aspose.email.HeaderCollection.set_Item(Unknown Source)
at com.aspose.email.vd.a(Unknown Source)
at com.aspose.email.vd.a(Unknown Source)
at com.aspose.email.uy.a(Unknown Source)
at com.aspose.email.uy.a(Unknown Source)
at com.aspose.email.uy.a(Unknown Source)
at com.aspose.email.uy.c(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:191)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed:C:\tmp\pst\srcdir\TwoEmailsAttachedOneWithCorruptAttachment.eml:null
java.lang.NullPointerException
at com.aspose.email.wu.c(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.c(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.a(Unknown Source)
at com.aspose.email.MapiMessage.fromMailMessage(Unknown Source)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertEmlToMsg(EmlConvertCompareApp.java:195)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.convertToMsg(EmlConvertCompareApp.java:166)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.processMessages(EmlConvertCompareApp.java:152)
at main.java.com.testPst.emltopst.EmlConvertCompareApp.access$1(EmlConvertCompareApp.java:139)
at main.java.com.testPst.emltopst.EmlConvertCompareApp$1.run(EmlConvertCompareApp.java:71)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
{quote}

Hi Billow,


Thank you for sharing your concern with Aspose support team.

Could you please share a set of EML files that you are using at your end for reproducing this issue? Also, I would request you to please share your complete sample code that is used to reproduce the issue. We are already investigating this issue and your feedback will assist us further to reproduce the issue at our end and report it to our development team.

You can find the samples and full source code in the other ticket.
http://www.aspose.com/community/forums/thread/590461/to-header-with-invalid-address-was-dropped.aspx

Hi Billow,


We have investigated this issue with the sample code as attached here for your reference and could not face issues with the sample EMLs data available at my end. Could you please try the attached sample code with your sample data and let us know your feedback? If the issue persists at your end, please provide us with some sample data that we can use to further investigate the issue at our end and assist you accordingly.

Thanks for the needful answer .

Actually i am also facing this issue from very long time and your answer is helping me in a good way.

I also found an interesting answer for this issue and i would like to share it - Find all java issue solutions at Sevenmentor which also provide the Java classes in pune.