4 Replies Latest reply on Dec 24, 2015 7:57 AM by richard mcleod

    BSA Webservice Soap connection limit/problem

    STEFANO BRUTTO

      HI all,

       

      i have BSA 8.5 Sp1 in a multi-appserver environment, we have an application that call BL with soap webservice, in a local (appserver) configuration works correctly, but when we call soap webservice on remote server session we have this error:

       

      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] WSOutFlowAuthenticationResetHandler.flowComplete called
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] WSInFlowAuthenticationHandler.flowComplete called
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] MessageContext Id : null
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] ServiceGroupContext Idnull
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] Updating state manager for urn:uuid:C6414FE7ADE3692FA11424427031726 with a state LOGIN_DIRTY_STATE
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] InProcess List size 1
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] The number of available slots for processing are 29
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] Service Context invoked urn:uuid:C6414FE7ADE3692FA11424427031726 with a last touched time :Fri Feb 20 11:10:31 CET 2015
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] The number of active connections is  10
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] WSInFlowAuthenticationHandler:: SOAP request from the client address: 10.113.234.166, SOAP Action: LoginService.loginUsingUserCredential
      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] Received SOAP Envelope:
      <?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><loginUsingUserCredential xmlns="http://bladelogic.com/webservices/skeleton/login"><userName>user</userName><password>password</password><authenticationType>SRP</authenticationType></loginUsingUserCredential></soap:Body></soap:Envelope>

      [20 Feb 2015 11:10:31,592] [http-9843-2] [DEBUG] [::] [] SoapAction HttpHeader: "bladelogicNamespace:loginUsingUserCredential"
      [20 Feb 2015 11:10:31,608] [http-9843-2] [DEBUG] [::] [] No Transaction Id associated with service context
      java.lang.NullPointerException
      at com.bladelogic.webservices.skeleton.AbstractBaseSkeleton.getTransactionId(AbstractBaseSkeleton.java:127)
      at com.bladelogic.webservices.skeleton.login.LoginServiceSkeleton.loginUsingUserCredential(LoginServiceSkeleton.java:100)
      at com.bladelogic.webservices.skeleton.login.LoginServiceMessageReceiverInOut.invokeBusinessLogic(LoginServiceMessageReceiverInOut.java:48)
      at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
      at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
      at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
      at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
      at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
      at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:302)
      at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:163)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
      at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
      at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)
      [20 Feb 2015 11:10:31,608] [http-9843-2] [INFO] [::] [] LoginUsingUserCredentialResponse | Login Request with session id urn:uuid:C6414FE7ADE3692FA11424427031726
      [20 Feb 2015 11:10:31,608] [http-9843-2] [INFO] [::] [] LoginUsingUserCredentialResponse | Login Request with transaction id null
      [20 Feb 2015 11:10:31,608] [http-9843-2] [DEBUG] [::] [] Authenticating the user name(user) and password combination with the authentication service.
      [20 Feb 2015 11:10:31,608] [http-9843-2] [DEBUG] [::] [] Creating an anonymous session
      [20 Feb 2015 11:10:32,045] [http-9843-2] [DEBUG] [::] [] Removing session before restoring original session
      [20 Feb 2015 11:10:32,060] [http-9843-2] [DEBUG] [::] [] Creating an anonymous session
      [20 Feb 2015 11:10:32,076] [http-9843-2] [DEBUG] [::] [] Removing session before restoring original session
      [20 Feb 2015 11:10:32,076] [http-9843-2] [DEBUG] [user:Anonymous:10.113.215.157] [] Creating the new session
      [20 Feb 2015 11:10:32,076] [http-9843-2] [INFO] [user:Anonymous:10.113.215.157] [] User(user) is authenticated with the authentication service.
      [20 Feb 2015 11:10:32,076] [http-9843-2] [DEBUG] [user:Anonymous:10.113.215.157] [] Removing the current session in the WSOutFlowAuthenticationResetHandler
      [20 Feb 2015 11:10:32,076] [http-9843-2] [DEBUG] [::] [] Sending SOAP Envelope:
      <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns2:loginUsingUserCredentialResponse xmlns:ns2="http://bladelogic.com/webservices/skeleton/login"><ns2:return><ns1:authType xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">SRP</ns1:authType><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>2000006</id><name>PRODSMIT_SMIT</name></authorizedRoles><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>2000007</id><name>BOS_SPBOS</name></authorizedRoles><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>2000016</id><name>FOS_ORACLE</name></authorizedRoles><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>2000015</id><name>BOS_PROFILE</name></authorizedRoles><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>2000011</id><name>DBOS_SPDBOS</name></authorizedRoles><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>2000010</id><name>DBOSP7_PROFILE</name></authorizedRoles><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>1000010</id><name>BLAdmins</name></authorizedRoles><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>2000013</id><name>FOS_SPFOS</name></authorizedRoles><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>2000009</id><name>BOSP7_PROFILE</name></authorizedRoles><authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd"><id>2000012</id><name>DWHBI_ORACLE</name></authorizedRoles><ns1:clientAddress xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">10.113.215.157</ns1:clientAddress><ns1:expirationTime xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">2015-02-21T11:10:32.029+01:00</ns1:expirationTime><ns1:maximumLifeTime xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">2015-02-21T11:10:32.029+01:00</ns1:maximumLifeTime><ns1:rolePreference xmlns:ns1="http://bladelogic.com/webservices/framework/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /><ns1:serviceTicketString xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAaCAJIAEggPoPFNl
      =</ns1:serviceTicketString><ns1:serviceUrl xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">service:authsvc.bladelogic:blauth://PRODBLOGIC01:9840</ns1:serviceUrl><ns1:serviceUrls xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">service:appsvc.bladelogic:blsess://prodbladelogic.ingdirect.idi.it:9841</ns1:serviceUrls><ns1:serviceUrls xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">service:proxysvc.bladelogic:blsess://prodblogic01:9842</ns1:serviceUrls><ns1:serviceUrls xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">service:proxysvc.bladelogic:blsess://10.113.215.157:9842</ns1:serviceUrls><ns1:site xmlns:ns1="http://bladelogic.com/webservices/framework/xsd"></ns1:site><ns1:updateSRPPasswordOnly xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">false</ns1:updateSRPPasswordOnly><ns1:userName xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">user</ns1:userName><ns1:webServicesUrls xmlns:ns1="http://bladelogic.com/webservices/framework/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" /></ns2:return><ns2:returnSessionId>urn:uuid:C6414FE7ADE3692FA11424427031726</ns2:returnSessionId></ns2:loginUsingUserCredentialResponse></soapenv:Body></soapenv:Envelope>

       

       

      [20 Feb 2015 11:11:01,601] [Thread-189] [DEBUG] [user:BLAdmins:10.113.215.157] [] Updating state manager for urn:uuid:C6414FE7ADE3692FA11424426629806 with a state CLI_DONE_STATE

      [20 Feb 2015 11:11:02,085] [Thread-191] [DEBUG] [user:Anonymous:10.113.215.157] [] Updating state manager for urn:uuid:C6414FE7ADE3692FA11424427031726 with a state LOGIN_DONE_STATE

      [20 Feb 2015 11:11:02,085] [Thread-190] [DEBUG] [user:Anonymous:10.113.215.157] [] Execution done. Stopping the touch timer.urn:uuid:C6414FE7ADE3692FA11424427031726

       

      [20 Feb 2015 11:18:47,266] [http-9843-2] [DEBUG] [::] [] WSOutFlowAuthenticationResetHandler.flowComplete called

      [20 Feb 2015 11:18:47,266] [http-9843-2] [DEBUG] [::] [] WSInFlowAuthenticationHandler.flowComplete called

      [20 Feb 2015 11:18:47,282] [http-9843-1] [DEBUG] [::] [] MessageContext Id : null

      [20 Feb 2015 11:18:47,282] [http-9843-1] [DEBUG] [::] [] ServiceGroupContext Idnull

      [20 Feb 2015 11:18:47,282] [http-9843-1] [ERROR] [::] [] Unable to find corresponding context for the serviceGroupId: urn:uuid:C6414FE7ADE3692FA11424427031726

      org.apache.axis2.AxisFault: Unable to find corresponding context for the serviceGroupId: urn:uuid:C6414FE7ADE3692FA11424427031726

      at org.apache.axis2.context.ConfigurationContext.getServiceGroupContextFromSoapSessionTable(ConfigurationContext.java:541)

      at org.apache.axis2.context.ConfigurationContext.fillServiceContextAndServiceGroupContext(ConfigurationContext.java:249)

      at com.bladelogic.webservices.framework.WSInFlowDispatchPhase.loadContexts(WSInFlowDispatchPhase.java:264)

      at com.bladelogic.webservices.framework.WSInFlowDispatchPhase.checkPostConditions(WSInFlowDispatchPhase.java:153)

      at org.apache.axis2.engine.Phase.invoke(Phase.java:334)

      at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)

      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)

      at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)

      at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)

      at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)

      at java.security.AccessController.doPrivileged(Native Method)

      at javax.security.auth.Subject.doAsPrivileged(Unknown Source)

      at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:302)

      at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:163)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)

      at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)

      at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

      at java.lang.Thread.run(Unknown Source)

       

       

       

       

       

      is possible that from remote connection there are a webservice session limit (for example max 2)? The client application now  has max 20 session simultaneous.