Uploaded image for project: 'ZZZ-WSO2 Carbon'
  1. ZZZ-WSO2 Carbon
  2. CARBON-12447

BAM2; Exception from Data Publisher in WSO2 AS, at a load test of concurrency of 50

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Labels:
      None
    • Environment:

      jdk 1.6, Linux

    • Severity:
      Critical
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      [2012-02-24 11:55:10,955] ERROR

      {org.wso2.carbon.bam.agent.publish.DataPublisher}

      - Unable to publish event to BAM
      com.google.common.collect.NullOutputException: org.wso2.carbon.bam.agent.publish.ThriftAuthenticationClient$1@408b53c0 returned null for key org.wso2.carbon.bam.agent.publish.EventReceiver@46a7e44.
      at com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:610)
      at com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:462)
      at com.google.common.collect.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2045)
      at org.wso2.carbon.bam.agent.publish.ThriftAuthenticationClient.getSessionId(ThriftAuthenticationClient.java:72)
      at org.wso2.carbon.bam.agent.publish.DataPublisher.publishUsingTSocketTransport(DataPublisher.java:96)
      at org.wso2.carbon.bam.agent.publish.DataPublisher.publish(DataPublisher.java:82)
      at org.wso2.carbon.bam.agent.queue.EventWorker.clearActivityDataQueue(EventWorker.java:63)
      at org.wso2.carbon.bam.agent.queue.EventWorker.run(EventWorker.java:44)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      [2012-02-24 11:55:10,962] ERROR

      {org.wso2.carbon.bam.agent.publish.ThriftAuthenticationClient}

      - Authentication failed for user : admin
      org.apache.thrift.transport.TTransportException: java.net.SocketException: Too many open files
      at org.apache.thrift.transport.THttpClient.flush(THttpClient.java:195)
      at org.wso2.carbon.bam.service.AuthenticatorService$Client.send_authenticate(AuthenticatorService.java:95)
      at org.wso2.carbon.bam.service.AuthenticatorService$Client.authenticate(AuthenticatorService.java:83)
      at org.wso2.carbon.bam.agent.publish.ThriftAuthenticationClient$1.apply(ThriftAuthenticationClient.java:55)
      at org.wso2.carbon.bam.agent.publish.ThriftAuthenticationClient$1.apply(ThriftAuthenticationClient.java:43)
      at com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:592)
      at com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:462)
      at com.google.common.collect.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2045)
      at org.wso2.carbon.bam.agent.publish.ThriftAuthenticationClient.getSessionId(ThriftAuthenticationClient.java:72)
      at org.wso2.carbon.bam.agent.publish.DataPublisher.publishUsingTSocketTransport(DataPublisher.java:96)
      at org.wso2.carbon.bam.agent.publish.DataPublisher.publish(DataPublisher.java:82)
      at org.wso2.carbon.bam.agent.queue.EventWorker.clearActivityDataQueue(EventWorker.java:63)
      at org.wso2.carbon.bam.agent.queue.EventWorker.run(EventWorker.java:44)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.net.SocketException: Too many open files
      at java.net.Socket.createImpl(Socket.java:397)
      at java.net.Socket.connect(Socket.java:527)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:559)
      at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
      at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)
      at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)
      at org.apache.thrift.transport.THttpClient.flush(THttpClient.java:183)
      ... 15 more

        Attachments

          Activity

            People

            • Assignee:
              tharindu@wso2.com Tharindu Mathew
              Reporter:
              chamaraa@wso2.com Chamara Ariyarathne
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: