java.lang.reflect.InvocationTargetException

ICEsoft JIRA Issue Tracker | Arran Mccullough | 1 year ago
  1. 0

    With the provided PDF file the following exception is thrown and the image is rendered incorrectly: WARNING: Problem loading JBIG2 image: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.icepdf.core.pobjects.ImageUtility.jbig2Decode(ImageUtility.java:727) at org.icepdf.core.pobjects.ImageStream.jbig2Decode(ImageStream.java:635) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:348) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:291) at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:98) at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:39) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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:745) Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 at org.jpedal.jbig2.io.StreamReader.readByte(StreamReader.java:93) at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.handleSegmentNumber(JBIG2StreamDecoder.java:506) at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegmentHeader(JBIG2StreamDecoder.java:472) at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegments(JBIG2StreamDecoder.java:225) at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.decodeJBIG2(JBIG2StreamDecoder.java:134) at org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2(JBIG2Decoder.java:148) ... 14 more Using the Levigo library on the classpath doesn't have this issue.

    ICEsoft JIRA Issue Tracker | 1 year ago | Arran Mccullough
    java.lang.reflect.InvocationTargetException
  2. 0

    With the provided PDF file the following exception is thrown and the image is rendered incorrectly: WARNING: Problem loading JBIG2 image: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.icepdf.core.pobjects.ImageUtility.jbig2Decode(ImageUtility.java:727) at org.icepdf.core.pobjects.ImageStream.jbig2Decode(ImageStream.java:635) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:348) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:291) at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:98) at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:39) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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:745) Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 at org.jpedal.jbig2.io.StreamReader.readByte(StreamReader.java:93) at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.handleSegmentNumber(JBIG2StreamDecoder.java:506) at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegmentHeader(JBIG2StreamDecoder.java:472) at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegments(JBIG2StreamDecoder.java:225) at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.decodeJBIG2(JBIG2StreamDecoder.java:134) at org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2(JBIG2Decoder.java:148) ... 14 more Using the Levigo library on the classpath doesn't have this issue.

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

    Error handling when reading from txt file

    Stack Overflow | 3 weeks ago | Buupu
    java.lang.ArrayIndexOutOfBoundsException: 2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    migrating jsf1.1 to jsf1.1_02

    Oracle Community | 8 years ago | 843844
    java.lang.ArrayIndexOutOfBoundsException: 2

    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

      2

      at org.jpedal.jbig2.io.StreamReader.readByte()
    2. jbig2
      JBIG2Decoder.decodeJBIG2
      1. org.jpedal.jbig2.io.StreamReader.readByte(StreamReader.java:93)
      2. org.jpedal.jbig2.decoders.JBIG2StreamDecoder.handleSegmentNumber(JBIG2StreamDecoder.java:506)
      3. org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegmentHeader(JBIG2StreamDecoder.java:472)
      4. org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegments(JBIG2StreamDecoder.java:225)
      5. org.jpedal.jbig2.decoders.JBIG2StreamDecoder.decodeJBIG2(JBIG2StreamDecoder.java:134)
      6. org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2(JBIG2Decoder.java:148)
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. org.icepdf.core
      SmoothScaledImageReference.call
      1. org.icepdf.core.pobjects.ImageUtility.jbig2Decode(ImageUtility.java:727)
      2. org.icepdf.core.pobjects.ImageStream.jbig2Decode(ImageStream.java:635)
      3. org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:348)
      4. org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:291)
      5. org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:98)
      6. org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:39)
      6 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames