Hi Aspose Team,
While I am trying to write an invitation email to the file PST, a JVM exception has occurred: java.lang.NullPointerException. I need your help. Please advise me.
Aspose details:
aspose-email-23.7-jdk16.jar (Licensed)
Code:
from jnius import autoclass
MapiMessage = autoclass(“com.aspose.email.MapiMessage”)
PersonalStorage = autoclass(“com.aspose.email.PersonalStorage”)
MailMessage = autoclass(“com.aspose.email.MailMessage”)
pst = PersonalStorage.create("/tmp/test.pst", 0)
pst.getRootFolder().addSubFolder(“Inbox”)
eml = MailMessage.load(invitation_file)
msg_obj = MapiMessage.fromMailMessage(eml)
Error:
Traceback (most recent call last):
File “/home/test/test.py”, line 412, in export
msg_obj = MapiMessage.fromMailMessage(eml)
File “jnius/jnius_export_class.pxi”, line 1177, in jnius.JavaMultipleMethod.call
File “jnius/jnius_export_class.pxi”, line 884, in jnius.JavaMethod.call
File “jnius/jnius_export_class.pxi”, line 1056, in jnius.JavaMethod.call_staticmethod
File “jnius/jnius_utils.pxi”, line 91, in jnius.check_exception
jnius.JavaException: JVM exception occurred: java.lang.NullPointerException
Thanks,
Antony
Hello, @antony.aspose
Thanks for contacting the support forum.
Can you please forward the original eml file instead of publishing its content?
You can package eml in a zip to upload it.
@antony.aspose,
We will fix the NullPointerException issue in the next release.
Could you check the VTIMEZONE section of the invitation?
BEGIN:VTIMEZONE
TZID:Asia/Kolkata
END:VTIMEZONE
Expected VTIMEZONE data according to ICS format
BEGIN:VTIMEZONE
TZID:Asia/Kolkata
LAST-MODIFIED:20230407T050750Z
TZURL:https://www.tzurl.org/zoneinfo/Asia/Kolkata
X-LIC-LOCATION:Asia/Kolkata
X-PROLEPTIC-TZNAME:LMT
BEGIN:STANDARD
TZNAME:HMT
TZOFFSETFROM:+055328
TZOFFSETTO:+055320
DTSTART:18540628T000000
END:STANDARD
BEGIN:STANDARD
TZNAME:MMT
TZOFFSETFROM:+055320
TZOFFSETTO:+052110
DTSTART:18700101T000000
END:STANDARD
BEGIN:STANDARD
TZNAME:IST
TZOFFSETFROM:+052110
TZOFFSETTO:+0530
DTSTART:19060101T000000
END:STANDARD
BEGIN:DAYLIGHT
TZNAME:+0630
TZOFFSETFROM:+0530
TZOFFSETTO:+0630
DTSTART:19411001T000000
RDATE:19420901T000000
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:IST
TZOFFSETFROM:+0630
TZOFFSETTO:+0530
DTSTART:19420515T000000
RDATE:19451015T000000
END:STANDARD
END:VTIMEZONE
@antony.aspose
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): EMAILJAVA-35212
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Attached invitation email
sample.zip (7.0 KB)
@antony.aspose,
Thank you for the sample eml provided.