Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10915

RichTextTransformer: Supports old API ModifiableRichText but not its handlers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.4.5, 4.5.0
    • 4.4.4, 4.5.0
    • None
    • None
    • 4.5 M4

      It blocks some synchronization with text transformation.

      I get this kind of error:

      Caused by: java.lang.ClassCastException: class org.ametys.plugins.repository.metadata.jcr.JCRRichText cannot be cast to class org.ametys.cms.data.RichText (org.ametys.plugins.repository.metadata.jcr.JCRRichText and org.ametys.cms.data.RichText are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @25a6944c)
      at org.ametys.cms.transformation.htmledition.UploadedDataHTMLEditionHandler.startDocument(UploadedDataHTMLEditionHandler.java:106)
      at org.ametys.cms.transformation.htmledition.AbstractHTMLEditionHandler.startDocument(AbstractHTMLEditionHandler.java:82)
      at org.ametys.cms.transformation.htmledition.HTMLEditorHandlers2DocbookTransformer.startDocument(HTMLEditorHandlers2DocbookTransformer.java:95)
      at org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
      at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
      at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
      at org.ametys.cms.transformation.XhtmlGenerator.generate(XhtmlGenerator.java:60)
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
      ... 133 more

      Concerned class:

      • SemanticAnnotationsEditionHandler
      • UploadedDataHTMLEditionHandler

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

              Created:
              Updated:
              Resolved: