This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Problem in ireport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem in ireport" Watch "Problem in ireport" New topic
Author

Problem in ireport

Nijin puthiya purayil
Ranch Hand

Joined: Nov 09, 2011
Posts: 32
Hai,
I'm using a jasper report to generate a report using my database...in this i'm trying to compile and convert this jasper report to a pdf file...but i'm getting the error at run time like this...
Exception in thread "main" net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
report32name_1321852492065_59245.java:177: inconvertible types
found : java.lang.Float
required: java.lang.String
value = (java.lang.String)(((java.lang.Float)field_amountpaid.getValue())); //$JR_EXPR_ID=10$
^
report32name_1321852492065_59245.java:182: inconvertible types
found : java.sql.Date
required: java.lang.String
value = (java.lang.String)(((java.sql.Date)field_date.getValue())); //$JR_EXPR_ID=11$


Here i used the mysql database....the Float value is amountpaid and Date value is date in my database....
This is the code i used here...actually i got this from the site http://www.javabeat.net/articles/print.php?article_id=258
Please do help me...Nijin

 
 
subject: Problem in ireport
 
Similar Threads
Jasper Reports Exception
Unable to execute jar file....got following stack trace.
simple jasper report in java without a database.
Problem with Jasper report
Unable to execute jar file....got following stack trace.