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

Security configuration page fails to load

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 14.0.0
    • Fix Version/s: None
    • Component/s: sms
    • Labels:
    • Rank:
      1|hzrqkv:

      Description

      Reproduction Steps:

      • Latest build of OpenAM/master (not 13.5)
      • Deploy and perform default installation
      • Navigate to Deployment > Servers > [Server] > Security

      Expected Result

      Configuration page loads.

      Actual Result

      Configuration page fails to load.

      Related Details

      A failed request was noticed in the browsers development tools:

      As CURL request

      curl 'http://rwapshott.forgerock.com:8080/openam/json/global-config/servers/01/properties/security?_action=schema' -X POST -H 'Accept-API-Version: protocol=1.0,resource=1.0' -H 'Cookie: JSESSIONID=357CC5377A12EA7D3E778342A716FB33; amlbcookie=01; iPlanetDirectoryPro=AQIC5wM2LY4SfczCavWxoCIrzOFdqyZ2b6AvJD16dHTo1pw.*AAJTSQACMDEAAlNLABQtOTE5OTc4ODQ3NjMyNTc3MzE0NwACUzEAAA..*; i18next=en-US' -H 'Origin: http://rwapshott.forgerock.com:8080' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'Content-Length: 0' -H 'Pragma: no-cache' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' -H 'Referer: http://rwapshott.forgerock.com:8080/openam/XUI/' -H 'DNT: 1' --compressed
      

      Request Headers:

      POST /openam/json/global-config/servers/01/properties/security?_action=schema HTTP/1.1
      Host: rwapshott.forgerock.com:8080
      Connection: keep-alive
      Content-Length: 0
      Pragma: no-cache
      Cache-Control: no-cache
      Accept-API-Version: protocol=1.0,resource=1.0
      Origin: http://rwapshott.forgerock.com:8080
      User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
      Content-Type: application/json
      Accept: application/json, text/javascript, */*; q=0.01
      X-Requested-With: XMLHttpRequest
      DNT: 1
      Referer: http://rwapshott.forgerock.com:8080/openam/XUI/
      Accept-Encoding: gzip, deflate
      Accept-Language: en-US,en;q=0.8
      Cookie: JSESSIONID=357CC5377A12EA7D3E778342A716FB33; amlbcookie=01; iPlanetDirectoryPro=AQIC5wM2LY4SfczCavWxoCIrzOFdqyZ2b6AvJD16dHTo1pw.*AAJTSQACMDEAAlNLABQtOTE5OTc4ODQ3NjMyNTc3MzE0NwACUzEAAA..*; i18next=en-US
      

      In addition, the following stack trace is noted in the OpenAM debug folder:

      ==> /Users/robert/openam/openam/debug/org.forgerock.http.HttpApplication <==
      org.forgerock.http.HttpApplication:07/05/2016 09:56:04:374 AM BST: Thread[http-nio-8080-exec-9,5,main]: TransactionId[66e1d7a1-233c-4450-97ab-99ef0a633541-234]
      ERROR: RuntimeException caught
      java.lang.IllegalStateException: Exception from invocation expected to be handled by promise
      	at org.forgerock.json.resource.AnnotatedMethod.invoke(AnnotatedMethod.java:100)
      	at org.forgerock.json.resource.AnnotatedMethod.invoke(AnnotatedMethod.java:68)
      	at org.forgerock.json.resource.AnnotatedActionMethods.invoke(AnnotatedActionMethods.java:45)
      	at org.forgerock.json.resource.AnnotatedActionMethods.invoke(AnnotatedActionMethods.java:37)
      	at org.forgerock.json.resource.AnnotatedSingletonHandler.handleAction(AnnotatedSingletonHandler.java:71)
      	at org.forgerock.json.resource.Router.handleAction(Router.java:241)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:59)
      	at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter$1.apply(AuthorizationFilters.java:237)
      	at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter$1.apply(AuthorizationFilters.java:233)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:223)
      	at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter.filterAction(AuthorizationFilters.java:232)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:57)
      	at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:207)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:59)
      	at org.forgerock.openam.rest.fluent.AuditFilter.filterAction(AuditFilter.java:89)
      	at org.forgerock.openam.rest.fluent.AuditFilterWrapper.filterAction(AuditFilterWrapper.java:60)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:57)
      	at org.forgerock.openam.rest.fluent.CrestLoggingFilter.filterAction(CrestLoggingFilter.java:74)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:57)
      	at org.forgerock.openam.rest.ContextFilter.filterAction(ContextFilter.java:57)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:57)
      	at org.forgerock.openam.rest.AuthenticationEnforcer.filterAction(AuthenticationEnforcer.java:137)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:57)
      	at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:207)
      	at org.forgerock.json.resource.InternalConnection.actionAsync(InternalConnection.java:33)
      	at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:127)
      	at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:73)
      	at org.forgerock.json.resource.Requests$ActionRequestImpl.accept(Requests.java:185)
      	at org.forgerock.json.resource.http.RequestRunner.handleResult(RequestRunner.java:119)
      	at org.forgerock.json.resource.http.HttpAdapter$2.apply(HttpAdapter.java:566)
      	at org.forgerock.json.resource.http.HttpAdapter$2.apply(HttpAdapter.java:563)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
      	at org.forgerock.json.resource.http.HttpAdapter.doRequest(HttpAdapter.java:562)
      	at org.forgerock.json.resource.http.HttpAdapter.doAction(HttpAdapter.java:505)
      	at org.forgerock.json.resource.http.HttpAdapter.handle(HttpAdapter.java:171)
      	at org.forgerock.http.filter.OptionsFilter.filter(OptionsFilter.java:77)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:56)
      	at org.forgerock.openam.rest.CrestProtocolEnforcementFilter.filter(CrestProtocolEnforcementFilter.java:61)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:56)
      	at org.forgerock.http.routing.Router.handle(Router.java:92)
      	at org.forgerock.http.routing.ResourceApiVersionRoutingFilter.filter(ResourceApiVersionRoutingFilter.java:64)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:56)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.grantAccess(AuthenticationFramework.java:220)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.access$400(AuthenticationFramework.java:65)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework$3.apply(AuthenticationFramework.java:212)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework$3.apply(AuthenticationFramework.java:205)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:255)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:244)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:168)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.access$100(AuthenticationFramework.java:65)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework$1.apply(AuthenticationFramework.java:155)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework$1.apply(AuthenticationFramework.java:152)
      	at org.forgerock.util.promise.PromiseImpl$7.handleStateChange(PromiseImpl.java:485)
      	at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:567)
      	at org.forgerock.util.promise.PromiseImpl.addOrFireListener(PromiseImpl.java:555)
      	at org.forgerock.util.promise.PromiseImpl.thenAsync(PromiseImpl.java:477)
      	at org.forgerock.util.promise.PromiseImpl.thenAsync(PromiseImpl.java:468)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:146)
      	at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:96)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:56)
      	at org.forgerock.openam.http.HandlerProvider.handle(HandlerProvider.java:50)
      	at org.forgerock.openam.http.HttpRoute$3.handle(HttpRoute.java:142)
      	at org.forgerock.http.routing.Router.handle(Router.java:92)
      	at org.forgerock.openam.http.OpenAMHttpApplication$1.filter(OpenAMHttpApplication.java:60)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:56)
      	at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:60)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:56)
      	at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:225)
      	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.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 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)
      Caused by: java.lang.reflect.InvocationTargetException
      	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:497)
      	at org.forgerock.json.resource.AnnotatedMethod.invoke(AnnotatedMethod.java:96)
      	... 101 more
      Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key amconfig.help.com.sun.identity.crl.cache.directory.host
      	at java.util.ResourceBundle.getObject(ResourceBundle.java:450)
      	at java.util.ResourceBundle.getString(ResourceBundle.java:407)
      	at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.getLabels(SmsServerPropertiesResource.java:451)
      	at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.getSchema(SmsServerPropertiesResource.java:188)
      	at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.schema(SmsServerPropertiesResource.java:392)
      	... 106 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rwapshott Robert Wapshott
                Reporter:
                rwapshott Robert Wapshott
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: