You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/11/12 07:02:06 UTC

[GitHub] [pulsar] codelipenghui opened a new issue #8539: Invalid signature file digest for Manifest main attributes

codelipenghui opened a new issue #8539:
URL: https://github.com/apache/pulsar/issues/8539


   **Describe the bug**
   ```
   Error: A JNI error has occurred, please check your installation and try again
   Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
   	at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
   	at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
   	at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318)
   	at java.util.jar.JarVerifier.update(JarVerifier.java:230)
   	at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)
   	at java.util.jar.JarFile.ensureInitialization(JarFile.java:612)
   	at java.util.jar.JavaUtilJarAccessImpl.ensureInitialization(JavaUtilJarAccessImpl.java:69)
   	at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:991)
   	at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
   	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
   	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
   	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
   	at java.security.AccessController.doPrivileged(Native Method)
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
   	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   	at java.lang.Class.getDeclaredMethods0(Native Method)
   	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
   	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
   	at java.lang.Class.getMethod0(Class.java:3018)
   	at java.lang.Class.getMethod(Class.java:1784)
   	at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
   	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
   ```
   
   **To Reproduce**
   Steps to reproduce the behavior:
   Add maven dependency:
   
   ```
           <dependency>
               <groupId>org.apache.pulsar</groupId>
               <artifactId>pulsar-client-all</artifactId>
               <version>2.7.0-SNAPSHOT</version>
           </dependency>
   ```
   Or:
   ```
           <dependency>
               <groupId>org.apache.pulsar</groupId>
               <artifactId>pulsar-client-all</artifactId>
               <version>2.6.2</version>
           </dependency>
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] YannPerthuis commented on issue #8539: Invalid signature file digest for Manifest main attributes

Posted by GitBox <gi...@apache.org>.
YannPerthuis commented on issue #8539:
URL: https://github.com/apache/pulsar/issues/8539#issuecomment-828270908


   Hi, I'm currently working with the pulsar-functions-local-runner 2.7.1 dependency and a JDK 8, and I get this same error when I run my application.
   
   It throws when I instantiate the FunctionConfig class like the [example](https://pulsar.apache.org/docs/en/functions-debug/#debug-with-localrun-mode) in the doc.
   
   Error:
   
   ```java
   Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
           at java.base/sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:336)
           at java.base/sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:269)
           at java.base/java.util.jar.JarVerifier.processEntry(JarVerifier.java:316)
           at java.base/java.util.jar.JarVerifier.update(JarVerifier.java:230)
           at java.base/java.util.jar.JarFile.initializeVerifier(JarFile.java:757)
           at java.base/java.util.jar.JarFile.ensureInitialization(JarFile.java:1034)
           at java.base/java.util.jar.JavaUtilJarAccessImpl.ensureInitialization(JavaUtilJarAccessImpl.java:69)
           at java.base/jdk.internal.loader.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:870)
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:786)
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
           at PulsarFunctionLocalRunner.main(PulsarFunctionLocalRunner.java:17)
   ```
   
   @jiazhai, did the #8491 solve this problem for pulsar-functions-local-runner ?
   
   Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui commented on issue #8539: Invalid signature file digest for Manifest main attributes

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #8539:
URL: https://github.com/apache/pulsar/issues/8539#issuecomment-725959155


   Thanks @jiazhai 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] jiazhai commented on issue #8539: Invalid signature file digest for Manifest main attributes

Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #8539:
URL: https://github.com/apache/pulsar/issues/8539#issuecomment-725933348


   @codelipenghui  verified that latest master `2.7.0-SNAPSHOT` already not have this issue. it should be fixed by #8491 
   And meanwhile,  we should provide a test to cover our shaded module: pulsar-client-all, pulsar-client-admin, and pulsar-client;
   And @reswqa will help on add test for this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] jiazhai closed issue #8539: Invalid signature file digest for Manifest main attributes

Posted by GitBox <gi...@apache.org>.
jiazhai closed issue #8539:
URL: https://github.com/apache/pulsar/issues/8539


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] jiazhai commented on issue #8539: Invalid signature file digest for Manifest main attributes

Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #8539:
URL: https://github.com/apache/pulsar/issues/8539#issuecomment-725935873


   would like to close this issue.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org