This topic has 7 replies, 1 voice, and was last updated 7 months, 4 weeks ago by [email protected].

  • Author
    Posts
  • #18673
     abarry
    Participant

    Hello,
    Can someone help me to understand this error in debug/IdRepo :

     DJLDAPv3Repo:08/30/2017 12:48:49:584 PM BST: Thread[http-bio-8080-exec-9,5,main]: TransactionId[45e9ce4d-46f6-4af2-9aed-7b66e3051b9c-976]
    ERROR: An error occurred while trying to create a connection to the datastore
    org.forgerock.openam.sm.datalayer.api.LdapOperationFailedException: 
    CTS: Operation failed:
    Result Code: Connect Error
    Diagnostic Message: No operational connection factories available
    Matched DN: 
    	at org.forgerock.openam.sm.datalayer.providers.LdapConnectionFactoryProvider$LdapConnectionFactory.create(LdapConnectionFactoryProvider.java:169)
    	at org.forgerock.openam.sm.datalayer.providers.LdapConnectionFactoryProvider$LdapConnectionFactory.create(LdapConnectionFactoryProvider.java:137)
    	at org.forgerock.openam.idrepo.ldap.DJLDAPv3Repo.createConnection(DJLDAPv3Repo.java:2544)
    	at org.forgerock.openam.idrepo.ldap.DJLDAPv3Repo.search(DJLDAPv3Repo.java:1164)
    	at com.sun.identity.idm.server.IdServicesImpl.search(IdServicesImpl.java:1511)
    	at com.sun.identity.idm.server.IdCachedServicesImpl.search(IdCachedServicesImpl.java:624)
    	at com.sun.identity.idm.AMIdentityRepository.searchIdentities(AMIdentityRepository.java:380)
    	at com.sun.identity.idm.AMIdentityRepository.searchIdentities(AMIdentityRepository.java:312)
    	at com.sun.identity.idm.IdUtils.getIdentity(IdUtils.java:643)
    	at org.forgerock.openam.rest.resource.ContextHelper.getUserUid(ContextHelper.java:45)
    	at org.forgerock.openam.uma.rest.UmaPolicyServiceImpl.resolveUsernameToUID(UmaPolicyServiceImpl.java:140)
    	at org.forgerock.openam.uma.rest.UmaPolicyServiceImpl.createPolicy(UmaPolicyServiceImpl.java:234)
    	at org.forgerock.openam.uma.rest.UmaPolicyResource.createInstance(UmaPolicyResource.java:130)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.forgerock.json.resource.AnnotatedMethod.invoke(AnnotatedMethod.java:96)
    	at org.forgerock.json.resource.AnnotatedMethod.invoke(AnnotatedMethod.java:61)
    	at org.forgerock.json.resource.AnnotatedCollectionHandler.handleCreate(AnnotatedCollectionHandler.java:52)
    	at org.forgerock.json.resource.Router.handleCreate(Router.java:264)
    	at org.forgerock.json.resource.Router.handleCreate(Router.java:264)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:65)
    	at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter$2.apply(AuthorizationFilters.java:257)
    	at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter$2.apply(AuthorizationFilters.java:253)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:247)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:236)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:215)
    	at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter.filterCreate(AuthorizationFilters.java:252)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63)
    	at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:228)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:65)
    	at org.forgerock.openam.uma.rest.UmaEnabledFilter$2.apply(UmaEnabledFilter.java:81)
    	at org.forgerock.openam.uma.rest.UmaEnabledFilter$2.apply(UmaEnabledFilter.java:78)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:247)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:236)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:215)
    	at org.forgerock.openam.uma.rest.UmaEnabledFilter.filterCreate(UmaEnabledFilter.java:77)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63)
    	at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:228)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:65)
    	at org.forgerock.openam.rest.fluent.AuditFilter.filterCreate(AuditFilter.java:102)
    	at org.forgerock.openam.rest.fluent.AuditFilterWrapper.filterCreate(AuditFilterWrapper.java:58)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63)
    	at org.forgerock.openam.rest.fluent.CrestLoggingFilter.filterCreate(CrestLoggingFilter.java:84)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63)
    	at org.forgerock.openam.rest.ContextFilter.filterCreate(ContextFilter.java:55)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63)
    	at org.forgerock.openam.rest.AuthenticationEnforcer.filterCreate(AuthenticationEnforcer.java:138)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63)
    	at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:228)
    	at org.forgerock.json.resource.Router.handleCreate(Router.java:264)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:65)
    	at org.forgerock.openam.rest.ContextFilter.filterCreate(ContextFilter.java:55)
    	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:63)
    	at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:228)
    	at org.forgerock.json.resource.InternalConnection.createAsync(InternalConnection.java:40)
    	at org.forgerock.json.resource.http.RequestRunner.visitCreateRequest(RequestRunner.java:175)
    	at org.forgerock.json.resource.http.RequestRunner.visitCreateRequest(RequestRunner.java:87)
    	at org.forgerock.json.resource.Requests$CreateRequestImpl.accept(Requests.java:250)
    	at org.forgerock.json.resource.http.RequestRunner.handleResult(RequestRunner.java:133)
    	at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:717)
    	at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:714)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:247)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:236)
    	at org.forgerock.json.resource.http.HttpAdapter.doRequest(HttpAdapter.java:713)
    	at org.forgerock.json.resource.http.HttpAdapter.doCreate(HttpAdapter.java:581)
    	at org.forgerock.json.resource.http.HttpAdapter.handle(HttpAdapter.java:273)
    	at org.forgerock.http.handler.Handlers$HandlerDescribableAsDescribableHandler.handle(Handlers.java:146)
    	at org.forgerock.http.filter.OptionsFilter.filter(OptionsFilter.java:69)
    	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
    	at org.forgerock.http.routing.Router.handle(Router.java:100)
    	at org.forgerock.openam.rest.RealmContextFilter.filter(RealmContextFilter.java:80)
    	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
    	at org.forgerock.http.routing.Router.handle(Router.java:100)
    	at org.forgerock.http.routing.Router.handle(Router.java:100)
    	at org.forgerock.openam.rest.RealmRoutingFactory$ChfRealmRouter.handle(RealmRoutingFactory.java:139)
    	at org.forgerock.http.handler.Handlers$UndescribedAsDescribableHandler.handle(Handlers.java:179)
    	at org.forgerock.openam.rest.RealmRoutingFactory$HostnameFilter.filter(RealmRoutingFactory.java:116)
    	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
    	at org.forgerock.http.routing.Router.handle(Router.java:100)
    	at org.forgerock.http.routing.Router.handle(Router.java:100)
    	at org.forgerock.http.routing.ResourceApiVersionRoutingFilter.filter(ResourceApiVersionRoutingFilter.java:56)
    	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
    	at org.forgerock.caf.authentication.framework.AuthenticationFramework.grantAccess(AuthenticationFramework.java:193)
    	at org.forgerock.caf.authentication.framework.AuthenticationFramework.access$200(AuthenticationFramework.java:56)
    	at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:185)
    	at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:178)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:247)
    	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:236)
    	at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:141)
    	at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:133)
    	at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:84)
    	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
    	at org.forgerock.openam.http.GuiceHandler.handle(GuiceHandler.java:51)
    	at org.forgerock.openam.http.HttpRoute$6.handle(HttpRoute.java:206)
    	at org.forgerock.http.routing.Router.handle(Router.java:100)
    	at org.forgerock.http.swagger.OpenApiRequestFilter.filter(OpenApiRequestFilter.java:62)
    	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
    	at org.forgerock.openam.http.ApiDescriptorFilter.filter(ApiDescriptorFilter.java:139)
    	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
    	at org.forgerock.openam.http.OpenAMHttpApplication$1.filter(OpenAMHttpApplication.java:70)
    	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
    	at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:52)
    	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
    	at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:236)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.forgerock.openam.rest.ProtocolVersionFilter.doFilter(ProtocolVersionFilter.java:65)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:36)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:80)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:43)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
    	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
    	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
    	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    	at java.lang.Thread.run(Thread.java:748)
    Caused by: org.forgerock.opendj.ldap.ConnectionException: Connect Error
    	at org.forgerock.opendj.ldap.LdapException.newLdapException(LdapException.java:177)
    	at org.forgerock.opendj.ldap.LdapException.newLdapException(LdapException.java:115)
    	at org.forgerock.opendj.grizzly.GrizzlyLdapConnectionFactory$CompletionHandlerAdapter.adaptConnectionException(GrizzlyLdapConnectionFactory.java:123)
    	at org.forgerock.opendj.grizzly.GrizzlyLdapConnectionFactory$CompletionHandlerAdapter.failed(GrizzlyLdapConnectionFactory.java:92)
    	at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.connectAsync(TCPNIOConnectorHandler.java:193)
    	at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.connect(TCPNIOConnectorHandler.java:86)
    	at org.glassfish.grizzly.AbstractSocketConnectorHandler.connect(AbstractSocketConnectorHandler.java:85)
    	at org.glassfish.grizzly.AbstractSocketConnectorHandler.connect(AbstractSocketConnectorHandler.java:56)
    	at org.forgerock.opendj.grizzly.GrizzlyLdapConnectionFactory.getConnectionAsync(GrizzlyLdapConnectionFactory.java:200)
    	at org.forgerock.opendj.ldap.LdapConnectionFactory.getConnectionAsync(LdapConnectionFactory.java:420)
    	at org.forgerock.opendj.ldap.CachedConnectionPool.getConnectionAsync(CachedConnectionPool.java:806)
    	at org.forgerock.opendj.ldap.LoadBalancer$MonitoredConnectionFactory.checkIfAvailable(LoadBalancer.java:176)
    	at org.forgerock.opendj.ldap.LoadBalancer$MonitoredConnectionFactory.access$1500(LoadBalancer.java:96)
    	at org.forgerock.opendj.ldap.LoadBalancer$MonitorRunnable.run(LoadBalancer.java:241)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	... 1 more
    Caused by: java.nio.channels.UnresolvedAddressException
    	at sun.nio.ch.Net.checkAddress(Net.java:101)
    	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:622)
    	at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.connectAsync(TCPNIOConnectorHandler.java:137)
    	... 16 more

    It appears when I try to share or delete a resource in user profile.
    Thank you for your help

    #18676
     Scott Heger
    Participant

    The cause is “java.nio.channels.UnresolvedAddressException”. Is your CTS server remote? Can you you resolve the hostname (or whatever you used in your CTS config settings) from your OpenAM host?

    #18681
     Peter Major
    Moderator

    I think the error message here is misleading. The stacktrace contains DJLDAPv3Repo, so the connection actually should be the user data store’s connection, not CTS..

    #18682
     abarry
    Participant

    Thank you to all of you for your help !
    I’m using openAM default token store for all realms.
    But I just realize that this error appears also during the user’s in (Top Level Realm) logging. I don’t have the error when amAdmin logging… But got it with demo user. I’m successfully logged for all users.
    BTW I have 2 realms (the default one, and the openLDAP), in openLDAP realm, I’m using external LDAP directory and users in this directory can logging successfuly without error.

    To resume, I got this error during :
    – Users in Top Level realm logging (not occurs with amAdmin user)
    – doing some operation with resources (I’m using the default token store for the 2 realms)

    Thank you for your help.

    #18696
     abarry
    Participant

    Still struggling with this issue. Any help will be really appreciate :)

    #18708
     abarry
    Participant

    hello,
    I even install another openAM server to check the configuration of the embedded openDJ in the case I changed something. But the 2 embedded openDJ have the same configuration.
    When I logging as demo user in the last openAM server I’ve installed I got no error. I’m really confused same data store configuration but issue only in one. Don’t really know where to check to fix this issue.

    #26863
     ruimingg
    Participant

    Hi I’m facing this issue as well, can you share how did you fix this?

    #27487

    Hi,

    I have also see this issue in my case.
    I do check when I removed embedded IdentityStore in configuration issue disappeared.
    Unfortunately removing embedded data store has also influence to remove service “Session” from realm configuration which is not acceptable.

    Have someone real solution for this – I am using AM 6.5.2.2 and DS-CFG/DS-CTS 6.5.2

    /Pawel

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

©2020 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?