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

create-agent-grp or adding groupconfig in OpenAM console fails with NPE for subrealms

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.0.0
    • Fix Version/s: 10.0.2, 11.0.1, 12.0.0
    • Component/s: CLI, console, web agents
    • Environment:
      Java(TM) SE Runtime Environment (build 1.6.0_45-b06), Tomcat 7.042, Oracle Linux Server release 6.4, External OpenDJ as config store
    • Rank:
      1|hzo5cn:

      Description

      In a cleanly installed environment,When applying the following commands
      create-realm -e agents
      create-agent-grp -e agents -b agents-common-config -t WebAgent

      the second command fails with error 1000. When we try to create the agent group in the console we get the following error:
      amConsole:11/06/2013 02:43:49:660 PM CET: Thread[http-nio-18080-exec-4,5,main]
      ERROR: ConsoleServletBase.onUncaughtException
      java.lang.NullPointerException
      at com.sun.identity.idm.plugins.internal.AgentsRepo.create(AgentsRepo.java:282)
      at com.sun.identity.idm.server.IdServicesImpl.create(IdServicesImpl.java:450)
      at com.sun.identity.idm.AMIdentityRepository.createIdentity(AMIdentityRepository.java:384)
      at com.sun.identity.common.configuration.AgentConfiguration.createAgentGroupEx(AgentConfiguration.java:279)
      at com.sun.identity.common.configuration.AgentConfiguration.createAgentGroup(AgentConfiguration.java:222)
      at com.sun.identity.console.agentconfig.model.AgentsModelImpl.createAgentGroup(AgentsModelImpl.java:452)
      at com.sun.identity.console.agentconfig.AgentGroupAddViewBean.handleButton1Request(AgentGroupAddViewBean.java:164)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)

      The workaround seems to be to first create a agent group config in at the toplevel realm. The following sequence of commands works:

      create-agent-grp -e / -b dummy -t WebAgent
      create-realm -e agents
      create-agent-grp -e agents -b agents-common-config -t WebAgent

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sachiko Sachiko Wallace
              Reporter:
              bassteen Bas Steen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: