wood burning stoves*
The moose likes Other Open Source Projects and the fly likes regarding ireports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "regarding ireports" Watch "regarding ireports" New topic
Author

regarding ireports

A.Arun Kumar
Greenhorn

Joined: Mar 14, 2004
Posts: 15
Hi all,
can anybody help me regarding the following problem.
I am trying to group a report using ireports based on a column.The column is of type integer.But it is showing an exception.can anybody help me how to group reports using ireports.But if i group a report by a column which is of type String it is working.It is not working for integer.please reply as early as possible,since it is very urgent.The exception is given below.
D:\ireports\classic.java:146:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String D:\ireports\classic.java:166:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.String)field_ename.getValue())); ������������������������������������������^ D:\ireports\classic.java:269:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.String)field_ename.getOldValue())); ������������������������������������������^ D:\ireports\classic.java:392:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.String)field_ename.getValue())); ������������������������������������������^ ����������������value�=�(java.lang.String)(((java.lang.Integer)field_deptno.getValue())); ������������������������������������������^ D:\ireports\classic.java:289:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.Integer)field_deptno.getOldValue())); ������������������������������������������^ D:\ireports\classic.java:412:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.Integer)field_deptno.getValue())); ������������������������������������������^ 3�errors 3�errors dori.jasper.engine.JRException:�Errors�were�encountered�when�compiling�report�expressions�class�file: See�error�messages�above. ����at�dori.jasper.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:154) ����at�dori.jasper.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:136) ����at�dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:135) ����at�dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:123) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:148) ����at�java.lang.Thread.run(Thread.java:536) Warning�:�Element�bottom�reaches�outside�band�area�:�y=0�height=1�band-height=0 D:\ireports\classic.java:146:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String D:\ireports\classic.java:166:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.String)field_ename.getValue())); ������������������������������������������^ D:\ireports\classic.java:269:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.String)field_ename.getOldValue())); ������������������������������������������^ D:\ireports\classic.java:392:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.String)field_ename.getValue())); ������������������������������������������^ ����������������value�=�(java.lang.String)(((java.lang.Integer)field_deptno.getValue())); ������������������������������������������^ D:\ireports\classic.java:289:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.Integer)field_deptno.getOldValue())); ������������������������������������������^ D:\ireports\classic.java:412:�inconvertible�types found���:�java.lang.Integer required:�java.lang.String ����������������value�=�(java.lang.String)(((java.lang.Integer)field_deptno.getValue())); ������������������������������������������^ 3�errors 3�errors dori.jasper.engine.JRException:�Errors�were�encountered�when�compiling�report�expressions�class�file: See�error�messages�above. ����at�dori.jasper.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:154) ����at�dori.jasper.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:136) ����at�dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:135) ����at�dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:123) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:148) ����at�java.lang.Thread.run(Thread.java:536) Compilation running time : 10786 Compilation running time : 15252 Error�filling�print... sa�$�sa�jdbc dbc:arun sa�$�sa�jdbc dbc:arun java.io.FileNotFoundException:�D:\gg.jasper ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:116) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:157) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:230) ����at�java.lang.Thread.run(Thread.java:536) NESTED�BY�: java.io.FileNotFoundException:�D:\gg.jasper ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:116) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:157) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:230) ����at�java.lang.Thread.run(Thread.java:536) NESTED�BY�: dori.jasper.engine.JRException:�D:\gg.jasper ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:116) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:157) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:230) ����at�java.lang.Thread.run(Thread.java:536) Caused�by:�java.io.FileNotFoundException:�D:\gg.jasper ����...�4�more Print�not�filled.�Try�to�use�an�EmptyDataSource...! Error�filling�print... java.io.FileNotFoundException:�D:\gg.jasper ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:116) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:157) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:230) ����at�java.lang.Thread.run(Thread.java:536) NESTED�BY�: java.io.FileNotFoundException:�D:\gg.jasper ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:116) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:157) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:230) ����at�java.lang.Thread.run(Thread.java:536) NESTED�BY�: dori.jasper.engine.JRException:�D:\gg.jasper ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:116) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:157) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:230) ����at�java.lang.Thread.run(Thread.java:536) Caused�by:�java.io.FileNotFoundException:�D:\gg.jasper ����...�4�more Print�not�filled.�Try�to�use�an�EmptyDataSource...!
regards
a.arun kumar
Parveen Aggarwal
Greenhorn

Joined: Jun 08, 2004
Posts: 7
Hi

I know this it is very ridiculous that instead of giving answer to u'r question , myself asking one question from you regarding iReport ,I will be very thankful to u if u please help me in that.

Actually i am installing iReport0.3.1 and i configured all the batch files.

iReport.bat
startup.bat
cpappend.bat


but as i execute iReport.bat file to open iReport it is giving this error


Error Loading Configuration file :- C:\Documents and settings\Administrator\.ireport\favoriteFiles.xml

iReport home (iReport.home system property): .

User home (user.home system property)

PLEASE HELP ME IN THIS ......

In ireport i added this :-

set JAVA_HOME=C:\j2sdk1.4.0
set CLASSPATH=

In Startup.bat i have added this :-

set IREPORT_HOME=C:\Parveen\iReports\iReport-0.3.1


set CLASSPATH=%CLASSPATH%;.\classes\;%IREPORT_HOME%\lib\barbecue-1.1.jar;%IREPORT_HOME%\lib\bsh-1.3.0.jar;%IREPORT_HOME%\lib\commons-beanutils.jar;%IREPORT_HOME%\lib\commons-collections.jar;%IREPORT_HOME%\lib\commons-digester.jar;%IREPORT_HOME%\lib\commons-logging.jar;%IREPORT_HOME%\lib\commons-logging-api.jar;%IREPORT_HOME%\lib\iReport.jar;%IREPORT_HOME%\lib\itext-1.02b.jar;%IREPORT_HOME%\lib\jasperreports-0.5.3.jar;%IREPORT_HOME%\lib\jcmdline-1.0.2.jar;%IREPORT_HOME%\lib\jcommon-0.9.3.jar;%IREPORT _HOME%\lib\jfreechart-0.9.18.jar;%IREPORT_HOME%\lib\log4j-1.2.8.jar;%IREPORT_HOME%\lib\mysql-connector-java-3.0.8-stable-bin.jar;%IREPORT_HOME%\lib\poi-2.0-final-20040126.jar;%IREPORT_HOME%\lib\tinylaf.jar;%IREPORT_HOME%\lib\xercesImpl.jar;%IREPORT_HOME%\lib\xmlParserAPIs.jar;%IREPORT_HOME%\lib\tools.jar;





In ireport i added this :- In Startup.bat i have added this :-
Rameel Rahman
Greenhorn

Joined: Jun 30, 2004
Posts: 1
Hi,
Are you using a parameter or a variable. If you are using a parameter then you must initialize it, ie give new Integer (1) in the Default Value Expression.
If you are using variable for example variable name = page , then give the Initial value expression as
($V{page} != null )?(new Integer($V{page}.intValue() + 1)) new Integer(1))
and in the textfield properties give the TextField Expression as $V{Integer.parseInt(page)}
And also change the TextField Expression class to java.lang.integer

Guess this help you. If it doesn't work please give a detail view of the problem.

Regards
Ramil.Rahman
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding ireports