{"action":"created","issue":{"url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/191","labels_url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/191/comments","events_url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/191/events","html_url":"https://github.com/jeremylong/DependencyCheck/issues/191","id":54003898,"number":191,"title":"org.owasp.dependencycheck.exception.NoDataException: No documents exist","user":{"login":"hansjoachim","id":3002493,"avatar_url":"https://avatars.githubusercontent.com/u/3002493?v=3","gravatar_id":"","url":"https://api.github.com/users/hansjoachim","html_url":"https://github.com/hansjoachim","followers_url":"https://api.github.com/users/hansjoachim/followers","following_url":"https://api.github.com/users/hansjoachim/following{/other_user}","gists_url":"https://api.github.com/users/hansjoachim/gists{/gist_id}","starred_url":"https://api.github.com/users/hansjoachim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansjoachim/subscriptions","organizations_url":"https://api.github.com/users/hansjoachim/orgs","repos_url":"https://api.github.com/users/hansjoachim/repos","events_url":"https://api.github.com/users/hansjoachim/events{/privacy}","received_events_url":"https://api.github.com/users/hansjoachim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-11T20:34:16Z","updated_at":"2015-01-26T20:04:55Z","closed_at":"2015-01-26T20:04:55Z","body":"When attempting to run `mvn dependency-check:check` I got the following error message/stacktrace in the log:\r\n```\r\nJan 11, 2015 8:12:01 PM org.owasp.dependencycheck.Engine analyzeDependencies\r\nSEVERE: No documents exist\r\n\r\nUnable to continue dependency-check analysis.\r\nJan 11, 2015 8:12:01 PM org.owasp.dependencycheck.Engine analyzeDependencies\r\nFINE: null\r\norg.owasp.dependencycheck.exception.NoDataException: No documents exist\r\n        at org.owasp.dependencycheck.Engine.ensureDataExists(Engine.java:541)\r\n        at org.owasp.dependencycheck.Engine.analyzeDependencies(Engine.java:352)\r\n        at org.owasp.dependencycheck.maven.CheckMojo.runCheck(CheckMojo.java:87)\r\n        at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.execute(BaseDependencyCheckMojo.java:340)\r\n        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)\r\n        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)\r\n        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)\r\n        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)\r\n        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)\r\n        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)\r\n        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)\r\n        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)\r\n        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)\r\n        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)\r\n        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\n        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\r\n        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\r\n        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\r\n        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\r\n```\r\nI can attach more/the whole log if you want.\r\n\r\nI have seen this issue before, and also saw some previous bug reports on it, but they suggested the issue had been fixed in newer releases.\r\n\r\nI am now able to trigger in my local clone of the DependencyCheck repo. I don't know the proper steps for how to trigger this issue and thhe problem may have occured earlier revision, but I am able to reproduce it in f8092da5faa1fa5cd56afa87f58b7ad4cb7c52b0 (the only modification I've done is add the dependency-check plugin version 1.2.8 to the root pom). "},"comment":{"url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/comments/71527857","html_url":"https://github.com/jeremylong/DependencyCheck/issues/191#issuecomment-71527857","issue_url":"https://api.github.com/repos/jeremylong/DependencyCheck/issues/191","id":71527857,"user":{"login":"hansjoachim","id":3002493,"avatar_url":"https://avatars.githubusercontent.com/u/3002493?v=3","gravatar_id":"","url":"https://api.github.com/users/hansjoachim","html_url":"https://github.com/hansjoachim","followers_url":"https://api.github.com/users/hansjoachim/followers","following_url":"https://api.github.com/users/hansjoachim/following{/other_user}","gists_url":"https://api.github.com/users/hansjoachim/gists{/gist_id}","starred_url":"https://api.github.com/users/hansjoachim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansjoachim/subscriptions","organizations_url":"https://api.github.com/users/hansjoachim/orgs","repos_url":"https://api.github.com/users/hansjoachim/repos","events_url":"https://api.github.com/users/hansjoachim/events{/privacy}","received_events_url":"https://api.github.com/users/hansjoachim/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T20:04:55Z","updated_at":"2015-01-26T20:04:55Z","body":"I've updated to latest master (34cb44) and run `mvn clean install` to add a snapshot build to my local maven repository. After switching the plugin version number to 1.2.9-SNAPSHOT, I am no longer able to reproduce this issue when running `mvn dependency-check:check`. (Even tried running it after clearing out `~/.m2/repository/org/owasp/dependency-check-data`, and it works as expected)\r\n\r\nThanks a lot for fixing this issue. :)"}}