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

NPE on exporting config during recording

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 14.5.0, 14.5.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Sprint:
      AM Sustaining Sprint 45
    • Story Points:
      1
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes but I used my own steps. (If so, please add them in a new comment)

      Description

      When recording an issue with AM 5.5.0 (M19) with the recorder tool, with configuration export enabled, the export of the configuration fails with NPE:

      amRecord:09/27/2017 01:24:12:929 PM BST: Thread[http-bio-18080-exec-9,5,main]: TransactionId[e8b87142-8ff3-4085-87f3-ae72e5dca0b8-3390]
      ERROR: Can't export OpenAM configuration
      java.lang.NullPointerException
              at com.sun.identity.sm.ServiceManager.checkAndEncryptPasswordSyntax(ServiceManager.java:982)
              at com.sun.identity.sm.ServiceSchemaManagerImpl.toXML(ServiceSchemaManagerImpl.java:682)
              at com.sun.identity.sm.ServiceSchemaManager.toXML(ServiceSchemaManager.java:963)
              at com.sun.identity.sm.ServiceManager.toXML(ServiceManager.java:1206)
              at org.forgerock.openam.core.rest.record.DefaultDebugRecorder.exportConfigExport(DefaultDebugRecorder.java:294)
              at org.forgerock.openam.core.rest.record.DefaultDebugRecorder.startRecording(DefaultDebugRecorder.java:147)
              at org.forgerock.openam.core.rest.record.RecordResource.actionStart(RecordResource.java:86)
              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:65)
              at org.forgerock.json.resource.AnnotatedActionMethods.invoke(AnnotatedActionMethods.java:43)
              at org.forgerock.json.resource.AnnotatedActionMethods.invoke(AnnotatedActionMethods.java:31)
              at org.forgerock.json.resource.AnnotatedCollectionHandler.handleAction(AnnotatedCollectionHandler.java:63)
              at org.forgerock.json.resource.Router.handleAction(Router.java:250)
              at org.forgerock.json.resource.Router.handleAction(Router.java:250)
              at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:55)
              at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter.lambda$filterAction$0(AuthorizationFilters.java:225)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:252)
              at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:216)
              at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter.filterAction(AuthorizationFilters.java:223)
              at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53)
              at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:222)
              at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:55)
              at org.forgerock.openam.rest.fluent.AuditFilter.filterAction(AuditFilter.java:81)
              at org.forgerock.openam.rest.fluent.AuditFilterWrapper.filterAction(AuditFilterWrapper.java:52)
              at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53)
              at org.forgerock.openam.rest.fluent.CrestLoggingFilter.filterAction(CrestLoggingFilter.java:66)
              at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53)
              at org.forgerock.openam.rest.ContextFilter.filterAction(ContextFilter.java:49)
              at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53)
              at org.forgerock.openam.rest.AuthenticationEnforcer.filterAction(AuthenticationEnforcer.java:129)
              at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53)
              at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:222)
              at org.forgerock.json.resource.Router.handleAction(Router.java:250)
      

        Attachments

          Activity

            People

            Assignee:
            adam.heath Adam Heath
            Reporter:
            nathalie.hoet Nathalie Hoet
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: