Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-27360

ThreadLocalCache is not initialised warnings with Activity Stream Gadget in Confluence

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Low
    • None
    • 4.3.3
    • None

    Description

      Seems to only affect Confluence 4.3.3

      Steps to Reproduce

      1. Edit a page in Confluence 4.3.3
      2. Click Insert >> Other Macros
      3. Look for the Activity Stream macro, underneath it, should be a Gadget URL, click on it

      Notice that after you try to load the Gadget's XML, the following will appear in the Confluence logs:

      2012-11-26 22:35:14,736 WARN [StreamsCompletionService::thread-50] [atlassian.confluence.cache.ThreadLocalCache] get ThreadLocalCache is not initialised. Could not retrieve value for key com.atlassian.confluence.security.ThreadLocalPermissionsCache$CachedPermissionExemption@586034f
       -- url: /c433/rest/activity-stream/1.0/config | userName: admin | referer: http://localhost:8433/c433/plugins/servlet/gadgets/ifr?container=atlassian&mid=131072&country=GB&lang=en&view=default&view-params=%7B%22writable%22%3A%22true%22%7D&st=atlassian%3AXFZ6t9zqWrSjQbaCqlNiaK%2FZqJ2SSXEBS8wIBQ%2Bk5w%2BTK%2F4jAWvH212go5Yydi8J01uSu%2BJ2kYQ1eUFT0tVTJvnGxSCM6PuKLWrd5QBu9PG7hr2GqwobcC3Wu5TfCQePSfhM09Jln6XLBCxuwtF4kflh%2BqOUPipGD4hOxj%2BFsDaxyuD5WBu7oX3bpNkFS9QJVpdFMy89o42Ihqz8q%2FbRqLuDfSEK1nJwAHQoBPh0A1kSRA%2BX68M3%2FGPWqRblsBDBYRnIyZC01ZiFGMmrQEpZKerDORT1%2F7FuRB81OXBW%2FkerVxt6zQxL0ol4d68kB02BHCCr1GPYcCHIW0UG3e0C7aiye5IW1AxPNLujOv1ZUc%2BMoQb2&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%3A8433%2Fc433%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.streams.confluence%3Aactivitystream-gadget%2Fgadgets%2Fconf-activitystream-gadget.xml&libs=auth-refresh
      

      If the Activity Stream gadget is embedded into any dashboard in JIRA, each time that dashboard is loaded, these string of warnings will appear in the Confluence logs, clogging the logs completely. Apart from that, no other side effects that we can see so far, but performance might be a concern since it might be related to the fix made in CONF-26729 (considering that these only started appearing in Confluence 4.3.3).

      Workaround

      Change the logging level in ConfluenceInstallationDirectory/confluence/WEB-INF/classes/log4j.properties to remove these logs. Add this to the file:

      log4j.logger.com.atlassian.confluence.cache.ThreadLocalCache=ERROR
      

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              fsim Foo Sim (Inactive)
              Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: