Free Support Forum - aspose.com

Facing NullPointerException while splitting 80GB PST file

I am facing below exception when splitting large file.
Exception in thread “main” java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)
Caused by: java.lang.NullPointerException
at com.aspose.email.PersonalStorage.a(SourceFile:1376)
at com.aspose.email.PersonalStorage.b(SourceFile:1497)
at com.aspose.email.PersonalStorage.a(SourceFile:1425)
at com.aspose.email.PersonalStorage.splitInto(SourceFile:1213)
at com.gwava.pst.SplitPSTUtility.splitPSTIntoMultiplePSTFiles(SplitPSTUtility.java:86)
at com.gwava.pst.SplitPSTUtility.main(SplitPSTUtility.java:56)
… 5 more

This is the java code
image.png (37.1 KB)

@pharipriyap

Can you please try using latest Aspose.Email for Java 20.9.1 on your end. In case there is still an issue then please try increasing the Java Heap size on your end. If the issue still prevail then we need access to PST file along with sample code to work on that and try reproducing it.

Thank you for helping us. We did try using latest Aspose.Email for java 20.9. But no luck. We are still facing NullPointerException.
Exception in thread “main” java.lang.NullPointerException
at com.aspose.email.PersonalStorage.a(SourceFile:1503)
at com.aspose.email.PersonalStorage.b(SourceFile:1624)
at com.aspose.email.PersonalStorage.a(SourceFile:1552)
at com.aspose.email.PersonalStorage.b(SourceFile:1624)
at com.aspose.email.PersonalStorage.a(SourceFile:1552)
at com.aspose.email.PersonalStorage.splitInto(SourceFile:1340)
at com.gwava.pst.SplitPSTUtility.splitPSTIntoMultiplePSTFiles(SplitPSTUtility.java:86)
at com.gwava.pst.SplitPSTUtility.main(SplitPSTUtility.java:56)

We did try with multiple PST files. We faced the same exception. PSTs we used contains customer data. We are waiting for customer approval to share PSTs. Code is attached.image.png (55.1 KB)

@pharipriyap

We may need to access the PST that is throwing exception in order to reproduce and resolve the issue please.

Getting the permission from customer and sharing the PST is the long way solution. Is there any way to debug this or doing remote session with us to understand the problem better? Is it possible to provide any debugging version?

@pharipriyap

I am sorry, without provision of the information we may not be able to tell what is the issue without having access to the PST file. One thing you can do is follow the post below.

You can try working with PST by turning off exceptions and let the process complete. Finally, you can compare what has been processed and what’s missing from PST. Then you can only share those missing ones inside PST for analysis with us.