Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-30731

NullPointerException error is thrown in the logs when JIRA is sending custom event notifications

      When JIRA is sending a custom notification event upon transitioning a workflow transition, the following exceptions will be thrown in the logs file:

      2012-12-05 16:47:38,005 http-bio-8082-exec-24 WARN admin 1007x663x1 81e19m 0:0:0:0:0:0:0:1 /secure/WorkflowUIDispatcher.jspa [jira.plugins.webhooks.WebHookRegistrationManager] Failed to publish web-hooks for event com.atlassian.jira.event.issue.IssueEvent
      java.lang.NullPointerException: null value
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
      	at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:139)
      	at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:178)
      	at com.atlassian.jira.plugins.webhooks.mapper.EventTypeInfoDecorator.toMap(EventTypeInfoDecorator.java:28)
      	at com.atlassian.jira.plugins.webhooks.impl.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:52)
      	at com.atlassian.jira.plugins.webhooks.impl.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:27)
      	at com.atlassian.jira.plugins.webhooks.WebHookRegistration.getEventSerializer(WebHookRegistration.java:39)
      	at com.atlassian.jira.plugins.webhooks.WebHookRegistrationManager.onEvent(WebHookRegistrationManager.java:136)  <+2> (DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      [.....]
      

      Tested the same behavior on JIRA 5.1.7, and the same problem is not reproducible.

      Steps to reproduce this:

      • Create a new event in JIRA: Administration > Events > Add New Events
      • Configure JIRA workflow to use the event in one of the transition
      • Configure the notification scheme to send notifications to the intended recipient(s)
      • Configre a project to use the related workflow scheme and notification scheme
      • Create a test issue in JIRA, and transition the issue that is using the created custom event

            [JRASERVER-30731] NullPointerException error is thrown in the logs when JIRA is sending custom event notifications

            Jason,

            Greate news.
            Could you please explain steps for reproduce/fix one?

            Thanks in advance,
            -Denys.

            Denys Kovalenko added a comment - Jason, Greate news. Could you please explain steps for reproduce/fix one? Thanks in advance, -Denys.

            We can reproduce this in JIRA 5.2.8.

            Deleted Account (Inactive) added a comment - We can reproduce this in JIRA 5.2.8.

            Also in JIRA 5.2.8

            Denys Kovalenko added a comment - Also in JIRA 5.2.8

            This issue has gone since 5.2.6 (also not reproduced in 5.2.7 and 5.2.8).

            Ignat (Inactive) added a comment - This issue has gone since 5.2.6 (also not reproduced in 5.2.7 and 5.2.8).

            5.2.5 has the same problem

            Kerem Caglar [Solveka] added a comment - 5.2.5 has the same problem

            I agree, this is more than a Minor bug. My logs continue to grow because of this message in the logs. In a matter of 12 calendar days, my log file grew to 90Mb. This is going to cause my OS drive on the server to actually fill up one of these days. That was only 10 work days, so i'm looking at 9Mb of logs per day of work. Which becomes unusable to investigate real problems which may be occurring.

            This should definitely be resolved sooner rather than later.

            Thanks.

            Adam Barylak added a comment - I agree, this is more than a Minor bug. My logs continue to grow because of this message in the logs. In a matter of 12 calendar days, my log file grew to 90Mb. This is going to cause my OS drive on the server to actually fill up one of these days. That was only 10 work days, so i'm looking at 9Mb of logs per day of work. Which becomes unusable to investigate real problems which may be occurring. This should definitely be resolved sooner rather than later. Thanks.

            MattS added a comment -

            I know webhooks doesn't support custom events (fair enough), but a lot of JIRA admins are going to have a lot of unhelpful errors in their logfiles if this happens on every custom event. Seems like more than a Minor bug.

            MattS added a comment - I know webhooks doesn't support custom events (fair enough), but a lot of JIRA admins are going to have a lot of unhelpful errors in their logfiles if this happens on every custom event. Seems like more than a Minor bug.

            JamieA added a comment -

            The notification part of the bug report is not relevant, any "non-standard" event which is fired by a workflow function causes this, because com.atlassian.jira.plugins.webhooks.impl.JiraEventSerializerFactory#buildIdentifierByEventTypeMap does not conceive of events outside of the system defaults.

            JamieA added a comment - The notification part of the bug report is not relevant, any "non-standard" event which is fired by a workflow function causes this, because com.atlassian.jira.plugins.webhooks.impl.JiraEventSerializerFactory#buildIdentifierByEventTypeMap does not conceive of events outside of the system defaults.

            We have exactly same Problem while setting up a new Support Workflow.
            This happens when e new created Event is to be fired - which uses Template "Assign Issue".

            2012-12-04 09:16:18,778 http-bio-8080-exec-15 WARN claus 556x16277x1 1pin2rr 192.168.10.100,192.168.10.3 /secure/CommentAssignIssue.jspa [jira.plugins.webhooks.WebHookRegistrationManager] Failed to publish web-hooks for event com.atlassian.jira.event.issue.IssueEvent
            java.lang.NullPointerException: null value
                    at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
                    at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:139)
                    at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:178)
                    at com.atlassian.jira.plugins.webhooks.mapper.EventTypeInfoDecorator.toMap(EventTypeInfoDecorator.java:28)
                    at com.atlassian.jira.plugins.webhooks.impl.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:52)
                    at com.atlassian.jira.plugins.webhooks.impl.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:27)
                    at com.atlassian.jira.plugins.webhooks.WebHookRegistration.getEventSerializer(WebHookRegistration.java:39)
                    at com.atlassian.jira.plugins.webhooks.WebHookRegistrationManager.onEvent(WebHookRegistrationManager.java:136)
                    at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)
                    at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:60)
                    at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java
            2012-12-04 09:16:18,858 http-bio-8080-exec-20 ERROR      [500ErrorPage.jsp] Exception caught in 500 page null
            java.lang.reflect.InvocationTargetException
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
                    at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
                    at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433)
                    at webwork.action.ActionSupport.execute(ActionSupport.java:157)
            Caused by: java.lang.NoClassDefFoundError: com/opensymphony/user/EntityNotFoundException
                    at java.lang.Class.getDeclaredConstructors0(Native Method)
                    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
                    at java.lang.Class.getDeclaredConstructors(Unknown Source)
                    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getSortedMatchingConstructors(ConstructorInjectionComponentAdapter.java:229)
                    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getGreediestSatisifableConstructor(ConstructorInjectionComponentAdapter.java:76)
                    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.instantiateComponent(ConstructorInjectionComponentAdapter.java:193)
                    at org.picocontainer.defaults.InstantiatingComponentAdapter.getComponentInstance(InstantiatingComponentAdapter.java:48)
                    at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:42)
                    at org.picocontainer.defaults.SynchronizedComponentAdapter.getComponentInstance(SynchronizedComponentAdapter.java:35)
                    at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:42)
                    at com.atlassian.jira.config.component.ProfilingComponentAdapter.getComponentInstance(ProfilingComponentAdapter.java:45)
                    at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(Defau
            

            eMundo GmbH added a comment - We have exactly same Problem while setting up a new Support Workflow. This happens when e new created Event is to be fired - which uses Template "Assign Issue". 2012-12-04 09:16:18,778 http-bio-8080-exec-15 WARN claus 556x16277x1 1pin2rr 192.168.10.100,192.168.10.3 /secure/CommentAssignIssue.jspa [jira.plugins.webhooks.WebHookRegistrationManager] Failed to publish web-hooks for event com.atlassian.jira.event.issue.IssueEvent java.lang.NullPointerException: null value at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:139) at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:178) at com.atlassian.jira.plugins.webhooks.mapper.EventTypeInfoDecorator.toMap(EventTypeInfoDecorator.java:28) at com.atlassian.jira.plugins.webhooks.impl.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:52) at com.atlassian.jira.plugins.webhooks.impl.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:27) at com.atlassian.jira.plugins.webhooks.WebHookRegistration.getEventSerializer(WebHookRegistration.java:39) at com.atlassian.jira.plugins.webhooks.WebHookRegistrationManager.onEvent(WebHookRegistrationManager.java:136) at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:60) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java 2012-12-04 09:16:18,858 http-bio-8080-exec-20 ERROR [500ErrorPage.jsp] Exception caught in 500 page null java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433) at webwork.action.ActionSupport.execute(ActionSupport.java:157) Caused by: java.lang.NoClassDefFoundError: com/opensymphony/user/EntityNotFoundException at java.lang. Class .getDeclaredConstructors0(Native Method) at java.lang. Class .privateGetDeclaredConstructors(Unknown Source) at java.lang. Class .getDeclaredConstructors(Unknown Source) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getSortedMatchingConstructors(ConstructorInjectionComponentAdapter.java:229) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getGreediestSatisifableConstructor(ConstructorInjectionComponentAdapter.java:76) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.instantiateComponent(ConstructorInjectionComponentAdapter.java:193) at org.picocontainer.defaults.InstantiatingComponentAdapter.getComponentInstance(InstantiatingComponentAdapter.java:48) at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:42) at org.picocontainer.defaults.SynchronizedComponentAdapter.getComponentInstance(SynchronizedComponentAdapter.java:35) at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:42) at com.atlassian.jira.config.component.ProfilingComponentAdapter.getComponentInstance(ProfilingComponentAdapter.java:45) at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(Defau

            Eric Dalgliesh added a comment - WEBHOOKS issue: https://ecosystem.atlassian.net/browse/WEBHOOKS-15

              ialexeyenko Ignat (Inactive)
              afaisal Ahmad Faisal (Inactive)
              Affected customers:
              24 This affects my team
              Watchers:
              36 Start watching this issue

                Created:
                Updated:
                Resolved: