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

Upgrade fails if OpenAM is using an external Config Store "Unable to remove objectclass 1.3.6.1.4.1.36733.2.2.2.27 from the server schema because no such objectclass is defined"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 14.0.0
    • Fix Version/s: 14.0.0
    • Component/s: upgrade
    • Labels:
    • Environment:
      OpenAM 14.0.0-SNAPSHOT Build d9156ce7de (2016-November-03 00:28)
    • Target Version/s:
    • Rank:
      1|hzpb7r:
    • Sprint:
      AM Sustaining Sprint 32
    • Story Points:
      5

      Description

      Trying to upgrade an OpenAM 12.0.3 server using an external config store to OpenAM 14.0.0, it fails when running command:

      /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -jar openam-upgrade-tool-14.0.0-SNAPSHOT.jar -f /local/wks/pyforge/results/20161103-143410/upgrade/Site/AM1/upgrade.properties
      20161103 14:39:07.247 - INFO - SUCCESS:
      -- rc --
      returned 0, expected 0
      20161103 14:39:07.248 - DEBUG - Writing Backup; Done.
      
      Upgrade Failed. Please check the amUpgrade debug file for errors
      

      From amUpgrade debug log we see:

      amUpgrade:11/03/2016 02:39:07:234 PM CET: Thread[http-bio-8081-exec-6,5,main]: TransactionId[2449cfa7-cdd6-4517-9748-5092edd0b618-75]
      ERROR: An error occurred while processing /WEB-INF/template/ldif/sfha/cts-add-multivalue.ldif
      org.forgerock.opendj.ldap.LdapException: Unwilling to Perform: Unable to remove objectclass 1.3.6.1.4.1.36733.2.2.2.27 from the server schema because no such objectclass is defined
      	at org.forgerock.opendj.ldap.LdapException.newLdapException(LdapException.java:178)
      	at org.forgerock.opendj.ldap.spi.ResultLdapPromiseImpl.setResultOrError(ResultLdapPromiseImpl.java:132)
      	at org.forgerock.opendj.grizzly.LDAPClientFilter$ClientResponseHandler.modifyResult(LDAPClientFilter.java:301)
      	at org.forgerock.opendj.io.LDAPReader.readModifyResult(LDAPReader.java:520)
      	at org.forgerock.opendj.io.LDAPReader.readProtocolOp(LDAPReader.java:555)
      	at org.forgerock.opendj.io.LDAPReader.readMessage(LDAPReader.java:122)
      	at org.forgerock.opendj.grizzly.LDAPBaseFilter.handleRead(LDAPBaseFilter.java:72)
      	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
      	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:526)
      	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
      	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
      	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
      	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
      	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
      	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
      	at java.lang.Thread.run(Thread.java:745)
      
      amUpgrade:11/03/2016 02:39:07:236 PM CET: Thread[http-bio-8081-exec-6,5,main]: TransactionId[2449cfa7-cdd6-4517-9748-5092edd0b618-75]
      ERROR: Error occured while upgrading OpenAM
      org.forgerock.openam.upgrade.UpgradeException: Unwilling to Perform: Unable to remove objectclass 1.3.6.1.4.1.36733.2.2.2.27 from the server schema because no such objectclass is defined
      	at org.forgerock.openam.upgrade.DirectoryContentUpgrader.processLDIF(DirectoryContentUpgrader.java:265)
      	at org.forgerock.openam.upgrade.DirectoryContentUpgrader.upgrade(DirectoryContentUpgrader.java:290)
      	at org.forgerock.openam.upgrade.steps.UpgradeDirectoryContentStep.perform(UpgradeDirectoryContentStep.java:69)
      	at org.forgerock.openam.upgrade.UpgradeServices.upgrade(UpgradeServices.java:155)
      	at com.sun.identity.config.upgrade.Upgrade.doUpgrade(Upgrade.java:85)
      	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:483)
      	at org.apache.click.util.ClickUtils.invokeMethod(ClickUtils.java:3317)
      	at org.apache.click.util.ClickUtils.invokeListener(ClickUtils.java:2088)
      	at org.apache.click.control.AbstractControl$1.onAction(AbstractControl.java:228)
      	at org.apache.click.ActionEventDispatcher.fireActionEvent(ActionEventDispatcher.java:259)
      	at org.apache.click.ActionEventDispatcher.fireActionEvents(ActionEventDispatcher.java:236)
      	at org.apache.click.ActionEventDispatcher.fireActionEvents(ActionEventDispatcher.java:180)
      	at org.apache.click.ClickServlet.performOnProcess(ClickServlet.java:746)
      	at org.apache.click.ClickServlet.processPageEvents(ClickServlet.java:607)
      	at org.apache.click.ClickServlet.processPage(ClickServlet.java:561)
      	at org.apache.click.ClickServlet.handleRequest(ClickServlet.java:383)
      	at org.apache.click.ClickServlet.doGet(ClickServlet.java:276)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
      	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 com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:123)
      	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:316)
      	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: org.forgerock.opendj.ldap.LdapException: Unwilling to Perform: Unable to remove objectclass 1.3.6.1.4.1.36733.2.2.2.27 from the server schema because no such objectclass is defined
      	at org.forgerock.opendj.ldap.LdapException.newLdapException(LdapException.java:178)
      	at org.forgerock.opendj.ldap.spi.ResultLdapPromiseImpl.setResultOrError(ResultLdapPromiseImpl.java:132)
      	at org.forgerock.opendj.grizzly.LDAPClientFilter$ClientResponseHandler.modifyResult(LDAPClientFilter.java:301)
      	at org.forgerock.opendj.io.LDAPReader.readModifyResult(LDAPReader.java:520)
      	at org.forgerock.opendj.io.LDAPReader.readProtocolOp(LDAPReader.java:555)
      	at org.forgerock.opendj.io.LDAPReader.readMessage(LDAPReader.java:122)
      	at org.forgerock.opendj.grizzly.LDAPBaseFilter.handleRead(LDAPBaseFilter.java:72)
      	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
      	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
      	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:526)
      	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
      	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
      	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
      	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
      	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
      	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
      	... 1 more
      

        Attachments

        1. debug.txt
          183 kB
          Sebastien Bertholet [X]

          Activity

            People

            • Assignee:
              jonthomas Jonathan Thomas
              Reporter:
              sberthol Sebastien Bertholet [X] (Inactive)
              QA Assignee:
              Filip Kubáň [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: