Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345738 - Create Chart report failed on Unix with Websphere environment but successfully run on Windows
Summary: Create Chart report failed on Unix with Websphere environment but successfull...
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-Chart-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-13 09:49 EDT by James Y. Zhu CLA
Modified: 2011-11-13 20:39 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Y. Zhu CLA 2011-05-13 09:49:34 EDT
Build Identifier: 

First, we deployed the report to Windowns OS by IBM Websphere tool, we can create the chart report. 

Then we move forward it to Unix environment by IBM Websphere, we can not create the chart report. It seems paused at "ChartReportItemImpl validate validating(...)" 
However, if we remove the Chart part from the rptdesign, we still can create the report just without chart.

Any special things happen to Unix environment? Here is the log:
[5/12/11 17:00:13:399 EDT] 0000007c SystemOut O Report design: org.eclipse.birt.report.engine.api.impl.ReportRunnable@7dc27dc2 
[5/12/11 17:00:13:616 EDT] 0000007c I org.eclipse.birt.chart.reportitem.ChartReportItemImpl validate validating(...) 

  then no further process from BIRT engine.

Reproducible: Always
Comment 1 James Y. Zhu CLA 2011-05-13 14:50:08 EDT
Here is the full stack trace:

[5/12/11 16:59:55:502 EDT] 0000007c FontConfigRea I load font config in bundleentry://59.fwk201853960/fontsConfig.xml cost 1331ms 
[5/12/11 16:59:55:526 EDT] 0000007c FontConfigRea I register fonts in g:/windows/fonts cost:0ms 
[5/12/11 16:59:55:539 EDT] 0000007c FontConfigRea I register fonts in /usr/share/fonts/zh_CN/TrueType cost:0ms 
[5/12/11 16:59:55:547 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/zh/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:559 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/zh_HK.BIG5HK/X11/fonts/TT cost:0ms 
[5/12/11 16:59:55:571 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/KOI8-R/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:583 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT cost:0ms 
[5/12/11 16:59:55:591 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/ko/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:611 EDT] 0000007c FontConfigRea I register fonts in /usr/X11R6/lib/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:619 EDT] 0000007c FontConfigRea I register fonts in /usr/X11R6/lib/X11/fonts/OTF cost:0ms 
[5/12/11 16:59:55:627 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/iso_8859_9/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:647 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/zh.GBK/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:655 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/hi_IN.UTF-8/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:671 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/euro_fonts/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:683 EDT] 0000007c FontConfigRea I register fonts in /usr/X/lib/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:691 EDT] 0000007c FontConfigRea I register fonts in /usr/share/fonts/zh_TW/TrueType cost:0ms 
[5/12/11 16:59:55:707 EDT] 0000007c FontConfigRea I register fonts in /usr/share/fonts/ja/TrueType cost:0ms 
[5/12/11 16:59:55:719 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:735 EDT] 0000007c FontConfigRea I register fonts in /usr/share/fonts/default/TrueType cost:0ms 
[5/12/11 16:59:55:743 EDT] 0000007c FontConfigRea I register fonts in e:/windows/fonts cost:0ms 
[5/12/11 16:59:55:763 EDT] 0000007c FontConfigRea I register fonts in /usr/share/fonts/ko/TrueType cost:0ms 
[5/12/11 16:59:55:771 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:779 EDT] 0000007c FontConfigRea I register fonts in d:/WINNT/fonts cost:0ms 
[5/12/11 16:59:55:799 EDT] 0000007c FontConfigRea I register fonts in f:/windows/fonts cost:0ms 
[5/12/11 16:59:55:807 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:823 EDT] 0000007c FontConfigRea I register fonts in g:/WINNT/fonts cost:0ms 
[5/12/11 16:59:55:835 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/iso_8859_5/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:851 EDT] 0000007c FontConfigRea I register fonts in /usr/share/fonts/truetype cost:0ms 
[5/12/11 16:59:55:859 EDT] 0000007c FontConfigRea I register fonts in f:/WINNT/fonts cost:0ms 
[5/12/11 16:59:55:871 EDT] 0000007c FontConfigRea I register fonts in /usr/X11R6/lib/X11/fonts/TTF cost:0ms 
[5/12/11 16:59:55:887 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:895 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/iso_8859_7/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:915 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/th_TH/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:923 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/iso_8859_8/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:931 EDT] 0000007c FontConfigRea I register fonts in /usr/X11R6/lib/X11/fonts/tt cost:0ms 
[5/12/11 16:59:55:951 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:55:959 EDT] 0000007c FontConfigRea I register fonts in /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType cost:0ms 
[5/12/11 16:59:55:971 EDT] 0000007c FontConfigRea I register fonts in C:/WINNT/fonts cost:0ms 
[5/12/11 16:59:55:983 EDT] 0000007c FontConfigRea I register fonts in e:/WINNT/fonts cost:0ms 
[5/12/11 16:59:55:995 EDT] 0000007c FontConfigRea I register fonts in /usr/X11R6/lib/X11/fonts/truetype cost:0ms 
[5/12/11 16:59:56:003 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/ar/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:56:015 EDT] 0000007c FontConfigRea I register fonts in C:/windows/fonts cost:0ms 
[5/12/11 16:59:56:027 EDT] 0000007c FontConfigRea I register fonts in d:/windows/fonts cost:0ms 
[5/12/11 16:59:56:035 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:56:051 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:56:059 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType cost:0ms 
[5/12/11 16:59:56:067 EDT] 0000007c FontConfigRea I register fonts in /usr/openwin/lib/locale/ja/X11/fonts/TT cost:0ms 
[5/12/11 16:59:56:124 EDT] 0000007c FontConfigRea I load font config in bundleentry://59.fwk201853960/fontsConfig_pdf.xml cost 18ms 
[5/12/11 17:00:05:048 EDT] 0000007c SystemOut O Report design: org.eclipse.birt.report.engine.api.impl.ReportRunnable@4bbe4bbe 
[5/12/11 17:00:09:241 EDT] 0000007c ScriptExecuto W There are errors evaluating script "appContext = reportContext.getAppContext(); 
contextObject = appContext.get("ContextObjectName"); 
dataAccessService = appContext.get("DataAccessServiceName");": 
TypeError: Cannot call method "getAppContext" of null (/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]#1) 
org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "appContext = reportContext.getAppContext(); 
contextObject = appContext.get("ContextObjectName"); 
dataAccessService = appContext.get("DataAccessServiceName");": 
TypeError: Cannot call method "getAppContext" of null (/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]#1) 
at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException(ScriptExecutor.java:158) 
at org.eclipse.birt.report.engine.script.internal.GridScriptExecutor.handleOnCreate(GridScriptExecutor.java:64) 
at org.eclipse.birt.report.engine.script.internal.OnCreateScriptVisitor.visitGridItem(OnCreateScriptVisitor.java:115) 
at org.eclipse.birt.report.engine.ir.GridItemDesign.accept(GridItemDesign.java:142) 
at org.eclipse.birt.report.engine.script.internal.OnCreateScriptVisitor.onCreate(OnCreateScriptVisitor.java:74) 
at org.eclipse.birt.report.engine.executor.ReportItemExecutor.handleOnCreate(ReportItemExecutor.java:855) 
at org.eclipse.birt.report.engine.executor.GridItemExecutor.execute(GridItemExecutor.java:91) 
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43) 
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46) 
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34) 
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65) 
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26) 
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140) 
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111) 
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160) 
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26) 
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140) 
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70) 
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26) 
at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132) 
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140) 
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70) 
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90) 
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:99) 
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:180) 
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77) 
at com.fja.pm.service.print.birt.BIRTReportEngine.generatePDFReport(BIRTReportEngine.java:271) 
at com.fja.pm.service.print.StandardPrintEngineService.generateDoc(Unknown Source) 
at com.fja.frame.quote.pmconnect.LocalTransmitter.performPresentationGeneration(LocalTransmitter.java:155) 
at com.massmutual.si.di.quote.client.panels.PdfViewPanel.render(PdfViewPanel.java:121) 
at innosoft.v1.quote.client.ml.GenericMainPanel.processRequest(Unknown Source) 
at innosoft.v1.quote.client.ml.ClientSession.service(Unknown Source) 
at innosoft.v1.quote.client.ml.QuoteServlet.service(Unknown Source) 
at com.massmutual.si.di.quote.client.DiServlet.service(DiServlet.java:144) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592) 
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525) 
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) 
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:751) 
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) 
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:283) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) 
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) 
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497) 
Caused by: org.eclipse.birt.core.exception.CoreException: There are errors evaluating script "appContext = reportContext.getAppContext(); 
contextObject = appContext.get("ContextObjectName"); 
dataAccessService = appContext.get("DataAccessServiceName");": 
TypeError: Cannot call method "getAppContext" of null (/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]#1) 
at org.eclipse.birt.report.engine.javascript.JavascriptEngine.evaluate(JavascriptEngine.java:287) 
at org.eclipse.birt.core.script.ScriptContext.evaluate(ScriptContext.java:154) 
at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:740) 
at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:669) 
at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.handleScriptInternal(ScriptExecutor.java:61) 
at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.handleScript(ScriptExecutor.java:48) 
at org.eclipse.birt.report.engine.script.internal.GridScriptExecutor.handleOnCreate(GridScriptExecutor.java:56) 
... 49 more 
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getAppContext" of null (/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]#1) 
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654) 
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632) 
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660) 
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3679) 
at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3698) 
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2221) 
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214) 
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:117) 
at org.mozilla.javascript.gen.c15._c0(/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]:1) 
at org.mozilla.javascript.gen.c15.call(/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]) 
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398) 
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) 
at org.mozilla.javascript.gen.c15.call(/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]) 
at org.mozilla.javascript.gen.c15.exec(/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]) 
at org.eclipse.birt.report.engine.javascript.JavascriptEngine.evaluate(JavascriptEngine.java:282) 
... 55 more 

[5/12/11 17:00:09:407 EDT] 0000007c ScriptExecuto W There are errors evaluating script "appContext = reportContext.getAppContext(); 
contextObject = appContext.get("ContextObjectName"); 
dataAccessService = appContext.get("DataAccessServiceName");": 
TypeError: Cannot call method "getAppContext" of null (/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]#1) 
org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "appContext = reportContext.getAppContext(); 
contextObject = appContext.get("ContextObjectName"); 
dataAccessService = appContext.get("DataAccessServiceName");": 
TypeError: Cannot call method "getAppContext" of null (/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]#1) 
at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException(ScriptExecutor.java:158) 
at org.eclipse.birt.report.engine.script.internal.GridScriptExecutor.handleOnCreate(GridScriptExecutor.java:64) 
at org.eclipse.birt.report.engine.script.internal.OnCreateScriptVisitor.visitGridItem(OnCreateScriptVisitor.java:115) 
at org.eclipse.birt.report.engine.ir.GridItemDesign.accept(GridItemDesign.java:142) 
at org.eclipse.birt.report.engine.script.internal.OnCreateScriptVisitor.onCreate(OnCreateScriptVisitor.java:74) 
at org.eclipse.birt.report.engine.executor.ReportItemExecutor.handleOnCreate(ReportItemExecutor.java:855) 
at org.eclipse.birt.report.engine.executor.GridItemExecutor.execute(GridItemExecutor.java:91) 
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43) 
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46) 
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34) 
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65) 
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90) 
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:99) 
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:180) 
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77) 
at com.fja.pm.service.print.birt.BIRTReportEngine.generatePDFReport(BIRTReportEngine.java:271) 
at com.fja.pm.service.print.StandardPrintEngineService.generateDoc(Unknown Source) 
at com.fja.frame.quote.pmconnect.LocalTransmitter.performPresentationGeneration(LocalTransmitter.java:155) 
at com.massmutual.si.di.quote.client.panels.PdfViewPanel.render(PdfViewPanel.java:121) 
at innosoft.v1.quote.client.ml.GenericMainPanel.processRequest(Unknown Source) 
at innosoft.v1.quote.client.ml.ClientSession.service(Unknown Source) 
at innosoft.v1.quote.client.ml.QuoteServlet.service(Unknown Source) 
at com.massmutual.si.di.quote.client.DiServlet.service(DiServlet.java:144) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146) 
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592) 
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525) 
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) 
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:751) 
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478) 
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) 
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:283) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) 
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) 
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) 
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) 
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497) 
Caused by: org.eclipse.birt.core.exception.CoreException: There are errors evaluating script "appContext = reportContext.getAppContext(); 
contextObject = appContext.get("ContextObjectName"); 
dataAccessService = appContext.get("DataAccessServiceName");": 
TypeError: Cannot call method "getAppContext" of null (/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]#1) 
at org.eclipse.birt.report.engine.javascript.JavascriptEngine.evaluate(JavascriptEngine.java:287) 
at org.eclipse.birt.core.script.ScriptContext.evaluate(ScriptContext.java:154) 
at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:740) 
at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:669) 
at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.handleScriptInternal(ScriptExecutor.java:61) 
at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.handleScript(ScriptExecutor.java:48) 
at org.eclipse.birt.report.engine.script.internal.GridScriptExecutor.handleOnCreate(GridScriptExecutor.java:56) 
... 38 more 
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getAppContext" of null (/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]#1) 
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654) 
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632) 
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660) 
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3679) 
at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3698) 
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2221) 
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214) 
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:117) 
at org.mozilla.javascript.gen.c15._c0(/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]:1) 
at org.mozilla.javascript.gen.c15.call(/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]) 
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398) 
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) 
at org.mozilla.javascript.gen.c15.call(/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]) 
at org.mozilla.javascript.gen.c15.exec(/report/body/grid[@id="40"]/row[@id="44"]/cell[@id="46"]/grid[@id="48"]/method[@name="onCreate"]) 
at org.eclipse.birt.report.engine.javascript.JavascriptEngine.evaluate(JavascriptEngine.java:282) 
... 44 more 

