我在linux上部署wso2 cep并成功登录。我创建了用于调用输入事件适配器的代理,我收到了错误。
org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,XXX.XXX.XXX.XXX:7611,TCP,XXX.XXX.XXX.XXX:7711
at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58)
at org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273)
at org.wso2.carbon.databridge.agent.thrift.DataPublisher.<init>(DataPublisher.java:161)
at org.wso2.carbon.databridge.agent.thrift.DataPublisher.<init>(DataPublisher.java:88)
at com.toogram.agent.publisher.thebulae.AgeAlcoholAnswerAdaptor.initParam(AgeAlcoholAnswerAdaptor.java:45)
at com.toogram.agent.publisher.thebulae.AgeAlcoholAnswerAdaptor.<init>(AgeAlcoholAnswerAdaptor.java:25)
at com.toogram.agent.publisher.thebulae.AgeAlcoholAnswerAdaptor.main(AgeAlcoholAnswerAdaptor.java:102)
Caused by: org.apache.thrift.transport.TTransportException: Could not connect to 210.109.9.177 on port 7711
at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212)
at org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166)
at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90)
at org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48)
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212)
at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50)
... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
at org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208)
我在linux(7611,7711端口)上打开端口,但我仍然遇到同样的错误。 当CEP在Windows上运行时它运行正常。它碰巧运行linux。
请帮忙......