Jump to content
Changes to the Jaspersoft community edition download ×

IReport5.0


2005 IR Help

Recommended Posts

By: Dennis - dennis_harsono

IReport5.0

2005-08-05 02:16

hi all, i got the problem with my report using ireport5.0.0,

when i want to create the image chart, like pie chart, i can't print the image.

 

it's work with the ireport4.0.0. but when i tranfer it to i report 5.0 when i create the chart

"using ireport internal support"

 

then i compile it,

the error shows:

Compiling file... C:ReportsTestCentre_IReport22NJasper05PieChartPortfolioSummaryPieChartPortfolio.xmScriptlet.java -> C:ReportsTestCentre_IReport22NJasper05PieChartPortfolioSummaryPieChartPortfolioScriptlet.java Error compiling the Scriptlet java source! java.lang.ClassNotFoundException: com.sun.tools.javac.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:217) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:77) at net.sf.jasperreports.engine.design.JRJdk13Compiler.compileClass(JRJdk13Compiler.java:67) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:257) at java.lang.Thread.run(Thread.java:536) NESTED BY : net.sf.jasperreports.engine.JRException: Error compiling report java source file : C:ReportsTestCentre_IReport22NJasper05PieChartPortfolioSummaryPieChartPortfolioScriptlet.java at net.sf.jasperreports.engine.design.JRJdk13Compiler.compileClass(JRJdk13Compiler.java:80) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:257) at java.lang.Thread.run(Thread.java:536) Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:217) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:77) at net.sf.jasperreports.engine.design.JRJdk13Compiler.compileClass(JRJdk13Compiler.java:67) ... 2 more Compilation running time : 80

 

 

 

if i'm not using the scriplet then, the error goes to the java, when they produce the report

 

the error in java:

 

here is the stack trace:

 

Error:net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : image_1

Source text : (java.awt.Image)it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(new String[]{"chartName=Pie","titlePosition=1","width=200","plotBackground=[255,255,255]","serie1=SERIE_ESTIMATE_PORTFOLIO","serie0=SERIE_PORTFOLIO","chartBackground=[255,255,255]","tooltips=false","title=","subtitle=","legend=false","quality=2","height=200","antialias=true"}, (it.businesslogic.ireport.IReportScriptlet)$P{REPORT_SCRIPTLET})

2005-08-05 18:11:52,987 INFO [sTDOUT] =============================================M1=================>

2005-08-05 18:11:52,987 ERROR [org.jboss.web.localhost.Engine] ApplicationDispatcher[] Servlet.service() for servlet TPDReportServlet threw exception

java.lang.IllegalStateException: getOutputStream() has already been called for this response

at org.apache.coyote.tomcat4.CoyoteResponse.getWriter(CoyoteResponse.java:614)

at org.apache.coyote.tomcat4.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:173)

at au.com.cybernetics.thinkplando.reports.TPDReportServlet.performTask(TPDReportServlet.java:247)

at au.com.cybernetics.thinkplando.reports.TPDReportServlet.doPost(TPDReportServlet.java:76)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)

at au.com.cybernetics.thinkplando.servlets.TpdServlet.performClientRequest(TpdServlet.java:816)

at au.com.cybernetics.thinkplando.servlets.TpdServlet.performClientInputParsing(TpdServlet.java:654)

at au.com.cybernetics.thinkplando.servlets.TpdServlet.performTask(TpdServlet.java:207)

at au.com.cybernetics.thinkplando.servlets.TpdServlet.doPost(TpdServlet.java:62)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)

at java.lang.Thread.run(Thread.java:536)

 

 

 

 

 

is any body knows how to solve this problem?

 

or any body knows how to produce the chart from ireport5.0.0?

 

thanks

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...