jenkinsci/appdynamics-plugin

NPE in publisher

mdonkers opened this issue · 5 comments

On behalf of NITIN KUMAR SHARMA:

hi Miel,

i trying to use “appdynamics-dashboard-1.0.1.hpi” in my Jenkin job to fetch the performance metrics after executing my Jmeter test cases.

i can see in the Jenkins console log that the connection with Appdynamic controller was successful but later while fetching the result “null pointer exception was thrown”…

Kindly let me know if the below log makes any sense to you:

Connection successful, continue to fetch measurements from AppDynamics ControllerERROR: Publisher nl.codecentric.jenkins.appd.AppDynamicsResultsPublisher aborted due to exception
java.lang.NullPointerException
at nl.codecentric.jenkins.appd.AppDynamicsReport.addMetrics(AppDynamicsReport.java:32)
at nl.codecentric.jenkins.appd.AppDynamicsDataCollector.createReportFromMeasurements(AppDynamicsDataCollector.java:58)
at nl.codecentric.jenkins.appd.AppDynamicsResultsPublisher.perform(AppDynamicsResultsPublisher.java:219)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
at hudson.model.Run.execute(Run.java:1757)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)

Thanks Miel for raising this issue...

Kindly let me know if any further information required from my end.

Hi,

I've released a new version of the plug-in, preventing this NPE. The reason it occurs seems to come from metrics that cannot be fetched, which should have led to another message in your log-file before this NPE message. Perhaps there is something wrong with a certain metric. Could you let me know if you can find this original message?

Thanks,
Miel

hi Miel - i have received your message.. i see that you have updated the pom.xml @ https://github.com/jenkinsci/appdynamics-plugin

i had initially downloaded the .hpi file from http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/appdynamics-dashboard/1.0.1/

I dont know how to install your source code.. it will be great if you can show me the direction to install your code..

Hi Nitin,

I thought I had released a new version of the plugin, but apparently this failed somewhere. I'll try to make a new release, so you can just grab the HPI file.

BR,
Miel

Hi,
Apparently the release plugin was failing in combination with Git. I managed to create a new release; version 1.0.6. Please grab the HPI file from the regular source(s).

BR,
Miel