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

ReportHelper.saxMulitpleEnumeratedAttribute() is sometimes called with non-multiple attributes

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.0
    • 4.3.0
    • Pilotage
    • None
    • 4.3 M3

      Because of overriding some data like domain a multiple enumerated value can be non-multiple in some environments. So we get the following error while calling this method :

      Pile d'appels :
      java.lang.ClassCastException: class org.ametys.cms.data.ContentValue cannot be cast to class [Lorg.ametys.cms.data.ContentValue; (org.ametys.cms.data.ContentValue and [Lorg.ametys.cms.data.ContentValue; are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @7fb9f71f)
      at org.ametys.cms.data.ContentDataHelper.getContentIdsStreamFromMultipleContentData(ContentDataHelper.java:113)
      at org.ametys.cms.data.ContentDataHelper.getContentIdsArrayFromMultipleContentData(ContentDataHelper.java:101)
      at org.ametys.plugins.odfpilotage.helper.ReportHelper.getMultipleEnumeratedAttributeValueAsStringArray(ReportHelper.java:385)
      at org.ametys.plugins.odfpilotage.helper.ReportHelper.saxMultipleEnumeratedAttribute(ReportHelper.java:365)
      at org.ametys.plugins.odfpilotage.report.impl.AbstractMCCReport.saxProgram(AbstractMCCReport.java:259)
      at org.ametys.plugins.odfpilotage.report.impl.AbstractMCCReport.saxTree(AbstractMCCReport.java:183)
      at org.ametys.plugins.odfpilotage.report.impl.AbstractMCCReport._writeReportsMcc(AbstractMCCReport.java:152)
      at org.ametys.plugins.odfpilotage.report.impl.AbstractMCCReport._launchByOrgUnit(AbstractMCCReport.java:71)
      at org.ametys.plugins.odfpilotage.report.impl.AbstractReport.launchByOrgUnit(AbstractReport.java:62)
      at org.ametys.plugins.odfpilotage.report.impl.MCCDiffReport.launchByOrgUnit(MCCDiffReport.java:141)
      at org.ametys.plugins.odfpilotage.report.AbstractPilotageReport.launch(AbstractPilotageReport.java:262)
      at org.ametys.plugins.odfpilotage.schedulable.AbstractReportSchedulable.execute(AbstractReportSchedulable.java:89)
      at org.ametys.core.schedule.AmetysJob.execute(AmetysJob.java:151)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

      (This one is when we try to create the MCC diff report or MCC report on the demo data)

            cbayle Caroline Bayle
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: