With no IOUTILS override org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.OfficeParser@6d9fb2d1 at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:282) ~[tika-core-1.22.jar:1.22] at org.apache.tika.parser.ParserDecorator.parse(ParserDecorator.java:188) ~[tika-core-1.22.jar:1.22] at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) ~[tika-core-1.22.jar:1.22] at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) ~[tika-core-1.22.jar:1.22] at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:143) ~[tika-core-1.22.jar:1.22] at MY_CODE at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_192] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_192] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_192] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_192] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) [junit-4.11.jar:na] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.11.jar:na] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) [junit-4.11.jar:na] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.11.jar:na] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:na] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [junit-4.11.jar:na] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:na] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) [junit-4.11.jar:na] at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na] at org.junit.runner.JUnitCore.run(JUnitCore.java:160) [junit-4.11.jar:na] at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) [junit-rt.jar:na] at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) [junit-rt.jar:na] at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) [junit-rt.jar:na] at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) [junit-rt.jar:na] Caused by: org.apache.poi.util.RecordFormatException: Tried to allocate an array of length 27907952, but 10000000 is the maximum for this record type. If the file is not corrupt, please open an issue on bugzilla to request increasing the maximum allowable size for this record type. As a temporary workaround, consider setting a higher override value with IOUtils.setByteArrayMaxOverride() at org.apache.poi.util.IOUtils.throwRFE(IOUtils.java:568) ~[poi-4.0.1.jar:4.0.1] at org.apache.poi.util.IOUtils.checkLength(IOUtils.java:175) ~[poi-4.0.1.jar:4.0.1] at org.apache.poi.util.IOUtils.safelyAllocate(IOUtils.java:547) ~[poi-4.0.1.jar:4.0.1] at org.apache.poi.hdgf.streams.StreamStore.(StreamStore.java:37) ~[poi-scratchpad-4.0.1.jar:4.0.1] at org.apache.poi.hdgf.streams.CompressedStreamStore.(CompressedStreamStore.java:61) ~[poi-scratchpad-4.0.1.jar:4.0.1] at org.apache.poi.hdgf.streams.CompressedStreamStore.(CompressedStreamStore.java:52) ~[poi-scratchpad-4.0.1.jar:4.0.1] at org.apache.poi.hdgf.streams.Stream.createStream(Stream.java:64) ~[poi-scratchpad-4.0.1.jar:4.0.1] at org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(PointerContainingStream.java:65) ~[poi-scratchpad-4.0.1.jar:4.0.1] at org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(PointerContainingStream.java:77) ~[poi-scratchpad-4.0.1.jar:4.0.1] at org.apache.poi.hdgf.HDGFDiagram.(HDGFDiagram.java:89) ~[poi-scratchpad-4.0.1.jar:4.0.1] at org.apache.poi.hdgf.extractor.VisioTextExtractor.(VisioTextExtractor.java:53) ~[poi-scratchpad-4.0.1.jar:4.0.1] at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:189) ~[tika-parsers-1.22.jar:1.22] at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:131) ~[tika-parsers-1.22.jar:1.22] at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) ~[tika-core-1.22.jar:1.22]