{"action":"created","issue":{"url":"https://api.github.com/repos/blackducksoftware/hub-bamboo/issues/17","repository_url":"https://api.github.com/repos/blackducksoftware/hub-bamboo","labels_url":"https://api.github.com/repos/blackducksoftware/hub-bamboo/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/blackducksoftware/hub-bamboo/issues/17/comments","events_url":"https://api.github.com/repos/blackducksoftware/hub-bamboo/issues/17/events","html_url":"https://github.com/blackducksoftware/hub-bamboo/issues/17","id":176722602,"number":17,"title":"Hub Scan task fails while generating risk report","user":{"login":"rutherfordjw","id":3922048,"avatar_url":"https://avatars.githubusercontent.com/u/3922048?v=3","gravatar_id":"","url":"https://api.github.com/users/rutherfordjw","html_url":"https://github.com/rutherfordjw","followers_url":"https://api.github.com/users/rutherfordjw/followers","following_url":"https://api.github.com/users/rutherfordjw/following{/other_user}","gists_url":"https://api.github.com/users/rutherfordjw/gists{/gist_id}","starred_url":"https://api.github.com/users/rutherfordjw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rutherfordjw/subscriptions","organizations_url":"https://api.github.com/users/rutherfordjw/orgs","repos_url":"https://api.github.com/users/rutherfordjw/repos","events_url":"https://api.github.com/users/rutherfordjw/events{/privacy}","received_events_url":"https://api.github.com/users/rutherfordjw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T19:00:16Z","updated_at":"2016-10-04T19:46:19Z","closed_at":null,"body":"After scanning docker image (as a tarball) with bamboo task. It fails FileNotFoundException to generate the report due to a null pointer\r\n\r\n```bash\r\nsimple\t13-Sep-2016 14:33:51\tLogging to file: /opt/app/code/automate/agent/xml-data/build-dir/CODE-META47-SCAN/HubScanLogs/17/log/c3cuautomate10.premierinc.com-meta-app.tar-2016-09-13T182942.127Z.log\r\nsimple\t13-Sep-2016 14:33:51\tHub CLI return code : 0\r\nsimple\t13-Sep-2016 14:33:51\tYou can view the BlackDuck Scan CLI logs at : '/opt/app/code/automate/agent/xml-data/build-dir/CODE-META47-SCAN/HubScanLogs/17'\r\nsimple\t13-Sep-2016 14:33:51\t\r\nsimple\t13-Sep-2016 14:33:51\tGenerating Risk Report\r\nsimple\t13-Sep-2016 14:33:51\tChecking the directory : /opt/app/code/automate/agent/xml-data/build-dir/CODE-META47-SCAN/HubScanLogs/17/status for the scan status's.\r\nerror\t13-Sep-2016 14:36:22\tError occurred while running Task '(6)' of type com.blackducksoftware.integration.hub-bamboo:hubScanTask.\r\nerror\t13-Sep-2016 14:36:22\tjava.lang.NullPointerException\r\nerror\t13-Sep-2016 14:36:22\t\tat com.blackducksoftware.integration.hub.report.api.HubRiskReportData.setReport(HubRiskReportData.java:79)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.blackducksoftware.integration.hub.report.api.RiskReportGenerator.generateHubReport(RiskReportGenerator.java:82)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.blackducksoftware.integration.hub.bamboo.tasks.HubScanTask.generateRiskReport(HubScanTask.java:726)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.blackducksoftware.integration.hub.bamboo.tasks.HubScanTask.execute(HubScanTask.java:227)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$124(TaskExecutorImpl.java:269)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:269)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:215)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:137)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)\r\nerror\t13-Sep-2016 14:36:22\t\tat com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)\r\nerror\t13-Sep-2016 14:36:22\t\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\ncontents of directory \"17\"\r\n```bash \r\n[root@c3cuautomate10 HubScanLogs]# ls 17/\r\nCLI_Output.txt  log\r\n```"},"comment":{"url":"https://api.github.com/repos/blackducksoftware/hub-bamboo/issues/comments/251492375","html_url":"https://github.com/blackducksoftware/hub-bamboo/issues/17#issuecomment-251492375","issue_url":"https://api.github.com/repos/blackducksoftware/hub-bamboo/issues/17","id":251492375,"user":{"login":"akamen","id":13457584,"avatar_url":"https://avatars.githubusercontent.com/u/13457584?v=3","gravatar_id":"","url":"https://api.github.com/users/akamen","html_url":"https://github.com/akamen","followers_url":"https://api.github.com/users/akamen/followers","following_url":"https://api.github.com/users/akamen/following{/other_user}","gists_url":"https://api.github.com/users/akamen/gists{/gist_id}","starred_url":"https://api.github.com/users/akamen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akamen/subscriptions","organizations_url":"https://api.github.com/users/akamen/orgs","repos_url":"https://api.github.com/users/akamen/repos","events_url":"https://api.github.com/users/akamen/events{/privacy}","received_events_url":"https://api.github.com/users/akamen/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T19:46:19Z","updated_at":"2016-10-04T19:46:19Z","body":"@rutherfordjw Are you able to scan that same file using the CLI as a standalone process?   Trying to determine if this is a Bamboo problem or a CLI problem."}}
{"actor":{"display_login":"akamen"}}