cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Slack Plugin NullPointerException

ryan_shaw
Dynatrace Helper
Dynatrace Helper

Hello,

I'm trying to install and use the Slack plugin however I'm getting a null pointer exception when I try to execute and setting the log level to FINER doesn't provide any additional logging. I'm using 0.10.2 which I downloaded from the link below as I required proxy info and the Dynatrace page has 0.10.0 as the latest. I'm on AppMon 7.0.9.

https://answers.dynatrace.com/spaces/148/uem-open-...

2018-02-27 13:13:48 WARNING [UserPluginManager@com.Slack.Chat.action] [ScotiaTestOnline] TEST ALERT - Web Request Response Time - Severe - Copy: java.lang.NullPointerException - null
java.lang.NullPointerException
at com.dynatrace.SlackChat.execute(SlackChat.java:79)
at com.dynatrace.diagnostics.sdk.UserPluginManager.a(SourceFile:804)
at com.dynatrace.diagnostics.sdk.UserPluginManager.a(SourceFile:516)
at com.dynatrace.diagnostics.sdk.UserPluginManager.b(SourceFile:383)
at com.dynatrace.diagnostics.sdk.UserPluginManager.a(SourceFile:355)
at com.dynatrace.diagnostics.sdk.UserPluginManager.a(SourceFile:337)
at com.dynatrace.diagnostics.sdk.UserPluginManager.executePlugin(SourceFile:270)
at com.dynatrace.diagnostics.sdk.ActionPluginExecutor.execute(SourceFile:31)
at com.dynatrace.diagnostics.sdk.ActionPluginExecutor.execute(SourceFile:13)
at com.dynatrace.diagnostics.schedule.ServerJobCenterRegistry.a(SourceFile:190)
at com.dynatrace.diagnostics.schedule.ServerJobCenterRegistry.a(SourceFile:413)
at com.dynatrace.diagnostics.schedule.ServerJobCenterRegistry.execute(SourceFile:337)
at com.dynatrace.diagnostics.schedule.SchedulerJob.a(SourceFile:101)
at com.dynatrace.diagnostics.schedule.SchedulerJob.work(SourceFile:92)
at com.dynatrace.diagnostics.schedule.SchedulerJob.executeJobInfo(SourceFile:240)
at com.dynatrace.diagnostics.schedule.QuartzJob.execute(SourceFile:45)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at com.dynatrace.diagnostics.schedule.QuartzThreadPool$WorkerThread.run(SourceFile:781)

3 REPLIES 3

tarjei_utnes
Organizer

Hi Ryan,

Could you maybe share a screenshot of your configuration (blurring any secret tokens etc)

ryan_shaw
Dynatrace Helper
Dynatrace Helper

Hi @Tarjei U.

I've attached a picture of my configuration of the plugin in the incident I'm testing with if that helps. I haven't set any default configurations in the Dynatrace Server Settings > Plugin section. slack.png

ryan_shaw
Dynatrace Helper
Dynatrace Helper

The issue was with the proxy auth, after I commented out that code everything worked fine.