eolivelli opened a new issue #922: Bookie and BookKeeperAdmin does not use 
shaded Protobuf JAR
URL: https://github.com/apache/bookkeeper/issues/922
 
 
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   Bookie depends on non-shaded Google Protobuf 3.4.0
   
   - What did you do?
   Start a Bookie (embedded) without Protobuf on the classpath
   
   - What did you expect to see?
   The Bookie should start, because we are shading and relocating Protobuf
   
   - What did you see instead?
   
   This is the error on BookKeeperAdmin:
   ```
   
   Caused by: java.lang.NoClassDefFoundError: 
com/google/protobuf/ExtensionRegistry
        at 
org.apache.bookkeeper.proto.BookieClient.<init>(BookieClient.java:108)
        at org.apache.bookkeeper.client.BookKeeper.<init>(BookKeeper.java:492)
        at org.apache.bookkeeper.client.BookKeeper.<init>(BookKeeper.java:365)
        at 
org.apache.bookkeeper.client.BookKeeperAdmin.format(BookKeeperAdmin.java:1181)
   ```
   
   This is the error on Bookie:
   
   ```
   2017-12-27-11-22-11.938 Caused by: java.lang.NoClassDefFoundError: 
com/google/protobuf/GeneratedMessageV3
   2017-12-27-11-22-11.938      at java.lang.ClassLoader.defineClass1(Native 
Method)
   2017-12-27-11-22-11.938      at 
java.lang.ClassLoader.defineClass(ClassLoader.java:763)
   2017-12-27-11-22-11.939      at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   2017-12-27-11-22-11.939      at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
   2017-12-27-11-22-11.939      at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73)
   2017-12-27-11-22-11.940      at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368)
   2017-12-27-11-22-11.940      at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362)
   2017-12-27-11-22-11.940      at 
java.security.AccessController.doPrivileged(Native Method)
   2017-12-27-11-22-11.941      at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361)
   2017-12-27-11-22-11.941      at 
magnews.server.ServiceClassLoader.findClass(ServiceClassLoader.java:105)
   2017-12-27-11-22-11.942      at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   2017-12-27-11-22-11.942      at 
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   2017-12-27-11-22-11.942      at 
org.apache.bookkeeper.bookie.Cookie.parse(Cookie.java:199)
   2017-12-27-11-22-11.943      at 
org.apache.bookkeeper.bookie.Cookie.readFromRegistrationManager(Cookie.java:336)
   2017-12-27-11-22-11.943      at 
org.apache.bookkeeper.bookie.Bookie.readAndVerifyCookieFromRegistrationManager(Bookie.java:363)
   2017-12-27-11-22-11.944      at 
org.apache.bookkeeper.bookie.Bookie.checkEnvironmentWithStorageExpansion(Bookie.java:442)
   2017-12-27-11-22-11.944      at 
org.apache.bookkeeper.bookie.Bookie.checkEnvironment(Bookie.java:282)
   2017-12-27-11-22-11.944      at 
org.apache.bookkeeper.bookie.Bookie.<init>(Bookie.java:642)
   2017-12-27-11-22-11.945      at 
org.apache.bookkeeper.proto.BookieServer.newBookie(BookieServer.java:102)
   2017-12-27-11-22-11.945      at 
org.apache.bookkeeper.proto.BookieServer.<init>(BookieServer.java:83)
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to