com.sun.jdi.InvocationException发生了调用方法 [英] com.sun.jdi.InvocationException occurred invoking method

查看:145
本文介绍了com.sun.jdi.InvocationException发生了调用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想创建一个类的对象,但在调试时遇到了这个错误。谁能告诉我这是什么问题?此代码的位置在一些Spring(2.5)Service类中。

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.

存在类似的问题: OJB参考描述符1:0的关系?我应该将自动检索设置为false吗?

非常感谢〜

推荐答案

根本原因是在调试java调试接口时会调用类的toString()来在弹出框中显示类信息,所以如果没有正确定义toString方法,这可能是发生。

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.

这篇关于com.sun.jdi.InvocationException发生了调用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