Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-25325

The use of character È will generate error in the log

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      Steps to reproduce

      1. Create a page and add 'Activity Stream' macro to the page
      2. Save the page and add a comment with a character 'È'

      The following error will appear in the log:

      2012-04-24 22:26:23,455 WARN [StreamsCompletionService::thread-1] [streams.confluence.renderer.ContentEntityRendererFactory] stripGadgetMacros Unable to parse content for entity 'Re: È' at /pages/viewpage.action?pageId=589831&focusedCommentId=589832#comment-589832
       -- url: /rest/activity-stream/1.0/config | userName: kahloun.foong | referer: http://localhost:8421/plugins/servlet/gadgets/ifr?container=atlassian&mid=34360197120&country=GB&lang=en&view=default&view-params=%7B%22writable%22%3A%22true%22%7D&st=atlassian%3ABWFDK%2FmZtJpLrFxIEnme0VNW2mfm4gi%2BigP%2BPQtmuRMFbuSoBRrPyXbNh11NzCE8T9eSTWPvS36ICCfzXrQEtkPhiKucapiC%2BIsGg2bwoh1fogqWglo6QzJmk3aEzmdrkcJBebcyE%2FmchWqaeWO5jEzb37np4vxt4S4ktMm6wdjJuGkDywzhmeL2i7MwP4OKPL8cI9Pcbz5GWAQ6%2FgNEhGChGtVO54NXz5nFYH%2FnWGdKwv5pD5%2BYW1xz76l59CYa5%2FcXQz%2B5Y3FN3o7AgEZbzkmJ33dbfXFTfZ8RaPK00rbU3HsDWa3vS6W91L9oJwwku2g9%2B1tZkOjotv04AYVgenLRjSkX1g62TkHFpbN0%2BxqyFr81HONq20a%2FplD%2Bzx9IN8Nw5Q%3D%3D&up_isConfigured=true&up_isReallyConfigured=false&up_title=Activity+Stream&up_titleRequired=true&up_numofentries=10&up_refresh=false&up_maxProviderLabelCharacters=50&up_rules=&up_renderingContext=&up_keys=&up_itemKeys=&up_username=&url=http%3A%2F%2Flocalhost%3A8421%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.streams.confluence%3Aactivitystream-gadget%2Fgadgets%2Fconf-activitystream-gadget.xml&libs=auth-refresh
      org.xml.sax.SAXParseException: The entity "Egrave" was referenced, but not declared.
      	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
      	at com.atlassian.streams.confluence.renderer.ContentEntityRendererFactory$ContentEntityRenderer.stripGadgetMacros(ContentEntityRendererFactory.java:253)
      	at com.atlassian.streams.confluence.renderer.ContentEntityRendererFactory$ContentEntityRenderer.content(ContentEntityRendererFactory.java:225)
      	at com.atlassian.streams.confluence.renderer.ContentEntityRendererFactory$ContentEntityRenderer.access$400(ContentEntityRendererFactory.java:96)
      	at com.atlassian.streams.confluence.renderer.ContentEntityRendererFactory$ContentEntityRenderer$3.get(ContentEntityRendererFactory.java:198)
      	at com.atlassian.streams.confluence.renderer.ContentEntityRendererFactory$ContentEntityRenderer$3.get(ContentEntityRendererFactory.java:194)
      	at com.atlassian.streams.confluence.renderer.ContentEntityRendererFactory$ContentEntityRenderer$2.apply(ContentEntityRendererFactory.java:163)
      	at com.atlassian.streams.confluence.renderer.ContentEntityRendererFactory$ContentEntityRenderer$2.apply(ContentEntityRendererFactory.java:160)
      	at com.atlassian.streams.confluence.renderer.ContentEntityRendererFactory$ContentEntityRenderer.renderContentAsHtml(ContentEntityRendererFactory.java:109)
      

          Form Name

            [CONFCLOUD-25325] The use of character È will generate error in the log

            In Confluence 4.3.7, I cannot find ContentEntityRendererFactory, neither in the GUI nor in log4j.properties

            ??

            Hans-Peter Geier added a comment - In Confluence 4.3.7, I cannot find ContentEntityRendererFactory, neither in the GUI nor in log4j.properties ??

            A possible workaround may be to change logging for that class. You can do that on Confluence Admin --> Logging and Profiling. Add the class streams.confluence.renderer.ContentEntityRendererFactory with level ERROR.

            If you want to make those changes survive Confluence restarts you should edit the log4j.properties file and restart Confluence to apply the changes.

            You can find more information here: https://confluence.atlassian.com/display/CONF43/Working+with+Confluence+Logs.

            If you need further assistance, please open a support case

            Xavier Sanchez added a comment - A possible workaround may be to change logging for that class. You can do that on Confluence Admin --> Logging and Profiling. Add the class streams.confluence.renderer.ContentEntityRendererFactory with level ERROR. If you want to make those changes survive Confluence restarts you should edit the log4j.properties file and restart Confluence to apply the changes. You can find more information here: https://confluence.atlassian.com/display/CONF43/Working+with+Confluence+Logs . If you need further assistance, please open a support case

            We are still on Confluence 4.3.7 and can't upgrade at the moment. How can I suppress the warning from the logs?

            Jositz, Michael (Allianz SE) added a comment - We are still on Confluence 4.3.7 and can't upgrade at the moment. How can I suppress the warning from the logs?

            Got the same WARN all the time in log files:

            2012-11-09 05:51:44,681 WARN [StreamsCompletionService::thread-3127] [streams.confluence.renderer.ContentEntityRendererFactory] stripGadgetMacros Unable to parse content for entity 'Why Orchard?' at /pages/viewpage.action?pageId=15860028
            org.xml.sax.SAXParseException: The entity "rsquo" was referenced, but not declared.
            	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
            	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
            	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
            

            Alex Suslin added a comment - Got the same WARN all the time in log files: 2012-11-09 05:51:44,681 WARN [StreamsCompletionService::thread-3127] [streams.confluence.renderer.ContentEntityRendererFactory] stripGadgetMacros Unable to parse content for entity 'Why Orchard?' at /pages/viewpage.action?pageId=15860028 org.xml.sax.SAXParseException: The entity "rsquo" was referenced, but not declared. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)

            AndrewA added a comment -

            This can happen for other characters as well such as (’) which will show the entity as 'rsquo'. Also, an error similar to the following will be shown in the console.

            [Fatal Error] :1:840: The entity "rsquo" was referenced, but not declared.
            

            AndrewA added a comment - This can happen for other characters as well such as (’) which will show the entity as 'rsquo'. Also, an error similar to the following will be shown in the console. [Fatal Error] :1:840: The entity "rsquo" was referenced, but not declared.

              xtaixe Xavier Sanchez
              klfoong Foong (Inactive)
              Affected customers:
              8 This affects my team
              Watchers:
              23 Start watching this issue

                Created:
                Updated:
                Resolved: