1

I am trying to build a continuous integration environment for php using hudson. I am running a shell script, which generates my phpdepend output, which can be used by the jdepend plugin. Although the xml-File is ready, the plugin throws an exception:

console output:

[JDepend] JDepend plugin is ready
[JDepend] Couldn't generate JDepend file at 'jdepend.xml'java.lang.NullPointerException

on jdepend-symbol click:

 Report generation failed: org.apache.maven.reporting.MavenReportException: Failed to generate JDepend report:null

thanks for all your help. Martin

Martin Kapfhammer
  • 260
  • 1
  • 4
  • 18

3 Answers3

0

I had the same issue, but instead of putting the folder path, i put also the xml filename and it worked well, like this :

/build/logs/jdepend.xml

Yvon Huynh
  • 453
  • 3
  • 16
0

If you feel that you have found a bug with this plugin (which seems like the case because you are getting a NullPointerException), go here and look under the 'Bug reporting' section to see how to report the bug.

Bernard
  • 7,908
  • 2
  • 36
  • 33
0

Try configuring a path, not a file.

See Hudson keeps failing with Phing AND Ant.

Community
  • 1
  • 1
Peter Schuetze
  • 16,185
  • 4
  • 44
  • 58
  • I do not unterstand. I tried pdepend-reports/ and pdepend-reports ... pdepend-reports contains my jdepend.xml. But I get the following error: [JDepend] Couldn't generate JDepend file at 'pdepend-reports'java.io.FileNotFoundException: /home/www/hosts/hudson-output/pdepend-reports (Is a directory) – Martin Kapfhammer Nov 25 '10 at 08:28
  • Check permissions to the directory. Can the user Hudson runs under write to that location? look into that direction. look for typos in the path. – Peter Schuetze Nov 29 '10 at 17:48