Warning logged when Jira Activity Stream gadget is refreshed

XMLWordPrintable

    • 16
    • Severity 3 - Minor
    • 92

      Issue Summary

      When a Jira Activity Stream is refreshed, it throws a warning message:

      2022-09-09 13:45:44,155 WARN [StreamsCompletionService::thread-16] [streams.confluence.changereport.ActivityItemFactory] add Error building ActivityItem from ConfluenceEntityObject
       -- url: /confluence/plugins/servlet/streams | traceId: 3624c1a24868c112 | userName: admin
      com.hazelcast.nio.serialization.HazelcastSerializationException: Failed to serialize 'com.hazelcast.hibernate.local.Invalidation'
      

      Environment

      • Issue reproducible on Data Center and Server
      • Issue replicated by integrating Jira 8.20.12 with Confluence 7.19.6 using an application link

      Steps to Reproduce

      Steps - Scenario 1

      1. Create an application link between Jira and Confluence
      2. Configure Jira feed in External Gadget by following the instructions from this documentation
      3. Add the Activity Stream gadget to a page
      4. Refresh the page

      Steps - Scenario 2

      1. Create an app link between Jira and Confluence
      2. Create a new dashboard in Jira
      3. Add an Activity Stream gadget to this dashboard and tick the Confluence option (to pull Confluence activity)
      4. Make some updates in the Confluence application
      5. Refresh the gadget in the Jira dashboard and noticed that the Confluence activity is updated there:

      Expected Results - for Scenario 1 and 2

      No warning message thrown in the Confluence logs when the activity stream is refreshed in both scenarios.

      Actual Results - for Scenario 1 and 2

      As soon as the gadget is added or refreshed the following warning message is thrown in the Confluence logs:

      2022-09-09 13:45:44,155 WARN [StreamsCompletionService::thread-16] [streams.confluence.changereport.ActivityItemFactory] add Error building ActivityItem from ConfluenceEntityObject
       -- url: /confluence/plugins/servlet/streams | traceId: 3624c1a24868c112 | userName: admin
      com.hazelcast.nio.serialization.HazelcastSerializationException: Failed to serialize 'com.hazelcast.hibernate.local.Invalidation'
      	at com.hazelcast.internal.serialization.impl.SerializationUtil.handleSerializeException(SerializationUtil.java:82)
      	at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toBytes(AbstractSerializationService.java:157)
      	at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toBytes(AbstractSerializationService.java:133)
      	at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toData(AbstractSerializationService.java:118)
      	at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toData(AbstractSerializationService.java:106)
      ...
      Caused by: com.hazelcast.nio.serialization.HazelcastSerializationException: Failed to serialize 'com.hazelcast.hibernate.region.CacheKeyImpl'
      ...
      Caused by: com.hazelcast.nio.serialization.HazelcastSerializationException: Failed to serialize 'com.atlassian.confluence.pages.Page'
      ...
      Caused by: org.apache.commons.lang3.NotImplementedException: serializableProxy not implemented
      

      Workaround

      Remove the Jira Activity Stream gadget from any pages containing it.

      To identify Confluence pages containing this gadget, a query like the following can be executed against the Confluence DB:

      select s.spacename, c.contentid, c.title, c.contenttype, c.content_status, c.version from content as c
      join bodycontent as bc 
      on c.contentid = bc.contentid
      join spaces as s
      on c.spaceid = s.spaceid
      where body like '%jira-plugin:activitystream-gadget%'
      order by s.spacename, c.title desc;
      

      This query was written for Postgres and may need to be adjusted depending on the DB in use.

      Note

      If auto refresh is configured, the error message is thrown based on the auto-refresh configuration

            Assignee:
            Diclehan Erdal
            Reporter:
            Puventhira Mannen Pragasam Selladurai
            Votes:
            18 Vote for this issue
            Watchers:
            30 Start watching this issue

              Created:
              Updated:
              Resolved: