Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In versions prior to Spring Boot 2.3, a 'zip file closed' exception is thrown. #31741

Closed
iamhucong opened this issue Jun 18, 2024 · 0 comments · Fixed by #31742
Closed

In versions prior to Spring Boot 2.3, a 'zip file closed' exception is thrown. #31741

iamhucong opened this issue Jun 18, 2024 · 0 comments · Fixed by #31742
Assignees
Milestone

Comments

@iamhucong
Copy link
Contributor

Bug Report

Which version of ShardingSphere did you use?

master

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

all

Expected behavior

Actual behavior

java. lang. IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java: 669)
at java.util.zip.ZipFile.access$200 (ZipFile.java:60)
at java.util.zip.ZipFile$ZipEntryIterator.‹init>(ZipFile.java:484)
at java.util.zip.zipFile.entries (ZipFile.java:537)
at java.util.jar.JarFile.access$001 (JarFile.java:71)
at java.util.jar.JarFile$JarEntryIterator.<init>(JarFile.java:250)
at java.util.jar.JarFile$JarEntryIterator.<init>(JarFile.java:247)
at java.util.jar.JarFile.stream(JarFile.java:279)
at org.apache.shardingsphere.infra.util.directory.ClasspathResourceDirectoryReader.readDirectoryInJar(ClasspathResourceDirectoryReader.java:137)

Reason analyze (If you can)

Prior to Spring Boot 2.3, the JarFile class in Spring Boot did not override the stream() method.
spring-projects/spring-boot#23821

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants