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

JMX monitoring doesn't work after upgrade

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.0.0
    • Fix Version/s: None
    • Component/s: monitoring
    • Labels:
    • Target Version/s:
    • Needs backport:
      No
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      JMX monitoring is broken after upgrading from AM 5.5.0 to AM 6.0.0.

      How to reproduce the issue

      1. Install AM 5.5.0
      2. Login as amadmin and enable JMX monitoring
        1. Configure > Global Services > Monitoring
        2. Set "Monitoring Status" to enabled
        3. Set "Monitoring RMI interface Status" to enabled
        4. Save Changes
      3. Verify metrics available via JMX
        1. Open jconsole and connect to AM
        2. Verify folder "org.forgerock.openam" is present and contains metrics
      4. Upgrade to AM 6.0.0
      5. Verify metrics available via JMX
        1. Open jconsole and connect to AM
        2. Verify folder "org.forgerock.openam" is present and contains metrics
      Expected behaviour

      AM metrics should be accessible via JMX.

      Current behaviour

      AM metrics are not accessible via JMX.

      Authentication debug file contents after starting AM 6.0.0 (post upgrade)

      amAuth:03/15/2018 01:09:02:241 PM GMT: Thread[localhost-startStop-1,5,main]: TransactionId[235f988e-25e3-4068-bbe5-1b6e5272a605-0]
      ERROR: failed to create example trees
      Message:Service already exists
      
      	at com.sun.identity.sm.CreateServiceConfig.createSubConfigEntry(CreateServiceConfig.java:314)
      	at com.sun.identity.sm.ServiceConfig.addSubConfig(ServiceConfig.java:383)
      	at org.forgerock.openam.auth.nodes.framework.builders.TreeBuilder.build(TreeBuilder.java:98)
      	at org.forgerock.openam.auth.nodes.framework.FrameworkNodesPlugin.installExampleTree(FrameworkNodesPlugin.java:148)
      	at org.forgerock.openam.auth.nodes.framework.FrameworkNodesPlugin.onStartup(FrameworkNodesPlugin.java:118)
      	at org.forgerock.openam.plugins.PluginLifecycle.notifyPluginsOfStartup(PluginLifecycle.java:215)
      	at org.forgerock.openam.plugins.PluginLifecycle.initialise(PluginLifecycle.java:84)
      	at com.sun.identity.setup.AMSetupServlet.notifyAmStartup(AMSetupServlet.java:1815)
      	at com.sun.identity.setup.AMSetupServlet.init(AMSetupServlet.java:213)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4913)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5223)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
      	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
      	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      IdRepo debug file contents after starting AM 6.0.0 (post upgrade)

      amSDK:03/15/2018 01:09:02:652 PM GMT: Thread[localhost-startStop-1,5,main]: TransactionId[235f988e-25e3-4068-bbe5-1b6e5272a605-0]
      ERROR: SSOTokenManager: cannot load SSOProvider plugin org.forgerock.openam.sso.providers.stateless.StatelessSSOProvider
      java.lang.ClassNotFoundException: org.forgerock.openam.sso.providers.stateless.StatelessSSOProvider
      	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
      	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:264)
      	at com.iplanet.sso.SSOTokenManager.getSsoProviderPlugins(SSOTokenManager.java:179)
      	at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:369)
      	at org.forgerock.openam.authentication.service.DsameAdminSessionFactory.initSsoAuthSession(DsameAdminSessionFactory.java:105)
      	at org.forgerock.openam.authentication.service.DsameAdminSessionFactory.getAuthenticationSession(DsameAdminSessionFactory.java:70)
      	at com.sun.identity.authentication.service.AuthD.<init>(AuthD.java:221)
      	at com.sun.identity.authentication.service.AuthD.<init>(AuthD.java:101)
      	at com.sun.identity.authentication.service.AuthD$SingletonHolder.getInstance(AuthD.java:123)
      	at com.sun.identity.authentication.service.AuthD.getAuth(AuthD.java:509)
      	at com.sun.identity.authentication.UI.LoginLogoutMapping.initializeAuth(LoginLogoutMapping.java:98)
      	at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:73)
      	at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:62)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4913)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5223)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
      	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
      	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Work around

      None known. JMX continues to be broken after restart and after toggling JMX on/off via config.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                craig.mcdonnell Craig McDonnell
                Reporter:
                craig.mcdonnell Craig McDonnell
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: