saharhassan Posted March 16, 2012 Share Posted March 16, 2012 I have a Map component on my detail band. I have set the Latitude as 12.58 (Just plain value, no Java expression) and 77.38 as Longitude. When I click Preview button, it is throwing me this exception: Error filling print... java.math.BigDecimal cannot be cast to java.lang.Float Setting up the file resolver... java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Float at net.sf.jasperreports.components.map.MapFillComponent.evaluateMap(MapFillComponent.java:69) at net.sf.jasperreports.components.map.MapFillComponent.evaluate(MapFillComponent.java:63) at net.sf.jasperreports.engine.fill.JRFillComponentElement.evaluate(JRFillComponentElement.java:88) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:257) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:473) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2021) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:755) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:265) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:836) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:746) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:879) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Print not filled. Try to use an EmptyDataSource... Link to comment Share on other sites More sharing options...
saharhassan Posted March 16, 2012 Author Share Posted March 16, 2012 Hi. I have solved the issue myself. I gave the value for Latitude as 12.58f and Longitude as 77.38f.Voila! It works and gave me Bangalore's Map.Post Edited by xaharhassan at 03/16/2012 12:49 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now