You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "lbhfuture (via GitHub)" <gi...@apache.org> on 2023/03/30 10:07:29 UTC

[GitHub] [dubbo] lbhfuture opened a new issue, #11972: java.lang.ClassNotFoundException: io.grpc.ClientStreamTracer$InternalLimitedInfoFactory

lbhfuture opened a new issue, #11972:
URL: https://github.com/apache/dubbo/issues/11972

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ x ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.2.0-beta.5
   * Operating System version: k8s
   * Java version: openjdk 17
   
   ### Steps to reproduce this issue
   
   1. 在 Kubernetes 以 Proxyless 方式中部署,已经引入了 dubbo-xds 依赖,报找不到
   ```plain
   2023-03-30T09:55:28.223Z  INFO 1 --- [           main] o.a.d.remoting.transport.AbstractServer  :  [DUBBO] Start NettyPortUnificationServer bind /0.0.0.0:50051, export /[0:0:0:0:0:0:0:0]:50051, dubbo version: 3.2.0-beta.5, current host: 10.244.2.43
   2023-03-30T09:55:28.268Z  INFO 1 --- [           main] o.a.d.r.c.m.store.MetaCacheManager       :  [DUBBO] Successfully loaded meta cache from file .metadata.organization-producer.xds.istiod.istio-system.svc:15012, entries 0, dubbo version: 3.2.0-beta.5, current host: 10.244.2.43
   Exception in thread "grpc-default-executor-1" java.lang.NoClassDefFoundError: io/grpc/ClientStreamTracer$InternalLimitedInfoFactory
   	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
   	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
   	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
   	at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524)
   	at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427)
   	at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421)
   	at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
   	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:420)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
   	at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:149)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
   	at io.grpc.internal.ManagedChannelImpl$ChannelStreamProvider.newStream(ManagedChannelImpl.java:594)
   	at io.grpc.internal.ClientCallImpl.startInternal(ClientCallImpl.java:256)
   	at io.grpc.internal.ClientCallImpl.start(ClientCallImpl.java:189)
   	at io.grpc.internal.DelayedClientCall$1.run(DelayedClientCall.java:180)
   	at io.grpc.internal.DelayedClientCall.drainPendingCalls(DelayedClientCall.java:278)
   	at io.grpc.internal.DelayedClientCall.setCall(DelayedClientCall.java:152)
   	at io.grpc.internal.ManagedChannelImpl$RealChannel$PendingCall$1.run(ManagedChannelImpl.java:1110)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   	at java.base/java.lang.Thread.run(Thread.java:833)
   Caused by: java.lang.ClassNotFoundException: io.grpc.ClientStreamTracer$InternalLimitedInfoFactory
   	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
   	at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:149)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
   	... 21 more
   ```
   3. 查看 grpc-api 包里的 ClientStreamTracer 类,里面没有 InternalLimitedInfoFactory, grpc-api 由 dubbo-xds 引入,版本是 1.48.1
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   ### Actual Behavior
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] lbhfuture commented on issue #11972: java.lang.ClassNotFoundException: io.grpc.ClientStreamTracer$InternalLimitedInfoFactory

Posted by "lbhfuture (via GitHub)" <gi...@apache.org>.
lbhfuture commented on issue #11972:
URL: https://github.com/apache/dubbo/issues/11972#issuecomment-1491178170

   我查看了一下 dubbo-xds 的依赖关系,发现其通过 grpc-netty-shaded:1.41.0 引入了对应版本的 grpc-api,然后又通过 grpc-protobuf:1.48.1 和 grpc-stub:1.48.1 引入了对应版本的 grpc-api,在新版的 api 中 使用的是 `io.grpc.ClientStreamTracer$Factory`。


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] lbhfuture commented on issue #11972: java.lang.ClassNotFoundException: io.grpc.ClientStreamTracer$InternalLimitedInfoFactory

Posted by "lbhfuture (via GitHub)" <gi...@apache.org>.
lbhfuture commented on issue #11972:
URL: https://github.com/apache/dubbo/issues/11972#issuecomment-1491263472

   把 grpc-netty-shaded 升级到 1.48.1 后问题解决了,版本冲突的问题。


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #11972: java.lang.ClassNotFoundException: io.grpc.ClientStreamTracer$InternalLimitedInfoFactory

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #11972:
URL: https://github.com/apache/dubbo/issues/11972#issuecomment-1490184563

   @aamingaa PTAL


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ closed issue #11972: java.lang.ClassNotFoundException: io.grpc.ClientStreamTracer$InternalLimitedInfoFactory

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ closed issue #11972: java.lang.ClassNotFoundException: io.grpc.ClientStreamTracer$InternalLimitedInfoFactory
URL: https://github.com/apache/dubbo/issues/11972


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org