[5/12/11 17:00:13:399 EDT] 0000007c SystemOut O Report design: org.eclipse.birt.report.engine.api.impl.ReportRunnable@7dc27dc2 
[5/12/11 17:00:13:616 EDT] 0000007c I org.eclipse.birt.chart.reportitem.ChartReportItemImpl validate validating(...) 
[5/12/11 17:00:16:725 EDT] 00000095 MMLogger E User: [system] App: [com.mm.sidi] 
[5/12/11 17:00:16:746 EDT] 00000095 MMLogger E User: [system] App: [com.mm.sidi] 
[5/12/11 17:00:39:837 EDT] 00000099 ServletWrappe I SRVE0242I: [fileviewer-app] [/fileviewer] [FileViewer]: Initialization successful.
Comment 2 Xiaoying Gu CLA 2011-05-16 04:25:09 EDT
It seems that the error comes out from:
[5/12/11 17:00:09:241 EDT] 0000007c ScriptExecuto W There are errors evaluating
script "appContext = reportContext.getAppContext(); 
...
TypeError: Cannot call method "getAppContext" of null.

Which Unix OS were you using? Do you have such issues on other Linux OS such has redhat?
Comment 3 Xiaoying Gu CLA 2011-05-16 04:26:17 EDT
And could you attach the report design for me to investigate?
Comment 4 James Y. Zhu CLA 2011-05-16 09:47:50 EDT
We have found the problem: a Null Pointer Exception thrown from a NULL log directory (did not set it in a property file). it sounds a JDK1.5 problem for regular expression pattern match (does not allow NULL).

