java.lang.RuntimeException: File is neither valid JP2 file nor valid JPEG 2000 codestream

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I can't get an ImageReaderByFormatName("jpeg-lossless")

    Stack Overflow | 6 years ago | Reuben Peter-Paul
    java.lang.RuntimeException: File is neither valid JP2 file nor valid JPEG 2000 codestream

    Root Cause Analysis

    1. java.lang.RuntimeException

      File is neither valid JP2 file nor valid JPEG 2000 codestream

      at com.sun.media.imageioimpl.plugins.jpeg2000.J2KReadState.initializeRead()
    2. com.sun.media
      J2KImageReader.read
      1. com.sun.media.imageioimpl.plugins.jpeg2000.J2KReadState.initializeRead(J2KReadState.java:696)
      2. com.sun.media.imageioimpl.plugins.jpeg2000.J2KReadState.<init>(J2KReadState.java:209)
      3. com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader.read(J2KImageReader.java:449)
      3 frames
    3. Java RT
      ImageReader.read
      1. javax.imageio.ImageReader.read(ImageReader.java:940)
      1 frame