Solved

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

Posted on 2014-04-16
3
682 Views
Last Modified: 2014-05-11
Hi,
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 ?

Thanks
Robin
jrockit.3240.txt
0
Comment
Question by:Rohit Bajaj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
Gary Patterson earned 500 total points
ID: 40012898
Looks like this is a known issue in JRockit JDK R28:

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

http://docs.oracle.com/cd/E15289_01/doc.40/e15066/knownissues.htm#CJAHAJCA

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

http://docs.oracle.com/cd/E15289_01/doc.40/e15066/toc.htm

Suggestions:

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.
0
 

Author Closing Comment

by:Rohit Bajaj
ID: 40057268
Thanks for comments. But it automatically worked when i restarted my laptop
0
 
LVL 35

Expert Comment

by:Gary Patterson
ID: 40057386
Great.  Of course since it happened to you once it might happen again.  Might want to at least update to latest JRockit JDK.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 101
String array comparison 4 54
Using jdbcTemplate.batchUpdate to improve INSERT performance 6 32
activeMQ Queue Messages Enqueued and Messages Dequeued 1 96
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question