We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

java.lang.OutOfMemoryError: Java heap space Issue

Anyone

I was using the POI HSMF for reading Outlook msg file.
But I get an out of memory error reading anything above 10MB.

Thinking of using APOSE for Java.
Anyone knows if APOSE is the same.
Will I be able to read the send date and recieved date using APOSE too.

Hi Mohamad,


Thank you for your interest in Aspose products.

Yes, you will be able to read the “Sent” and “Received” dates using Aspose.Email for Java component. Regarding the OutOfMemory exception, if you can share a message file above than 10MB then we can test it for you.

In case you have any other question or comment then please feel free to write back.

Hi,

By the way my code now

MailMessage mess = MailMessage.load("c:\\Test1.msg", MessageFormat.getMsg());

is throwing this error

Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/Assert
at com.aspose.email.private.k.a.a(Unknown Source)
at com.aspose.email.private.b.a.a(Unknown Source)
at com.aspose.email.ix.b(Unknown Source)
at com.aspose.email.ix.(Unknown Source)
at com.aspose.email.MapiMessageReader.(Unknown Source)xception in thread "main" java.lang.NoClassDefFoundError: org/testng/Assert
at com.aspose.email.private.k.a.a(Unknown Source)
at com.aspose.email.private.b.a.a(Unknown Source)
at com.aspose.email.ix.b(Unknown Source)
at com.aspose.email.ix.(Unknown Source)
at com.aspose.email.MapiMessageReader.(Unknown Source)v

Hi,


Can you please share your sample file for our review?

Thanks and Regards,