Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: Repository
    • Labels:

      Description

      Bootstrap of a system can fail with:

      org.alfresco.error.AlfrescoRuntimeException: 09100000 Bootstrap failed
      	at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:362)
      	at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:723)
      	at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
      	at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
      	at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
      	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
      	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      	at org.alfresco.util.BaseApplicationContextHelper$VariableFeatureClassPathXmlApplicationContext.<init>(BaseApplicationContextHelper.java:235)
      	at org.alfresco.util.BaseApplicationContextHelper.getApplicationContext(BaseApplicationContextHelper.java:69)
      	at org.alfresco.repo.version.VersionTestSuite.getContext(VersionTestSuite.java:41)
      	at org.alfresco.repo.version.VersionTestSuite.suite(VersionTestSuite.java:54)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:35)
      	at org.junit.internal.runners.SuiteMethod.<init>(SuiteMethod.java:24)
      	at org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:11)
      	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
      	at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
      	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
      	at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
      	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
      	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
      	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
      	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 6; column 71 due to error: Namespace URI http://www.alfresco.org/model/solrfacet/1.0 has not been defined in the Repository dictionary
      	at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)
      	at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:423)
      	at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:261)
      	at org.alfresco.repo.importer.ImporterBootstrap.doImport(ImporterBootstrap.java:476)
      	at org.alfresco.repo.importer.ImporterBootstrap.access$0(ImporterBootstrap.java:369)
      	at org.alfresco.repo.importer.ImporterBootstrap$1$1.execute(ImporterBootstrap.java:351)
      	at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)
      	at org.alfresco.repo.importer.ImporterBootstrap$1.doWork(ImporterBootstrap.java:355)
      	at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
      	at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:358)
      	... 32 more
      Caused by: org.alfresco.service.cmr.view.ImporterException: Namespace URI http://www.alfresco.org/model/solrfacet/1.0 has not been defined in the Repository dictionary
      	at org.alfresco.repo.importer.view.ViewParser.getName(ViewParser.java:991)
      	at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:219)
      	at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:176)
      	... 41 more
      

      Bean in solr-facets-context.xml is a bootstrap bean and attempts to enforce a boot order:

         <bean parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
            <property name="models">
               <list>
                  <value>alfresco/model/solrFacetModel.xml</value>
               </list>
            </property>
         </bean>
      

      This does not work. The model should be declared with all the other Alfresco-critical models.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  dhulley Derek Hulley [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel