Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-3458

[Quarkus] grpc-java does not seem to be supported (Quarkus v 3.2.0)

    XMLWordPrintable

Details

    • Feature
    • Resolution: Can't Do
    • Major
    • None
    • 3.2.9.GA
    • grpc, team/eng
    • None
    • ---

    Description

      Cu. has raised concern on the way io.grpc.netty.NettyChannelBuilder is being initialised at runtime during native build.
      Resulting in 
      ~~~
      com.oracle.svm.core.util.UserError$UserException: Classes that should be initialized at run time got initialized during image building: io.netty.channel.epoll.Epoll the class was requested to be initialized at run time (from feature io.quarkus.runner.Feature.beforeAnalysis with 'Epoll.class'). io.grpc.netty.NettyChannelBuilder caused initialization of this class with the following trace: at io.netty.channel.epoll.Epoll.<clinit>([http://Epoll.java:31([https://protect-usb.mimecast.com/s/HqzrC6Ypy8hrBBxXImO6QV?domain=epoll.java])) at java.lang.Class.forName0(Unknown Source) at java.lang.Class.forName(Class.java:375) at io.grpc.netty.Utils.isEpollAvailable(Utils.java:299) at io.grpc.netty.Utils.<clinit>([http://Utils.java:115([https://protect-usb.mimecast.com/s/54hgC7Dqz3tAJJ9LTNjLKh?domain=utils.java])) at io.grpc.netty.NettyChannelBuilder.<clinit>([http://NettyChannelBuilder.java:84([https://protect-usb.mimecast.com/s/1RvWC5AoxyiZDDOAuO0eH2?domain=nettychannelbuilder.java]))
      ~~~
       
      Environment
      ~~~
      Output of uname -a or ver
      Microsoft Windows [Version 10.0.22621.2134]

      Output of java -version
      openjdk version "17.0.7" 2023-04-18 LTS

      GraalVM version (if different from Java)
      native-image GraalVM 22.3.2 Java 17 CE (Java Version 17.0.7+7-jvmci-22.3-b18), and on WSL2 with CE 20.0.2+9.1 (build 20.0.2+9-jvmci-23.0-b15)

      Quarkus version or git rev
      3.2.0

      Build tool (ie. output of mvnw --version or gradlew --version)
      Maven 3.8.8
      ~~~

      Attachments

        Activity

          People

            cescoffi@redhat.com Clement Escoffier
            rhn-support-asaji Anu Saji
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: