Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

com.sun.jdi.InvocationException occurred invoking method

Tags:

java

spring

I just want to create an object of class, but got this error when debugging. Can anybody tell me what the problem is? The location of this code is in some Spring(2.5) Service class.

There is a similar problem: OJB Reference Descriptor 1:0 relationship? Should I set auto-retrieve to false?

Thanks a lot~

like image 463
xyy Avatar asked Nov 08 '10 12:11

xyy


1 Answers

The root cause is that when debugging the java debug interface will call the toString() of your class to show the class information in the pop up box, so if the toString method is not defined correctly, this may happen.

like image 158
Frank Avatar answered Oct 07 '22 17:10

Frank