1

When I try to call a method from a local ejb I have this error :

java.lang.VerifyError: com/pwc/lu/ejb/hcfollowup/staff/HCFStaffManagerLocal.getPersonById(Ljava/lang/Integer;)Lcom/pwc/lu/mapping/hcfollowup/hibernate/global/Person;

HCFStaffManagerLocal is my local interface and getPersonById an ejb method. Person, the result type.

I can get my ejb but error occurs when trying to call getPersonById method.

I don't understand why it get an exception for Person class...

Any ideas ?

Andreas Dolk
  • 113,398
  • 19
  • 180
  • 268
Bastien
  • 11
  • 1

1 Answers1

1

This question on VerifyError has a lot of good answers - hope one leads to a solution!

There's a chance that the compiled Person class is corrupt and it's worth a try to recompile it with a different java SDK.

Community
  • 1
  • 1
Andreas Dolk
  • 113,398
  • 19
  • 180
  • 268
  • Do you think that ejb interface method getPersonById(Integer personId) and ejb method call : getPersonbyId(int) can be an issue ? – Bastien May 25 '10 at 09:44
  • No. The Error indicates that the (binary) Person class is corrupt and can't be loaded into the virtual machine. The problem is outside the Java code. – Andreas Dolk May 25 '10 at 09:46
  • Ok I will try to rebuild the entire project – Bastien May 25 '10 at 10:59
  • I have news : My application works with IceFaces jsf framework. To use it I have to inverse the classloader of the web module. When I don't do it, there is no problem with my ejb call. Problems only occurs when the classloader is inversed... I don't understand – Bastien May 25 '10 at 15:17