我在同一台服务器上运行ESB(端口偏移0)和BAM(端口偏移+2) 使用BAM介体从ESB向BAM发送流时,我遇到了错误。
调用代理(使用BAM介体)时ESB出错:
[2014-03-20 23:02:21,234] ERROR - AsyncDataPublisher Error while connection to event receiver
org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for TCP,10.10.10.24:7713,TCP,10.10.10.24:7713
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:211)
at org.wso2.carbon.databridge.agent.thrift.DataPublisher.<init>(DataPublisher.java:112)
at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:784)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: org.wso2.carbon.databridge.commons.exception.AuthenticationException: Thrift Authentication Exception
at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.ThriftAgentAuthenticator.connect(ThriftAgentAuthenticator.java:49)
at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:51)
... 10 more
Caused by: ThriftAuthenticationException(message:wrong userName or password)
at org.wso2.carbon.databridge.commons.thrift.service.secure.ThriftSecureEventTransmissionService$connect_result.read(ThriftSecureEventTransmissionService.java:1394)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
at org.wso2.carbon.databridge.commons.thrift.service.secure.ThriftSecureEventTransmissionService$Client.recv_connect(ThriftSecureEventTransmissionService.java:88)
at org.wso2.carbon.databridge.commons.thrift.service.secure.ThriftSecureEventTransmissionService$Client.connect(ThriftSecureEventTransmissionService.java:74)
at org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.ThriftAgentAuthenticator.connect(ThriftAgentAuthenticator.java:47)
... 11 more
[...]
[2014-03-21 01:58:14,955] ERROR - AsyncDataPublisher Reconnection failed for for ssl://10.10.10.24:7713
接收流时BAM出错:
[2014-03-21 02:01:30,988] INFO {org.wso2.carbon.databridge.core.DataBridge} - admin2 connected
[2014-03-21 02:01:31,242] ERROR {org.wso2.carbon.databridge.core.internal.authentication.Authenticator} - wrong userName or password
我已使用BAM的新管理员凭据和端口更新了%BAM_HOME%/repository/conf/datasources/master-datasources.xml
和%BAM_HOME%/repository/conf/etc/cassandra-auth.xml
。
我可以在BAM中看到&gt;管理&gt; Cassandra Keyspaces&gt;列表&gt; Keyspace创造了一个空白空间。
用户admin2退出BAM并具有系统管理员角色。 任何评论将不胜感激。