Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-3498

IdRepo connection pool fails if anonymous access is disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 11.0.0
    • Fix Version/s: None
    • Component/s: idrepo
    • Labels:
    • Support Ticket IDs:

      Description

      Create external OpenDJ user store

      Turn off anonymous access - http://marginnotes2.wordpress.com/2011/07/25/opendj-turn-off-anonymous-access

      Connection Pool Creation fails ..

      LDAPUtils:01/08/2014 12:46:11:049 AM CST: Thread[SystemTimerPool,5,main]
      **********************************************
      LDAPUtils:01/08/2014 12:46:11:048 AM CST: Thread[SystemTimerPool,5,main]
      ERROR: Connection factory became offline: AuthenticatedConnectionFactory(HeartBeatConnectionFactory(LDAPConnectionFactory(dev.qubera.com/192.168.192.177:1636)), SimpleBindRequest(name=uid=openam-admin,ou=sysaccounts,dc=example,dc=com, authentication=simple, controls=[]))
      org.forgerock.opendj.ldap.ConnectionException: Connect Error: Connection refused
      at org.forgerock.opendj.ldap.ErrorResultException.newErrorResult(ErrorResultException.java:163)
      at org.forgerock.opendj.ldap.ErrorResultException.newErrorResult(ErrorResultException.java:125)
      at com.forgerock.opendj.ldap.LDAPConnectionFactoryImpl$CompletionHandlerAdapter.adaptConnectionException(LDAPConnectionFactoryImpl.java:183)
      at com.forgerock.opendj.ldap.LDAPConnectionFactoryImpl$CompletionHandlerAdapter.failed(LDAPConnectionFactoryImpl.java:153)
      at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.abortConnection(TCPNIOConnectorHandler.java:263)
      at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.onConnectedAsync(TCPNIOConnectorHandler.java:216)
      at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler$1.connected(TCPNIOConnectorHandler.java:154)
      at org.glassfish.grizzly.nio.transport.TCPNIOConnection.onConnect(TCPNIOConnection.java:258)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:826)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.executeIoEvent(WorkerThreadIOStrategy.java:101)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.executeIoEvent(AbstractIOStrategy.java:89)
      at org.glassfish.grizzly.nio.SelectorRunner.iterateKeyEvents(SelectorRunner.java:406)
      at org.glassfish.grizzly.nio.SelectorRunner.iterateKeys(SelectorRunner.java:375)
      at org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:339)
      at org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:271)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: java.net.ConnectException: Connection refused
      at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:735)
      at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.onConnectedAsync(TCPNIOConnectorHandler.java:206)
      ... 14 more

      PersistentSearch:01/08/2014 12:46:11:052 AM CST: Thread[SystemTimerPool,5,main]
      ERROR: Unable to start persistent search: Connect Error: No operational connection factories available
      PersistentSearch:01/08/2014 12:47:12:046 AM CST: Thread[SystemTimerPool,5,main]
      ERROR: Unable to start persistent search: Connect Error: No operational connection factories available
      PersistentSearch:01/08/2014 12:48:13:047 AM CST: Thread[SystemTimerPool,5,main]
      ERROR: Unable to start persistent search: Connect Error: No operational connection factories available
      PersistentSearch:01/08/2014 12:49:14:046 AM CST: Thread[SystemTimerPool,5,main]
      ERROR: Unable to start persistent search: Connect Error: No operational connection factories available

      DJLDAPv3Repo:01/08/2014 12:50:40:689 AM CST: Thread[http-bio-8080-exec-13,5,main]
      ERROR: Unexpected error occurred during search
      org.forgerock.opendj.ldap.ConnectionException: Connect Error: No operational connection factories available
      at org.forgerock.opendj.ldap.ErrorResultException.newErrorResult(ErrorResultException.java:163)
      at org.forgerock.opendj.ldap.ErrorResultException.newErrorResult(ErrorResultException.java:125)
      at org.forgerock.opendj.ldap.AbstractLoadBalancingAlgorithm.getMonitoredConnectionFactory(AbstractLoadBalancingAlgorithm.java:390)
      at org.forgerock.opendj.ldap.AbstractLoadBalancingAlgorithm.getConnectionFactory(AbstractLoadBalancingAlgorithm.java:335)
      at org.forgerock.opendj.ldap.LoadBalancer.getConnection(LoadBalancer.java:53)
      at org.forgerock.openam.idrepo.ldap.DJLDAPv3Repo.search(DJLDAPv3Repo.java:1110)
      at com.sun.identity.idm.server.IdServicesImpl.search(IdServicesImpl.java:1517)
      at com.sun.identity.idm.server.IdCachedServicesImpl.search(IdCachedServicesImpl.java:643)
      at com.sun.identity.idm.AMIdentityRepository.searchIdentities(AMIdentityRepository.java:298)
      at com.sun.identity.console.idm.model.EntitiesModelImpl.getEntityNames(EntitiesModelImpl.java:196)
      at com.sun.identity.console.idm.EntitiesViewBean.getEntityNames(EntitiesViewBean.java:248)
      at com.sun.identity.console.idm.EntitiesViewBean.beginDisplay(EntitiesViewBean.java:192)
      at com.iplanet.jato.taglib.UseViewBeanTag.doStartTag(UseViewBeanTag.java:149)
      at org.apache.jsp.console.idm.Entities_jsp._jspService(Entities_jsp.java:143)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
      at com.iplanet.jato.view.ViewBeanBase.forward(ViewBeanBase.java:340)
      at com.iplanet.jato.view.ViewBeanBase.forwardTo(ViewBeanBase.java:261)
      at com.sun.identity.console.base.AMViewBeanBase.forwardTo(AMViewBeanBase.java:161)
      at com.sun.identity.console.base.AMPrimaryMastHeadViewBean.forwardTo(AMPrimaryMastHeadViewBean.java:116)
      at com.iplanet.jato.view.ViewBeanBase.forwardTo(ViewBeanBase.java:229)
      at com.sun.identity.console.idm.EntitiesViewBean.handleBtnSearchRequest(EntitiesViewBean.java:373)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.iplanet.jato.view.command.DefaultRequestHandlingCommand.execute(DefaultRequestHandlingCommand.java:183)
      at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:308)
      at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)
      at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:740)
      at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)
      at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:957)
      at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:615)
      at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:98)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: org.forgerock.opendj.ldap.ConnectionException: Server Connection Closed: Heartbeat failed
      at org.forgerock.opendj.ldap.ErrorResultException.newErrorResult(ErrorResultException.java:163)
      at org.forgerock.opendj.ldap.ErrorResultException.newErrorResult(ErrorResultException.java:125)
      at org.forgerock.opendj.ldap.HeartBeatConnectionFactory.adaptHeartBeatError(HeartBeatConnectionFactory.java:1312)
      at org.forgerock.opendj.ldap.HeartBeatConnectionFactory.access$300(HeartBeatConnectionFactory.java:107)
      at org.forgerock.opendj.ldap.HeartBeatConnectionFactory$ConnectionFutureResultImpl$1.transformErrorResult(HeartBeatConnectionFactory.java:195)
      at com.forgerock.opendj.util.FutureResultTransformer.handleErrorResult(FutureResultTransformer.java:112)
      at com.forgerock.opendj.util.AsynchronousFutureResult$Sync.innerSetErrorResult(AsynchronousFutureResult.java:171)
      at com.forgerock.opendj.util.AsynchronousFutureResult.handleErrorResult(AsynchronousFutureResult.java:308)
      at org.forgerock.opendj.ldap.HeartBeatConnectionFactory$ConnectionFutureResultImpl$InitialHeartBeatResultHandler.handleErrorResult(HeartBeatCo
      nnectionFactory.java:149)
      at com.forgerock.opendj.util.AsynchronousFutureResult$Sync.innerSetErrorResult(AsynchronousFutureResult.java:171)
      at com.forgerock.opendj.util.AsynchronousFutureResult.handleErrorResult(AsynchronousFutureResult.java:308)
      at com.forgerock.opendj.ldap.AbstractLDAPFutureResultImpl.setResultOrError(AbstractLDAPFutureResultImpl.java:125)
      at com.forgerock.opendj.ldap.LDAPClientFilter$1.searchResult(LDAPClientFilter.java:346)
      at com.forgerock.opendj.ldap.LDAPClientFilter$1.searchResult(LDAPClientFilter.java:79)
      at com.forgerock.opendj.ldap.LDAPReader.decodeSearchResult(LDAPReader.java:1339)
      at com.forgerock.opendj.ldap.LDAPReader.decodeProtocolOp(LDAPReader.java:1137)
      at com.forgerock.opendj.ldap.LDAPReader.decode(LDAPReader.java:166)
      at com.forgerock.opendj.ldap.LDAPClientFilter.handleRead(LDAPClientFilter.java:499)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:837)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
      ... 1 more
      Caused by: org.forgerock.opendj.ldap.ErrorResultException: Unwilling to Perform: Rejecting the requested operation because the connection has not bee
      n authenticated
      at org.forgerock.opendj.ldap.ErrorResultException.newErrorResult(ErrorResultException.java:185)
      ... 21 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major
                Reporter:
                santosh.haranath@quberasolutions.com santosh.haranath@quberasolutions.com
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: