{"action":"created","issue":{"url":"https://api.github.com/repos/cossou/JasperPHP/issues/41","repository_url":"https://api.github.com/repos/cossou/JasperPHP","labels_url":"https://api.github.com/repos/cossou/JasperPHP/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/cossou/JasperPHP/issues/41/comments","events_url":"https://api.github.com/repos/cossou/JasperPHP/issues/41/events","html_url":"https://github.com/cossou/JasperPHP/issues/41","id":158501170,"number":41,"title":"Getting error when adding database to jaspersoft process","user":{"login":"eshwarallaka","id":7152620,"avatar_url":"https://avatars.githubusercontent.com/u/7152620?v=3","gravatar_id":"","url":"https://api.github.com/users/eshwarallaka","html_url":"https://github.com/eshwarallaka","followers_url":"https://api.github.com/users/eshwarallaka/followers","following_url":"https://api.github.com/users/eshwarallaka/following{/other_user}","gists_url":"https://api.github.com/users/eshwarallaka/gists{/gist_id}","starred_url":"https://api.github.com/users/eshwarallaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eshwarallaka/subscriptions","organizations_url":"https://api.github.com/users/eshwarallaka/orgs","repos_url":"https://api.github.com/users/eshwarallaka/repos","events_url":"https://api.github.com/users/eshwarallaka/events{/privacy}","received_events_url":"https://api.github.com/users/eshwarallaka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-04T11:44:16Z","updated_at":"2016-06-06T06:54:14Z","closed_at":"2016-06-04T12:18:27Z","body":"I'm getting following error when i use database in JasperPHP::process.\r\n \r\n**Your report has an error and couldn't be processed! Try to output the command using the function `output();` and run it manually in the console.**\r\n\r\nfollowing is my code\r\n\r\n $jasper = new JasperPHP;\r\n                $jasper->compile(base_path() . '/vendor/cossou/jasperphp/examples/test.jrxml')->execute();\r\n                $jasper->process(\r\n               base_path() . '/vendor/cossou/jasperphp/examples/test.jasper',\r\n                array(\"pdf\", \"rtf\"),\r\n               array(\"php_version\" => phpversion()),\r\n               array(\r\n               'driver' => 'pgsql',\r\n               'username' => 'postgres',\r\n               'host' => 'localhost',\r\n               'database' => 'test_db',\r\n               'password' => 'test',\r\n               'port' => '5432',\r\n               )\r\n               )->execute();\r\n\r\nif I remove array regarding database connection it successfully generate the pdf and rtf files.\r\nNOTE:- The test.jasper file doesn't contain any data regarding database it's just a hello world text in it.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cossou/JasperPHP/issues/comments/223881414","html_url":"https://github.com/cossou/JasperPHP/issues/41#issuecomment-223881414","issue_url":"https://api.github.com/repos/cossou/JasperPHP/issues/41","id":223881414,"user":{"login":"cossou","id":1337112,"avatar_url":"https://avatars.githubusercontent.com/u/1337112?v=3","gravatar_id":"","url":"https://api.github.com/users/cossou","html_url":"https://github.com/cossou","followers_url":"https://api.github.com/users/cossou/followers","following_url":"https://api.github.com/users/cossou/following{/other_user}","gists_url":"https://api.github.com/users/cossou/gists{/gist_id}","starred_url":"https://api.github.com/users/cossou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cossou/subscriptions","organizations_url":"https://api.github.com/users/cossou/orgs","repos_url":"https://api.github.com/users/cossou/repos","events_url":"https://api.github.com/users/cossou/events{/privacy}","received_events_url":"https://api.github.com/users/cossou/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T06:54:14Z","updated_at":"2016-06-06T06:54:14Z","body":"Hi,\r\n\r\nDid you run the command manually in your console with the output from the \"output();\" function?"}}
{"actor":{"display_login":"cossou"}}