java.lang.reflect.InvocationTargetException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When running the PDF file provided by the customer the following exception is thrown and the text is rendered as all special characters: FINE: Could not create instance of font file 5 java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.icepdf.core.pobjects.fonts.FontFactory.createFontFile(FontFactory.java:151) at org.icepdf.core.pobjects.fonts.FontDescriptor.init(FontDescriptor.java:311) at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source) at org.icepdf.core.pobjects.Resources.getFont(Resources.java:147) at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722) at org.icepdf.core.util.content.NContentParser.parseText(Unknown Source) at org.icepdf.core.util.content.NContentParser.parse(Unknown Source) at org.icepdf.core.pobjects.Page.init(Page.java:367) at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1017) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.ArrayIndexOutOfBoundsException: 6 at org.icepdf.core.pobjects.fonts.nfont.i.readUint16(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.readMaxpTable(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.parse(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.parse(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.i.<init>(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.<init>(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.<init>(Unknown Source) ... 17 more
    via by Arran Mccullough,
  • When running the PDF file provided by the customer the following exception is thrown and the text is rendered as all special characters: FINE: Could not create instance of font file 5 java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.icepdf.core.pobjects.fonts.FontFactory.createFontFile(FontFactory.java:151) at org.icepdf.core.pobjects.fonts.FontDescriptor.init(FontDescriptor.java:311) at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source) at org.icepdf.core.pobjects.Resources.getFont(Resources.java:147) at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722) at org.icepdf.core.util.content.NContentParser.parseText(Unknown Source) at org.icepdf.core.util.content.NContentParser.parse(Unknown Source) at org.icepdf.core.pobjects.Page.init(Page.java:367) at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1017) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.ArrayIndexOutOfBoundsException: 6 at org.icepdf.core.pobjects.fonts.nfont.i.readUint16(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.readMaxpTable(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.parse(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.parse(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.i.<init>(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.<init>(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.<init>(Unknown Source) ... 17 more
    via by Arran Mccullough,
    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.icepdf.core.pobjects.fonts.FontFactory.createFontFile(FontFactory.java:151) at org.icepdf.core.pobjects.fonts.FontDescriptor.init(FontDescriptor.java:311) at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source) at org.icepdf.core.pobjects.Resources.getFont(Resources.java:147) at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722) at org.icepdf.core.util.content.NContentParser.parseText(Unknown Source) at org.icepdf.core.util.content.NContentParser.parse(Unknown Source) at org.icepdf.core.pobjects.Page.init(Page.java:367) at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1017) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.ArrayIndexOutOfBoundsException: 6 at org.icepdf.core.pobjects.fonts.nfont.i.readUint16(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.readMaxpTable(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.parse(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.parse(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.i.<init>(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.<init>(Unknown Source) at org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.<init>(Unknown Source) ... 17 more
    No Bugmate found.