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

Amster import-config --clean causes Internal Server Error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 14.0.0-M30
    • Fix Version/s: 14.0.0
    • Component/s: Amster
    • Labels:

      Description

      When importing configuration via amster with --clean parameter, the process is interrupted with a 500 Internal Server Error:

      am> connect https://ft-oam.test.forgerock.com:8443/openam --private-key /home/forgerock/amster/.ssh/amster_ecdsa
      amster ft-oam.test.forgerock.com:8443> export-config --path /tmp/export-test
      Export completed successfully
      amster ft-oam.test.forgerock.com:8443> import-config --clean
      Import requires a --path parameter with argument as path to import from
      amster ft-oam.test.forgerock.com:8443> import-config --clean --path /tmp/export-test
      Cleaning global settings
      Deleting JSON: Global JSON Handler
      Deleting Scripting: 9de3eb62-f131-4fac-a294-7bd170fd4acb
      Deleting Scripting: 7e3d7067-d50f-4674-8c76-a3e13a810c33
      Deleting Scripting: c827d2b4-3608-4693-868e-bbcf86bd87c7
      Deleting Scripting: 703dab1a-1921-4981-98dd-b8e5349d8548
      Deleting Scripting: 157298c0-7d31-4059-a95b-eeb08473b7e5
      Deleting Scripting: 36863ffb-40ec-48b9-94b1-9a99f71cc3b5
      Deleting Servers: 01
      [main] ERROR org.forgerock.openam.sdk.http.DefaultErrorHandler - Unhandled server error: [Status: 500 Internal Server Error]
      ERROR org.forgerock.openam.sdk.http.ServerErrorException:
      500 Internal Server Error
              at org.forgerock.openam.sdk.http.DefaultErrorHandler.onServerError (DefaultErrorHandler.java:70)
              at org.forgerock.openam.sdk.http.HttpSessionImpl.handleUnsuccessfulResponse (HttpSessionImpl.java:281)
              at org.forgerock.openam.sdk.http.HttpSessionImpl.send (HttpSessionImpl.java:175)
              at org.forgerock.openam.sdk.http.RequestBuilder.get (RequestBuilder.java:185)
              at org.forgerock.openam.sdk.crest.CrestResourceProviderAsync.queryCollectionWithFilter (CrestResourceProviderAsync.java:399)
              at org.forgerock.openam.sdk.crest.HttpCrestResourceProvider.queryCollectionWithFilter (HttpCrestResourceProvider.java:354)
              at org.forgerock.openam.sdk.operations.globalconfig.realms.RealmsOperationsImpl.queryAll (RealmsOperationsImpl.java:120)
              at org.forgerock.openam.sdk.operations.globalconfig.realms.RealmsOperations$queryAll.call (Unknown Source)
              at org.forgerock.openam.sdk.operations.globalconfig.sites.SitesOperations$queryAll.call (Unknown Source)
              at org.forgerock.openam.amster.loadster.cleaner.Cleaner.cleanCollection (Cleaner.groovy:64)
              at org.forgerock.openam.amster.loadster.cleaner.Cleaner.clean (Cleaner.groovy:35)
              at org.forgerock.openam.amster.loadster.cleaner.GlobalCleaner.clean (GlobalCleaner.groovy:25)
              at org.forgerock.openam.amster.loadster.cleaner.GlobalCleaner$clean.call (Unknown Source)
              at org.forgerock.openam.amster.loadster.importer.Importer.importEntities (Importer.groovy:92)
              at org.forgerock.openam.amster.commands.ImportCommand.execute (ImportCommand.groovy:53)
              at org.forgerock.openam.amster.Main$_addCommandLineWrapping_closure1.doCall (Main.groovy:77)
              at java_lang_Runnable$run.call (Unknown Source)
              at org.forgerock.openam.amster.Main.main (Main.groovy:58)
      

      CoreSystem

      amNaming:03/07/2017 03:32:04:556 PM GMT: Thread[http-nio-8443-exec-3,5,main]: TransactionId[aed921fe-e177-4d65-a66f-9db954390b15-4322]
      ERROR: WebtopNaming.getServerFromID() can not find server name for server ID : 01
      com.iplanet.services.naming.ServerEntryNotFoundException: Cannot find server.
      	at com.iplanet.services.naming.WebtopNaming.getServerFromID(WebtopNaming.java:836)
      	at com.iplanet.dpro.session.SessionID.getServerFromID(SessionID.java:374)
      	at com.iplanet.dpro.session.SessionID.setServerID(SessionID.java:385)
      	at com.iplanet.dpro.session.SessionID.parseSessionString(SessionID.java:356)
      	at com.iplanet.dpro.session.SessionID.getTail(SessionID.java:410)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSessionManager.getJWTFromSessionID(StatelessSessionManager.java:178)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSessionManager.containsJwt(StatelessSessionManager.java:98)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSessionManager.containsJwt(StatelessSessionManager.java:88)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSSOProvider.isApplicable(StatelessSSOProvider.java:98)
      	at com.iplanet.sso.SSOTokenManager.retrieveValidTokenWithoutResettingIdleTime(SSOTokenManager.java:422)
      	at org.forgerock.openam.rest.SSOTokenFactory.getTokenFromId(SSOTokenFactory.java:70)
      	at org.forgerock.openam.rest.LocalSSOTokenSessionModule.validate(LocalSSOTokenSessionModule.java:210)
      	at org.forgerock.openam.rest.LocalSSOTokenSessionModule.validateRequest(LocalSSOTokenSessionModule.java:175)
      	at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:567)
      	at org.forgerock.caf.authentication.framework.AuthModules$LoggingAuthModule.validateRequest(AuthModules.java:456)
      	at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:567)
      	at org.forgerock.caf.authentication.framework.AuthModules$AuditingAuthModule.validateRequest(AuthModules.java:338)
      	at org.forgerock.caf.authentication.framework.AuthModules$SessionAuditingAuthModule.validateRequest(AuthModules.java:393)
      	at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:567)
      	at org.forgerock.caf.authentication.framework.AuthModules$ValidatingAuthModule.validateRequest(AuthModules.java:290)
      	at org.forgerock.caf.authentication.framework.SessionAuthContext.validateRequest(SessionAuthContext.java:75)
      	at org.forgerock.caf.authentication.framework.AggregateAuthContext.validateRequest(AggregateAuthContext.java:89)
      	at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:364)
      	at org.forgerock.caf.authentication.framework.AuthContexts$LoggingAuthContext.validateRequest(AuthContexts.java:284)
      	at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:364)
      	at org.forgerock.caf.authentication.framework.AuthContexts$AuditingAuthContext.validateRequest(AuthContexts.java:231)
      	at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:364)
      	at org.forgerock.caf.authentication.framework.AuthContexts$ValidatingAuthContext.validateRequest(AuthContexts.java:190)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:149)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:141)
      	at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:92)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.GuiceHandler.handle(GuiceHandler.java:59)
      	at org.forgerock.openam.http.HttpRoute$6.handle(HttpRoute.java:214)
      	at org.forgerock.http.routing.Router.handle(Router.java:108)
      	at org.forgerock.http.swagger.OpenApiRequestFilter.filter(OpenApiRequestFilter.java:70)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.ApiDescriptorFilter.filter(ApiDescriptorFilter.java:147)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.OpenAMHttpApplication$1.filter(OpenAMHttpApplication.java:78)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:60)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:236)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.rest.ProtocolVersionFilter.doFilter(ProtocolVersionFilter.java:65)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:88)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      

      Configuration

      amSMSEvent:03/07/2017 03:32:04:502 PM GMT: Thread[smIdmThreadPool,5,main]: TransactionId[aed921fe-e177-4d65-a66f-9db954390b15-4293]
      ERROR: ServiceConfigManagerImpl(:iPlanetAMPlatformService) notifyGlobalConfigChange Error sending notification to ServiceListener: com.sun.identity.common.configuration.ConfigurationObserver
      java.lang.NullPointerException
      	at java.util.Hashtable.putAll(Hashtable.java:522)
      	at com.iplanet.am.util.SystemProperties.initializeProperties(SystemProperties.java:504)
      	at com.sun.identity.common.configuration.ConfigurationObserver.globalConfigChanged(ConfigurationObserver.java:148)
      	at com.sun.identity.sm.ServiceConfigManagerImpl.notifyGlobalConfigChange(ServiceConfigManagerImpl.java:484)
      	at com.sun.identity.sm.ServiceConfigManagerImpl.objectChanged(ServiceConfigManagerImpl.java:456)
      	at com.sun.identity.sm.SMSNotificationManager.sendNotifications(SMSNotificationManager.java:294)
      	at com.sun.identity.sm.SMSNotificationManager$LocalChangeNotifcationTask.run(SMSNotificationManager.java:370)
      	at org.forgerock.openam.audit.context.AuditRequestContextPropagatingRunnable.run(AuditRequestContextPropagatingRunnable.java:42)
      	at com.iplanet.am.util.ThreadPool$WorkerThread.run(ThreadPool.java:314)
      

      Session

      amSession:03/07/2017 03:32:04:564 PM GMT: Thread[http-nio-8443-exec-3,5,main]: TransactionId[aed921fe-e177-4d65-a66f-9db954390b15-4322]
      ERROR: Invalid sessionid format:[AQIC5wM2LY4SfczEgPIXs_zoM3yfnim-4h4vIwPwaGQe7v8.*AAJTSQACMDEAAlNLABMxNzUwMTcwNTAxNzM5ODIxMDE2AAJTMQAA*]
      java.lang.IllegalArgumentException: Invalid server id in session id:[01]com.iplanet.services.naming.ServerEntryNotFoundException: Cannot find server.
      	at com.iplanet.dpro.session.SessionID.setServerID(SessionID.java:399)
      	at com.iplanet.dpro.session.SessionID.parseSessionString(SessionID.java:356)
      	at com.iplanet.dpro.session.SessionID.getTail(SessionID.java:410)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSessionManager.getJWTFromSessionID(StatelessSessionManager.java:178)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSessionManager.containsJwt(StatelessSessionManager.java:98)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSessionManager.containsJwt(StatelessSessionManager.java:88)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSSOProvider.isApplicable(StatelessSSOProvider.java:98)
      	at com.iplanet.sso.SSOTokenManager.retrieveValidTokenWithoutResettingIdleTime(SSOTokenManager.java:422)
      	at org.forgerock.openam.rest.SSOTokenFactory.getTokenFromId(SSOTokenFactory.java:70)
      	at org.forgerock.openam.rest.LocalSSOTokenSessionModule.validate(LocalSSOTokenSessionModule.java:210)
      	at org.forgerock.openam.rest.LocalSSOTokenSessionModule.validateRequest(LocalSSOTokenSessionModule.java:175)
      	at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:567)
      	at org.forgerock.caf.authentication.framework.AuthModules$LoggingAuthModule.validateRequest(AuthModules.java:456)
      	at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:567)
      	at org.forgerock.caf.authentication.framework.AuthModules$AuditingAuthModule.validateRequest(AuthModules.java:338)
      	at org.forgerock.caf.authentication.framework.AuthModules$SessionAuditingAuthModule.validateRequest(AuthModules.java:393)
      	at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:567)
      	at org.forgerock.caf.authentication.framework.AuthModules$ValidatingAuthModule.validateRequest(AuthModules.java:290)
      	at org.forgerock.caf.authentication.framework.SessionAuthContext.validateRequest(SessionAuthContext.java:75)
      	at org.forgerock.caf.authentication.framework.AggregateAuthContext.validateRequest(AggregateAuthContext.java:89)
      	at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:364)
      	at org.forgerock.caf.authentication.framework.AuthContexts$LoggingAuthContext.validateRequest(AuthContexts.java:284)
      	at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:364)
      	at org.forgerock.caf.authentication.framework.AuthContexts$AuditingAuthContext.validateRequest(AuthContexts.java:231)
      	at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:364)
      	at org.forgerock.caf.authentication.framework.AuthContexts$ValidatingAuthContext.validateRequest(AuthContexts.java:190)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:149)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:141)
      	at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:92)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.GuiceHandler.handle(GuiceHandler.java:59)
      	at org.forgerock.openam.http.HttpRoute$6.handle(HttpRoute.java:214)
      	at org.forgerock.http.routing.Router.handle(Router.java:108)
      	at org.forgerock.http.swagger.OpenApiRequestFilter.filter(OpenApiRequestFilter.java:70)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.ApiDescriptorFilter.filter(ApiDescriptorFilter.java:147)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.OpenAMHttpApplication$1.filter(OpenAMHttpApplication.java:78)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:60)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:236)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.rest.ProtocolVersionFilter.doFilter(ProtocolVersionFilter.java:65)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:88)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      

      org.forgerock.http.servlet.HttpFrameworkServlet

      org.forgerock.http.servlet.HttpFrameworkServlet:03/07/2017 03:32:04:571 PM GMT: Thread[http-nio-8443-exec-3,5,main]: TransactionId[aed921fe-e177-4d65-a66f-9db954390b15-4322]
      ERROR: Throwable caught
      java.lang.IllegalArgumentException: Invalid server id in session id:[01]com.iplanet.services.naming.ServerEntryNotFoundException: Cannot find server.
      	at com.iplanet.dpro.session.SessionID.setServerID(SessionID.java:399)
      	at com.iplanet.dpro.session.SessionID.parseSessionString(SessionID.java:356)
      	at com.iplanet.dpro.session.SessionID.getTail(SessionID.java:410)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSessionManager.getJWTFromSessionID(StatelessSessionManager.java:178)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSessionManager.containsJwt(StatelessSessionManager.java:98)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSessionManager.containsJwt(StatelessSessionManager.java:88)
      	at org.forgerock.openam.sso.providers.stateless.StatelessSSOProvider.isApplicable(StatelessSSOProvider.java:98)
      	at com.iplanet.sso.SSOTokenManager.retrieveValidTokenWithoutResettingIdleTime(SSOTokenManager.java:422)
      	at org.forgerock.openam.rest.SSOTokenFactory.getTokenFromId(SSOTokenFactory.java:70)
      	at org.forgerock.openam.rest.LocalSSOTokenSessionModule.validate(LocalSSOTokenSessionModule.java:210)
      	at org.forgerock.openam.rest.LocalSSOTokenSessionModule.validateRequest(LocalSSOTokenSessionModule.java:175)
      	at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:567)
      	at org.forgerock.caf.authentication.framework.AuthModules$LoggingAuthModule.validateRequest(AuthModules.java:456)
      	at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:567)
      	at org.forgerock.caf.authentication.framework.AuthModules$AuditingAuthModule.validateRequest(AuthModules.java:338)
      	at org.forgerock.caf.authentication.framework.AuthModules$SessionAuditingAuthModule.validateRequest(AuthModules.java:393)
      	at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:567)
      	at org.forgerock.caf.authentication.framework.AuthModules$ValidatingAuthModule.validateRequest(AuthModules.java:290)
      	at org.forgerock.caf.authentication.framework.SessionAuthContext.validateRequest(SessionAuthContext.java:75)
      	at org.forgerock.caf.authentication.framework.AggregateAuthContext.validateRequest(AggregateAuthContext.java:89)
      	at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:364)
      	at org.forgerock.caf.authentication.framework.AuthContexts$LoggingAuthContext.validateRequest(AuthContexts.java:284)
      	at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:364)
      	at org.forgerock.caf.authentication.framework.AuthContexts$AuditingAuthContext.validateRequest(AuthContexts.java:231)
      	at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:364)
      	at org.forgerock.caf.authentication.framework.AuthContexts$ValidatingAuthContext.validateRequest(AuthContexts.java:190)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:149)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:141)
      	at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:92)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.GuiceHandler.handle(GuiceHandler.java:59)
      	at org.forgerock.openam.http.HttpRoute$6.handle(HttpRoute.java:214)
      	at org.forgerock.http.routing.Router.handle(Router.java:108)
      	at org.forgerock.http.swagger.OpenApiRequestFilter.filter(OpenApiRequestFilter.java:70)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.ApiDescriptorFilter.filter(ApiDescriptorFilter.java:147)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.OpenAMHttpApplication$1.filter(OpenAMHttpApplication.java:78)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:60)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:236)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.rest.ProtocolVersionFilter.doFilter(ProtocolVersionFilter.java:65)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:88)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:111)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      

      To reproduce:

      1. deploy OpenAM
      2. import Amster keys into authorized_keys
      3. create a transport key
      4. restart OpenAM
      5. connect via amster
      6. follow the first code snippet in this description

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jaco.jooste Jaco Jooste
                Reporter:
                n4al Nemanja Lukic
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: