Hi all,
I'm getting the following NullPointerException when trying to read a PDF file that has a single table on it:
Exception in thread "java.lang.ThreadGroup[name=main,maxpri=10]_2" java.lang.NullPointerException: Cannot invoke "java.util.concurrent.ThreadPoolExecutor.shutdown()" because the return value of "com.spire.pdf.packages.sprwxt.spr■‣()" is null
at com.spire.pdf.packages.spruiu.spr╁¶(ThreadPool.java:117)
at com.spire.pdf.packages.sprblu.spr╁¶(Thread.java:66)
at com.spire.pdf.packages.sprteu.run(Thread.java:118)
at java.base/java.lang.Thread.run(Thread.java:1583)
It only seems to happen when I use the file in a JUnit test. This is a problem, though, because I need to know if my parsing is consistent. I'm also getting issues where it seems like the first row of the table is being skipped, although there is no exception thrown for that. The problem happens both when running tests in parallel and in series. It also only seems to show up if I run two or more tests with files like this, not if I run only one. I currently can't provide the file because it has confidential information in it, unfortunately, but I have attached a redacted image of it with generic text in the cells; hopefully you can make a test PDF file from the image.
The PDF file is a single page that has a company logo at the top, followed by a table with 6 columns. There are 30+ rows in the table. The first row is simple column header cells that don't span multiple rows. Cells in both the first and second columns span multiple rows, and cells in columns 3-6 don't. There are images in 2 cells in column 4. After the table, a date is in the lower right hand corner of the page.
I hope that's enough information to create a test.