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

advanced configuration throws null pointer exception when setting property org.forgerock.openam.session.stateless.rsa.padding

    Details

      Description

      to reproduce:
      goto configure --> global default --> advanced
      press save
      observe errors on screen:
      "Error updating values for advanced"
      followed by
      "Bad Request Error"

      stack trace:

      ERROR: Invalid property
      com.sun.identity.common.configuration.ConfigurationException: Invalid value for property, org.forgerock.openam.session.stateless.rsa.padding.
      at com.sun.identity.common.configuration.ServerPropertyValidator.validate(ServerPropertyValidator.java:237)
      at com.sun.identity.common.configuration.ServerPropertyValidator.validate(ServerPropertyValidator.java:148)
      at com.sun.identity.common.configuration.ServerPropertyValidator.validateProperty(ServerPropertyValidator.java:125)
      at com.sun.identity.common.configuration.ServerConfiguration.validateProperty(ServerConfiguration.java:516)
      at com.sun.identity.common.configuration.ServerConfiguration.setServerInstance(ServerConfiguration.java:499)
      at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.updateServerDefaults(SmsServerPropertiesResource.java:967)
      at org.forgerock.openam.core.rest.sms.SmsServerPropertiesResource.update(SmsServerPropertiesResource.java:924)
      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 org.forgerock.json.resource.AnnotatedMethod.invoke(AnnotatedMethod.java:96)
      at org.forgerock.json.resource.AnnotatedMethod.invoke(AnnotatedMethod.java:64)
      at org.forgerock.json.resource.AnnotatedRequestHandler.handleUpdate(AnnotatedRequestHandler.java:73)
      at org.forgerock.json.resource.Router.handleUpdate(Router.java:342)
      at org.forgerock.json.resource.Router.handleUpdate(Router.java:342)
      at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:123)
      at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter$7.apply(AuthorizationFilters.java:406)
      at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter$7.apply(AuthorizationFilters.java:402)
      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.filterUpdate(AuthorizationFilters.java:401)
      at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:121)
      at org.forgerock.json.resource.FilterChain.handleUpdate(FilterChain.java:266)
      at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:123)
      at org.forgerock.openam.rest.fluent.AuditFilter.filterUpdate(AuditFilter.java:216)
      at org.forgerock.openam.rest.fluent.AuditFilterWrapper.filterUpdate(AuditFilterWrapper.java:96)
      at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:121)
      at org.forgerock.openam.rest.fluent.CrestLoggingFilter.filterUpdate(CrestLoggingFilter.java:184)
      at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:121)
      at org.forgerock.openam.rest.ContextFilter.filterUpdate(ContextFilter.java:93)
      at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:121)
      at org.forgerock.openam.rest.AuthenticationEnforcer.filterUpdate(AuthenticationEnforcer.java:191)
      at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:121)
      at org.forgerock.json.resource.FilterChain.handleUpdate(FilterChain.java:266)
      at org.forgerock.json.resource.InternalConnection.updateAsync(InternalConnection.java:100)
      at org.forgerock.json.resource.http.RequestRunner.visitUpdateRequest(RequestRunner.java:353)
      at org.forgerock.json.resource.http.RequestRunner.visitUpdateRequest(RequestRunner.java:94)
      at org.forgerock.json.resource.Requests$UpdateRequestImpl.accept(Requests.java:622)
      at org.forgerock.json.resource.http.RequestRunner.handleResult(RequestRunner.java:140)
      at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:704)
      at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:701)
      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:700)
      at org.forgerock.json.resource.http.HttpAdapter.doUpdate(HttpAdapter.java:647)
      at org.forgerock.json.resource.http.HttpAdapter.handle(HttpAdapter.java:264)
      at org.forgerock.http.handler.Handlers$HandlerDescribableAsDescribableHandler.handle(Handlers.java:154)
      at org.forgerock.http.filter.OptionsFilter.filter(OptionsFilter.java:77)
      at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      at org.forgerock.openam.rest.CrestProtocolEnforcementFilter.filter(CrestProtocolEnforcementFilter.java:61)
      at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      at org.forgerock.http.routing.Router.handle(Router.java:100)
      at org.forgerock.http.routing.ResourceApiVersionRoutingFilter.filter(ResourceApiVersionRoutingFilter.java:64)
      at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      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: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:100)
      at org.forgerock.openam.http.OpenAMHttpApplication$1.filter(OpenAMHttpApplication.java:69)
      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:250)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      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:51)
      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:503)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

            People

            • Assignee:
              neil.madden Neil Madden
              Reporter:
              ken.stubbings Ken Stubbings
              QA Assignee:
              Filip Kubáň [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: