Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error

 
Rachel Kozlowski
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the following error:

How can I fix it?

1. The type Lowest32Percent32of32Patients32with32Hemoglobin3210460451246032g47dL_1238430299127_25590 must implement the inherited abstract method JREvaluator.customizedInit(Map, Map, Map)
public class Lowest32Percent32of32Patients32with32Hemoglobin3210460451246032g47dL_1238430299127_25590 extends JREvaluator
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, that's some class name!

The error message seems very clear to me; does it not makes sense to you?

The message says that the class with the very long name extends JREvaluator -- which must be an abstract class because it has an abstract method (or it inherits but does not implement an interface method) named customizedInit() that takes three Map arguments. Therefore either the class with the very long name must also be marked 'abstract", or it must implement that method.
 
Rachel Kozlowski
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the problem is that the class is created dynamically by Jasper Reports (third party software).
I am failing on the : JasperReport reportObj = JasperCompileManager.compileReport(reportDesignObj); line.
So I am not sure how to I make it an abstract method? Please explain.

This is the complete syntax.
 
Brian Legg
Ranch Hand
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the code that is giving you the error is being generated by 3rd party software inside the JasperCompileManager object then I don't think there is much you can do to your code. I would try contacting the 3rd party software vendor to see if they have a latest version out (you may have a version conflict) or to see if anyone else has had a similar problem. I doubt you will find anyone here that can fix your error. Sorry, hope that makes sense though.
 
Rachel Kozlowski
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will do that thank you for your assistance.
 
Rachel Kozlowski
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solution-Reinstall Tomcat and then go into Catalina\localhost and make sure docBase is correct. Also go into Eclipse and make sure that Tomcat settings are correct.

My problem was caused by copying all of my coworker's jars into my Tomcat common\lib and overwriting the jars that were already there.
 
Campbell Ritchie
Sheriff
Posts: 48921
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done sorting it out
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic