[JBoss Tools Users] - birt - Seam component always null with birt embed
by gonzalad
Hello,
I'm using a Seam component in birt report (from a scripted datasource).
When I try to access a Seam Component from a birt report and when I use embed mode(designType="embed"), Seam component is always null.
When I use designType="run", everything works fine.
I don't understand why.
It appears to me to have a relation with UIDocument's logic when we call JBossBirtServlet with an URLConnection :
URL birtURL = new URL(urlString);
| URLConnection connection = birtURL.openConnection();
| InputStream stream = connection.getInputStream();
|
When I change this code from UIDocument code to use requestDispatcher.include, it works fine.
Should I open a JIRA issue (with test case) ?
Thanks for your help !
My jsf page output :
The following items have errors:
|
| ReportDesign (id = 1):
| + There are errors evaluating script "importPackage(Packages.org.jboss.seam);
| importPackage(Packages.org.apache.log4j);
| sampleReportList = Component.getInstance("sampleReportList", false);
| logger = Logger.getLogger("com.natixis.birt");
| logger.warn("sampleReportList = "+sampleReportList);
| reportsIterator = sampleReportList.getNames().iterator();
| ":
| {1}.
|
| Error.ScriptEvaluationError ( 1 time(s) )detail : org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "importPackage(Packages.org.jboss.seam);importPackage(Packages.org.apache.log4j);
| sampleReportList = Component.getInstance("sampleReportList", false);
| logger = Logger.getLogger("com.natixis.birt");
| logger.warn("sampleReportList = "+sampleReportList);
| reportsIterator = sampleReportList.getNames().iterator();":{1}.
| at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:77)
| ...
| Caused by: org.eclipse.birt.data.engine.core.DataException: A BIRT exception occurred: There are errors evaluating script "__bm_OPEN()":TypeError: Cannot call method "getNames" of null (<inline>#7). See next exception for more information.There are errors evaluating script "__bm_OPEN()":TypeError: Cannot call method "getNames" of null (<inline>#7) at org.eclipse.birt.data.engine.core.DataException.wrap(DataException.java:118)
| TypeError: Cannot call method "getNames" of null (<inline>#7) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3557)
| ...
| + There are errors evaluating script "if( !( reportsIterator.hasNext()) ){
| return( false );
| }
| var report = reportsIterator.next();
| row["Name"] = report;
| return ( true );":
| {1}.
|
| Error.ScriptEvaluationError ( 1 time(s) )detail : org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "if( !( reportsIterator.hasNext()) ){ return( false );}var report = reportsIterator.next();row["Name"] = report;return ( true );":{1}. at ...
| org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(Dtorg.eclipse.birt.data.engine.core.DataException: A BIRT exception occurred: There are errors evaluating script "__bm_FETCH()":ReferenceError: "reportsIterator" n'est pas dÃÂÃÂÃÂÃÂÃÂÃÂÃÂéfini (<inline>#2). See next exception for more information.There are errors evaluating script "__bm_FETCH()":ReferenceError: "reportsIterator" n'est pas defini (<inline>#2) at org.eclipse.birt.data.engine.core.DataException.wrap(DataException.java:118) at
| ...
| + data.engine.BadFetchScriptReturnType
|
My sysout :
17:10:52,979 WARN [birt] sampleReportList = null
| 17:10:53,042 ERROR [STDERR] 22 sept. 2009 17:10:53 org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor handleJS
| ATTENTION: A BIRT exception occurred: There are errors evaluating script "__bm_OPEN()":
| TypeError: Cannot call method "getNames" of null (<inline>#7). See next exception for more information.
| There are errors evaluating script "__bm_OPEN()":
| TypeError: Cannot call method "getNames" of null (<inline>#7)
| org.eclipse.birt.data.engine.core.DataException: A BIRT exception occurred: There are errors evaluating script "__bm_OPEN()":
| TypeError: Cannot call method "getNames" of null (<inline>#7). See next exception for more information.
| There are errors evaluating script "__bm_OPEN()":
| TypeError: Cannot call method "getNames" of null (<inline>#7)
| at org.eclipse.birt.data.engine.core.DataException.wrap(DataException.java:118)
| at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:717)
| at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:76)
|
And the open method from my scripted datasource :
| importPackage(Packages.org.jboss.seam);
| importPackage(Packages.org.apache.log4j);
| sampleReportList = Component.getInstance("sampleReportList", false);
| logger = Logger.getLogger("com.natixis.birt");
| logger.warn("sampleReportList = "+sampleReportList);
| reportsIterator = sampleReportList.getNames().iterator();
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256453#4256453
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256453
16 years, 7 months
[EJB] - AS400 System -> JBoss -4.0.3-> EJB + MQ Connectivity
by chetan_aggarwal_in
Hi
I am facing following problem. Please help
We have AS400 Systems on which we have deployed JBoss-4.0.3 servers. We have a EJB 2.0 Stateless session bean deployed. StatelessSessionBean gets Websphere MQ Connection as resource reference.
Now at one point of time on server startup, we have 25 session beans in session pool and corresponding 25 MQ connections are open.
Due to network glitch, MQ connectivitiy is lost or MQ server goes down and comes back on. But it leaves session bean's MQ Connections as stale connections. From that point onwards, none of stateless session bean is able to send messages using MQ connections unless we restart whole jboss server.
We have constrained on restarting JBoss servers on AS400 systems.
Is there a better auto-recovery option available? Please suggest ways to recover EJBs from MQ glitch without restarting whole jboss servers.
Thanks and Regards
Chetan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256444#4256444
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256444
16 years, 7 months
[jBPM Users] - jBPM 4.1 - sub tasks
by Thomas.Kriechbaum
We have been experimenting with sub tasks for a while (parent child relation is set up within a custom activity).
What is the planned/expected behavior of certain lifecycle events (e.g. complete parent task)?
Currently, the CompleteTaskCmd firstly calls task.complete (in this case, a history event for this task is fired too). Afterwards, the task is deleted using the DB session (according to the hibernate mapping, all sub tasks are deleted too; cascade="all-delete-orphan").
What is the recommend way to extend this behavior (e.g. fire history events for all sub tasks)? One solution might be to implement a custom command (requires to implement a custom TaskServiceImpl as well).
Thanks,
Thomas
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256433#4256433
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256433
16 years, 7 months