<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Running JasperReports with subreports in an app server environment</title>
	<atom:link href="http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/feed/" rel="self" type="application/rss+xml" />
	<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/</link>
	<description>because the world is an interesting place...</description>
	<lastBuildDate>Fri, 13 Aug 2010 12:32:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: ccnet</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-674</link>
		<dc:creator>ccnet</dc:creator>
		<pubDate>Sat, 29 Aug 2009 02:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-674</guid>
		<description>The best resource would be the JasperSoft support forums.  The javaflow version of the jasper jar is the one that should be used in a multithreaded environment like an application server.  Whether the library will only create a single thread...I can&#039;t answer that.  It would seem from your comment that it is in fact doing this. I haven&#039;t dug into it that as the javaflow version of the library solved the problems we were having.</description>
		<content:encoded><![CDATA[<p>The best resource would be the JasperSoft support forums.  The javaflow version of the jasper jar is the one that should be used in a multithreaded environment like an application server.  Whether the library will only create a single thread&#8230;I can&#8217;t answer that.  It would seem from your comment that it is in fact doing this. I haven&#8217;t dug into it that as the javaflow version of the library solved the problems we were having.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raja</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-673</link>
		<dc:creator>Raja</dc:creator>
		<pubDate>Tue, 11 Aug 2009 19:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-673</guid>
		<description>I have used the suggestion mentioned in this website and jasper is not creating multithreads per report (specifically for subreports). I have the following question:
Using the approach mentioned in this website, the jasper report will only create single thread per report instead of creating multiple threads. Is my assumption correct?</description>
		<content:encoded><![CDATA[<p>I have used the suggestion mentioned in this website and jasper is not creating multithreads per report (specifically for subreports). I have the following question:<br />
Using the approach mentioned in this website, the jasper report will only create single thread per report instead of creating multiple threads. Is my assumption correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darryl</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-628</link>
		<dc:creator>Darryl</dc:creator>
		<pubDate>Mon, 20 Apr 2009 16:13:45 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-628</guid>
		<description>Just a note for anybody who finds this article searching for JasperReports hanging or something of that nature. I had a problem with my appserver hanging after every 8th invocation of a report. This constant was obviously a clue and no coincidence with the fact that I only had 8 connections in my DB connection pool.

Call me stupid, but it wasn&#039;t obvious to me from the JR sample code etc that I needed to explicitly close the connection I gave to the JasperFillManager. Once I did that I was on my way again. So just check and make sure that any connections you&#039;re pulling from a DataSource, you&#039;re also closing. JR  is not closing the connection for you (in hindsight, this is somewhat obvious cos it shouldn&#039;t be if I want to continue using that connection for something else).</description>
		<content:encoded><![CDATA[<p>Just a note for anybody who finds this article searching for JasperReports hanging or something of that nature. I had a problem with my appserver hanging after every 8th invocation of a report. This constant was obviously a clue and no coincidence with the fact that I only had 8 connections in my DB connection pool.</p>
<p>Call me stupid, but it wasn&#8217;t obvious to me from the JR sample code etc that I needed to explicitly close the connection I gave to the JasperFillManager. Once I did that I was on my way again. So just check and make sure that any connections you&#8217;re pulling from a DataSource, you&#8217;re also closing. JR  is not closing the connection for you (in hindsight, this is somewhat obvious cos it shouldn&#8217;t be if I want to continue using that connection for something else).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chigozie Damian</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-153</link>
		<dc:creator>Chigozie Damian</dc:creator>
		<pubDate>Sun, 19 Oct 2008 21:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-153</guid>
		<description>Hi all,

I actually had the same issues using JRThreadSubreportRunnerFactory resulting in my system freezing and an exception which is java.lang.ThreadDeath thrown by the app server (Sun Java System App Server 9.1)until I now reconfigured the SubreportRunnerFactory in the properties file to JRContinuationSubreportRunnerFactory and equally added the commons-javaflow-20060411.jar that came with the iReport-2.0.1 release.  Now the subreports are working but I have peculiar case of a complex report which requires four different subreports in a master report. Now out of those four subreports, one of the subreports contains nested three subreports.

To make it more analytical and descriptive, I have a master report which contains four subreports namely :

a) subreport_1.jasper
b) subreport_2.jasper
c) subreport_3.jasper
d) subreport_4.jasper

Out of these four subreports, subreport_4.jasper contains another three subreports inside it. On running subreport_4.jasper with its nested subreports seperately, everything runs fine. Also on running subreports 1 to 3 with the master report, everything runs fine too. But when I eventually merge all the subreports together within the master reports, my system chokes or hangs and the app server throws java.lang.OutOfMemoryError.

Can anyone help, I&#039;ve been on this issue for close to a week running...</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>I actually had the same issues using JRThreadSubreportRunnerFactory resulting in my system freezing and an exception which is java.lang.ThreadDeath thrown by the app server (Sun Java System App Server 9.1)until I now reconfigured the SubreportRunnerFactory in the properties file to JRContinuationSubreportRunnerFactory and equally added the commons-javaflow-20060411.jar that came with the iReport-2.0.1 release.  Now the subreports are working but I have peculiar case of a complex report which requires four different subreports in a master report. Now out of those four subreports, one of the subreports contains nested three subreports.</p>
<p>To make it more analytical and descriptive, I have a master report which contains four subreports namely :</p>
<p>a) subreport_1.jasper<br />
b) subreport_2.jasper<br />
c) subreport_3.jasper<br />
d) subreport_4.jasper</p>
<p>Out of these four subreports, subreport_4.jasper contains another three subreports inside it. On running subreport_4.jasper with its nested subreports seperately, everything runs fine. Also on running subreports 1 to 3 with the master report, everything runs fine too. But when I eventually merge all the subreports together within the master reports, my system chokes or hangs and the app server throws java.lang.OutOfMemoryError.</p>
<p>Can anyone help, I&#8217;ve been on this issue for close to a week running&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Palmer</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-146</link>
		<dc:creator>Chris Palmer</dc:creator>
		<pubDate>Thu, 14 Aug 2008 03:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-146</guid>
		<description>I got it working just fine. The problem was the naming of the tomcat directory and the code in the controller was encoding the name... its working thanks</description>
		<content:encoded><![CDATA[<p>I got it working just fine. The problem was the naming of the tomcat directory and the code in the controller was encoding the name&#8230; its working thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Palmer</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-148</link>
		<dc:creator>Chris Palmer</dc:creator>
		<pubDate>Thu, 14 Aug 2008 01:43:01 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-148</guid>
		<description>I did a test and it still doesn&#039;t find it. The original code does have an absolute file reference and it still can&#039;t .

The error is actually could not load object from location ./MY.jasper</description>
		<content:encoded><![CDATA[<p>I did a test and it still doesn&#8217;t find it. The original code does have an absolute file reference and it still can&#8217;t .</p>
<p>The error is actually could not load object from location ./MY.jasper</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Palmer</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-147</link>
		<dc:creator>Chris Palmer</dc:creator>
		<pubDate>Wed, 13 Aug 2008 23:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-147</guid>
		<description>thanks for the follow up. The application is deployed to tomcat. I am testing your suggestion right now</description>
		<content:encoded><![CDATA[<p>thanks for the follow up. The application is deployed to tomcat. I am testing your suggestion right now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ccnet</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-150</link>
		<dc:creator>ccnet</dc:creator>
		<pubDate>Wed, 13 Aug 2008 12:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-150</guid>
		<description>Chris-

Not sure this is the answer to your problem.  You might want to try setting the path in your main report when you set the subreport properties.  For instance: &quot;./sub_report.jasper&quot;.  That will ensure it will look in the same directory.

Also, I believe it depends on which compiler you&#039;re using.  If you&#039;re using the JDK then it will not use the same classpath as JDK your application is running on.  This is different if you are running on the Eclipse JDT (which I think is the default).  In the case of the JDK you might need to set the property net.sf.jasperreports.compiler.classpath and include the folder where you&#039;re storing the compiled reports.  In the case of the Eclipse compiler it *will* &quot;inherit&quot; the classpath of the app server JDK.  The Jasper guide says &quot;This property is not used by the JDT-based report compiler, which simply uses the parent
application’s classpath during Java source file compilation.&quot;</description>
		<content:encoded><![CDATA[<p>Chris-</p>
<p>Not sure this is the answer to your problem.  You might want to try setting the path in your main report when you set the subreport properties.  For instance: &#8220;./sub_report.jasper&#8221;.  That will ensure it will look in the same directory.</p>
<p>Also, I believe it depends on which compiler you&#8217;re using.  If you&#8217;re using the JDK then it will not use the same classpath as JDK your application is running on.  This is different if you are running on the Eclipse JDT (which I think is the default).  In the case of the JDK you might need to set the property net.sf.jasperreports.compiler.classpath and include the folder where you&#8217;re storing the compiled reports.  In the case of the Eclipse compiler it *will* &#8220;inherit&#8221; the classpath of the app server JDK.  The Jasper guide says &#8220;This property is not used by the JDT-based report compiler, which simply uses the parent<br />
application’s classpath during Java source file compilation.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Palmer</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-149</link>
		<dc:creator>Chris Palmer</dc:creator>
		<pubDate>Wed, 13 Aug 2008 09:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-149</guid>
		<description>Hi !

This was a good find. I think. The problem I was hitting today is that it couldn&#039;t locate the subreports when they were there. All works fine in the designer however once deployed to the server it pukes. I removed the sub report and the report ran fine. I am going to assume it is this issue and give it a try at work tomorrow. The actual exception was unable to locate sub report &quot;XXX&quot; .</description>
		<content:encoded><![CDATA[<p>Hi !</p>
<p>This was a good find. I think. The problem I was hitting today is that it couldn&#8217;t locate the subreports when they were there. All works fine in the designer however once deployed to the server it pukes. I removed the sub report and the report ran fine. I am going to assume it is this issue and give it a try at work tomorrow. The actual exception was unable to locate sub report &#8220;XXX&#8221; .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teodor Danciu</title>
		<link>http://curiouscreature.net/blog/2008/07/29/running-jasperreports-with-subreports-in-an-app-server-environment/comment-page-1/#comment-152</link>
		<dc:creator>Teodor Danciu</dc:creator>
		<pubDate>Fri, 08 Aug 2008 15:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://brainfreezeblog.com/?p=99#comment-152</guid>
		<description>Hi,

We have modified the default properties file of the Javaflow-based JAR so that the subreport runner using Java continuations is the default, as suggested at the above point #1.
Things like these can be solved quicker if they are posted as feature requests or even bugs on the JasperReports trackers.

We have not yet complied with points #2 and #3 which talk about removing some of the subreport runner implementations from the respective JAR distributions, because we think these are less important.

Thank you,
Teodor</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>We have modified the default properties file of the Javaflow-based JAR so that the subreport runner using Java continuations is the default, as suggested at the above point #1.<br />
Things like these can be solved quicker if they are posted as feature requests or even bugs on the JasperReports trackers.</p>
<p>We have not yet complied with points #2 and #3 which talk about removing some of the subreport runner implementations from the respective JAR distributions, because we think these are less important.</p>
<p>Thank you,<br />
Teodor</p>
]]></content:encoded>
	</item>
</channel>
</rss>
