<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>birt-report-designer-dev</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/maillist.html</link>
		<description>birt-report-designer-dev</description>
		<language>en-us</language>
		<pubDate>Wed, 18 Nov 2009 07:00:27 GMT</pubDate>
		<lastBuildDate>Wed, 18 Nov 2009 07:00:27 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>birt-report-designer-dev</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/maillist.html</link>
		</image>
 

	<item>
		<title>[birt-report-designer-dev] Re: report engine beginner...</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00237.html</link>
		<description>Please ignore my prev post...wrong list... gd ----- Original Message ----- From: &amp;quot;pady-geazy&amp;quot; &amp;lt;pady@xxxxxxxxx&amp;gt; To: &amp;lt;birt-report-designer-dev@xxxxxxxxxxx&amp;gt; Sent: Wednesday, November 18, 2009 12:14 PM Subject: [birt-report-designer-dev] report engine beginner...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;"><br>Please ignore my prev post...wrong list...</pre><br>
<pre style="margin: 0em;">gd</pre><br>
<tt>----- Original Message ----- 
From: &quot;pady-geazy&quot; &lt;pady@xxxxxxxxx&gt;<br>
To: &lt;birt-report-designer-dev@xxxxxxxxxxx&gt;<br>
Sent: Wednesday, November 18, 2009 12:14 PM<br>
Subject: [birt-report-designer-dev] report engine beginner...</tt><br>
<br>
<br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt><br>I downloaded BIRT 2.3 as an eclipse plugin. I have a webapp into which I 
would like to integrate birt. I have created a demo report from the 
designer. I am wondering which jars to be included in my release - for my 
web app to run the report ? I am not using the webapp shipped with birt to 
run the reports - rather I have a servlet instantiating the ReportEngine.
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>From the eclipse plugins folders, there are
</tt></blockquote><pre style="margin: 0em;"><br>birt.core.*.jar
birt.report.engine.*.jar
birt.report.model*.jar
birt.report.runtime*.jar
birt_2.3.2.jar</pre><br>
<tt>For development, I included all these jars. But I am not sure if everyone 
of this is required for runtime ?</tt><br>
<br>
<pre style="margin: 0em;"><br>Thanks</pre><br>
<pre style="margin: 0em;">gd</pre><br>
<tt>_______________________________________________<br>
birt-report-designer-dev mailing list<br>
birt-report-designer-dev@xxxxxxxxxxx<br>
<a  href="https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev">https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev</a> 
</tt></blockquote><pre style="margin: 0em;"><br></pre><br>
<br>
]]></content:encoded>
		<pubDate>Wed, 18 Nov 2009 06:56:12 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00237.html</guid>
		<author>pady@xxxxxxx (pady-geazy)</author>
	</item>
	<item>
		<title>[birt-report-designer-dev] report engine beginner...</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00236.html</link>
		<description>I downloaded BIRT 2.3 as an eclipse plugin. I have a webapp into which I would like to integrate birt. I have created a demo report from the designer. I am wondering which jars to be included in my release - for my web app to run the report ? I am not usin...</description>
		<content:encoded><![CDATA[<tt><br>I downloaded BIRT 2.3 as an eclipse plugin. I have a webapp into which I 
would like to integrate birt. I have created a demo report from the 
designer. I am wondering which jars to be included in my release - for my 
web app to run the report ? I am not using the webapp shipped with birt to 
run the reports - rather I have a servlet instantiating the ReportEngine. 
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>From the eclipse plugins folders, there are
</tt></blockquote><pre style="margin: 0em;"><br>birt.core.*.jar
birt.report.engine.*.jar
birt.report.model*.jar
birt.report.runtime*.jar
birt_2.3.2.jar</pre><br>
<tt>For development, I included all these jars. But I am not sure if everyone of 
this is required for runtime ?</tt><br>
<br>
<pre style="margin: 0em;"><br>Thanks</pre><br>
<tt>gd </tt><br>
<br>
<pre style="margin: 0em;"><br></pre><br>
]]></content:encoded>
		<pubDate>Wed, 18 Nov 2009 06:44:40 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00236.html</guid>
		<author>pady@xxxxxxx (pady-geazy)</author>
	</item>


	<item>
		<title>[birt-report-designer-dev] Crosstab custom format measure</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00235.html</link>
		<description> Hey all, I'm busy with creating a crosstab report. The summary field is a value expressed in meters. I have a custom format that it's called through a external custom class. I want to do something like this in the expression: &amp;quot;var f = Packages.com.example...</description>
		<content:encoded><![CDATA[<pre>
Hey all,

I'm busy with creating a crosstab report. 

The summary field is a value expressed in meters. 
I have a custom format that it's called through a external custom class.
I want to do something like this in the expression: &quot;var f =
Packages.com.example.Utils().toKm(measure['distance']); f&quot;
for example: if the value is 5000 then it's formatted in 5 km.

How can I do this?

Kind regards
-- 
View this message in context: <a  href="http://www.nabble.com/Crosstab-custom-format-measure-tp25712335p25712335.html">http://www.nabble.com/Crosstab-custom-format-measure-tp25712335p25712335.html</a>
Sent from the Eclipse BIRT - Report Designer - Dev mailing list archive at Nabble.com.


</pre>]]></content:encoded>
		<pubDate>Fri, 02 Oct 2009 09:58:44 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00235.html</guid>
		<author>korovessis@xxxxxxx (korovessis)</author>
	</item>


	<item>
		<title>RE: [birt-report-designer-dev] Reg: Version Mismatch</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00234.html</link>
		<description> You may try BIRT 2.5.0 viewer.   Please post your question in the birt news group at Eclipse or at http://www.birt-exchange.org/forum/ .   This mailing list is for discussion of  development of the BIRT project.   Rick Lu     Actuate Software Shanghai Cen...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } ">






<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>You may try BIRT
2.5.0 viewer. </span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Please post your
question in the birt news group at Eclipse or at <a
href="http://www.birt-exchange.org/forum/">http://www.birt-exchange.org/forum/</a>
. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>This mailing list
is for discussion of &nbsp;development of the BIRT project.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'>Rick Lu<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'>Actuate Software Shanghai Center<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'>Tel: (86)21-58826388<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'>Fax: (86)21-58826002<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:black'>Email: rlu@xxxxxxxxxxx<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:black'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
birt-report-designer-dev-bounces@xxxxxxxxxxx
[mailto:birt-report-designer-dev-bounces@xxxxxxxxxxx] <b>On Behalf Of </b>Shivam<br>
<b>Sent:</b> 2009</span><span lang=ZH-CN style='font-size:10.0pt;font-family:
SimSun'>&#x5E74;</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>7</span><span
lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>&#x6708;</span><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>6</span><span
lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>&#x65E5;</span><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> 17:32<br>
<b>To:</b> birt-report-designer-dev@xxxxxxxxxxx<br>
<b>Subject:</b> [birt-report-designer-dev] Reg: Version Mismatch<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hi,<br>
<br>
I am using Tomcat 5.5.27 and BirtViewer 2.2.2. Whenever I run report on
birtviewer I get an <br>
error saying Version mismatch with an empty exception trace. <br>
<br>
What should I do ? <br>
<br>
<br>
Regards, <br>
Shivam<o:p></o:p></p>

</div>




