artsiomau opened a new issue, #21344:
URL: https://github.com/apache/pulsar/issues/21344

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   3.0.0
   
   ### Minimal reproduce step
   
   add the pulsar-client-3.0.0.jar as a dependency, try to create an admin 
client
   
   ### What did you expect to see?
   
   no warnings or a warning that reports a reason for method emptyList()  to be 
unavailable
   
   ### What did you see instead?
   
   java.lang.IllegalAccessError: class com.company.grpc.inventory.Command tried 
to access method 'com.google.protobuf.LazyStringArrayList 
com.google.protobuf.LazyStringArrayList.emptyList()' 
(com.company.grpc.inventory.Command and com.google.protobuf.LazyStringArrayList 
are in unnamed module of loader 'app’)
   
   
   ### Anything else?
   
   I also use dependencies:
   1) JavaVersion = '17’
   2) protobufJavaVersion = '3.22.3'
   3) grpcJavaVersion = '1.54.2'
   
   I think I have this problem because Pulsar uses protobuf version 3.19.6, 
which the emptyList() method is package private 
https://github.com/protocolbuffers/protobuf/blob/5cba162a5d93f8df786d828621019e03e50edb4f/java/core/src/main/java/com/google/protobuf/LazyStringArrayList.java#L70
   They have exposed the method to the public since 3.22.0 
[protocolbuffers/protobuf@c658e27](https://github.com/protocolbuffers/protobuf/commit/c658e27529ccf4a000724ab3622f1b807c85449b)
   
   When I use these dependencies, I don't have this problem:
   1) protobufJavaVersion = '3.21.7'
   2) grpcJavaVersion = '1.54.2'
   
   Do you know about such a bug and in which release it will be fixed?
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org.apache.org

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

Reply via email to