• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 749
  • Last Modified:

Java program stops unexpectedly when in debug mode, otherwise no error when running it

When i try to run my program from eclipse it runs fine.

But when i try to debug, it stops giving the error :
Java(TM) Platform SE binary has stopped working
Windows can check online for a solution to the problem

And i get the following in Eclipse console :

log4j:WARN Continuable parsing error 140 and column 23
log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,throwableRenderer?,appender*,plugin*,(category|logger)*,root?,(categoryFactory|loggerFactory)?)".
JRockit Fatal Error: Bad replacement opcode (59)
Could not patch code @0x06D41BE8 [com/mysql/jdbc/StandardSocketFactory.class$(Ljava/lang/String;)Ljava/lang/Class;]
[JRockit] JVM State dumped to E:\SvnCheckOut\trunk\MOScheduler\jrockit.3240.dump.

The debugger stops at the line :
return jdbcTemplate.queryForMap(sql, new Object[]{superPNR});

What could be the reason that this is happening ?
How do i resolve it ?

Rohit Bajaj
Rohit Bajaj
  • 2
1 Solution
Gary PattersonVP Technology / Senior Consultant Commented:
Looks like this is a known issue in JRockit JDK R28:

JRockit JVM Crashes while Debugging a Java Program Compiled with javac
JVM Crashing During GC When Running With -Xdebug or -agentlib:jdwp


Don't see a fix listed for this issue yet:



Try workaround from first link.
Try updating to latest JRockit JDK.  
Contact Oracle Support.  Perhaps there is a hotfix available that isn't generally available yet.
Rohit BajajAuthor Commented:
Thanks for comments. But it automatically worked when i restarted my laptop
Gary PattersonVP Technology / Senior Consultant Commented:
Great.  Of course since it happened to you once it might happen again.  Might want to at least update to latest JRockit JDK.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now