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

Many `Service does not exist` errors after FBC Configuration

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: FBC
    • Labels:
    • Target Version/s:
    • Sprint:
      AM 2020.6 - Paper

      Description

      Bug description

      When setting up AM in file-based mode there are 352 occurrences of a `Service does not exist` exception in <amconfig-location>/var/debug/OtherLogging. Note that when setting up in non-FBC mode I don't see any of these errors.

      How to reproduce the issue

      1. Start Tomcat with the filebased_enabled CATALINA option.
      2. Deploy the AM WAR to Tomcat
      3. Run the follow curl command on the installation to do the configuration:
        curl 'http://am.localtest.me:8080/openam/config/configurator --header "Content-Type:application/x-www-form-urlencoded" --data-urlencode "ADMIN_CONFIRM_PWD=administrator" --data-urlencode "ADMIN_PWD=administrator" --data-urlencode "AMLDAPUSERPASSWD=changeit" --data-urlencode "AMLDAPUSERPASSWD_CONFIRM=changeit" --data-urlencode "BASE_DIR=$HOME/openam" --data-urlencode "DEPLOYMENT_URI=openam" --data-urlencode "DIRECTORY_ADMIN_PORT=4444" --data-urlencode "DIRECTORY_JMX_PORT=1689" --data-urlencode "DIRECTORY_SSL=SIMPLE" --data-urlencode "DS_DIRMGRDN=cn=Directory Manager" --data-urlencode "DS_DIRMGRPASSWD=administrator" --data-urlencode "PLATFORM_LOCALE=en_US" --data-urlencode "SERVER_URL=http://am.localtest.me:8080" --data-urlencode "acceptLicense=true" --data-urlencode "locale=en_GB" --data-urlencode "ROOT_SUFFIX=dc=openam,dc=forgerock,dc=org" --data-urlencode "COOKIE_DOMAIN=localtest.me" --data-urlencode "DATA_STORE=embedded" --data-urlencode "DIRECTORY_PORT=50389" --data-urlencode "DIRECTORY_SERVER=localhost"'
      4. Check $HOME/openam/var/debug/OtherLogging
      Expected behaviour
      The logs should contain very little.
      Current behaviour
      The logs contain 2.1MB of logs with 352 exceptions. 
      

      The stack-trace of the exceptions will be a good place to start investigation:
      om.sun.identity.sm.ServiceNotFoundException: Service does not exist : dashboardServiceom.sun.identity.sm.ServiceNotFoundException: Service does not exist : dashboardService at com.sun.identity.sm.ServiceSchemaManagerImpl.isValid(ServiceSchemaManagerImpl.java:102) at com.sun.identity.sm.ServiceSchemaManagerImpl.<init>(ServiceSchemaManagerImpl.java:85) at com.sun.identity.sm.ServiceSchemaManagerImpl.getInstance(ServiceSchemaManagerImpl.java:482) at com.sun.identity.sm.ServiceSchemaManager.<init>(ServiceSchemaManager.java:152) at com.sun.identity.sm.ServiceSchemaManager.<init>(ServiceSchemaManager.java:88) at org.forgerock.openam.sm.file.converter.ConfigEntityConverter.getSchemaVersion(ConfigEntityConverter.java:253) at org.forgerock.openam.sm.file.converter.ConfigEntityConverter.convertToEntity(ConfigEntityConverter.java:244) at org.forgerock.openam.sm.FileBasedSmsObject.writeFileData(FileBasedSmsObject.java:278) at org.forgerock.openam.sm.FileBasedSmsObject.write(FileBasedSmsObject.java:273) at org.forgerock.openam.sm.FileBasedSmsObject.create(FileBasedSmsObject.java:200) at com.sun.identity.sm.SmsWrapperObject.create(SmsWrapperObject.java:164) at com.sun.identity.sm.SMSEntry.save(SMSEntry.java:635) at com.sun.identity.sm.SMSEntry.save(SMSEntry.java:624) at com.sun.identity.sm.ServiceSchemaManager.checkAndCreateService(ServiceSchemaManager.java:925) at com.sun.identity.sm.ServiceSchemaManager.createService(ServiceSchemaManager.java:886) at com.sun.identity.sm.ServiceManager.registerService(ServiceManager.java:437) at com.sun.identity.sm.ServiceManager.registerServices(ServiceManager.java:382) at com.sun.identity.sm.ServiceManager.registerServices(ServiceManager.java:360) at com.sun.identity.setup.RegisterServices.registerService(RegisterServices.java:151) at com.sun.identity.setup.RegisterServices.registers(RegisterServices.java:103) at com.sun.identity.setup.AMSetupServlet.configure(AMSetupServlet.java:923) at com.sun.identity.setup.AMSetupServlet.processRequest(AMSetupServlet.java:528) at com.sun.identity.setup.AMSetupServlet.doPost(AMSetupServlet.java:459) at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.forgerock.openam.headers.SecureCookieFilter.doFilter(SecureCookieFilter.java:62) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:59) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:80) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:80) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:129) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1591) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:834)

        Attachments

          Activity

            People

            • Assignee:
              kajetan.hemzaczek Kajetan Hemzaczek
              Reporter:
              isaac.taylor Isaac Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: