I am using Tika to do content extraction on Visio (vsd) files,
and I am running into an ‘Unexpected RuntimeException’.
The stack trace for this is in the attached 
stack-trace-withOUT-setByteArrayMaxOverride.txt file.

When I tried the suggested work around of calling 
IOUtils.setByteArrayMaxOverride()
on the same file, I got the ‘Unexpected RuntimeException’ from a different part 
of the code.

It appears to me that when IOUtils.setByteArrayMaxOverride() is called with 
anything less than
Integer.MAX_VALUE, that calls to toByteArray() will fail in checkLength()
because the length input will be greater than BYTE_ARRAY_MAX_OVERRIDE.

Here is a snippet of the code I am using:
    private void extract(InputStream is, Path outputDir, ContentHandler h, 
Metadata m , AutoDetectParser extractParser) throws SAXException, 
TikaException, IOException {
        Map retVal = new HashMap();
        ParseContext c = new ParseContext();

        c.set(Parser.class, extractParser);
        EmbeddedDocumentExtractor ex = new 
MY_EmbeddedDocumentExtractor(outputDir, c);
        c.set(EmbeddedDocumentExtractor.class, ex);

        // Override the POI maximum length for all record types
        // IOUtils.setByteArrayMaxOverride(100 * 1024 * 1024);
        // IOUtils.setByteArrayMaxOverride(30 * 1024 * 1024);
        extractParser.parse(is, h, m, c);

        // Reset/disable the override
        // IOUtils.setByteArrayMaxOverride(-1);
    }

As you can see from the commented out IOUtils.setByteArrayMaxOverride() calls,
I tried this with both 100 MB, and 30 MB.
A second stack trace for the secondary error (with 
IOUtils.setByteArrayMaxOverride() being called)
is attached in stack-trace-with-setByteArrayMaxOverride.txt.

In each stack trace I have snipped out the calls to my code.

I tried attaching the two VSD files I used for testing, but they are 3+ MB each,
which caused the submission to fail.
I can email these two files directly to anyone interested in testing with them.

Thanks for any help you can give to resolve this,
David Shifflett

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.<init>(StreamStore.java:37) 
~[poi-scratchpad-4.0.1.jar:4.0.1]
        at 
org.apache.poi.hdgf.streams.CompressedStreamStore.<init>(CompressedStreamStore.java:61)
 ~[poi-scratchpad-4.0.1.jar:4.0.1]
        at 
org.apache.poi.hdgf.streams.CompressedStreamStore.<init>(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.<init>(HDGFDiagram.java:89) 
~[poi-scratchpad-4.0.1.jar:4.0.1]
        at 
org.apache.poi.hdgf.extractor.VisioTextExtractor.<init>(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]
With IOUTILS override set to 30 MB, got

11:03:57.538 [main] WARN  o.a.t.p.m.AbstractPOIFSExtractor    -
                Ignoring unexpected exception while parsing summary entry 
SummaryInformation
org.apache.poi.util.RecordFormatException: Tried to allocate an array of length 
2147483647, but 31457280 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:172) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.util.IOUtils.toByteArray(IOUtils.java:143) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.util.IOUtils.toByteArray(IOUtils.java:120) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.util.IOUtils.toByteArray(IOUtils.java:107) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:194) 
~[poi-4.0.1.jar:4.0.1]
        at 
org.apache.tika.parser.microsoft.SummaryExtractor.parseSummaryEntryIfExists(SummaryExtractor.java:83)
 [tika-parsers-1.22.jar:1.22]
        at 
org.apache.tika.parser.microsoft.SummaryExtractor.parseSummaries(SummaryExtractor.java:73)
 [tika-parsers-1.22.jar:1.22]
        at 
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:155) 
[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]
        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]
11:03:57.539 [main] WARN  o.a.t.p.m.AbstractPOIFSExtractor    -
                Ignoring unexpected exception while parsing summary entry 
DocumentSummaryInformation
org.apache.poi.util.RecordFormatException: Tried to allocate an array of length 
2147483647, but 31457280 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:172) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.util.IOUtils.toByteArray(IOUtils.java:143) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.util.IOUtils.toByteArray(IOUtils.java:120) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.util.IOUtils.toByteArray(IOUtils.java:107) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:194) 
~[poi-4.0.1.jar:4.0.1]
        at 
org.apache.tika.parser.microsoft.SummaryExtractor.parseSummaryEntryIfExists(SummaryExtractor.java:83)
 [tika-parsers-1.22.jar:1.22]
        at 
org.apache.tika.parser.microsoft.SummaryExtractor.parseSummaries(SummaryExtractor.java:74)
 [tika-parsers-1.22.jar:1.22]
        at 
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:155) 
[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]
        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]
11:03:57.547 [main] ERROR c.b.c.c.f.c.ContentExtraction    -
                Error processing payload file
org.apache.tika.exception.TikaException: Unexpected RuntimeException from 
org.apache.tika.parser.microsoft.OfficeParser@776802b0
        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 2147483647, but 31457280 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:172) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.util.IOUtils.toByteArray(IOUtils.java:143) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.util.IOUtils.toByteArray(IOUtils.java:120) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.util.IOUtils.toByteArray(IOUtils.java:107) 
~[poi-4.0.1.jar:4.0.1]
        at org.apache.poi.hdgf.HDGFDiagram.<init>(HDGFDiagram.java:62) 
~[poi-scratchpad-4.0.1.jar:4.0.1]
        at 
org.apache.poi.hdgf.extractor.VisioTextExtractor.<init>(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]
        ... 34 common frames omitted
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to