• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

JRXML TO JASPER ERROR

 
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
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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.
 
it's a teeny, tiny, wafer thin ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!