</td></tr></table>]]></content:encoded>
		<pubDate>Mon, 06 Jul 2009 09:39:24 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00234.html</guid>
		<author>rlu@xxxxxxx (Rick Lu)</author>
	</item>
	<item>
		<title>[birt-report-designer-dev] Reg: Version Mismatch</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00233.html</link>
		<description>Hi,I am using Tomcat 5.5.27 and BirtViewer 2.2.2. Whenever I run report on birtviewer I get an error saying Version mismatch with an empty exception trace. What should I do ? Regards, Shivam </description>
		<content:encoded><![CDATA[Hi,<br><br>I am using Tomcat 5.5.27 and BirtViewer 2.2.2. Whenever I run report on birtviewer I get an <br>error saying Version mismatch with an empty exception trace. <br><br>What should I do ? <br><br><br>Regards, <br>Shivam<br>


]]></content:encoded>
		<pubDate>Mon, 06 Jul 2009 09:32:41 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00233.html</guid>
		<author>shivam.agarwal2010@xxxxxxx (Shivam)</author>
	</item>


	<item>
		<title>[birt-report-designer-dev] Reg: Classpath</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00232.html</link>
		<description>Hey,I am using BIRT Report Engine api. I have put my java classes which I access as scripted data source in EngineHome/lib. However rhino is still unable to access those classes. Where should I put my classes ? Currently I am using SimpleClass.java (Standa...</description>
		<content:encoded><![CDATA[Hey,<br><br>I am using BIRT Report Engine api. I have put my java classes which I access as scripted data source in <br>EngineHome/lib. However rhino is still unable to access those classes. Where should I put my classes ? <br>

<br>Currently I am using SimpleClass.java (Standard Example for Scripted data source)<br><br>&#xA0;The error that I keep getting are <br>2009-07-01 06:08:52.733::INFO:&#xA0; Started SelectChannelConnector @ <a href="http://0.0.0.0:8080">0.0.0.0:8080</a><br>

Jul 1, 2009 6:09:15 AM org.eclipse.birt.data.engine.impl.DataEngineImpl &lt;init&gt;<br>INFO: Data Engine starts up<br>Jul 1, 2009 6:09:15 AM org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor handleJS<br>WARNING: A BIRT exception occurred: Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)<br>

&#xA0;Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:<br>__bm_OPEN(). See next exception for more information.<br>Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)<br>

&#xA0;Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:<br>__bm_OPEN()<br>org.eclipse.birt.data.engine.core.DataException: A BIRT exception occurred: Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)<br>

&#xA0;Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:<br>__bm_OPEN(). See next exception for more information.<br>Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)<br>

&#xA0;Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:<br>__bm_OPEN()<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.core.DataException.wrap(DataException.java:118)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:680)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:79)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:71)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:159)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:66)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(ScriptDataSetRuntime.java:79)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.java:244)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:220)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:767)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:217)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:157)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.QueryResultSet.&lt;init&gt;(QueryResultSet.java:83)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:155)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:111)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:182)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1683)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:76)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:61)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:45)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:42)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:63)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:85)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:106)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:189)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:224)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:89)<br>

&#xA0;&#xA0;&#xA0; at awsdw.velocity.model.ReportWorker.generateDocument(ReportWorker.java:310)<br>&#xA0;&#xA0;&#xA0; at awsdw.velocity.model.ReportWorker.renderDocumentFile(ReportWorker.java:236)<br>&#xA0;&#xA0;&#xA0; at awsdw.velocity.model.ReportWorker.run(ReportWorker.java:139)<br>

&#xA0;&#xA0;&#xA0; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)<br>&#xA0;&#xA0;&#xA0; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)<br>&#xA0;&#xA0;&#xA0; at java.lang.Thread.run(Thread.java:619)<br>

Caused by: org.eclipse.birt.core.exception.CoreException: Error evaluating _javascript_ _expression_. Script engine error: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)<br>&#xA0;Script source: DataSet[Favorite].__bm_OPEN, line: 1, text:<br>

__bm_OPEN()<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.core.script._javascript_EvalUtil.wrapRhinoException(_javascript_EvalUtil.java:287)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateRawScript(_javascript_EvalUtil.java:102)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateScript(_javascript_EvalUtil.java:134)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:676)<br>&#xA0;&#xA0;&#xA0; ... 32 more<br>

Caused by: org.mozilla._javascript_.EcmaError: TypeError: [JavaPackage SimpleClass] is not a function. (DataSet[Favorite].__bm_OPEN#2)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.constructError(ScriptRuntime.java:3240)<br>

&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.constructError(ScriptRuntime.java:3230)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.typeError(ScriptRuntime.java:3246)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.typeError1(ScriptRuntime.java:3258)<br>

&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.notFunctionError(ScriptRuntime.java:3317)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.notFunctionError(ScriptRuntime.java:3308)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.newObject(ScriptRuntime.java:2057)<br>

&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c7._c1(DataSet[Favorite].__bm_OPEN:2)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c7.call(DataSet[Favorite].__bm_OPEN)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.optimizer.OptRuntime.callName0(OptRuntime.java:105)<br>

&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c8._c0(DataSet[Favorite].__bm_OPEN:1)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c8.call(DataSet[Favorite].__bm_OPEN)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ContextFactory.doTopCall(ContextFactory.java:304)<br>

&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c8.call(DataSet[Favorite].__bm_OPEN)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c8.exec(DataSet[Favorite].__bm_OPEN)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateRawScript(_javascript_EvalUtil.java:95)<br>&#xA0;&#xA0;&#xA0; ... 34 more<br>Jul 1, 2009 6:09:15 AM org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor handleJS<br>

WARNING: A BIRT exception occurred: Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: &quot;currentrow&quot; is not defined. (DataSet[Favorite].__bm_FETCH#2)<br>&#xA0;Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:<br>

__bm_FETCH(). See next exception for more information.<br>Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: &quot;currentrow&quot; is not defined. (DataSet[Favorite].__bm_FETCH#2)<br>&#xA0;Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:<br>

__bm_FETCH()<br>org.eclipse.birt.data.engine.core.DataException: A BIRT exception occurred: Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: &quot;currentrow&quot; is not defined. (DataSet[Favorite].__bm_FETCH#2)<br>

&#xA0;Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:<br>__bm_FETCH(). See next exception for more information.<br>Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: &quot;currentrow&quot; is not defined. (DataSet[Favorite].__bm_FETCH#2)<br>

&#xA0;Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:<br>__bm_FETCH()<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.core.DataException.wrap(DataException.java:118)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:680)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:79)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:71)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:159)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleFetch(ScriptDataSetScriptExecutor.java:100)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch(ScriptDataSetRuntime.java:102)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.fetch(PreparedScriptDSQuery.java:257)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch(OdiAdapter.java:150)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.RowResultSet.next(RowResultSet.java:91)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.ExpandableRowResultSet.next(ExpandableRowResultSet.java:62)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.populateData(SmartCacheHelper.java:288)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.initInstance(SmartCacheHelper.java:261)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.getResultSetCache(SmartCacheHelper.java:224)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.SmartCache.&lt;init&gt;(SmartCache.java:68)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.populateOdiResultSet(PassUtil.java:108)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.pass(PassUtil.java:61)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.doSinglePass(PassManager.java:185)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.pass(PassManager.java:90)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.populateResultSet(PassManager.java:72)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.ResultSetPopulator.populateResultSet(ResultSetPopulator.java:208)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.CachedResultSet.&lt;init&gt;(CachedResultSet.java:132)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.CandidateQuery.execute(CandidateQuery.java:106)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:767)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:217)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:157)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.QueryResultSet.&lt;init&gt;(QueryResultSet.java:83)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:155)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:111)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:182)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1683)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:76)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:61)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:45)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:42)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:63)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:85)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:106)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:189)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:224)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:89)<br>

&#xA0;&#xA0;&#xA0; at awsdw.velocity.model.ReportWorker.generateDocument(ReportWorker.java:310)<br>&#xA0;&#xA0;&#xA0; at awsdw.velocity.model.ReportWorker.renderDocumentFile(ReportWorker.java:236)<br>&#xA0;&#xA0;&#xA0; at awsdw.velocity.model.ReportWorker.run(ReportWorker.java:139)<br>

&#xA0;&#xA0;&#xA0; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)<br>&#xA0;&#xA0;&#xA0; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)<br>&#xA0;&#xA0;&#xA0; at java.lang.Thread.run(Thread.java:619)<br>

Caused by: org.eclipse.birt.core.exception.CoreException: Error evaluating _javascript_ _expression_. Script engine error: ReferenceError: &quot;currentrow&quot; is not defined. (DataSet[Favorite].__bm_FETCH#2)<br>&#xA0;Script source: DataSet[Favorite].__bm_FETCH, line: 1, text:<br>

__bm_FETCH()<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.core.script._javascript_EvalUtil.wrapRhinoException(_javascript_EvalUtil.java:287)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateRawScript(_javascript_EvalUtil.java:102)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateScript(_javascript_EvalUtil.java:134)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:676)<br>&#xA0;&#xA0;&#xA0; ... 47 more<br>

Caused by: org.mozilla._javascript_.EcmaError: ReferenceError: &quot;currentrow&quot; is not defined. (DataSet[Favorite].__bm_FETCH#2)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.constructError(ScriptRuntime.java:3240)<br>

&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.constructError(ScriptRuntime.java:3230)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.notFoundError(ScriptRuntime.java:3303)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1632)<br>

&#xA0;&#xA0;&#xA0; at <a href="http://org.mozilla._javascript_.ScriptRuntime.name">org.mozilla._javascript_.ScriptRuntime.name</a>(ScriptRuntime.java:1571)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c9._c1(DataSet[Favorite].__bm_FETCH:2)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c9.call(DataSet[Favorite].__bm_FETCH)<br>

&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.optimizer.OptRuntime.callName0(OptRuntime.java:105)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c10._c0(DataSet[Favorite].__bm_FETCH:1)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c10.call(DataSet[Favorite].__bm_FETCH)<br>

&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ContextFactory.doTopCall(ContextFactory.java:304)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)<br>&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c10.call(DataSet[Favorite].__bm_FETCH)<br>

&#xA0;&#xA0;&#xA0; at org.mozilla._javascript_.gen.c10.exec(DataSet[Favorite].__bm_FETCH)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.core.script._javascript_EvalUtil.evaluateRawScript(_javascript_EvalUtil.java:95)<br>&#xA0;&#xA0;&#xA0; ... 49 more<br>Jul 1, 2009 6:09:15 AM org.eclipse.birt.report.engine.script.internal.ScriptExecutor addException<br>

WARNING: data.engine.BadFetchScriptReturnType<br>org.eclipse.birt.data.engine.core.DataException: data.engine.BadFetchScriptReturnType<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleFetch(ScriptDataSetScriptExecutor.java:109)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch(ScriptDataSetRuntime.java:102)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.fetch(PreparedScriptDSQuery.java:257)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch(OdiAdapter.java:150)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.RowResultSet.next(RowResultSet.java:91)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.ExpandableRowResultSet.next(ExpandableRowResultSet.java:62)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.populateData(SmartCacheHelper.java:288)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.initInstance(SmartCacheHelper.java:261)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.getResultSetCache(SmartCacheHelper.java:224)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.cache.SmartCache.&lt;init&gt;(SmartCache.java:68)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.populateOdiResultSet(PassUtil.java:108)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.pass(PassUtil.java:61)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.doSinglePass(PassManager.java:185)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.pass(PassManager.java:90)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.pass.PassManager.populateResultSet(PassManager.java:72)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.ResultSetPopulator.populateResultSet(ResultSetPopulator.java:208)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.transform.CachedResultSet.&lt;init&gt;(CachedResultSet.java:132)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.executor.CandidateQuery.execute(CandidateQuery.java:106)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:767)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:217)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:157)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.QueryResultSet.&lt;init&gt;(QueryResultSet.java:83)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:155)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:111)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:182)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1683)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:76)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:61)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:45)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:42)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:63)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:85)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:106)<br>

&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:189)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:224)<br>&#xA0;&#xA0;&#xA0; at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:89)<br>

&#xA0;&#xA0;&#xA0; at awsdw.velocity.model.ReportWorker.generateDocument(ReportWorker.java:310)<br>&#xA0;&#xA0;&#xA0; at awsdw.velocity.model.ReportWorker.renderDocumentFile(ReportWorker.java:236)<br>&#xA0;&#xA0;&#xA0; at awsdw.velocity.model.ReportWorker.run(ReportWorker.java:139)<br>

&#xA0;&#xA0;&#xA0; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)<br>&#xA0;&#xA0;&#xA0; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)<br>&#xA0;&#xA0;&#xA0; at java.lang.Thread.run(Thread.java:619)<br>

Jul 1, 2009 6:09:15 AM org.eclipse.birt.data.engine.impl.DataEngineImpl shutdown<br>INFO: Data engine shuts down<br>
]]></content:encoded>
		<pubDate>Wed, 01 Jul 2009 13:24:31 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00232.html</guid>
		<author>shivam.agarwal2010@xxxxxxx (Shivam)</author>
	</item>


	<item>
		<title>RE: [birt-report-designer-dev] Reg. Two Sql connection for	scripteddata source and sql connection termination</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00231.html</link>
		<description> Hi, Shivam   Please post your question in the birt news group at Eclipse or at http://www.birt-exchange.org/forum/ .   This mailing list is for discussion of  development of the BIRT project.   Br,   wenfeng   From: birt-report-designer-dev-bounces@xxxxxx...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } ">





<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Hi, Shivam<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Please post your
question in the birt news group at Eclipse or at <a
href="http://www.birt-exchange.org/forum/">http://www.birt-exchange.org/forum/</a>
. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>This mailing list
is for discussion of &nbsp;development of the BIRT project.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>Br,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'>wenfeng<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:blue'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> birt-report-designer-dev-bounces@xxxxxxxxxxx
[mailto:birt-report-designer-dev-bounces@xxxxxxxxxxx] <b>On Behalf Of </b>Shivam<br>
<b>Sent:</b> Wednesday, June 24, 2009 6:26 AM<br>
<b>To:</b> birt-report-designer-dev@xxxxxxxxxxx<br>
<b>Subject:</b> [birt-report-designer-dev] Reg. Two Sql connection for
scripteddata source and sql connection termination<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hi,<br>
I am using BIRT 2.2.0 .<br>
I have created a class that access mysql database and returns some data. <br>
This class I am using for a scripted data source. <br>
Now the problem that I am facing are :<br>
<br>
1. For every creation of report , two database connection are made to the
database. I am not able to figure out why ? <br>
2. After the report is rendered , those connection do not terminate and
continue indefinitely and are closed only after I close eclipse. Thus connections
keep on gathering&nbsp; and after sometime databases server crashes. <br>
<br>
I guess their is no error with the class file. <br>
Evern so it is as follows <br>
<br>
<br>
<br>
package BIRT;<br>
import java.sql.Connection;<br>
import java.sql.DriverManager;<br>
import java.sql.ResultSet;<br>
import java.sql.SQLException;<br>
import java.sql.Statement;<br>
import java.util.ArrayList;<br>
import java.util.List;<br>
<br>
public class Mysqlclass {<br>
&nbsp;&nbsp;&nbsp; public&nbsp; List&lt;String[]&gt; data() {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Connection con = null;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ArrayList &lt;String[]&gt; result = new
ArrayList &lt;String[]&gt;();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; try {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
Class.forName(&quot;com.mysql.jdbc.Driver&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; String url =
"">
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Get a connection to
the database for a<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // user named auser
with the password<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // drowssap, which is
password spelled<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // backwards.<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; con =
DriverManager.getConnection(url, &quot;root&quot;,&quot;password&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Statement st =
con.createStatement();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ResultSet rs =
st.executeQuery(&quot;select UserLogin,StatType from table&quot;);<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; while(rs.next())<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
String[]&nbsp; result1 = {&quot;&quot;,&quot;&quot;};<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
result1[0]= rs.getString(&quot;UserLogin&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
result1[1]=rs.getString(&quot;StatType&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
result.add(result1);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } catch (Exception e) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; e.printStackTrace();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
System.out.println(&quot;Exception: &quot; + e.getMessage());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } finally {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; try {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if
(con != null)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; con.close();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } catch (SQLException
e) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
System.out.println(&quot;Error with closing the collection&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return result;<br>
&nbsp;&nbsp;&nbsp; }<br>
}<br>
<br>
Any help will be greatly appreciated. <br>
<br clear=all>
Regards,<br>
Shivam Agarwal<o:p></o:p></p>

</div>




</td></tr></table>]]></content:encoded>
		<pubDate>Wed, 24 Jun 2009 17:05:43 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00231.html</guid>
		<author>wli@xxxxxxx (Wenfeng Li)</author>
	</item>
	<item>
		<title>[birt-report-designer-dev] Reg. Two Sql connection for scripted	data source and sql connection termination</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00230.html</link>
		<description>Hi,I am using BIRT 2.2.0 .I have created a class that access mysql database and returns some data. This class I am using for a scripted data source. Now the problem that I am facing are :1. For every creation of report , two database connection are made to...</description>
		<content:encoded><![CDATA[Hi,<br>I am using BIRT 2.2.0 .<br>I have created a class that access mysql database and returns some data. <br>This class I am using for a scripted data source. <br>Now the problem that I am facing are :<br><br>1. For every creation of report , two database connection are made to the database. I am not able to figure out why ? <br>

2. After the report is rendered , those connection do not terminate and continue indefinitely and are closed only after I close eclipse. Thus connections keep on gathering&#xA0; and after sometime databases server crashes. <br>

<br>I guess their is no error with the class file. <br>Evern so it is as follows <br><br><br><br>package BIRT;<br>import java.sql.Connection;<br>import java.sql.DriverManager;<br>import java.sql.ResultSet;<br>import java.sql.SQLException;<br>

import java.sql.Statement;<br>import java.util.ArrayList;<br>import java.util.List;<br><br>public class Mysqlclass {<br>&#xA0;&#xA0;&#xA0; public&#xA0; List&lt;String[]&gt; data() {<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; Connection con = null;<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; ArrayList &lt;String[]&gt; result = new ArrayList &lt;String[]&gt;();<br>

&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; try {<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; Class.forName(&quot;com.mysql.jdbc.Driver&quot;);<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; String url = ""><br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; // Get a connection to the database for a<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; // user named auser with the password<br>

&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; // drowssap, which is password spelled<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; // backwards.<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; con = DriverManager.getConnection(url, &quot;root&quot;,&quot;password&quot;);<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; Statement st = con.createStatement();<br>

&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; ResultSet rs = st.executeQuery(&quot;select UserLogin,StatType from table&quot;);<br><br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; while(rs.next())<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; {<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; String[]&#xA0; result1 = {&quot;&quot;,&quot;&quot;};<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; result1[0]= rs.getString(&quot;UserLogin&quot;);<br>

&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; result1[1]=rs.getString(&quot;StatType&quot;);<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; result.add(result1);<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; }<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; } catch (Exception e) {<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; e.printStackTrace();<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; System.out.println(&quot;Exception: &quot; + e.getMessage());<br>

&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; } finally {<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; try {<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; if (con != null)<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; con.close();<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; } catch (SQLException e) {<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; System.out.println(&quot;Error with closing the collection&quot;);<br>

&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; }<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; }<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; return result;<br>&#xA0;&#xA0;&#xA0; }<br>}<br><br>Any help will be greatly appreciated. <br><br clear="all">Regards,<br>Shivam Agarwal<br>
]]></content:encoded>
		<pubDate>Wed, 24 Jun 2009 13:26:23 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00230.html</guid>
		<author>shivam.agarwal2010@xxxxxxx (Shivam)</author>
	</item>


	<item>
		<title>[birt-report-designer-dev] Re: Reg. Scripted Data Source ClassPath</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00229.html</link>
		<description> &amp;#xA0; &amp;#xA0; I included the java project in the same directory as of the report project and it started working. &amp;#xA0;&amp;#xA0;&amp;#xA0; &amp;#xA0;Thanks.&amp;#xA0;&amp;#xA0;&amp;#xA0; Shivam </description>
		<content:encoded><![CDATA[<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Florian , <br>Yes already checked that.However , I have got a little of success the other way.&#xA0;</blockquote>

<div>&#xA0; &#xA0; I included the java project in the same directory as of the report project and it started working.<br></div>
<div>&#xA0;&#xA0;&#xA0; <br></div><div>&#xA0;Thanks.<font color="#888888"><br>&#xA0;&#xA0;&#xA0; Shivam<br>
</font></div></div><br>
]]></content:encoded>
		<pubDate>Wed, 10 Jun 2009 10:04:03 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00229.html</guid>
		<author>shivam.agarwal2010@xxxxxxx (Shivam)</author>
	</item>
	<item>
		<title>Re: [birt-report-designer-dev] Re: Reg. Scripted Data Source 	ClassPath</title>
		<link>http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00228.html</link>
		<description>Ok I think I see the problem.Have you modified your script like this :favoritesClass = new Packages.Test.SimpleClass();favorites = favoritesClass.readData();totalrows = favorites.size();currentrow = 0; Instead of :favoritesClass = new Packages.SimpleClass(...</description>
		<content:encoded><![CDATA[Ok I think I see the problem.<br>Have you modified your script like this :<br><br>favoritesClass = new Packages.Test.SimpleClass();<br>favorites = favoritesClass.readData();<br>totalrows = favorites.size();<br>currentrow = 0;<br>
<br>Instead of :<br>favoritesClass = new Packages.SimpleClass();<br>
favorites = favoritesClass.readData();<br>
totalrows = favorites.size();<br>
currentrow = 0;<br><br><br><div class="gmail_quote">2009/6/10 Shivam <span dir="ltr">&lt;<a href="mailto:shivam.agarwal2010@xxxxxxxxx">shivam.agarwal2010@xxxxxxxxx</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Florian , <br>Yes I have done that. I even tried using without a package , I mean directly using the SimpleClass , but no luck. <br>Any more ideas ? <br><br>Thanks.<br><font color="#888888">Shivam<br><br><br>
</font><br>_______________________________________________<br>
birt-report-designer-dev mailing list<br>
<a href="mailto:birt-report-designer-dev@xxxxxxxxxxx">birt-report-designer-dev@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/birt-report-designer-dev</a><br>
<br></blockquote></div><br>
]]></content:encoded>
		<pubDate>Wed, 10 Jun 2009 08:27:41 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/birt-report-designer-dev/msg00228.html</guid>
		<author>florian.cornolle@xxxxxxx (florian cornolle)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
