Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2080

ConfigManagerTestCase fails

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.0M11
    • 4.0M8
    • None
    • None

      In template environment, safe mode works correctly.
      When running those tests, configuring the RightManager fails when trying to retrieve rights.xml file
      Those tests were temporary commented.

      org.ametys.runtime.plugin.PluginException: Caught exception while starting ComponentManager in safe mode.
      	at org.ametys.runtime.plugin.PluginsManager._enterSafeMode(PluginsManager.java:1440)
      	at org.ametys.runtime.plugin.PluginsManager.init(PluginsManager.java:392)
      	at org.ametys.runtime.test.ConfigManagerTestCase.testMissingParameters(ConfigManagerTestCase.java:77)
      	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:498)
      	at junit.framework.TestCase.runTest(TestCase.java:176)
      	at junit.framework.TestCase.runBare(TestCase.java:141)
      	at junit.framework.TestResult$1.protect(TestResult.java:122)
      	at junit.framework.TestResult.runProtected(TestResult.java:142)
      	at junit.framework.TestResult.run(TestResult.java:125)
      	at junit.framework.TestCase.run(TestCase.java:129)
      	at junit.framework.TestSuite.runTest(TestSuite.java:252)
      	at junit.framework.TestSuite.run(TestSuite.java:247)
      	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
      	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      Caused by: java.lang.Exception: Caught an exception trying to initialize the component org.ametys.core.ui.StaticFileImportsManager
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:212)
      	at org.ametys.runtime.plugin.PluginsManager._enterSafeMode(PluginsManager.java:1436)
      	... 21 more
      Caused by: java.lang.Exception: Caught an exception trying to initialize the component org.ametys.navhistory.HistoryDAO
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:212)
      	at org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint.initializeExtensions(AbstractThreadSafeComponentExtensionPoint.java:96)
      	at org.ametys.core.ui.AbstractClientSideExtensionPoint.initializeExtensions(AbstractClientSideExtensionPoint.java:215)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ExtensionPointFactory.newInstance(PluginsComponentManager.java:219)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:1)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:206)
      	... 22 more
      Caused by: org.apache.avalon.framework.service.ServiceException: Unable to initialize component org.ametys.core.right.RightManager (key [org.ametys.core.right.RightManager]) (Key='org.ametys.core.right.RightManager')
      	at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:81)
      	at org.ametys.core.ui.StaticFileImportsClientSideElement.service(StaticFileImportsClientSideElement.java:71)
      	at org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:144)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.configureAndStart(ThreadSafeComponentManager.java:357)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.newInstance(ThreadSafeComponentManager.java:378)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:206)
      	... 27 more
      Caused by: org.apache.avalon.framework.component.ComponentException: Unable to initialize component org.ametys.core.right.RightManager (key [org.ametys.core.right.RightManager])
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.lookup(ThreadSafeComponentManager.java:142)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager.lookup(PluginsComponentManager.java:74)
      	at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:69)
      	... 32 more
      Caused by: org.apache.avalon.framework.configuration.ConfigurationException: An error occured while retriving external file '/WEB-INF/param/rights.xml' @file:///D:/Dev/Ametys/kernel/01_RUNTIME/trunk/test/environments/webapp1/../../../main/plugin-core/plugin.xml:686:67
      	at org.ametys.core.right.RightManager.configure(RightManager.java:247)
      	at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:202)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.configureAndStart(ThreadSafeComponentManager.java:359)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:156)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ProxyComponentFactory.newInstance(PluginsComponentManager.java:1)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.lookup(ThreadSafeComponentManager.java:138)
      	... 34 more
      Caused by: java.lang.NullPointerException
      	at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:216)
      	at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:152)
      	at org.ametys.core.right.RightManager.configure(RightManager.java:226)
      	... 39 more
      
      
      

            raphael Raphaël Franchet
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: