Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Hot Code Replace failed(Hot code replace failed - class version number not supported by VM )
Eclipse Hot Code Replace failed [message #552651] Fri, 13 August 2010 00:04 Go to next message
Eclipse UserFriend
I am using
Eclipse Platform 3.5.2, Eclipse IDE for Java EE Developers 1.2.2.20100217-2310, Build id: 20100218-1602
for some 6 months now. I am recently trying to do the Hot code replace in debug perspective when connecting to a remote server.

I am able to do remote debug without any problems. Once i try to change code during debugging the remote server, and when i tried to compile the class, iam getting a error that hot code replace is failing.
Below is the full description of the error.

The current target virtual machine[Java HotSpot(TM) Server VM]from launch was unable to replace the running code with the code in the workspace.

It is safer to continue running the application, but you may notice discrepancies when debugging this application.

Reason:
Hot code replace failed - class version number not supported by VM
Details:
java.lang.UnsupportedClassVersionError


i am using weblogic 9.2 which connects to a remote data server, which iam trying to debug and do hot code replace.

Please help me fix this problem so i can do the hot code replace, as doing build for every small code change & deploying the jar file to the remote server, restarting the remote server, restarting weblogic and testing is very painful! Sad


Immediate help would be very helpful as iam in the middle of a important release delivery. This should be a very familiar error, as many of you may be using the eclipse's hot code replace!



[Updated on: Fri, 13 August 2010 00:06] by Moderator

Re: Eclipse Hot Code Replace failed [message #552657 is a reply to message #552651] Fri, 13 August 2010 01:12 Go to previous messageGo to next message
Eclipse UserFriend
On 8/13/2010 9:34 AM, Anuradha wrote:
> I am using Eclipse Platform 3.5.2, Eclipse IDE for Java EE Developers
> 1.2.2.20100217-2310, Build id: 20100218-1602
> for some 6 months now. I am recently trying to do the Hot code replace
> in debug perspective when connecting to a remote server.
>
> I am able to do remote debug without any problems. Once i try to change
> code during debugging the remote server, and when i tried to compile the
> class, iam getting a error that hot code replace is failing.
> Below is the full description of the error.
>
> The current target virtual machine[Java HotSpot(TM) Server VM]from
> launch was unable to replace the running code with the code in the
> workspace.
Hot code replace depends on the VM you are using, and not all sorts of
changes work
http://wiki.eclipse.org/FAQ_What_is_hot_code_replace%3F
>
> It is safer to continue running the application, but you may notice
> discrepancies when debugging this application.
>
> Reason:
> Hot code replace failed - class version number not supported by VM
>
> i am using weblogic 9.2 which connects to a remote data server, which
> iam trying to debug and do hot code replace.
>
> Please help me fix this problem so i can do the hot code replace, as
> doing build for every small code change & deploying the jar file to the
> remote server, restarting the remote server, restarting weblogic and
> testing is very painful! :(
> Immediate help would be very helpful as iam in the middle of a important
> release delivery. This should be a very familiar error, as many of you
> may be using the eclipse's hot code replace!
>
>
>
> Details:
> java.lang.UnsupportedClassVersionError
From
http://geekexplains.blogspot.com/2009/01/javalangunsupported classversionerror.html
"This happens in the cases when a higher version of Java Compiler is
used to generate the class file than the JVM version which is used to
execute that class file."
Re: Eclipse Hot Code Replace failed [message #552792 is a reply to message #552657] Fri, 13 August 2010 10:21 Go to previous messageGo to next message
Eclipse UserFriend
According to your comment,

"This happens in the cases when a higher version of Java Compiler is
used to generate the class file than the JVM version which is used to
execute that class file."


can you suggest me what should i do to correct this problem?
Re: Eclipse Hot Code Replace failed [message #552857 is a reply to message #552792] Fri, 13 August 2010 14:46 Go to previous messageGo to next message
Eclipse UserFriend
"Anuradha" <anuradha.jayaraman@jpmchase.com> wrote in message
news:i43kea$qt$1@build.eclipse.org...
> According to your comment,
>
> "This happens in the cases when a higher version of Java Compiler is
> used to generate the class file than the JVM version which is used to
> execute that class file."
>
> can you suggest me what should i do to correct this problem?

Change the compiler compliance level for you project to a level supported by
the web server.
Re: Eclipse Hot Code Replace failed [message #554689 is a reply to message #552651] Tue, 24 August 2010 02:24 Go to previous message
Eclipse UserFriend
This happens in the cases when a higher version of Java Compiler is
used to generate the class file than the JVM version which is used to
execute that class file
Previous Topic:error on importing android package
Next Topic:JDT source code plug-ins in Helios
Goto Forum:
  


Current Time: Wed Nov 05 13:54:23 EST 2025

Powered by FUDForum. Page generated in 0.04652 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top