Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-786

Impossible de créer un énumérateur basé sur OdfEnumerationHelper dans les paramètres de configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • 4.0.0
    • 2.2.0
    • None
    • None

      Lorsqu'on crée un paramètre de configuration qui utilise un énumérateur basé sur org.ametys.odf.enumeration.OdfEnumerationHelper, il est impossible de démarrer l'application :

      java.lang.RuntimeException: Unable to lookup parameter local components
      	at org.ametys.runtime.config.ConfigManager.validate(ConfigManager.java:324)
      	at org.ametys.runtime.plugin.PluginsManager.init(PluginsManager.java:429)
      	at org.ametys.runtime.cocoon.TreeProcessor.compose(TreeProcessor.java:58)
      	at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:173)
      	at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:266)
      	at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
      	at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:524)
      	at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:583)
      	at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
      	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:345)
      	at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
      	at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1435)
      	at org.ametys.runtime.servlet.RuntimeServlet.createCocoon(RuntimeServlet.java:225)
      	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:495)
      	at org.ametys.runtime.servlet.RuntimeServlet.init(RuntimeServlet.java:171)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      Caused by: java.lang.Exception: Caught an exception trying to initialize the component odf.current.habilitation
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:205)
      	at org.ametys.runtime.util.parameter.AbstractParameterParser.lookupComponents(AbstractParameterParser.java:91)
      	at org.ametys.runtime.config.ConfigManager.validate(ConfigManager.java:320)
      	... 31 more
      Caused by: org.apache.avalon.framework.service.ServiceException: Could not find component (key [org.ametys.odf.enumeration.OdfEnumerationHelper]) (Key='org.ametys.odf.enumeration.OdfEnumerationHelper')
      	at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:80)
      	at org.ametys.odf.enumeration.AbstractODFEnumerator.service(AbstractODFEnumerator.java:48)
      	at org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:143)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.instanciate(ThreadSafeComponentManager.java:376)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.newInstance(ThreadSafeComponentManager.java:399)
      	at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:200)
      	... 33 more
      Caused by: org.apache.avalon.framework.component.ComponentException: Could not find component (key [org.ametys.odf.enumeration.OdfEnumerationHelper])
      	at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:265)
      	at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:354)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager.lookup(PluginsComponentManager.java:72)
      	at org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:68)
      	... 38 more
      

            cedric Cédric Damioli
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: