• Post Reply Bookmark Topic Watch Topic
  • New Topic

JRXML TO JASPER ERROR  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please I have a problem compiling this code, the following error is generated whenever I try to compile the .jrxml to .jasper.
Can any one help me out?
Thanks


Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@100092f net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = "Please credit the account(s) of the under-listed beneficiaries and debit our "+((java.lang.String)parameter_strAccountName.getValue())+" account number( "+((java.lang.String)parameter_strAccountNumber.getValue()).toUpperCase()+") with the sum of " +com.esofties.jcrest.utilities.Util.getCurrencyDesc(((java.lang.String)parameter_currency.getValue()))+((java.math.BigDecimal)parameter_strAmount1.getValue())+"( "+((java.lang.String)parameter_strAmount.getValue())+")"; //$JR_EXPR_ID=17$                                                                                                                                                                                                                                                                                   <--------------------------------> 2. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = com.esofties.jcrest.utilities.Util.getSerialValue(((java.lang.Long)field_id.getValue()).toString()); //$JR_EXPR_ID=49$                         <--------------------------------> 3. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = com.esofties.jcrest.utilities.Util.getCurrencyDesc(((java.lang.String)field_currency.getValue())); //$JR_EXPR_ID=52$                         <--------------------------------> 4. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = com.esofties.jcrest.utilities.Util.getCurrencyDesc(((java.lang.String)field_currency.getValue())); //$JR_EXPR_ID=57$                         <--------------------------------> 5. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = "Please credit the account(s) of the under-listed beneficiaries and debit our "+((java.lang.String)parameter_strAccountName.getValue())+" account number( "+((java.lang.String)parameter_strAccountNumber.getValue()).toUpperCase()+") with the sum of " +com.esofties.jcrest.utilities.Util.getCurrencyDesc(((java.lang.String)parameter_currency.getValue()))+((java.math.BigDecimal)parameter_strAmount1.getValue())+"( "+((java.lang.String)parameter_strAmount.getValue())+")"; //$JR_EXPR_ID=17$                                                                                                                                                                                                                                                                                   <--------------------------------> 6. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = com.esofties.jcrest.utilities.Util.getSerialValue(((java.lang.Long)field_id.getOldValue()).toString()); //$JR_EXPR_ID=49$                         <--------------------------------> 7. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = com.esofties.jcrest.utilities.Util.getCurrencyDesc(((java.lang.String)field_currency.getOldValue())); //$JR_EXPR_ID=52$                         <--------------------------------> 8. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = com.esofties.jcrest.utilities.Util.getCurrencyDesc(((java.lang.String)field_currency.getOldValue())); //$JR_EXPR_ID=57$                         <--------------------------------> 9. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = "Please credit the account(s) of the under-listed beneficiaries and debit our "+((java.lang.String)parameter_strAccountName.getValue())+" account number( "+((java.lang.String)parameter_strAccountNumber.getValue()).toUpperCase()+") with the sum of " +com.esofties.jcrest.utilities.Util.getCurrencyDesc(((java.lang.String)parameter_currency.getValue()))+((java.math.BigDecimal)parameter_strAmount1.getValue())+"( "+((java.lang.String)parameter_strAmount.getValue())+")"; //$JR_EXPR_ID=17$                                                                                                                                                                                                                                                                                   <--------------------------------> 10. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = com.esofties.jcrest.utilities.Util.getSerialValue(((java.lang.Long)field_id.getValue()).toString()); //$JR_EXPR_ID=49$                         <--------------------------------> 11. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = com.esofties.jcrest.utilities.Util.getCurrencyDesc(((java.lang.String)field_currency.getValue())); //$JR_EXPR_ID=52$                         <--------------------------------> 12. com.esofties.jcrest.utilities.Util cannot be resolved to a type                 value = com.esofties.jcrest.utilities.Util.getCurrencyDesc(((java.lang.String)field_currency.getValue())); //$JR_EXPR_ID=57$                         <--------------------------------> 12 errors     at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:204)     at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:512)     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)     at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An error like "com.esofties.jcrest.utilities.Util cannot be resolved to a type" sounds like you forgot to import the class "com.esofties.jcrest.utilities.Util" or that it could not be found when you were compiling your code. Make sure that class is available.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!