I am trying to get the PersonalStorage using this simple line of code PersonalStorage.fromFile(pstFileName,false) and I have succes in some cases but I am having now FormatNotSupportedException for a file exported as PST from outlook 2013 from a gmail account under the Junk folder. We can import and export that file from outlook but not from aspose api. Any clue?
Aspose lib 5.6.1.0-jdk16
Here is the file for testing: https://mxhero.box.com/shared/static/sjqj13dapn6v5yilfmxd9c970y37x2mz.pst
Here is the exception:
java.lang.RuntimeException: FormatNotSupportedException: The file is not in PST format
[Ljava.lang.StackTraceElement;@13a5fe33
at com.mxhero.application.pstconverter.phases.Extractor.extract(Extractor.java:137)
at com.mxhero.application.pstconverter.extract.ExtractorTest.testExtractAlex(ExtractorTest.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: FormatNotSupportedException: The file is not in PST format
[Ljava.lang.StackTraceElement;@67784306
at com.aspose.email.adu.h(SourceFile:724)
at com.aspose.email.zz.j(SourceFile:1619)
at com.aspose.email.zz.b(SourceFile:1280)
at com.aspose.email.zz.(SourceFile:162)
at com.aspose.email.tv.(SourceFile:43)
at com.aspose.email.adt.(SourceFile:123)
at com.aspose.email.PersonalStorage.a(SourceFile:282)
at com.aspose.email.PersonalStorage.fromFile(SourceFile:226)
at com.mxhero.application.pstconverter.phases.Extractor.extract(Extractor.java:118)
... 23 more