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

Null Pointer Exception after checking/unchecking an inline task on a page

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 7.4.14, 7.13.3, 7.15.0
    • 6.6.17, 6.15.10, 7.1.2, 7.2.2, 7.3.1, 7.4.0, 7.5.2, 7.8.0, 7.8.3, 7.13.2
    • Content - Tasks

      Issue Summary

      We have observed Null Pointer Exception in the logs after checking and unchecking an inline task on a Confluence page

      Steps to Reproduce

      1. Start a new confluence instance
      2. Create a new page
      3. Add a task, check it, assign it to a user (e.g. @admin)
      4. Publish the new page
      5. On the resulting page view: uncheck the new task again

      Expected Results

      Confluence processes the unchecking without error.

      Actual Results

      Tasks checking and unchecking is not properly processed and tasks appear to be checked and unchecked at random, without any user input.
      The below Null  pointer exception is thrown in the Atlassian-confluence.log file:

      2020-02-18 12:54:35,239 ERROR [http-nio-6731-exec-5] [atlassian.confluence.event.ConfluenceEventDispatcher] run There was an exception thrown trying to dispatch event [ConfluenceTaskUpdateEvent{user=ConfluenceUserImpl{name='admin', key=2c9db0e37044255101704425d5ae0000}, task=Task [globalId=0, id=1, contentId=950279, taskStatus=UNCHECKED, title=Test Task admin http://localhost:6731/c731/display/~admin, description=, body=<span class="placeholder-inline-tasks">Test Task <ac:link><ri:user ri:userkey="2c9db0e37044255101704425d5ae0000" /></ac:link> </span>, creator=null, assignee=admin, createDate=null, dueDate=null, updateDate=null, completeUser=null, completeDate=null]}] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.mywork.providers.confluence.ConfluenceTasksEventListener.onTaskUpdatedEvent(com.atlassian.confluence.plugins.tasklist.event.ConfluenceTaskUpdateEvent), listener=com.atlassian.mywork.providers.confluence.ConfluenceTasksEventListener@2c7e7} (timed)]
       -- referer: http://localhost:6731/c731/display/AAM/Task+test | url: /c731/rest/inlinetasks/1/task/950279/1/ | traceId: 79d4595f5b1f42d1 | userName: admin
      java.lang.RuntimeException: Listener: com.atlassian.mywork.providers.confluence.ConfluenceTasksEventListener event: com.atlassian.confluence.plugins.tasklist.event.ConfluenceTaskUpdateEvent
      	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:52)
      ....
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.lang.NullPointerException
      	at com.atlassian.mywork.model.TaskBuilder.<init>(TaskBuilder.java:39)
      	at com.atlassian.mywork.host.service.LocalTaskServiceImpl.lambda$markIncomplete$1(LocalTaskServiceImpl.java:90)
      

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

            [CONFSERVER-59497] Null Pointer Exception after checking/unchecking an inline task on a page

            Cees Bos added a comment -

            @Quan, we still experience this issue while we are on Confluence Cloud.

            According to this support page (https://confluence.atlassian.com/confkb/how-do-i-know-what-version-of-confluence-is-running-179441565.html) we should be on the 'latest' version.

            How do we know which version we use on Confluence Cloud and if this problem is fixed for us as well?

            Cees Bos added a comment - @Quan, we still experience this issue while we are on Confluence Cloud. According to this support page ( https://confluence.atlassian.com/confkb/how-do-i-know-what-version-of-confluence-is-running-179441565.html) we should be on the 'latest' version. How do we know which version we use on Confluence Cloud and if this problem is fixed for us as well?

            brage added a comment -

            Abit unsure if this is fixed. I still get task that i check (outside of edit mode) to not be saved

            brage added a comment - Abit unsure if this is fixed. I still get task that i check (outside of edit mode) to not be saved

            Quan Pham added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 7.4.15
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.4.15 Upgrade now or check out the Release Notes to see what other issues are resolved.

            Still experiencing this issue in Confluence Data Center 7.13.3

            Kemal Tuncelli added a comment - Still experiencing this issue in Confluence Data Center 7.13.3

            Carlin added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 7.13.3
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Carlin added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.13.3 Upgrade now or check out the Release Notes to see what other issues are resolved.

            Carlin added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 7.4.14
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Carlin added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.4.14 Upgrade now or check out the Release Notes to see what other issues are resolved.

            Please provide a fix for LTS, this is major issue that affects a lot of people !!!

            Gaël NEUEZ added a comment - Please provide a fix for LTS, this is major issue that affects a lot of people !!!

            Is it planned to fix it in version 7.13, the latest LTS available?

            Licencias Corporativo added a comment - Is it planned to fix it in version 7.13, the latest LTS available?

            A fix for this issue is available to Server and Data Center customers in Confluence 7.15 Upgrade now or check out the Release Notes to see what other issues are resolved.

            James Whitehead added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.15 Upgrade now or check out the Release Notes to see what other issues are resolved.

            From our point of view, a backport to the LTS version 7.13. (which is used by most major customers) would be the least you could expect as a customer.
            thanks & regards, Marco

            Marco Leist added a comment - From our point of view, a backport to the LTS version 7.13. (which is used by most major customers) would be the least you could expect as a customer. thanks & regards, Marco

            Hi support and dev team.

            It took far too long before a bugfix was finally initiated. Only through escalation via the channel manager of our provider was the fix finally timed in. Now we have the next problem, which doesn't seem to be taken into account.
            The bugfix is adressed to version 7.15. The most of all Confluence users are on versions below 7.15 and can not update to 7.15 in the nearest future.

            Thus, the bugfix is useless if it is not available for lower versions.

            So my question: Can this fix be backported to any 7.x version?

            Regards, Jürgen

            Jürgen Buchinger added a comment - Hi support and dev team. It took far too long before a bugfix was finally initiated. Only through escalation via the channel manager of our provider was the fix finally timed in. Now we have the next problem, which doesn't seem to be taken into account. The bugfix is adressed to version 7.15. The most of all Confluence users are on versions below 7.15 and can not update to 7.15 in the nearest future. Thus, the bugfix is useless if it is not available for lower versions. So my question: Can this fix be backported to any 7.x version? Regards, Jürgen

            Tom Tran added a comment -

            Can we please backport this fix over to Confluence 7.13 LTS?

            Tom Tran added a comment - Can we please backport this fix over to Confluence 7.13 LTS?

            "in-progress" !

            woo !

            Orion Elenzil added a comment - "in-progress" ! woo !

            This issue needs a fix. It is very old!

            Kuppe, Patrice added a comment - This issue needs a fix. It is very old!

            orion elenzil added a comment - - edited

            goodness,
            I'm not sure if it's this bug or something else,
            but checkboxes are entirely unreliable for me.

            Seemingly when I change the checked-ness of a single box, all the boxes at that level of indent take on the same state when I reload the page.

            Goodbye, checklist and hello, unicode symbols. 

            orion elenzil added a comment - - edited goodness, I'm not sure if it's this bug or something else, but checkboxes are entirely unreliable for me. Seemingly when I change the checked-ness of a single box, all the boxes at that level of indent take on the same state when I reload the page. Goodbye, checklist and hello, unicode symbols. 

            Please fix this issue ASAP! 

            McNeil, Tim added a comment - Please fix this issue ASAP! 

            This bug is still affecting our users. Do you have any update on when this might have a fix?

            Lalyn Shivers added a comment - This bug is still affecting our users. Do you have any update on when this might have a fix?

            It's really hard to believe that this bug has been known about for over a year and has not been fixed.

            People, wake up and press on, this is a priority 1 bug with a huge impact on the daily work of users.

            Jürgen Buchinger added a comment - It's really hard to believe that this bug has been known about for over a year and has not been fixed. People, wake up and press on, this is a priority 1 bug with a huge impact on the daily work of users.

            Hey,

            we are having this problem, too.

            Just to add some more spice into this:

            A huge checklist with around 200 items is really trash when this happens, and we had a few cases. People really lose confidence working with Checkboxes and this is a major bug.

            Please fix it!

            ModuleWorks IT Team added a comment - Hey, we are having this problem, too. Just to add some more spice into this: A huge checklist with around 200 items is really trash when this happens, and we had a few cases. People really lose confidence working with Checkboxes and this is a major bug. Please fix it!

            Hi there. We use a 7.4.8 Server Installation and are also affected from this bug.

            Please fix it soon. If users cannot trust the task system, they refuse to use it!

            Regards, Jürgen

            Jürgen Buchinger added a comment - Hi there. We use a 7.4.8 Server Installation and are also affected from this bug. Please fix it soon. If users cannot trust the task system, they refuse to use it! Regards, Jürgen

            ptrammell added a comment -

            Additionally, users who have tasks marked unmarked after they had previously marked the task completed experience the following:

            1. They received an email notification (if turned on ) stating that their task was marked incomplete with a link to the confluence page
            2. If they used the link in the email from #1 to open up the confluence page, they received a warning message stating 'You are viewing an old version of this page. View the current version.'

            We are using version 7.4.6.

            ptrammell added a comment - Additionally, users who have tasks marked unmarked after they had previously marked the task completed experience the following: They received an email notification (if turned on ) stating that their task was marked incomplete with a link to the confluence page If they used the link in the email from #1 to open up the confluence page, they received a warning message stating 'You are viewing an old version of this page. View the current version.' We are using version 7.4.6.

            IT HORSCH added a comment -

            Hello. An additional 7.4.4 installation affected. Would appreciate the fix.
             

            IT HORSCH added a comment - Hello. An additional 7.4.4 installation affected. Would appreciate the fix.  

            We're seeing this in 7.4.7 as well. The logs are full of the issue and we thought it to be an issue with drafts first.

            marcus.nygren added a comment - We're seeing this in 7.4.7 as well. The logs are full of the issue and we thought it to be an issue with drafts first.

            I'm troubleshooting a failed REST API invocation for one of my plugins and my customer's logs are full of this problem.

            I don't think this bug is causing my problem but until I find my root cause I may have to dig deeper into this.

            This is one of the reasons you don't let bugs pile up.  Troubleshooting is more difficult in a server full of bugs.

            NPEs are easy to figure out and fix. 

            This bug has been sitting for over a year.  It is a Sev 2 - Major. 

            Pri/Sev becomes meaningless at some point when you fall too far behind.  I think we have reached that point.

            Please fix this.

            Ture Hoefner added a comment - I'm troubleshooting a failed REST API invocation for one of my plugins and my customer's logs are full of this problem. I don't think this bug is causing my problem but until I find my root cause I may have to dig deeper into this. This is one of the reasons you don't let bugs pile up.  Troubleshooting is more difficult in a server full of bugs. NPEs are easy to figure out and fix.  This bug has been sitting for over a year.  It is a Sev 2 - Major.  Pri/Sev becomes meaningless at some point when you fall too far behind.  I think we have reached that point. Please fix this.

            Confluence 7.11.0 is also affected.

            Marcus Frangenberg [VR-NetWorld GmbH] added a comment - Confluence 7.11.0 is also affected.

            Sebastian Butterweck added a comment - - edited

            running on 7.4.4, we're also affected.

             

            The bug leads to checkboxes, that have been checked, being unwantedly reverted to unchecked status. Sometimes this happens days later, sometimes even weeks later.

            Sebastian Butterweck added a comment - - edited running on 7.4.4, we're also affected.   The bug leads to checkboxes, that have been checked, being unwantedly reverted to unchecked status. Sometimes this happens days later, sometimes even weeks later.

            Version 7.4.5 is also affected. It reverts all task to the last date, too.

            Markus Renka added a comment - Version 7.4.5 is also affected. It reverts all task to the last date, too.

            Version 7.8 is also affected

            Josi Schlichting added a comment - Version 7.8 is also affected

            ITB added a comment -

            7.4 is also affected

            This error is currently generating a lot of extra work and confusion every day.

            The once great benefits of confluence are now almost completely eliminated by too many unresolved bugs.

             

            ITB added a comment - 7.4 is also affected This error is currently generating a lot of extra work and confusion every day. The once great benefits of confluence are now almost completely eliminated by too many unresolved bugs.  

            Luisa Falk added a comment -

            This bug should be a high priority. The issue causes extra work.
            Important business processes that are handled with inline tasks cannot be used.

            Luisa Falk added a comment - This bug should be a high priority. The issue causes extra work. Important business processes that are handled with inline tasks cannot be used.

            on version 7.7.2 & 7.3.2 as well.

            Pranjal Shukla added a comment - on version 7.7.2 & 7.3.2 as well.

            I am experiencing this issue on my test instance of 7.4.1 as well. The task is properly checked/unchecked upon refresh, but I'm guessing there will be an issue with users getting notifications since the error references mywork which I think is associated to notifications in the work box.

            Paul Stallworth added a comment - I am experiencing this issue on my test instance of 7.4.1 as well. The task is properly checked/unchecked upon refresh, but I'm guessing there will be an issue with users getting notifications since the error references mywork which I think is associated to notifications in the work box.

            7.1.2 is also affected

            This error is very important for our company, since many orders are handled via the inline tasks.
            If inline tasks are unchecked again during page changes, this leads to very strong irritations for the affected users. Please correct this error as soon as possible.
            Thank you very much

            Dietmar Pradler added a comment - 7.1.2 is also affected This error is very important for our company, since many orders are handled via the inline tasks. If inline tasks are unchecked again during page changes, this leads to very strong irritations for the affected users. Please correct this error as soon as possible. Thank you very much

            7.0.1 is affected

            Jira Support Team @ Smals added a comment - 7.0.1 is affected

            Dallas Morrow added a comment - - edited

            7.2.1 is affected.

            Dallas Morrow added a comment - - edited 7.2.1 is affected.

            7.2.0 is also affected

            Frank Jaspers added a comment - 7.2.0 is also affected

              qpham@atlassian.com Quan Pham
              aansari@atlassian.com Aamir (Inactive)
              Affected customers:
              126 This affects my team
              Watchers:
              117 Start watching this issue

                Created:
                Updated:
                Resolved: