com.sun.jdi.InvocationException occurred invoking method

前端 未结 16 1259
迷失自我
迷失自我 2020-12-13 01:38

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) Servic

16条回答
  •  悲&欢浪女
    2020-12-13 02:10

    Well, it might be because of several things as mentioned by others before and after. In my case the problem was same but reason was something else.

    In a class (A), I had several objects and one of object was another class (B) with some other objects. During the process, one of the object (String) from class B was null, and then I tried to access that object via parent class (A).

    Thus, console will throw null point exception but eclipse debugger will show above mentioned error.

    I hope you can do the remaining.

提交回复
热议问题