Debugging problem in Intellij 4.5.2

Hi,

I am trying to run a junit test code where an EJB module calls a java module. I set break points at several places and tried running my test. It found all the debug points are working except those in one file located in java module (where my main logic resides ;)). when I saw during middle of running test I found debug points are not reachable. when I try to compile it is giving the following error message.

Error: Schema change not implemented.
Error: Operation not supported by VM.

please help me on this as it is urgent.

4 comments
Comment actions Permalink

This error message is shown when IDEA tries to hot swap your newly compiled classes, i.e. it tries to replace the classes currently used by the debugged VM with the new one. This only works if there's no structural change, i.e. all field and method signatures remain the same and only the code itself has changed.

The fact that IDEA tries to hot swap your classes after a compile is a strong indication that you launched your debugger with outdated classes. Therefore there's no match between your source and class files and breakpoints can't be reached.

Try to stop everything, do a clean compile, and then restart your whole test.

0
Comment actions Permalink

That's a really quick response. Thank you very much Martin.

I already tried that before posting my query and also retried just now, but it did not worked.

I shows only the package name when the runtime flow comes to any of methods in this class. other thing, is I am loading this class through reflections frame work.

At all the break points in that class it says:
Suspend VM: YES
Log Message: NO

0
Comment actions Permalink

Do you load the class from the correct location? Maybe you are loading an outdated version, not the one actually compiled by IDEA?

Or could it be that your class is compiled without debug information?

0
Comment actions Permalink


sateesh wrote:

Hi,

I am trying to run a junit test code where an EJB module calls a java module. I set break points at several places and tried running my test. It found all the debug points are working except those in one file located in java module (where my main logic resides ;)). when I saw during middle of running test I found debug points are not reachable. when I try to compile it is giving the following error message.

Error: Schema change not implemented.
Error: Operation not supported by VM.

please help me on this as it is urgent.


Check this:
http://www.intellij.net/forums/thread.jspa?messageID=3429887&#3429887

Especially this replies:

"One of the previous posts was a little vague, but here's what worked
for me:

  • File->Settings, open up the Modules section and click on the Libraries

(Classpath) tab

  • Go through all of your libraries, and make sure that the source code

in question is not in a jar that it is any of your libraries. I repeat,
the compiled class cannot be in a jar that is inside of a library.

I didn't even have to restart IDEA. I simply unset and then reset my
breakpoint (it changed to a checkmark this time), and then rehit my
tomcat page and it worked.

I'm using IDEA 5.0, although hopefully that doesn't make a difference.

Ryan Shillington"

And this:

"As you said, the key is to *never reference in the classpath your
compiled code*. That did the trick and it now works all the time :-)"

And this:

"This worked for me.
Idea 4.5.3. I just removed all the jars that had classes for which there
were source files in my module. "

Good luck!

0

Please sign in to leave a comment.