Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

IDEA Irida integration broken

Moderators: Vladimir Kondratyev, Anton Katilin

IDEA Irida integration broken

Postby BasLeijdekkers » Wed May 11, 2005 1:50 pm

I get the following exception when I try to profile an application using IDEA build 3326 and YourKit version 4.0.10 (evalutation). Possibly something changed in the openapi again? Any chance this is fixed in the EAP that is coming?

Bas

Code: Select all
com.intellij.execution.configurations.JavaParameters.setEnv(Ljava/util/HashMap;)V
java.lang.NoSuchMethodError: com.intellij.execution.configurations.JavaParameters.setEnv(Ljava/util/HashMap;)V
   at com.yourkit.idea45Plugin.MyRunner.patch(a:35)
   at com.intellij.execution.runners.RunStrategy.executeCommandLine(RunStrategy.java:54)
   at com.intellij.execution.runners.RunStrategy.a(RunStrategy.java:28)
   at com.intellij.execution.runners.RunStrategy.access$000(RunStrategy.java:8)
   at com.intellij.execution.runners.RunStrategy$2.run(RunStrategy.java:8)
   at com.intellij.execution.impl.ExecutionManagerImpl$1.run(ExecutionManagerImpl.java:2)
   at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:12)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:148)
   at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:71)
   at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:98)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
BasLeijdekkers
 
Posts: 11
Joined: Wed May 11, 2005 1:41 pm

Postby Vladimir Kondratyev » Wed May 11, 2005 2:19 pm

Thanks you very much for information. We'll investigate the problem.
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby Anton Katilin » Wed May 11, 2005 3:07 pm

IJ has broken (again) API compatibility, changing method signature from setEnv(HashMap) to setEnv(Map).

We'll post a bug and/or search for workarounds...
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am

Postby BasLeijdekkers » Wed May 11, 2005 3:27 pm

Maybe you can use reflection to call the method. I'm guessing it isn't called from within a time critical path in the YourKit plugin, and that's the way I solve api compatibility problems with the openapi.

Bas
BasLeijdekkers
 
Posts: 11
Joined: Wed May 11, 2005 1:41 pm

Postby Vladimir Kondratyev » Wed May 11, 2005 7:41 pm

Yeah, we are also using reflection... It's a pity that JetBrains doesn't provide any backward compatibility. AFAIK, _numerous_ IDEA API problem could be solved just by additing new methods and deprecating old ones. It's trivial, but not done.

Regards,
Vladimir
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby Anton Katilin » Thu May 12, 2005 9:35 am

Hi,

The build 4.0.11 that fixes the problem is available for download now.

Best regards,
Anton
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am

Postby BasLeijdekkers » Thu May 12, 2005 10:02 am

Thanks, build 4.0.11 works.
It is indeed a pity no backward compatibility is provided in IDEA's openapi. But I wonder is Eclipse for example better in that regard? Or Netbeans, JBuilder, JDeveloper? Which provides the most stable api in your opinion?

Best regards,
Bas
BasLeijdekkers
 
Posts: 11
Joined: Wed May 11, 2005 1:41 pm

Postby Vladimir Kondratyev » Thu May 12, 2005 9:08 pm

IMHO, JBuilder's API stability is perfect. The code which was written for v 5.0 works with latest version 2005. Eclipse is also very good, but it doesn't have the same long history as JBuilder.

Best wishes,
--vladimir
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby Anton Katilin » Fri May 13, 2005 1:39 pm

Hi,

Yes, JBuilder's API is very stable. At least we never changed a single line of plugin code to support each next version of JBuilder :) On the other hand, for a long time they virtually add nothing serious in their releases.

NetBeans has changed dramatically from 3.6 to 4.0, so we decided to support only 4.0. Probably API was not that much changed, but has changed the way Run/Debug-like stuff is organized in UI, in actions etc. For us it matters.

Eclipse is stable, and they have added in 3.1 some API that we requested from them. Without it we were bound to use some internal APIs in Eclipse 3.0. But IMO Eclipse's API is no doubt the most complicated and difficult to learn among mentioned IDEs. Overabstracted.

Best regards,
Anton
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.