Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333859

Pack200.newUnpacker().unpack() throws IOException.

XMLWordPrintable

    • b02
    • b01
    • generic

        jrecreate tool got the error after JDK-8322106.
        This occurs when using the Java implementation to unpack large files such as rt.jar.

        com.sun.java.util.jar.pack.Utils$Pack200Logger warning
        WARNING: Error on input: java.io.IOException: Resetting to invalid mark
        Building JRE failed. null
        java.lang.InternalError
        at oracle.tools.jrecreate.JREBuilder.repackJarFiles(JREBuilder.java:459)
        at oracle.tools.jrecreate.JREBuilder.build(JREBuilder.java:71)
        at oracle.tools.jrecreate.Main.main(Main.java:38)
        Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at oracle.tools.jrecreate.JREBuilder.repackJarFiles(JREBuilder.java:457)

        ... 2 more
        Caused by: java.io.IOException: Resetting to invalid mark
        at java.io.BufferedInputStream.reset(BufferedInputStream.java:448)
        at com.sun.java.util.jar.pack.PackageReader$LimitedBuffer.ensureLengthValid(PackageReader.java:137)
        at com.sun.java.util.jar.pack.PackageReader$LimitedBuffer.access$000(PackageReader.java:77)
        at com.sun.java.util.jar.pack.PackageReader.readConstantPool(PackageReader.java:492)
        at com.sun.java.util.jar.pack.PackageReader.read(PackageReader.java:179)
        at com.sun.java.util.jar.pack.UnpackerImpl$DoUnpack.unpackSegment(UnpackerImpl.java:232)
        at com.sun.java.util.jar.pack.UnpackerImpl$DoUnpack.run(UnpackerImpl.java:220)
        at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:133)
        at com.sun.java.util.jar.pack.Driver.main(Driver.java:354)

              coffeys Sean Coffey
              yjang Yutak Jang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: