java.lang.reflect.InvocationTargetException

ICEsoft JIRA Issue Tracker | Arran Mccullough | 3 years ago
  1. 0

    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

    ICEsoft JIRA Issue Tracker | 3 years ago | Arran Mccullough
    java.lang.reflect.InvocationTargetException
  2. 0

    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

    ICEsoft JIRA Issue Tracker | 3 years ago | Arran Mccullough
    java.lang.reflect.InvocationTargetException
  3. 0

    Importing CSV file into 2D String array

    Stack Overflow | 4 years ago | user2427023
    java.lang.ArrayIndexOutOfBoundsException: 6
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IndexOutOfBounds while looping through 2D array

    Stack Overflow | 3 years ago | Adam Miszczak
    java.lang.ArrayIndexOutOfBoundsException: 6
  6. 0

    Out of bounds error on current ignore

    GitHub | 3 years ago | btipling
    java.lang.ArrayIndexOutOfBoundsException: 6

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      6

      at org.icepdf.core.pobjects.fonts.nfont.i.readUint16()
    2. org.icepdf.core
      NFontOpenType.<init>
      1. org.icepdf.core.pobjects.fonts.nfont.i.readUint16(Unknown Source)
      2. org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.readMaxpTable(Unknown Source)
      3. org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.parse(Unknown Source)
      4. org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.parse(Unknown Source)
      5. org.icepdf.core.pobjects.fonts.nfont.i.<init>(Unknown Source)
      6. org.icepdf.core.pobjects.fonts.nfont.NFontTrueType.<init>(Unknown Source)
      7. org.icepdf.core.pobjects.fonts.nfont.NFontOpenType.<init>(Unknown Source)
      7 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:525)
      4 frames
    4. org.icepdf.core
      Page.init
      1. org.icepdf.core.pobjects.fonts.FontFactory.createFontFile(FontFactory.java:151)
      2. org.icepdf.core.pobjects.fonts.FontDescriptor.init(FontDescriptor.java:311)
      3. org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source)
      4. org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source)
      5. org.icepdf.core.pobjects.Resources.getFont(Resources.java:147)
      6. org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722)
      7. org.icepdf.core.util.content.NContentParser.parseText(Unknown Source)
      8. org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      9. org.icepdf.core.pobjects.Page.init(Page.java:367)
      9 frames
    5. org.icepdf.ri
      PageViewComponentImpl$PageInitializer.run
      1. org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1017)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:722)
      3 frames