Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-322

An error occured when displayed form entries when entries has invalid workflow value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.3.0, 2.2.2
    • 2.2.0
    • Back View
    • None
    • 4.2 RC3

      I my cas the value of the workflow in form table in database is -1
      I get some exceptions and I except to have no error, entries displayed with a icon or anything else on the lines where the workflow is invalid.

      ==> ametys-cms-2018-07-20.log <==
      2018-07-20 13:47:35,134 ERROR [org.ametys.plugins.workflow.support.WorkflowProvider$ExternalWorkflow] (http-nio-8080-exec-75;/plugins/core-ui/servercomm/messages.xml) Error getting instance name for instance #-1
      com.opensymphony.workflow.StoreException: Error finding workflow instance #ID
              at com.opensymphony.workflow.spi.jdbc.JDBCWorkflowStore.findEntry(JDBCWorkflowStore.java:299)
              at com.opensymphony.workflow.AbstractWorkflow.getWorkflowName(AbstractWorkflow.java:333)
              at org.ametys.plugins.forms.data.GetFormEntriesAction._workflow2json(GetFormEntriesAction.java:183)
              at org.ametys.plugins.forms.data.GetFormEntriesAction._entry2json(GetFormEntriesAction.java:152)
              at org.ametys.plugins.forms.data.GetFormEntriesAction.act(GetFormEntriesAction.java:128)
      [...]
              at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:148)
              at org.ametys.core.ui.dispatcher.DispatchGenerator.generate(DispatchGenerator.java:91)
              at 
      [...]
      2018-07-20 13:47:35,135 ERROR [org.ametys.plugins.workflow.support.WorkflowProvider$ExternalWorkflow] (http-nio-8080-exec-75;/plugins/core-ui/servercomm/messages.xml) Error loading workflow null
      com.opensymphony.workflow.FactoryException: Unknown workflow name "null"
              at com.opensymphony.workflow.loader.XMLWorkflowFactory.getWorkflow(XMLWorkflowFactory.java:57)
              at com.opensymphony.workflow.loader.AbstractWorkflowFactory.getWorkflow(AbstractWorkflowFactory.java:48)
              at org.ametys.plugins.workflow.SimpleConfiguration.getWorkflow(SimpleConfiguration.java:68)
              at com.opensymphony.workflow.AbstractWorkflow.getWorkflowDescriptor(AbstractWorkflow.java:319)
              at org.ametys.plugins.forms.data.GetFormEntriesAction._workflow2json(GetFormEntriesAction.java:184)
              at org.ametys.plugins.forms.data.GetFormEntriesAction._entry2json(GetFormEntriesAction.java:152)
              at org.ametys.plugins.forms.data.GetFormEntriesAction.act(GetFormEntriesAction.java:128)
              at 
      [...]
      
      2018-07-20 13:47:35,137 ERROR [org.ametys.plugins.core.ui] (http-nio-8080-exec-75;/plugins/core-ui/servercomm/messages.xml) Can not dispatch request '2' : 'forms' 'form/entries.json' '{siteName=www-ville, id=form_154689800469484, page=1, start=0, limit=50}'
      org.apache.cocoon.util.location.LocatedException: Can not dispatch request '2' : 'forms' 'form/entries.json' '{siteName=www-ville, id=form_154689800469484, page=1, start=0, limit=50}'
              at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:180)
              at org.ametys.core.ui.dispatcher.DispatchGenerator.generate(DispatchGenerator.java:91)
              at
      [...]
      
      Caused by: org.apache.excalibur.source.SourceException: Cannot get input stream for cocoon://_plugins/forms/form/entries.json?siteName=www-ville&id=form_154689800469484&page=1&start=0&limit=50&
              at org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:253)
              at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:152)
              ... 68 more
      Caused by: org.xml.sax.SAXException: Could not get sitemap source cocoon://_plugins/forms/form/entries.json?siteName=www-ville&id=form_154689800469484&page=1&start=0&limit=50&
      org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap
              at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:151:82
              at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:380)
              at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:215)
              at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:68)
              at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:208)
              at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
              at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
              at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
              at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
              at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:148)
              ... 68 more
      Caused by: org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap
              at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:151:82
              at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:113)
              at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:122)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:194)
              at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267)
              at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:333)
              ... 76 more
      Caused by: java.lang.NullPointerException
              at org.ametys.plugins.forms.data.GetFormEntriesAction._workflow2json(GetFormEntriesAction.java:185)
              at org.ametys.plugins.forms.data.GetFormEntriesAction._entry2json(GetFormEntriesAction.java:152)
              at org.ametys.plugins.forms.data.GetFormEntriesAction.act(GetFormEntriesAction.java:128)
              at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:125)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:194)
              at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267)
              at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:111)
              ... 86 more
      

            tberge Thibaut Bergé (Inactive)
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: