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

Extended Mail Report Plugin - NullPointer when appending a Dashboard

Hi @Eugene T.

i tried to attach a PDF dashboard report to an incident email using the Extended EMail Action Plugin.

Unfortunately I get a NullPointerException

dashboards is '[PILogIncidentWartung]';
dashboards type is 'PDF';

...

2017-04-05 10:14:48 FINER [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] Entering setEmailBodyDashboards method
2017-04-05 10:14:48 FINER [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] Entering getExceptionAsString method
2017-04-05 10:14:48 FINER [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] Entering getStackTraceAsString method
2017-04-05 10:14:48 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] setEmailBodyDashboards method: java.lang.NullPointerException exception occurred. Message = 'null'; Stacktrace is ''
2017-04-05 10:14:48 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] sendMailAction method: java.lang.NullPointerException exception occurred. Message = 'null'; Stacktrace is ''
2017-04-05 10:14:48 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] processIncident method: java.lang.NullPointerException exception occurred. Message = 'null'; Stacktrace is ''
2017-04-05 10:14:48 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] sendMail method: java.lang.NullPointerException exception occurred. Message = 'null'; Stacktrace is ''
2017-04-05 10:14:48 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] processEmails method: java.lang.NullPointerException exception occurred. Message = 'null'; Stacktrace is ''
2017-04-05 10:14:48 FINER [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] removeActionEntry method: removeActionEntry method returned 'true'
2017-04-05 10:14:48 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] execute method: processEmails method returned message 'java.lang.NullPointerException exception occurred. Message = 'null'; Stacktrace is '''
2017-04-05 10:14:48 FINER [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] ExtendedMailAction class: execute method: return code is '501'
2017-04-05 10:14:48 FINER [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] ExtendedMailAction class: Entering teardown method
2017-04-05 10:14:48 FINER [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] Entering teardown method
2017-04-05 10:14:48 WARNING [UserPluginManager@com.dynatrace.diagnostics.plugins.extendedmailreport.action] Previous message was repeated 2 times.
2017-04-05 10:14:48 WARNING [UserPluginManager@com.dynatrace.diagnostics.plugins.extendedmailreport.action] java.lang.NullPointerException - null
java.lang.NullPointerException
at com.dynatrace.diagnostics.plugins.extendedmailreport.MailExecutor.setEmailBodyDashboards(MailExecutor.java:1592)
at com.dynatrace.diagnostics.plugins.extendedmailreport.MailExecutor.sendMailAction(MailExecutor.java:1494)
at com.dynatrace.diagnostics.plugins.extendedmailreport.MailExecutor.processIncident(MailExecutor.java:1438)
at com.dynatrace.diagnostics.plugins.extendedmailreport.MailExecutor.sendMail(MailExecutor.java:712)
at com.dynatrace.diagnostics.plugins.extendedmailreport.MailExecutor.processEmails(MailExecutor.java:680)
at com.dynatrace.diagnostics.plugins.extendedmailreport.MailExecutor.execute(MailExecutor.java:503)
at com.dynatrace.diagnostics.plugins.extendedmailreport.ExtendedMailAction.execute(ExtendedMailAction.java:77)
at com.dynatrace.diagnostics.sdk.UserPluginManager.a(SourceFile:770)
at com.dynatrace.diagnostics.sdk.UserPluginManager.b(SourceFile:480)
at com.dynatrace.diagnostics.sdk.UserPluginManager.a(SourceFile:337)
at com.dynatrace.diagnostics.sdk.UserPluginManager.a(SourceFile:319)
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:241)
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:788)

I double checked the configuration and also tried to rename the dashboard, but the dashboard exists.

Still the same error.

Whats wrong?

Regards,

Robert

2 REPLIES 2

it's also possible to create a dashboard report via rest-call

Using the latest version (0.10.13) resolved that issue.