Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
ReportEngine API html preview throwing EngineException
legolas
I am facing an issue while trying to generate a birt report in html format.<br />
<br />
The rpt works fine on my local (rpt designer) and using a direct link to rpt on my application(running on weblogic).<br />
The rpt also works fine when i try to generate the report in pdf format in all 3 ways (local rpt designer, direct link of the rpt running on my application, invoking the BIRT ENGINE API by using PDFRenderOption).<br />
<br />
but when i try to generate the report using the BIRT ENGINE API, the table part of the report comes up fine but the charts show up as empty. Is there something that i am missing ? <br />
<br />
The following is the error information<br />
<em class='bbc'><br />
org.eclipse.birt.report.engine.api.EngineException: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl cannot be cast to javax.xml.transform.TransformerFactory<br />
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1166)<br />
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.processExtendedContent(LocalizedContentVisitor.java:990)<br />
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.visitForeign(LocalizedContentVisitor.java:556)<br />
at org.eclipse.birt.report.engine.content.impl.ForeignContent.accept(ForeignContent.java:71)<br />
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localize(LocalizedContentVisitor.java:154)<br />
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:37)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:64)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:106)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:155)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:69)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:112)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:69)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:106)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:155)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:69)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:67)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:69)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLGroupLM.layoutChildren(HTMLGroupLM.java:117)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:69)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:112)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:69)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:106)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:155)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:69)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:112)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:135)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:69)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90)<br />
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:99)<br />
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:167)<br />
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:75)<br />
at com.ge.med.service.eam.reportframework.birt.BirtManager.generateHTML(BirtManager.java:113)<br />
at com.ge.med.service.lightipm.action.GroupsAction.getMIPMDetailedReport(GroupsAction.java:690)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
at java.lang.reflect.Method.invoke(Method.java:597)<br />
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)<br />
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)<br />
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)<br />
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)<br />
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)<br />
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)<br />
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)<br />
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)<br />
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)<br />
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)<br />
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)<br />
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)<br />
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)<br />
at com.ge.med.service.eam.commons.SecurityFilter.doFilter(SecurityFilter.java:244)<br />
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)<br />
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)<br />
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)<br />
at weblogic.security.service.SecurityManager.runAs(Unknown Source)<br />
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)<br />
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)<br />
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)<br />
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)<br />
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)<br />
Caused by: org.eclipse.birt.chart.exception.ChartException: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl cannot be cast to javax.xml.transform.TransformerFactory<br />
at org.eclipse.birt.chart.device.svg.SVGRendererImpl.after(SVGRendererImpl.java:247)<br />
at org.eclipse.birt.chart.factory.Generator.render(Generator.java:1277)<br />
at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.renderToImageFile(ChartReportItemPresentationBase.java:926)<br />
at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.onRowSets(ChartReportItemPresentationBase.java:761)<br />
at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationProxy.onRowSets(ChartReportItemPresentationProxy.java:116)<br />
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.processExtendedContent(LocalizedContentVisitor.java:966)<br />
... 79 more<br />
Caused by: java.lang.ClassCastException: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl cannot be cast to javax.xml.transform.TransformerFactory<br />
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)<br />
at org.eclipse.birt.chart.util.SecurityUtil$27.run(SecurityUtil.java:894)<br />
at org.eclipse.birt.chart.util.SecurityUtil$27.run(SecurityUtil.java:1)<br />
at java.security.AccessController.doPrivileged(Native Method)<br />
at org.eclipse.birt.chart.util.SecurityUtil.newTransformerFactory(SecurityUtil.java:888)<br />
at org.eclipse.birt.chart.device.svg.SVGRendererImpl.writeDocumentToOutputStream(SVGRendererImpl.java:306)<br />
at org.eclipse.birt.chart.device.svg.SVGRendererImpl.after(SVGRendererImpl.java:242)<br />
... 84 more<br />
</em>
Find more posts tagged with
Comments
JasonW
When using the engine what jars do you have in the classpath?
Jason
legolas
The following are the jars present in the classpath. Some of them are required by our application which are completely unrelated to report generation.<br />
<em class='bbc'><br />
activation-1.0.2.jar<br />
axis-ant.jar<br />
axis-schema.jar<br />
axis.jar<br />
chartengineapi.jar<br />
com.ibm.icu_4.0.1.v20090415.jar<br />
commons-beanutils-1.7.0.jar<br />
commons-cli-1.0.jar<br />
commons-codec-1.3.jar<br />
commons-collections-3.1.jar<br />
commons-digester-1.8.jar<br />
commons-discovery-0.2.jar<br />
commons-fileupload-1.1.jar<br />
commons-io-1.2.jar<br />
commons-lang-2.0.jar<br />
commons-logging-1.0.4.jar<br />
commons-logging.jar<br />
commons-validator-1.1.3.jar<br />
coreapi.jar<br />
crosstabcoreapi.jar<br />
dataadapterapi.jar<br />
dataaggregationapi.jar<br />
dataextraction.jar<br />
dteapi.jar<br />
dtpdesign.jar<br />
emitterconfig.jar<br />
engineapi.jar<br />
fileupload-ext.jar<br />
flute.jar<br />
i18n.jar<br />
itext-1.3.jar<br />
iTextAsian.jar<br />
javamail-1.3.1.jar<br />
javax.wsdl_1.5.1.v200806030408.jar<br />
jaxrpc.jar<br />
js.jar<br />
lightclient.5.0.185.19.jar<br />
log4j-1.2.8.jar<br />
mail.jar<br />
modelapi.jar<br />
modelodaapi.jar<br />
odadesignapi.jar<br />
ojdbc14.jar<br />
org.apache.commons.codec_1.3.0.v20080530-1600.jar<br />
org.eclipse.birt.chart.cshelp_2.5.0.v20090617.jar<br />
org.eclipse.birt.chart.device.extension_2.5.0.v20090514.jar<br />
org.eclipse.birt.chart.device.pdf_2.5.0.v20090326.jar<br />
org.eclipse.birt.chart.device.svg_2.5.0.v20090423.jar<br />
org.eclipse.birt.chart.device.swt_2.5.0.v20090514.jar<br />
org.eclipse.birt.chart.engine_2.5.0.v20090604.jar<br />
org.eclipse.birt.chart.engine.extension_2.5.0.v20090527.jar<br />
org.eclipse.birt.chart.reportitem_2.5.0.v20090514.jar<br />
org.eclipse.birt.chart.reportitem.ui_2.5.0.v20090531.jar<br />
org.eclipse.birt.chart.ui_2.5.0.v20090604.jar<br />
org.eclipse.birt.chart.ui.extension_2.5.0.v20090604.jar<br />
org.eclipse.emf.common_2.5.0.v200906080927.jar<br />
org.eclipse.emf.ecore_2.5.0.v200906080927.jar<br />
org.eclipse.emf.ecore.xmi_2.5.0.v200906080927.jar<br />
org.w3c.css.sac_1.3.0.v200805290154.jar<br />
poi-3.0.2-FINAL-20080204.jar<br />
saaj.jar<br />
sac.jar<br />
scriptapi.jar<br />
struts-1.2.7.jar<br />
viewservlets.jar<br />
wsdl4j-1.5.1.jar<br />
xercesImpl.jar<br />
xml-apis.jar<br />
xmlparserv2.jar<br />
bash-3.00$<br />
</em>
JasonW
Can you try with just the jars in the birt runtime download/reportengine/lib directory? note that you will also need the plugins in the birt home but they should not be in the classpath.
Jason