Details

      Description

      while enabling AM monitoring via ssoadm, a log is generated in CoreSystem and monitoring doesn't work.

      SSOADM command

      ssoadm set-attr-defs -u amAdmin -f admin_pwd_file -s iPlanetAMMonitoringService -t Global -a iplanet-am-monitoring-enabled=true iplanet-am-monitoring-snmp-enabled=true iplanet-am-monitoring-snmp-port=8085
      

      (note that the CoreSystem errors only appear after a restart, as monitoring is currently not hot swappable)

      CoreSystem log:

      amMonitoring:12/02/2016 11:59:54:139 AM GMT: Thread[openam.example.com-startStop-1,5,main]: TransactionId[1b5aa18e-860d-4a95-a834-57585732e273-0]
      ERROR: ConfigMonitoring.getMonServiceAttrs: error reading Monitoring attributes: 
      javax.management.RuntimeMBeanException: RuntimeException thrown in preRegister method
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.throwMBeanRegistrationException(DefaultMBeanServerInterceptor.java:985)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preRegister(DefaultMBeanServerInterceptor.java:1009)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:919)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
      	at com.sun.identity.monitoring.Agent.startAgent(Agent.java:623)
      	at com.sun.identity.common.ConfigMonitoring.getMonServiceAttrs(ConfigMonitoring.java:1121)
      	at com.sun.identity.common.ConfigMonitoring.configureMonitoring(ConfigMonitoring.java:123)
      	at com.sun.identity.common.MonitoringConfiguration.init(MonitoringConfiguration.java:64)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1282)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1085)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5349)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5641)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
      	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
      	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
      	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:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: com.google.inject.ConfigurationException: Guice configuration errors:
      
      1) Unable to create binding for com.sun.identity.shared.debug.Debug annotated with @com.google.inject.name.Named(value=amCoreTokenMonitorService). It was already configured on one or more child injectors or private modules
          bound at org.forgerock.openam.cts.CoreTokenServiceGuiceModule.configure(CoreTokenServiceGuiceModule.java:97)
        If it was in a PrivateModule, did you forget to expose the binding?
        while locating com.sun.identity.shared.debug.Debug annotated with @com.google.inject.name.Named(value=amCoreTokenMonitorService)
      
      1 error
      	at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004)
      	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1009)
      	at org.forgerock.guice.core.InjectorHolder.getInstance(InjectorHolder.java:93)
      	at org.forgerock.openam.monitoring.cts.CtsMonitoringImpl.init(CtsMonitoringImpl.java:127)
      	at org.forgerock.openam.monitoring.cts.CtsMonitoringImpl.<init>(CtsMonitoringImpl.java:95)
      	at org.forgerock.openam.monitoring.cts.FORGEROCK_OPENAM_CTS_MIBImpl.createCtsMonitoringMBean(FORGEROCK_OPENAM_CTS_MIBImpl.java:74)
      	at org.forgerock.openam.monitoring.cts.FORGEROCK_OPENAM_CTS_MIB.initCtsMonitoring(FORGEROCK_OPENAM_CTS_MIB.java:149)
      	at org.forgerock.openam.monitoring.cts.FORGEROCK_OPENAM_CTS_MIB.populate(FORGEROCK_OPENAM_CTS_MIB.java:100)
      	at org.forgerock.openam.monitoring.cts.FORGEROCK_OPENAM_CTS_MIB.preRegister(FORGEROCK_OPENAM_CTS_MIB.java:76)
      	at com.sun.jmx.mbeanserver.MBeanSupport.preRegister(MBeanSupport.java:167)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preRegister(DefaultMBeanServerInterceptor.java:1007)
      	... 24 more
      
      amMonitoring:12/02/2016 12:02:23:526 PM GMT: Thread[openam.example.com-startStop-1,5,main]: TransactionId[3aa5cee7-6a55-4234-b105-91e38a4ea72c-0]
      ERROR: ConfigMonitoring.configureMonitoring: getMonServiceAttrs returns -5, monitoring disabled
      frRest:12/02/2016 12:02:23:935 PM GMT: Thread[http-bio-8080-exec-5,5,main]: TransactionId[3aa5cee7-6a55-4234-b105-91e38a4ea72c-160]
      ERROR: API Descriptor has changed - regenerating docs
      frRest:12/02/2016 12:04:36:435 PM GMT: Thread[http-bio-8080-exec-13,5,main]: TransactionId[3aa5cee7-6a55-4234-b105-91e38a4ea72c-160080]
      ERROR: A runtime exception occurred during the CREST request handling
      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:64)
      	at org.forgerock.json.resource.AnnotatedSingletonHandler.handleRead(AnnotatedSingletonHandler.java:63)
      	at org.forgerock.json.resource.Router.handleRead(Router.java:341)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleRead(FilterChain.java:113)
      	at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter$6.apply(AuthorizationFilters.java:378)
      	at org.forgerock.authz.filter.crest.AuthorizationFilters$AuthorizationFilter$6.apply(AuthorizationFilters.java:374)
      	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.filterRead(AuthorizationFilters.java:373)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleRead(FilterChain.java:111)
      	at org.forgerock.json.resource.FilterChain.handleRead(FilterChain.java:260)
      	at org.forgerock.json.resource.Router.handleRead(Router.java:341)
      	at org.forgerock.openam.core.rest.sms.tree.SmsRouteTree.handleRead(SmsRouteTree.java:400)
      	at org.forgerock.openam.core.rest.sms.tree.SmsRouteTree.getSingletonInstance(SmsRouteTree.java:350)
      	at org.forgerock.openam.core.rest.sms.tree.SmsRouteTree.readInstances(SmsRouteTree.java:340)
      	at org.forgerock.openam.core.rest.sms.tree.SmsRouteTree.handleAction(SmsRouteTree.java:269)
      	at org.forgerock.json.resource.Router.handleAction(Router.java:258)
      	at org.forgerock.openam.core.rest.sms.tree.SmsRouteTree.handleAction(SmsRouteTree.java:300)
      	at org.forgerock.openam.core.rest.sms.SmsRequestHandler.handleAction(SmsRequestHandler.java:648)
      	at org.forgerock.json.resource.Router.handleAction(Router.java:258)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:63)
      	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:61)
      	at org.forgerock.openam.rest.fluent.CrestLoggingFilter.filterAction(CrestLoggingFilter.java:74)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
      	at org.forgerock.openam.rest.ContextFilter.filterAction(ContextFilter.java:57)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
      	at org.forgerock.openam.rest.AuthenticationEnforcer.filterAction(AuthenticationEnforcer.java:137)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:61)
      	at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:230)
      	at org.forgerock.json.resource.InternalConnection.actionAsync(InternalConnection.java:37)
      	at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:148)
      	at org.forgerock.json.resource.http.RequestRunner.visitActionRequest(RequestRunner.java:94)
      	at org.forgerock.json.resource.Requests$ActionRequestImpl.accept(Requests.java:185)
      	at org.forgerock.json.resource.http.RequestRunner.handleResult(RequestRunner.java:140)
      	at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:722)
      	at org.forgerock.json.resource.http.HttpAdapter$1.apply(HttpAdapter.java:719)
      	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:718)
      	at org.forgerock.json.resource.http.HttpAdapter.doAction(HttpAdapter.java:624)
      	at org.forgerock.json.resource.http.HttpAdapter.handle(HttpAdapter.java:288)
      	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.http.routing.Router.handle(Router.java:108)
      	at org.forgerock.http.routing.Router.handle(Router.java:108)
      	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:201)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.access$200(AuthenticationFramework.java:64)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:193)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework$2.apply(AuthenticationFramework.java:186)
      	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:149)
      	at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:141)
      	at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:92)
      	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:108)
      	at org.forgerock.http.swagger.OpenApiRequestFilter.filter(OpenApiRequestFilter.java:69)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.ApiDescriptorFilter.filter(ApiDescriptorFilter.java:122)
      	at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:61)
      	at org.forgerock.openam.http.OpenAMHttpApplication$1.filter(OpenAMHttpApplication.java:70)
      	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:236)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	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 org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:88)
      	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:218)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
      	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.GeneratedMethodAccessor105.invoke(Unknown Source)
      	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)
      	... 106 more
      Caused by: org.forgerock.json.JsonException: Unable to validate attributes
      	at org.forgerock.openam.core.rest.sms.SmsJsonConverter.toJson(SmsJsonConverter.java:198)
      	at org.forgerock.openam.core.rest.sms.SmsJsonConverter.toJson(SmsJsonConverter.java:167)
      	at org.forgerock.openam.core.rest.sms.SmsJsonConverter.toJson(SmsJsonConverter.java:141)
      	at org.forgerock.openam.core.rest.sms.SmsGlobalSingletonProvider.addOrganisationAttributes(SmsGlobalSingletonProvider.java:148)
      	at org.forgerock.openam.core.rest.sms.SmsResourceProvider.getJsonValue(SmsResourceProvider.java:452)
      	at org.forgerock.openam.core.rest.sms.SmsResourceProvider.getJsonValue(SmsResourceProvider.java:440)
      	at org.forgerock.openam.core.rest.sms.SmsSingletonProvider.handleRead(SmsSingletonProvider.java:154)
      	... 110 more
      Caused by: Message:Data validation failed for the attribute, selfServiceSigningSecretKeyAlias
      
      	at com.sun.identity.sm.ServiceSchemaImpl.throwInvalidAttributeValuesException(ServiceSchemaImpl.java:741)
      	at com.sun.identity.sm.ServiceSchemaImpl.validatePlugin(ServiceSchemaImpl.java:722)
      	at com.sun.identity.sm.ServiceSchemaImpl.serverEndAttrValidation(ServiceSchemaImpl.java:692)
      	at com.sun.identity.sm.ServiceSchemaImpl.validatePlugin(ServiceSchemaImpl.java:650)
      	at com.sun.identity.sm.ServiceSchemaImpl.validateAttrValues(ServiceSchemaImpl.java:597)
      	at com.sun.identity.sm.ServiceSchemaImpl.validateAttributes(ServiceSchemaImpl.java:345)
      	at com.sun.identity.sm.ServiceSchemaImpl.validateAttributes(ServiceSchemaImpl.java:314)
      	at com.sun.identity.sm.ServiceSchema.validateAttributes(ServiceSchema.java:749)
      	at org.forgerock.openam.core.rest.sms.SmsJsonConverter.toJson(SmsJsonConverter.java:191)
      	... 116 more
      

        Attachments

          Activity

            People

            • Assignee:
              emma.rumsey Emma Rumsey
              Reporter:
              narita.saxena Narita Saxena
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: