Uploaded image for project: 'Extraction'
  1. Extraction
  2. EXTRACT-104

[Optional Columns] ClassCastException during extraction's execution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.3.0
    • 1.2.0
    • None
    • 4.3 M3

      How to reproduce:

      • Create an extraction defintion
        • CMS > Administration tab > Extraction button
        • Click on New and choose a file name for the definition file
        • Select your extraction and click on Open button
        • Add some componants (ex: a count component on news contents, without clause)
      • Add optional columns
        • Select the Optional columns node
        • Click on the Modify button
        • Select a column (ex: title)
      • Save your definition
      • Execute the extraction
      • Click on Execute button
        • Fill the parameters (it is not necessary to check the ombo for your optional columns)
        • Click on OK button
      • An Exception occurs during the execution because the optional columns parameters are sent as String instead of Boolean => KO

      Here is the generated exception:

      java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap')
       at org.ametys.plugins.extraction.execution.ExtractionExecutor._getDisplayOptionalColumns(ExtractionExecutor.java:218)
       at org.ametys.plugins.extraction.execution.ExtractionExecutor._getContext(ExtractionExecutor.java:208)
       at org.ametys.plugins.extraction.execution.ExtractionExecutor._execute(ExtractionExecutor.java:140)
       at org.ametys.plugins.extraction.execution.ExtractionExecutor.execute(ExtractionExecutor.java:107)
       at org.ametys.plugins.extraction.execution.ExecuteExtractionSchedulable.execute(ExecuteExtractionSchedulable.java:106)
       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)

       

            cbayle Caroline Bayle
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: