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

带有加密的jar包会序列化不过java.lang.SecurityException: SHA1 digest error for ,求大神解答 #303

Closed
jingyongxuan666 opened this issue Apr 23, 2022 · 1 comment

Comments

@jingyongxuan666
Copy link

带有加密的jar包会序列化不过,jar包无法参与打包了,报错如下
java.lang.SecurityException: SHA1 digest error for org/bouncycastle/asn1/ASN1OctetStringParser.class at java.base/java.util.jar.JarVerifier.update(JarVerifier.java:230) at com.didiglobal.booster.transform.util.TransformKt.readBytes(transform.kt:138) at java.base/sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:239) at com.didiglobal.booster.transform.util.TransformKt.transform(transform.kt:54) at java.base/sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:239) at com.didiglobal.booster.transform.util.TransformKt.readBytes$default(transform.kt:136) at java.base/java.util.jar.JarVerifier.processEntry(JarVerifier.java:243) at com.joyratel.plugin.extension.CommonExtKt.doTransform$lambda-9$lambda-8(CommonExt.kt:221) at java.base/java.util.jar.JarVerifier.processEntry(JarVerifier.java:243) at org.apache.commons.compress.archivers.zip.ZipArchiveEntryRequest.getPayloadStream(ZipArchiveEntryRequest.java:62) at com.didiglobal.booster.transform.util.TransformKt.readBytes$default(transform.kt:136) at java.base/java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:473) at java.base/sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:239) at java.base/java.io.InputStream.read(InputStream.java:205) at com.didiglobal.booster.transform.util.TransformKt.transform(transform.kt:54) at org.apache.commons.compress.archivers.zip.ScatterZipOutputStream.addArchiveEntry(ScatterZipOutputStream.java:99) at java.base/java.util.jar.JarVerifier.update(JarVerifier.java:230) at java.base/java.util.jar.JarVerifier.update(JarVerifier.java:230) at com.didiglobal.booster.transform.util.TransformKt.transform(transform.kt:54) at java.base/java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:473) at java.base/java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:473) at org.apache.commons.compress.archivers.zip.ParallelScatterZipCreator.lambda$createCallable$1(ParallelScatterZipCreator.java:229) at com.joyratel.plugin.extension.CommonExtKt.doTransform$lambda-9$lambda-8(CommonExt.kt:221) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

@johnsonlee
Copy link
Collaborator

Duplicate of #368

@johnsonlee johnsonlee marked this as a duplicate of #368 Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants