Hello Peter,
Looking at the linked issue and the stacktrace presented there, this
appears to be related to java.util.zip code. I've moved this thread to
core-libs-dev which is where discussions related to java.util.zip happen.
The stacktrace is as follows:
Caused by: java.lang.IllegalStateException: Current state = CODING_END,
new state = FLUSHED
at java.nio.charset.CharsetDecoder.throwIllegalStateException
(CharsetDecoder.java:998)
at java.nio.charset.CharsetDecoder.flush (CharsetDecoder.java:681)
at java.nio.charset.CharsetDecoder.decode (CharsetDecoder.java:810)
at java.util.zip.ZipCoder.normalizedHashDecode (ZipCoder.java:136)
at java.util.zip.ZipCoder$UTF8ZipCoder.normalizedHash
(ZipCoder.java:228)
at java.util.zip.ZipFile$Source.initCEN (ZipFile.java:1527)
at java.util.zip.ZipFile$Source.<init> (ZipFile.java:1249)
at java.util.zip.ZipFile$Source.get (ZipFile.java:1211)
at java.util.zip.ZipFile$CleanableResource.<init> (ZipFile.java:701)
at java.util.zip.ZipFile.<init> (ZipFile.java:240)
at java.util.zip.ZipFile.<init> (ZipFile.java:171)
at java.util.jar.JarFile.<init> (JarFile.java:347)
at jdk.internal.loader.URLClassPath$JarLoader.getJarFile
(URLClassPath.java:816)
Additional details in that issue state that the JDK being used is Java
15. There have been code changes in this piece of code in
java.util.zip.ZipFile since then. In fact, in the current mainline (and
recent releases) I don't see initCEN calling the ZipCoder. Would you be
able to test this against more recent releases (preferably Java 19) and
see if it is still reproducible?
-Jaikiran
On 17/03/23 4:09 pm, Peter Rader wrote:
I have been requested to ask if you feel responsible to fix this bug.
Caused by: java.lang.IllegalStateException: Current state =
CODING_END, new state = FLUSHED
at java.nio.charset.CharsetDecoder.throwIllegalStateException
(CharsetDecoder.java:998)
at java.nio.charset.CharsetDecoder.flush (CharsetDecoder.java:681)
at java.nio.charset.CharsetDecoder.decode (CharsetDecoder.java:810)
at java.util.zip.ZipCoder.normalizedHashDecode (ZipCoder.java:136)
at java.util.zip.ZipCoder$UTF8ZipCoder.normalizedHash
(ZipCoder.java:228)
Original ticket: https://issues.apache.org/jira/browse/MNG-7742
Kind regards
Peter Rader
--
Fachinformatiker AE / IT Software Developer
Peter Rader
Wilsnacker Strasse 17
10559 Berlin - GERMANY
Tel: 0049 (0)30 / 6 29 33 29 6
Fax: 0049 (0)30 / 6 29 33 29 6
Handy: 0049 (0)176 / 87 521 576
Handy: 0049 (0)176 / 47 876 303