NoSuchMethodError launching profiler in eclipse 3.1

Questions about YourKit Java Profiler
Post Reply
scorchio96
Posts: 1
Joined: Thu Jul 07, 2005 5:57 am

NoSuchMethodError launching profiler in eclipse 3.1

Post by scorchio96 »

Hi,

We are evaluating your product and discovered the following error trying to profile a junit test inside Eclipse 3.1


!ENTRY org.eclipse.core.runtime 4 2 2005-07-07 15:25:33.898
!MESSAGE An internal error occurred during: "Launching".
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.jdt.launching.IVMInstall.getJavaVersion()Ljava/lang/String;
at com.yourkit.eclipse31Plugin.Plugin.isJVMTIAvailable(a:5)
at com.yourkit.eclipse31Plugin.Plugin.getVMParameter(a:39)
at com.yourkit.eclipse31Plugin.YkJUnitLaunchConfigurationDelegate.launchTypes(a:14)
at com.yourkit.eclipse31Plugin.YkJUnitLaunchConfigurationDelegate.launch(a:32)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:590)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:515)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:733)
at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:931)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)


Here are the Eclipse Configuration Details:

*** Date: Thu Jul 07 15:47:00 EST 2005

*** Platform Details:

*** System properties:
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=I20050627-1435
eclipse.commands=-os
linux
-ws
gtk
-arch
x86
-launcher
/usr/java/eclipse-3.1/eclipse
-name
Eclipse
-showsplash
600
-exitdata
2db8010
-vm
/usr/java/jdk1.5.0_02/bin/java
eclipse.product=org.eclipse.sdk.ide
eclipse.startTime=1120715126850
eclipse.vm=/usr/java/jdk1.5.0_02/bin/java
eclipse.vmargs=-Xms40m
-Xmx256m
-jar
/usr/java/eclipse-3.1/startup.jar
eof=eof
file.encoding=UTF-8
file.encoding.pkg=sun.io
file.separator=/
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path=/usr/java/eclipse-3.1/startup.jar
java.class.version=49.0
java.endorsed.dirs=/usr/java/jdk1.5.0_02/jre/lib/endorsed
java.ext.dirs=/usr/java/jdk1.5.0_02/jre/lib/ext
java.home=/usr/java/jdk1.5.0_02/jre
java.io.tmpdir=/tmp
java.library.path=/usr/java/jdk1.5.0_02/jre/lib/i386/client:/usr/java/jdk1.5.0_02/jre/lib/i386:/usr/java/jdk1.5.0_02/jre/../lib/i386
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_02-b09
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_02
java.vm.info=mixed mode, sharing
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_02-b09
line.separator=


and the relevant line from the plugins registry
*** Plug-in Registry:
com.yourkit.profiler (4.5.618) "YourKit Java Profiler 4.5 EAP build 618" [Active]
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hi,

Thank you very much for the report. We're investigating the issue now.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

We have found the reason of the problem.

The fix for YourKit Java Profiler 4.5 will be available in the next EAP build.

There was no problem in the released version YourKit Java Profiler 4.0.x, so no fix is needed.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

The build 620 is available for download now...
Post Reply