[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-charting-dev] can't display Chart in tomcat/webviewersample

Hi, 

I am using Tomcat/JDK 1.5 and so far have been able to work fine with tables etc, however when it comes to chart, it is not displaying and the stack trace error is in below, can you help?  Thanks in advance!

Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.eclips
e.birt.chart.device.image.PngRendererImpl
        at sun.reflect.GeneratedConstructorAccessor26.newInstance(Unknown Source
)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createEx
ecutableExtension(RegistryStrategyOSGI.java:184)
        ... 68 more
Feb 5, 2011 11:52:25 AM org.eclipse.birt.report.data.oda.jdbc.Connection close
WARNING: JDBC connection: com.mysql.jdbc.JDBC4Connection@6982237d is closed
Feb 5, 2011 11:52:39 AM org.eclipse.birt.report.data.oda.jdbc.Connection open
WARNING: JDBC connection: com.mysql.jdbc.JDBC4Connection@7ec4f67b is opened
Feb 5, 2011 11:52:40 AM org.eclipse.birt.report.engine.presentation.LocalizedCon
tentVisitor processExtendedContent
SEVERE: CREATE_EXTENSION_FAIL
org.eclipse.birt.chart.exception.ChartException: CREATE_EXTENSION_FAIL
        at org.eclipse.birt.chart.util.PluginSettings.getPluginXmlObject(PluginS
ettings.java:1257)
        at org.eclipse.birt.chart.util.PluginSettings.getDevice(PluginSettings.j
ava:633)
        at org.eclipse.birt.chart.api.ChartEngine.getRenderer(ChartEngine.java:1
19)
        at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.pre
pareDeviceRenderer(ChartReportItemPresentationBase.java:1096)
        at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.gen
erateRenderObject(ChartReportItemPresentationBase.java:853)
        at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.onR
owSets(ChartReportItemPresentationBase.java:819)
        at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationProxy.on
RowSets(ChartReportItemPresentationProxy.java:108)
        at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.p
rocessExtendedContent(LocalizedContentVisitor.java:1023)
        at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.l
ocalizeForeign(LocalizedContentVisitor.java:579)
        at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.l
ocalize(LocalizedContentVisitor.java:163)
        at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReport
ItemExecutor.execute(LocalizedReportItemExecutor.java:37)
        at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layout
Nodes(HTMLBlockStackingLM.java:65)
        at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPage
LM.java:90)
        at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.lay
out(HTMLReportLayoutEngine.java:99)
        at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAnd
RenderTask.java:180)
        at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe
nderTask.java:77)
        at org.eclipse.birt.report.service.ReportEngineService.runAndRenderRepor
t(ReportEngineService.java:920)
        at org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderR
eport(BirtViewerReportService.java:973)
        at org.eclipse.birt.report.service.actionhandler.BirtGetPageAllActionHan
dler.__execute(BirtGetPageAllActionHandler.java:131)
        at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandl
er.execute(AbstractBaseActionHandler.java:90)
        at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProc
essor.__executeAction(AbstractBaseDocumentProcessor.java:47)
        at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentPro
cessor.executeAction(AbstractBaseComponentProcessor.java:143)
        at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.ha
ndleGetPageAll(BirtDocumentProcessor.java:183)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentPro
cessor.process(AbstractBaseComponentProcessor.java:112)
        at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUp
datedObjects(BirtSoapBindingImpl.java:66)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.j
ava:397)
        at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider
.java:186)
        at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:
323)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454
)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:69
9)
        at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPo
st(BirtSoapMessageDispatcherServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
e.java:327)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.serv
ice(BirtSoapMessageDispatcherServlet.java:122)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.jav
a:68)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:174)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:879)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:689)
        at java.lang.Thread.run(Thread.java:636)
Caused by: org.eclipse.birt.core.framework.FrameworkException: CREATE_EXTENSION_
FAIL
        at org.eclipse.birt.core.framework.eclipse.EclipseConfigurationElement.c
reateExecutableExtension(EclipseConfigurationElement.java:39)
        at org.eclipse.birt.chart.util.PluginSettings.getPluginXmlObject(PluginS
ettings.java:1253)
        ... 63 more
Caused by: org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.birt.cha
rt.device.extension" was unable to instantiate class "org.eclipse.birt.chart.dev
ice.image.PngRendererImpl".
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwExc
eption(RegistryStrategyOSGI.java:194)
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createEx
ecutableExtension(RegistryStrategyOSGI.java:188)
        at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutable
Extension(ExtensionRegistry.java:904)
        at org.eclipse.core.internal.registry.ConfigurationElement.createExecuta
bleExtension(ConfigurationElement.java:243)
        at org.eclipse.core.internal.registry.ConfigurationElementHandle.createE
xecutableExtension(ConfigurationElementHandle.java:55)
        at org.eclipse.birt.core.framework.eclipse.EclipseConfigurationElement.c
reateExecutableExtension(EclipseConfigurationElement.java:35)
        ... 64 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.eclips
e.birt.chart.device.image.PngRendererImpl
        at sun.reflect.GeneratedConstructorAccessor26.newInstance(Unknown Source
)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createEx
ecutableExtension(RegistryStrategyOSGI.java:184)
        ... 68 more