Sur une 4.9.6 lors d'une tentative de synchronisation Pégase on a des erreurs du type :
Caused by: org.xml.sax.SAXException: Fatal error parsing null (line 1 col. 25): The entity name must immediately follow the '&' in the entity reference. org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The entity name must immediately follow the '&' in the entity reference. at org.apache.excalibur.xml.impl.JaxpParser#fatalError:463 at org.apache.xerces.util.ErrorHandlerWrapper#fatalError (Unknown Source) at org.apache.xerces.impl.XMLErrorReporter#reportError (Unknown Source) at org.apache.xerces.impl.XMLErrorReporter#reportError (Unknown Source) at org.apache.xerces.impl.XMLErrorReporter#reportError (Unknown Source) at org.apache.xerces.impl.XMLScanner#reportFatalError (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl#scanEntityReference (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher#dispatch (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl#scanDocument (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:315 at org.apache.excalibur.xml.impl.JaxpParser#parse:334 at org.ametys.cms.transformation.XhtmlGenerator#generate:60 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581 ... 139 more Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 25; The entity name must immediately follow the '&' in the entity reference. at org.apache.xerces.util.ErrorHandlerWrapper#createSAXParseException (Unknown Source) ... 156 more
avec le code en PJ on obtient un log plus précis permettant d'identifier les caractères qui posent problèmes :
java.lang.IllegalArgumentException: Unable to transform the rich text value from the given HTML: <div>FLE Echange & doubles diplômes semestre 1</div> java.lang.IllegalArgumentException: Unable to transform the rich text value from the given HTML: <div>Fabrication 2 & Projet Recherche</div> java.lang.IllegalArgumentException: Unable to transform the rich text value from the given HTML: <div>Mécanique des Fluides & Transferts Thermiques 2</div>