连接到流处理器4.3.0时WSO2 APIM签名检查失败

时间:2019-10-02 19:33:37

标签: wso2-am wso2carbon wso2sp

当我尝试将APIM 2.6.0与流处理器4.3.0集成时遇到一个奇怪的问题

我已经启动了流处理器工作程序节点,并且所有siddhi应用程序都已经部署完毕,并按照Deployment.yml文件中的指定在数据库中创建了表

现在,我已经在同一服务器(Ubuntu)中安装了APIm 2.6.0,并在api-manager.xml文件中启用了Analytics(分析)选项。

启动APIM时,我不断遇到错误:

    ERROR - DataEndpointConnectionWorker Error while trying to connect to the endpoint. Cannot borrow client for ssl://localhost:7712.
    org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://localhost:7712.
            at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:134)
            at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.run(DataEndpointConnectionWorker.java:59)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
            at java.lang.Thread.run(Thread.java:748)
    Caused by: org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Error while trying to login to the data receiver.
            at org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint.login(ThriftDataEndpoint.java:54)
            at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:128)
            ... 6 more
    Caused by: org.apache.thrift.transport.TTransportException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
            at org.apache.thrift.transport.TIOStreamTransport.flush(TIOStreamTransport.java:161)
            at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:65)
            at org.wso2.carbon.databridge.commons.thrift.service.secure.ThriftSecureEventTransmissionService$Client.send_connect(ThriftSecureEventTransmissionService.java:104)
            at org.wso2.carbon.databridge.commons.thrift.service.secure.ThriftSecureEventTransmissionService$Client.connect(ThriftSecureEventTransmissionService.java:95)
            at org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint.login(ThriftDataEndpoint.java:47)
            ... 7 more
    Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
            at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
            at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946)
            at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316)
            at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310)
            at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639)
            at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)
            at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037)
            at sun.security.ssl.Handshaker.process_record(Handshaker.java:965)
            at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064)
            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
            at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:750)
            at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
            at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
            at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
            at org.apache.thrift.transport.TIOStreamTransport.flush(TIOStreamTransport.java:159)
            ... 11 more
    Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
            at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:362)
            at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:270)
            at sun.security.validator.Validator.validate(Validator.java:262)
            at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:330)
            at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:237)
            at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:132)
            at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621)
            ... 21 more
    Caused by: java.security.cert.CertPathValidatorException: signature check failed
            at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:135)
            at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:233)
            at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:141)
            at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:80)
            at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
            at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:357)
            ... 27 more
    Caused by: java.security.SignatureException: Signature length not correct: got 256 but was expecting 128
            at sun.security.rsa.RSASignature.engineVerify(RSASignature.java:189)
            at java.security.Signature$Delegate.engineVerify(Signature.java:1222)
            at java.security.Signature.verify(Signature.java:655)
            at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:444)
            at sun.security.provider.certpath.BasicChecker.verifySignature(BasicChecker.java:166)
            at sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:147)
            at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:125)
            ... 32 more

请问有关错误之处的信息在这里。到目前为止,我为检查此问题所做的工作是:

1)我还更新了client-truststore中的证书 2)在工作节点的部署文件中启用(基于64格式)管理员密码 我仅使用默认密码作为管理员。有人可以帮忙吗

谢谢

0 个答案:

没有答案