Jump to content

Recommended Posts

Posted

Jasper iReport Designer Professional 5.6


When running my chart report I get this error:


**Error filling print... java.math.BigDecimal cannot be cast to java.lang.String ......Print not filled.


The variable I'm using is pulled from an Oracle database and is a BigDecimal data type. In my Value Expression, I'm setting the Value Class Name as java.math.BigDecimal as well. I've tried passing the variable as a string and that doesn't work either.


1(2).JPG.1655eecbaa775f6fcfd36a6196f70557.JPG


2(2).JPG.7730e00694ee5d5f022649365da79608.JPG


Does anyone have any thoughts on how I can get past this error?


  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted

Hi reggiereg,

I had to face these kind of errors a while ago, i had fixed it with adding blank string to the String variable passing. Somthing like below.

BigDecimal testNum = new BigDecimal("29.87");
String str = testNum + "";
 
Hope this will help, if not provide full jrxml for debugging.
Posted

Hi reggiereg,

I had to face these kind of errors a while ago, i had fixed it with adding blank string to the String variable passing. Somthing like below.

BigDecimal testNum = new BigDecimal("29.87");
String str = testNum + "";
 
Hope this will help, if not provide full jrxml for debugging.

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...