Calender Report using IReport
Hi Friends,
Please suggest me in doing the following requirement using IReport.
I would like to generate a calender display report through IReport tool.
Please help me on this.
Cheers,
Hi,
Did you seen this post: Re: Jasper reports and adf view
It's based on ADFBC but the use of a datasource can probably be reproduced using EJB.
In your case, what it seems strange to me is that you said your EJB contains the data you want to print?
May be posting a part of your .jrxml could help us to understand what you are doing wrong.
Good luck,
Regards,
Tif
Similar Messages
-
Creating a Calender report in iReport/Jasper
I've searched the forum and see several threads about creating a calendar report using jasper/iReport but no samples or hints or best way to accomplish it.
Does anyone have a sample or an idea for the best approach or point me in the right direction?Hi,
There really isn't any problem with creating reports directly on production. It is often done since development and quality assurance environments often don't have the correct data to really test a query while creating it. It is however a good idea to allways have a copy on dev or qas in case you want to edit the query while it is already in use or just in case someone deletes it by mistake. We often create reports on production and, once finished, transport it to qas for this purpose.
Hope it helps.
Kind regards,
Alex -
Hi,
Below are my project environment:-
JDK 1.3.1
Tomcat 4.1
Jasperreports 0.6.1
iReport 0.5.1
I manage to compile and generate the report in iReport. However when i write these code to export the jrprint temporary file to PDF file, the following error stack is displayed. My suspect is jdk library class imcompatible because I used jdk 1.5 to compile the jasper report while jdk 1.3 to compile my project which is built on top of struts 1.0.2
javax.servlet.ServletException: Error loading object from file : C:\iReport-0.5.1\jasper\monthlyRoomBookingByVenue.jasper
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:507)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:448)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
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.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:2415)
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.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:594)
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:595)
root cause
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10001, local class serialVersionUID = 601
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:129)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:160)
at my.com.cni.mrbs.dao.ReportDAO.genPdfReport(ReportDAO.java:43)
at my.com.cni.mrbs.report.action.ReportingAction.monthlybyvenue(ReportingAction.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at my.com.cni.mrbs.base.BaseAction.execute(BaseAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
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.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:2415)
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.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:594)
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:595)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : C:\iReport-0.5.1\jasper\monthlyRoomBookingByVenue.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:133)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:160)
at my.com.cni.mrbs.dao.ReportDAO.genPdfReport(ReportDAO.java:43)
at my.com.cni.mrbs.report.action.ReportingAction.monthlybyvenue(ReportingAction.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at my.com.cni.mrbs.base.BaseAction.execute(BaseAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
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.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:2415)
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.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:594)
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:595)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10001, local class serialVersionUID = 601
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:129)
... 44 moreHi,
Below are my project environment:-
JDK 1.3.1
Tomcat 4.1
Jasperreports 0.6.1
iReport 0.5.1
I manage to compile and generate the report in iReport. However when i write these code to export the jrprint temporary file to PDF file, the following error stack is displayed. My suspect is jdk library class imcompatible because I used jdk 1.5 to compile the jasper report while jdk 1.3 to compile my project which is built on top of struts 1.0.2
javax.servlet.ServletException: Error loading object from file : C:\iReport-0.5.1\jasper\monthlyRoomBookingByVenue.jasper
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:507)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:448)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
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.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:2415)
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.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:594)
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:595)
root cause
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10001, local class serialVersionUID = 601
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:129)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:160)
at my.com.cni.mrbs.dao.ReportDAO.genPdfReport(ReportDAO.java:43)
at my.com.cni.mrbs.report.action.ReportingAction.monthlybyvenue(ReportingAction.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at my.com.cni.mrbs.base.BaseAction.execute(BaseAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
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.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:2415)
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.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:594)
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:595)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : C:\iReport-0.5.1\jasper\monthlyRoomBookingByVenue.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:133)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:160)
at my.com.cni.mrbs.dao.ReportDAO.genPdfReport(ReportDAO.java:43)
at my.com.cni.mrbs.report.action.ReportingAction.monthlybyvenue(ReportingAction.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at my.com.cni.mrbs.base.BaseAction.execute(BaseAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
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.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:2415)
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.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:594)
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:595)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10001, local class serialVersionUID = 601
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:129)
... 44 more -
Is it possible to create dynamic reports using iReports in netbeans ?
Hi
I want to know that is it possible to create dynamic reports using netbeans? Dynamic reports means based on user selection(for eg. say by selecting values from combo boxes) some query will be genatated and fetch the query result from data base and displayed results in iReports only my problem is i am working on Netbeans IDE and i have installed iReports as plugins in netbeans IDE. and i am not able to find any tutorial that show me how to work with iReports under netbeans IDE. and how to create dynamic reports in iReports. If u know any such tutorial then can you send me link plz...!
ThanksWhat do you mean by "in Start Menu"? Do you mean Live tile? See https://msdn.microsoft.com/en-us/library/windows/apps/hh465403.aspx
https://msdn.microsoft.com/en-us/library/windows/apps/dn468032.aspx
Best Regards,
Please remember to mark the replies as answers if they help -
I have designed a report using IReport tool with some text as BOLD, which generates report in PDF format. when i open the file with Adobe Reader IX it opens perfectly.
but the problem is when i open the same file in mozilla add-on "Adobe Reader 11.0.3.37" and in previous versions it does not displaying the bold fonts.Is there a non-confidential example of this PDF that we could view?
-
JasperReports and creation of reports using JasperReports
Hi all!
I have a problem with developing Java code for printing reports, by using JasperReports tool.
I'm trying to create report by using next peace of code (you can found it also on http://ensode.net/jasperreports_intro.html)
package myReport;
import java.util.HashMap;
import net.sf.jasperreports.engine.JREmptyDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
public class Sample
public static void main(String[] args)
JasperReport jasperReport;
JasperPrint jasperPrint;
try
jasperReport = JasperCompileManager.compileReport("c:\\report_1.jrxml");
jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(), new JREmptyDataSource());
//JasperExportManager.exportReportToPdfFile(jasperPrint, "c:\\simple_report.pdf");
catch (JRException e)
e.printStackTrace();
}I'm getting the following error:
Exception in thread main
java.lang.NoClassDefFoundError: org.apache.commons.digester.SetNestedPropertiesRule
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142)
at myReport.Sample.main(Sample.java:20)BTW, file report_1.jrxml I created using iReport.
Can somebody help me how to solve this, and to create my report?
Thank you in advance!
Message was edited by:
proNickhey
my problem is same as yours...
could you please guide me on how u solved it and please also tell me about your jsxml file.. Could u tell me how did u run ur jasper reports as i am a beginner...
**My java file which i am running in eclipse is**
package first;
import java.util.HashMap;
import net.sf.jasperreports.engine.JREmptyDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
public class JasperReportsIntro
public static void main(String[] args)
System.out.print("hello");
JasperReport jasperReport;
JasperPrint jasperPrint;
try
jasperReport = JasperCompileManager.compileReport("c:\\Simple_Report.jrxml");
//jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(), new JREmptyDataSource());
catch (JRException e1)
e1.printStackTrace();
and my jrxml file is+
<?xml version="1.0"?>
<!DOCTYPE jasperReport
PUBLIC "-//JasperReports//DTD Report Design//EN"
"http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport name="Simple_Report">
<detail>
<band height="20">
<staticText>
<reportElement x="180" y="0" width="200" height="20"/>
<text><![CDATA[Hello World!]]></text>
</staticText>
</band>
</detail>
</jasperReport>
thank you for ur help -
Creation of reports using JasperReports
Hi all!
I have a problem with developing Java code for printing reports, by using JasperReports tool.
I'm trying to create report by using next peace of code (you can found it also on http://ensode.net/jasperreports_intro.html)
package myReport;
import java.util.HashMap;
import net.sf.jasperreports.engine.JREmptyDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
public class Sample
public static void main(String[] args)
JasperReport jasperReport;
JasperPrint jasperPrint;
try
jasperReport = JasperCompileManager.compileReport("c:\\report_1.jrxml");
jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(), new JREmptyDataSource());
//JasperExportManager.exportReportToPdfFile(jasperPrint, "c:\\simple_report.pdf");
catch (JRException e)
e.printStackTrace();
I'm getting the following error:
Exception in thread main
java.lang.NoClassDefFoundError: org.apache.commons.digester.SetNestedPropertiesRule
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142)
at myReport.Sample.main(Sample.java:20)
BTW, file report_1.jrxml I created using iReport.
Can somebody help me how to solve this, and to create my report? Always, all the time with different examples I got same errors, I guess that I done somethiong wrong on in setup, or classpath, or something like that...
Thank you in advance!dvohra09, first of all, thank you on your reply.
But I still running round in circles...
With following code (from JasperReports and Jdeveloper
package myReport;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import net.sf.jasperreports.engine.JREmptyDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.design.JasperDesign;
import net.sf.jasperreports.engine.xml.JRXmlLoader;
public class Sample
public static void main(String[] args)
try
InputStream input=new FileInputStream(new File("c:/jasperreports_demo.xml"));
JasperDesign design = JRXmlLoader.load(input);
catch (JRException e)
... I'm gettnig following error:
C:\jdeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\jdeveloper\jdev\mywork\Workspace3\Project1\classes;C:\jdeveloper\jlib\jasperreports-1.2.7.jar;C:\jdeveloper\jakarta-struts\lib\commons-beanutils.jar;C:\jdeveloper\jakarta-struts\lib\commons-collections.jar;C:\jdeveloper\jakarta-struts\lib\commons-digester.jar;C:\jdeveloper\jakarta-struts\lib\commons-logging.jar myReport.Sample
Exception in thread main
java.lang.NoClassDefFoundError: org.apache.commons.digester.SetNestedPropertiesRule
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202)
at myReport.Sample.main(Sample.java:27)
Process exited with exit code 1.
Also, as you can see, my path is defined as:
C:\jdeveloper\jlib\jasperreports-1.2.7.jar;C:\jdeveloper\jakarta-struts\lib\commons-beanutils.jar;C:\jdeveloper\jakarta-struts\lib\commons-collections.jar;C:\jdeveloper\jakarta-struts\lib\commons-digester.jar;C:\jdeveloper\jakarta-struts\lib\commons-logging.jar
I'm developnig using JDeveloper 10g.
Can you help more with this, please?
10000x thanx in advance! -
Creating template file using ireport while generating PDF(jasperreports)
Hi,
I need to create a PDF report with multiple pages.the layout is as follows.
each page has text on the left and bar graph/pie chart on the right along with some more text below and a table below at the end of the page.
and so on for all the other pages................
I have been trying to do this using jasperreports(creating the template file(.jrxml) using ireport)but i have no idea how to create all these pages(the formatting and layout)...any help would be appreciated...
thanks.Hi,
since 10.1.3 does not have templates I am wondering what you were attempting to do? It appears as if the Faces libraries are not available for the project, so you may want to give us a steb-by-step instruction of how to reproduce the error
Frank -
SSRS report using mdx query to display sales of product by yearwise
There is a requirement to create SSRS report as
Product +Calender2011 -Calender 2012 +Calender 2013
+ Calender 2014
Jan12 Feb12 Mar12...
Product 1 50 100 200 ..
Product 2 150 900 200 ..
Product 3 250 180 900 ..
Product 4 450 100 200 ..
Product 5 50 100 200 ..
Product 6 50 100 200 ..
When I click on Calender2011 corresponding all months of 2011 has to appear and likewise for Calender2012, CalenderN
The MDX query I have like as follows-
Select Non Empty{
[Measures].[Product1],
[Measures].[Product2],
[Measures].[Product3],
[Measures].[Product4],
[Measures].[Product5],
[Measures].[Product6],
[Measures].[Product7],
[Measures].[Product8],
[Measures].[Product9],
[Measures].[Product10],
[Measures].[Product11],
} ON Rows ,
Non Empty { ([Dim Calendar H].[Year Name].[Year Name] ) *([Dim Calendar H].[Month name].[Month name])
ON COLUMNS
FROM ( SELECT ( { [Dim Calendar H].[Year Name].&[Calendar 2014],
[Dim Calendar H].[Year Name].&[Calendar 2013],
[Dim Calendar H].[Year Name].&[Calendar 2012],
[Dim Calendar H].[Year Name].&[Calendar 2011] } )
ON COLUMNS
FROM [Cube])
Please help me.
Advance thanks...Hi Afans,
According to your description, you want to create a drill-down report using SQL Server Analysis Services database, right?
In this case, you need add the Year and Month fields to the column group, and set the Month column can be toogled by Year column group. I have teste it on my local environment, here is the sample query for your reference.
select [Measures].[Internet Sales Amount] on 0,
[Product].[Category].members*[Date].[Calendar].[Calendar Year].members*[Date].[Month of Year].members on 1
from
[Adventure Works]
Reference
http://popbi.wordpress.com/2012/03/02/ssrs-how-to-add-a-column-group-to-an-existing-table/
http://msdn.microsoft.com/en-IN/library/dd207042.aspx
Regards,
Charlie Liao
TechNet Community Support -
Regarding sales report using MC+E
Hi all,
We are viewing sales report using T-Code MC+E. In the main screen there is a variant for the selection of period. The period we are giving there is pulling up calender year. We want it to pick Fiscal Year instead of Calender Year.
Is there any where in the configuration that we can make that setting on.
Can any one suggest me to resolve this issue. Let me know if I am not clear with anything.
Thanks in advance
Ravi BoppanaHi,
I was trying to enter my fiscal period in the same field you instructed me to. When i went to OM01 there are no entries there. So should I create a new entry there. Can you pls assist me.
Thanks in advance,
Ravi Boppana -
Can we have datepicker for interactve report using date_popup2
Hello All,
I am trying to implement a text field with date picker in interactive report using apex_items in report region in oracle apex- 4.0.2.
and it returned a text item with datepicker calender icon for the first row. the rest of the rows just returned a text item missing datepicker calender icon.
When tried running the same query in apex 4.2 it worked fine.
My sample query in report region.
select
apex_item.date_popup2( 1, col1, 'mm/dd/yyyy') as date
from table
Thanks in advance.
RJHi Praveen
Another option you can call the report in a FM , capture the results of the report via spool
& pass the values in export or tables
/Dev -
Create report using JasperReport
I use JasperReport to create report. The jrxml file is created by using iReport. But when I run the program, it shows error:
net.sf.jasperreports.engine.JRException: Error loading expression class
Is there any can help me?
Please help me, I need to do it in urgent.
Can you suggest me other tools that I can use to create report in JSF portlet? Because I try many way with JasperReport but no success.
Thank you very much.After going through sevaral forums looking for a solution to this problem here is what I figured
- This problems is there for some time now.
- No one seems to have identified the root cause for it or fail-safe solution
- For some it went away by changing JVM for others it disappeared by changing JasperReports version
For me, here is what I noticed. I compile the reports in each environment for same Java and JasperReports version
- It appeared only on UNIX environment.
- It is intermittent. out of 12 reports I have, one or the other fail in different environments (all on UNIX). There is no consistency and its not repeatable
- For a moment, I thought the problem is resolved after I migrated JasperReports from 1.2.2 to 1.2.5. I wasn't so fortunate. There is still one report which fails to load.
I know this information is not very useful, but I just wanted to share my frustration. I also wonder why this problem has not been addressed so far. -
Hi: My java application creates reports using fop and xml. Currently, I am printing the reports to pdf files. Is it possible to send the report straight to the printer instead of first creating the pdf file and then printing the report? If it is, can anyone please give me some help on how to do it?
JasperReports is a powerful report-generating tool that has the ability to deliver rich content onto the screen, to the printer or into PDF, HTML, XLS, CSV and XML files.
http://jasperreports.sourceforge.net
There is a convenient visual designer to create reports for jasperreports library called iReport.
Take a look at http://ireport.sourceforge.net
Giulio -
Hi
Does anybody know if it is possible to make LDAP queries using iReport
or if there is any LDAP Connection (datasource type) available that I
could reuse?
I am running iReport 3.0 and there are lots of datasource types but
none of them is LDAP.
I know, I believe that it is not a SLM/Sentinel report question but
iReport in general but if someone has already done that before, please
let me know. If someone also could get iReport to call an external Java
code, it would be sufficient as well. I have not find an way to call
external Java code as well.
Regards
HH
hugohigashi
hugohigashi's Profile: http://forums.novell.com/member.php?userid=89996
View this thread: http://forums.novell.com/showthread.php?t=446788hugohigashi;10460 Wrote:
> Yes, you are right. But is it possible to upload that custom datasource
> driver on SLM and/or Sentinel report environment?
>
>
> --
> hugohigashi
> ------------------------------------------------------------------------
> hugohigashi's Profile: http://forums.novell.com/member.php?userid=89996
> View this thread: http://forums.novell.com/showthread.php?t=446788
This can likely be accomplished by publishing a LDAP connection library
jar and writing some custom code to access LDAP. You'd have to have a
system that was okay with running anonymous LDAP queries, or providing
passwords in clear-text via a report parameter.
So technically possible, but as David said - you're probably best off
syncing this information into identities or if this is MSSQL, sync the
data you want out into a SQL table, and use the built-in AD integration
to join usernames.
brandon.langley
brandon.langley's Profile: https://forums.netiq.com/member.php?userid=350
View this thread: https://forums.netiq.com/showthread.php?t=2441 -
Jasper report using 2 or more subreports
Hi
This muralikrishna.a
I am using IReport tool, In that I have created One report, in that I have created 2 sub reports. but first subreport is displaying and second sub report is not displaying. I am using JavaBean as DataSource.
I deleted first subreport, second one is displaying, only one subreport is displaying , why second sub report is not displaying.
Thanks
MuaralikrishnaJust another cross poster.
[http://www.java-forums.org/new-java/14512-jasper-report.html]
db
edit And, with a different nic
[http://forums.sun.com/thread.jspa?threadID=5361658]
Edited by: Darryl.Burke
Maybe you are looking for
-
Hello, I have an Xserve with Mac OS X Server 10.5.8 in a school. We want students to learn how to create, upload and maintenance websites. So is it possible that every student gets it's own webspace? I read that it is possible to create virtual sites
-
PrEl 8 slow and clips will not play in monitor window.
This is very dissapointing. I have been using PrEl 3 up till now and have been really happy with it. I decided to give V8 a whirl. First off, I am not happy with the way the whole interface has been dumbed down from 4.0 onwards. 3 seems to have more
-
Can the port in my computer be replaced?
I have a MacBook that I purchased in 2009. When I plug in my DisplayPort to VGA adapter, it no longer works. The VGA adapter itself is fine; it seems as though it's not connecting to whatever it needs to connect to inside the computer. Can the port i
-
BAPI_GOODSMVT_CREATE ---- need to update custom field in MSEG table
Greetings all, I'm using 'BAPI_GOODSMVT_CREATE' to create goods movements. also I need to update one cutom field(z-field) in MSEG table. Could anyone please advice how can I update the custom field thru EXTENSIONIN. thanks in advance.
-
Problem on starting oim -11G Release 2
Hi All, we get the below error when starting oim, do anyone has ide about that?Any help is strongly appreciated.. Caused By: oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config" MDS-01370: MetadataStore config