net.sf.jasperreports.engine.JRException

Errors were encountered when compiling report expressions class file: 1. The type java.util.Map cannot be resolved. It is indirectly referenced from required .class files /* ^ 2. The type java.lang.Throwable cannot be resolved. It is indirectly referenced from required .class files /* ^ 3. The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files /* ^ 4. The type java.lang.Integer cannot be resolved. It is indirectly referenced from required .class files /* ^ 5. The hierarchy of the type Blank_A4_1472821105683_622565 is inconsistent public class Blank_A4_1472821105683_622565 extends JREvaluator <---------------------------> 6. The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files public class Blank_A4_1472821105683_622565 extends JREvaluator <---------> 7. Map cannot be resolved to a type Map pm, <-> 8. Map cannot be resolved to a type Map fm, <-> 9. Map cannot be resolved to a type Map vm <-> 10. Map cannot be resolved to a type private void initParams(Map pm) <-> 11. Map cannot be resolved to a type private void initFields(Map fm) <-> 12. Map cannot be resolved to a type private void initVars(Map vm) <-> 13. Object cannot be resolved to a type public Object evaluate(int id) throws Throwable <----> 14. Throwable cannot be resolved to a type public Object evaluate(int id) throws Throwable <-------> 15. Object cannot be resolved to a type Object value = null; <----> 16. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=0$ <---------------> 17. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=1$ <---------------> 18. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=2$ <---------------> 19. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=3$ <---------------> 20. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=4$ <---------------> 21. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=5$ <---------------> 22. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=6$ <---------------> 23. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=7$ <---------------> 24. java.lang.String cannot be resolved to a type value = ((java.lang.String)field_Name.getValue()); //$JR_EXPR_ID=9$ <--------------> 25. The method getValue() from the type JRFillField refers to the missing type Object value = ((java.lang.String)field_Name.getValue()); //$JR_EXPR_ID=9$ <------> 26. Object cannot be resolved to a type public Object evaluateOld(int id) throws Throwable <----> 27. Throwable cannot be resolved to a type public Object evaluateOld(int id) throws Throwable <-------> 28. Object cannot be resolved to a type Object value = null; <----> 29. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=0$ <---------------> 30. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=1$ <---------------> 31. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=2$ <---------------> 32. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=3$ <---------------> 33. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=4$ <---------------> 34. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=5$ <---------------> 35. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=6$ <---------------> 36. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=7$ <---------------> 37. java.lang.String cannot be resolved to a type value = ((java.lang.String)field_Name.getOldValue()); //$JR_EXPR_ID=9$ <--------------> 38. The method getOldValue() from the type JRFillField refers to the missing type Object value = ((java.lang.String)field_Name.getOldValue()); //$JR_EXPR_ID=9$ <---------> 39. Object cannot be resolved to a type public Object evaluateEstimated(int id) throws Throwable <----> 40. Throwable cannot be resolved to a type public Object evaluateEstimated(int id) throws Throwable <-------> 41. Object cannot be resolved to a type Object value = null; <----> 42. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=0$ <---------------> 43. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=1$ <---------------> 44. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=2$ <---------------> 45. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=3$ <---------------> 46. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=4$ <---------------> 47. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=5$ <---------------> 48. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=6$ <---------------> 49. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=7$ <---------------> 50. java.lang.String cannot be resolved to a type value = ((java.lang.String)field_Name.getValue()); //$JR_EXPR_ID=9$ <--------------> 51. The method getValue() from the type JRFillField refers to the missing type Object value = ((java.lang.String)field_Name.getValue()); //$JR_EXPR_ID=9$ <------> 51 errors .

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web446

  • via GitHub by dwijnand
    , 10 months ago
    Errors were encountered when compiling report expressions class file: 1. The type java.util.Map cannot be resolved. It is indirectly referenced from required .class files /* ^ 2. The type java.lang.Throwable cannot be resolved. It is indirectly
  • Errors were encountered when compiling report expressions class file: 1. net.sf.jasperreports.engine.JRBeanCollectionDataSource cannot be resolved to a type value = new net.sf.jasperreports.engine.JRBeanCollectionDataSource
  • Errors were encountered when compiling report expressions class file: 1. net.sf.jasperreports.engine.JRBeanCollectionDataSource cannot be resolved to a type value = new net.sf.jasperreports.engine.JRBeanCollectionDataSource
  • Stack trace

    • net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. The type java.util.Map cannot be resolved. It is indirectly referenced from required .class files /* ^ 2. The type java.lang.Throwable cannot be resolved. It is indirectly referenced from required .class files /* ^ 3. The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files /* ^ 4. The type java.lang.Integer cannot be resolved. It is indirectly referenced from required .class files /* ^ 5. The hierarchy of the type Blank_A4_1472821105683_622565 is inconsistent public class Blank_A4_1472821105683_622565 extends JREvaluator <---------------------------> 6. The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files public class Blank_A4_1472821105683_622565 extends JREvaluator <---------> 7. Map cannot be resolved to a type Map pm, <-> 8. Map cannot be resolved to a type Map fm, <-> 9. Map cannot be resolved to a type Map vm <-> 10. Map cannot be resolved to a type private void initParams(Map pm) <-> 11. Map cannot be resolved to a type private void initFields(Map fm) <-> 12. Map cannot be resolved to a type private void initVars(Map vm) <-> 13. Object cannot be resolved to a type public Object evaluate(int id) throws Throwable <----> 14. Throwable cannot be resolved to a type public Object evaluate(int id) throws Throwable <-------> 15. Object cannot be resolved to a type Object value = null; <----> 16. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=0$ <---------------> 17. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=1$ <---------------> 18. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=2$ <---------------> 19. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=3$ <---------------> 20. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=4$ <---------------> 21. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=5$ <---------------> 22. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=6$ <---------------> 23. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=7$ <---------------> 24. java.lang.String cannot be resolved to a type value = ((java.lang.String)field_Name.getValue()); //$JR_EXPR_ID=9$ <--------------> 25. The method getValue() from the type JRFillField refers to the missing type Object value = ((java.lang.String)field_Name.getValue()); //$JR_EXPR_ID=9$ <------> 26. Object cannot be resolved to a type public Object evaluateOld(int id) throws Throwable <----> 27. Throwable cannot be resolved to a type public Object evaluateOld(int id) throws Throwable <-------> 28. Object cannot be resolved to a type Object value = null; <----> 29. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=0$ <---------------> 30. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=1$ <---------------> 31. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=2$ <---------------> 32. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=3$ <---------------> 33. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=4$ <---------------> 34. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=5$ <---------------> 35. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=6$ <---------------> 36. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=7$ <---------------> 37. java.lang.String cannot be resolved to a type value = ((java.lang.String)field_Name.getOldValue()); //$JR_EXPR_ID=9$ <--------------> 38. The method getOldValue() from the type JRFillField refers to the missing type Object value = ((java.lang.String)field_Name.getOldValue()); //$JR_EXPR_ID=9$ <---------> 39. Object cannot be resolved to a type public Object evaluateEstimated(int id) throws Throwable <----> 40. Throwable cannot be resolved to a type public Object evaluateEstimated(int id) throws Throwable <-------> 41. Object cannot be resolved to a type Object value = null; <----> 42. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=0$ <---------------> 43. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=1$ <---------------> 44. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=2$ <---------------> 45. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=3$ <---------------> 46. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=4$ <---------------> 47. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=5$ <---------------> 48. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(1); //$JR_EXPR_ID=6$ <---------------> 49. java.lang.Integer cannot be resolved to a type value = new java.lang.Integer(0); //$JR_EXPR_ID=7$ <---------------> 50. java.lang.String cannot be resolved to a type value = ((java.lang.String)field_Name.getValue()); //$JR_EXPR_ID=9$ <--------------> 51. The method getValue() from the type JRFillField refers to the missing type Object value = ((java.lang.String)field_Name.getValue()); //$JR_EXPR_ID=9$ <------> 51 errors . at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:206) at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:357) at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:290) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:575) at eu.bbv.Main.main(Main.java:7)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 years ago
    2 more bugmates