{"id":2711,"date":"2022-08-30T15:27:08","date_gmt":"2022-08-30T15:27:08","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/08\/static-members-issue-jasperreports-for-net-over-jni4net-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:27:08","modified_gmt":"2022-08-30T15:27:08","slug":"static-members-issue-jasperreports-for-net-over-jni4net-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/static-members-issue-jasperreports-for-net-over-jni4net-collection-of-common-programming-errors\/","title":{"rendered":"Static Members Issue &#8211; JasperReports for .Net over jni4Net-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to fill a report with empty datasource like this<\/p>\n<pre><code>JasperPrint print = JasperFillManager.fillReport(@\"D:\\ImagesReport.jasper\", null);\n<\/code><\/pre>\n<p>Usually the program crashes without notice, but I used watch window and found that this is what I get<\/p>\n<pre><code>   at net.sf.jni4net.jni.JNIEnv.CallStaticObjectMethodPtr(Class clazz, MethodId methodIdNative, Value[] args)\n   at net.sf.jasperreports.engine.JasperFillManager.fillReport(String par0, Map par1)\n   in D:\\jasper4net\\Jasper4net\\net\\sf\\jasperreports\\engine\\JasperFillManager.generated.cs:line 149\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2014-02-08 03:30:06. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to fill a report with empty datasource like this JasperPrint print = JasperFillManager.fillReport(@&#8221;D:\\ImagesReport.jasper&#8221;, null); Usually the program crashes without notice, but I used watch window and found that this is what I get at net.sf.jni4net.jni.JNIEnv.CallStaticObjectMethodPtr(Class clazz, MethodId methodIdNative, Value[] args) at net.sf.jasperreports.engine.JasperFillManager.fillReport(String par0, Map par1) in D:\\jasper4net\\Jasper4net\\net\\sf\\jasperreports\\engine\\JasperFillManager.generated.cs:line 149 Originally posted 2014-02-08 03:30:06.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2711","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2711"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2711\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}