But it appears BIRT chart uses that log directory for somehow.
Comment 5 James Y. Zhu CLA 2011-05-17 11:50:30 EDT
It appears that "ChartReportItemImpl validate validating(...)" is using the log directory? any suggestions?
================================> full stack trace here:
[5/16/11 17:02:41:381 EDT] 0000008e I org.eclipse.birt.chart.reportitem.ChartReportItemImpl validate validating(...) 
[5/16/11 17:02:41:402 EDT] 0000008e SystemOut O Exception in running the report design: java.lang.NullPointerException 
[5/16/11 17:02:41:402 EDT] 0000008e SystemOut O java.lang.NullPointerException 
[5/16/11 17:02:41:403 EDT] 0000008e SystemOut O at java.util.regex.Matcher.getTextLength(Matcher.java:1143) 
[5/16/11 17:02:41:403 EDT] 0000008e SystemOut O at java.util.regex.Matcher.reset(Matcher.java:300) 
[5/16/11 17:02:41:403 EDT] 0000008e SystemOut O at java.util.regex.Matcher.(Matcher.java:221) 
[5/16/11 17:02:41:403 EDT] 0000008e SystemOut O at java.util.regex.Pattern.matcher(Pattern.java:913) 
[5/16/11 17:02:41:403 EDT] 0000008e SystemOut O at com.mmfg.it.iso.webeng.MMLogFilter.evalText(MMLogFilter.java:157) 
[5/16/11 17:02:41:403 EDT] 0000008e SystemOut O at com.mmfg.it.iso.webeng.MMLogFilter.checkLoggerName(MMLogFilter.java:138) 
[5/16/11 17:02:41:403 EDT] 0000008e SystemOut O at com.mmfg.it.iso.webeng.MMLogFilter.isLoggable(MMLogFilter.java:105) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at java.util.logging.Handler.isLoggable(Handler.java:284) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at com.mmfg.it.iso.webeng.MMLogHandler.publish(MMLogHandler.java:216) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at java.util.logging.Logger.log(Logger.java:471) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at com.ibm.ws.logging.WsLogger.deliverOrBuffer(WsLogger.java:265) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at com.ibm.ws.logging.WsLogger.log(WsLogger.java:242) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at org.eclipse.birt.chart.internal.log.JavaUtilLoggerImpl.log(JavaUtilLoggerImpl.java:122) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at org.eclipse.birt.chart.reportitem.ChartReportItemImpl.validate(ChartReportItemImpl.java:775) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.api.validators.ExtensionValidator.doValidate(ExtensionValidator.java:142) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.api.validators.ExtensionValidator.validate(ExtensionValidator.java:81) 
[5/16/11 17:02:41:404 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.validators.ValidationNode.perform(ValidationNode.java:133) 
[5/16/11 17:02:41:405 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.validators.ValidationExecutor.perform(ValidationExecutor.java:79) 
[5/16/11 17:02:41:405 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2121) 
[5/16/11 17:02:41:405 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2130) 
[5/16/11 17:02:41:405 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2130) 
[5/16/11 17:02:41:405 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2130) 
[5/16/11 17:02:41:405 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2130) 
[5/16/11 17:02:41:405 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2130) 
[5/16/11 17:02:41:405 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2130) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2130) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.Module.semanticCheck(Module.java:1168) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.LayoutModuleImpl.semanticCheck(LayoutModuleImpl.java:301) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.core.LayoutModuleImpl.doClone(LayoutModuleImpl.java:1071) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.elements.ReportDesignImpl.doClone(ReportDesignImpl.java:309) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.model.api.ModuleHandle.copy(ModuleHandle.java:3050) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.engine.api.impl.ReportRunnable.cloneRunnable(ReportRunnable.java:132) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.engine.api.impl.EngineTask.prepareDesign(EngineTask.java:1743) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:99) 
[5/16/11 17:02:41:406 EDT] 0000008e SystemOut O at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
Comment 6 Maggie Shen CLA 2011-11-11 04:28:13 EST
please attached your report. It seems you have some script on your chart. Thanks.
Comment 7 James Y. Zhu CLA 2011-11-11 09:43:40 EST
it looks that we have resolved this issue long time ago. you may change the status to "RESOLVED".
Comment 8 Maggie Shen CLA 2011-11-13 20:37:49 EST
(In reply to comment #7)
> it looks that we have resolved this issue long time ago. you may change the
> status to "RESOLVED".

Thanks
Comment 9 Xiaoying Gu CLA 2011-11-13 20:39:10 EST
close