Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform Stackdriver监视API在获取时间序列度量数据时引发错误_Google Cloud Platform_Google Cloud Stackdriver - Fatal编程技术网

Google cloud platform Stackdriver监视API在获取时间序列度量数据时引发错误

Google cloud platform Stackdriver监视API在获取时间序列度量数据时引发错误,google-cloud-platform,google-cloud-stackdriver,Google Cloud Platform,Google Cloud Stackdriver,我发现了错误 找不到有效的证书路径 根据这段代码: MetricServiceClient mServiceClient = MetricServiceClient.create() ListTimeSeriesResponse response = mServiceClient.listTimeSeriesCallable().call(request); 错误的堆栈跟踪: java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledF

我发现了错误

找不到有效的证书路径

根据这段代码:

MetricServiceClient mServiceClient = MetricServiceClient.create()
ListTimeSeriesResponse response = mServiceClient.listTimeSeriesCallable().call(request);
错误的堆栈跟踪:

java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
协议谈判者$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] 位于io.grpc.Status.asRuntimeException(Status.java:533) ... 24更多原因:javax.net.ssl.SSLHandshakeException:一般OpenSslEngine问题 在io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpensLengine.handshakeException(ReferenceCountedOpensLengine.java:1728) 在io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpensLengine.wrap(ReferenceCountedOpensLengine.java:770) 位于javax.net.ssl.SSLEngine.wrap(SSLEngine.java:509) 位于io.grpc.netty.shaded.io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:1043) 位于io.grpc.netty.shaded.io.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:934) 在io.grpc.netty.shaded.io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1392) 在io.grpc.netty.shaded.io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1224)中 在io.grpc.netty.shaded.io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1271)中 位于io.grpc.netty.shade.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:505) 位于io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444) 在io.grpc.netty.shade.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:283) 位于io.grpc.netty.shade.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) 位于io.grpc.netty.shade.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) 位于io.grpc.netty.shade.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) 位于io.grpc.netty.shade.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1422) 位于io.grpc.netty.shade.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) 位于io.grpc.netty.shade.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) 位于io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:931) 位于io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioByteChannel$niobytuensafe.read(AbstractNioByteChannel.java:163) 在io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:700)中 在io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:635)中 在io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys上(NioEventLoop.java:552) 在io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:514)中 位于io.grpc.netty.shade.io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1044) 位于io.grpc.netty.shaded.io.netty.util.internal.ThreadExecuteMap$2.run(threadExecuteMap.java:74) 位于io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ... 1其他原因:sun.security.validator.validator异常:PKIX路径生成失败: sun.security.provider.certpath.SunCertPathBuilderException:无法 找到请求目标的有效证书路径 位于sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) 位于sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) 位于sun.security.validator.validator.validate(validator.java:262) 位于sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) 位于sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:281) 位于sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:136) 位于io.grpc.netty.shade.io.netty.handler.ssl.OpenSslTlsv13X509ExtendedTrustManager.checkServerTrusted(OpenSslTlsv13X509ExtendedTrustManager.java:221) 在io.grpc.netty.shade.io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTrustManagerFileCallback.verify(ReferenceCountedOpenSslClientContext.java:248)处 在io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpenSslContext$AbstractCertificateVerifier.verify(ReferenceCountedOpenSslContext.java:699) 在io.grpc.netty.shaded.io.netty.internal.tcnative.SSL.readFromSSL(本机 (方法) 在io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpensLengine.readPlaintextData(ReferenceCountedOpensLengine.java:589) 在io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpensLengine.unwrap(ReferenceCountedOpensLengine.java:1172) 在io.grpc.netty.shaded.io.netty.handler.ssl.ReferenceCountedOpensLengine.unwrap(ReferenceCountedOpensLengine.java:1289) 在io.grpc.netty.shaded.io.netty.handler.ssl.SslHandler$SslEngineType$1.unwrap(SslHandler.java:199) 在io.grpc.netty.shaded.io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1329) ... 21更多原因:sun.security.provider.certpath.SunCertPathBuilderException:无法 找到请求目标的有效证书路径 位于sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) 位于sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) 位于java.security.cert.CertPathBuilder.build(CertPathBuilder.java:2
    ... 3 more
    Suppressed: com.google.api.gax.rpc.AsyncTaskException: Asynchronous task failed
            at com.google.api.gax.rpc.ApiExceptions.callAndTranslateApiException(ApiExceptions.java:57)
            at com.google.api.gax.rpc.UnaryCallable.call(UnaryCallable.java:112)
            at com.vmware.adapter3.gcp.builder.GoogleCloudMonitoringManager$MetricsCollector.lambda$null$6(GoogleCloudMonitoringManager.java:235)
            at java.util.ArrayList.forEach(ArrayList.java:1257)
            at com.vmware.adapter3.gcp.builder.GoogleCloudMonitoringManager$MetricsCollector.lambda$call$7(GoogleCloudMonitoringManager.java:207)
            at java.util.ArrayList.forEach(ArrayList.java:1257)
            at com.vmware.adapter3.gcp.builder.GoogleCloudMonitoringManager$MetricsCollector.call(GoogleCloudMonitoringManager.java:194)
            at com.vmware.adapter3.gcp.builder.GoogleCloudMonitoringManager$MetricsCollector.call(GoogleCloudMonitoringManager.java:165)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            ... 3 more Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0,