facebook

the jsp compiler is not able to parse the injected codelive javascript

  1. GapDebug
  2.  > 
  3. Getting Help – GapDebug
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #531459 Reply

    jmaberle
    Participant

    It is my first post in this forum, sorry for my bad english

    – Codelive engine inject this javascript to the jsp before the body

    <script>”undefined”==typeof CODE_LIVE&&(!function(e){var t={nonSecure:”51197″,secure:”51202″},c={nonSecure:”http://&#8221;,secure:”https://&#8221;},r={nonSecure:”127.0.0.1″,secure:”gapdebug.local.genuitec.com”},n=”https:”===window.location.protocol?”secure”:”nonSecure”;script=e.createElement(“script”),script.type=”text/javascript”,script.async=!0,script.src=c[n]+r[n]+”:”+t[n]+”/codelive-assets/bundle.js”,e.getElementsByTagName(“head”)[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>

    – I advise to enclose the injected javascript by <![CDATA[…]]> to avoid the jsp compiler to parse

    – the jsp compiler throws this exception

    org.xml.sax.SAXParseException; systemId: file:/D:/apache-tomcat-8.5.11/wtpwebapps/cbp-workbench/WEB-INF/views/http_header.jspx; lineNumber: 51; columnNumber: 39; Le nom de l’identité doit immédiatement suivre le caractère “&” dans la référence d’entité.
    com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
    com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
    com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
    com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(Unknown Source)
    com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
    org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:192)

Viewing 1 post (of 1 total)
Reply To: the jsp compiler is not able to parse the injected codelive javascript

You must be logged in to post in the forum log in