-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jenkin Slack Notification Plugin Null Pointer Exception #62
Comments
Occasionally is pretty vague. Does it occur from a certain action? If you could determine the circumstances in which it occurs then I could try to reproduce it to verify the issue. Please let me know. |
Unfortuately it is quite rare, even though we run a lot of jobs everyday. No discernable pattern to reproduce it, and we have seen it occur in two different jobs. We use the REPO plugin to checkout source code from multiple git repositories, and the NPE occurs right after checkout is completed, but only occasionally, not always. So it is not readliy reproducable. Is there some logs / info I should look out for when it occur the next time? Maybe some extra checks is needed around the offending line " jenkins.plugins.slack.ActiveNotifier.getChanges(ActiveNotifier.java:115)"? Since the REPO plugin is used right before the NPE, the list of changes in this particular case has something a bit strange: " This project was added to the manifest. This might be causing the problem? |
Since I wrote the code that caused the error, I'll check that asap. thanks for catching that. |
* DISREGARD THIS -- READ EDIT 2* I'm also running into Slack plugin NPEs (Using v1.7). The Test Connection works just fine (I get the confirmation on Slack), but no messages regarding build is sent to Slack no matter what options I choose. (Notify failure, success, unstable, back to normal will build the maven project, but won't say anything to Slack) This happens both using "Build now" and building from a github webhook. If I select "Notify build start", I get this in my Console output:
I set up Slack notifications on another Jenkins instance (on another server) without problems. EDIT: EDIT2: |
…tarea [FIXED JENKINS-30228] use textarea for Xcode Build Arguments.
Feel free to subscribe to #296 for updates related to Slack Plugin 2.2 release. |
Hi,
We are seeing the occaionaly Null Pointer Execption from the Jenkins Slack Notification plugin:
"
FATAL: null
java.lang.NullPointerException
at java.util.AbstractCollection.addAll(Unknown Source)
at jenkins.plugins.slack.ActiveNotifier.getChanges(ActiveNotifier.java:115)
at jenkins.plugins.slack.ActiveNotifier.started(ActiveNotifier.java:45)
at jenkins.plugins.slack.SlackNotifier$SlackJobProperty.prebuild(SlackNotifier.java:280)
at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:804)
at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:799)
at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:795)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
at hudson.model.Run.execute(Run.java:1745)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
"
Slack Notification Plugin 1.7
The text was updated successfully, but these errors were encountered: