Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Cannot profile application running with JDK 1.4.2
Cannot profile application running with JDK 1.4.2 [message #116980] Fri, 02 November 2007 08:19 Go to next message
Eclipse UserFriend
Originally posted by: joerg.schaible.elsag-solutions.com

Hi,

it seems that profiling applications running with a JDK 1.4.2 runtime is
broken (using TPTP 4.4.0.3). Eclipse itself is running with JDK 1.6.0 and
the IAC starts successfully. I select the "Exeution Time Analysis" filter
from the "Java Profiling - pre JRE 1.5" group and start the profile action.
Eclipse switches into the "Profile and Logging" perspective and starts to
collect data, but fails quite immediately after the start with:

============ %< =============
java.lang.UnsupportedClassVersionError: org/eclipse/emf/ecore/EObject
(Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
at
org.eclipse.hyades.logging.commons.FileLoggerFactory.getInst ance(FileLoggerFactory.java:271)
at
org.eclipse.hyades.logging.commons.FileLoggerFactory.getInst ance(FileLoggerFactory.java:226)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java :645)
at
ip.report.provider.definition.AbstractIPReportProvider.<clinit >(AbstractIPReportProvider.java:59)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at
com.elsagsolutions.commons.lang.reflect.GeneralFactory.creat eInjectedInstance(GeneralFactory.java:487)
at integration.ReportProviderTest.<init>(ReportProviderTest.java:59)
at integration.ReportProviderTest.main(ReportProviderTest.java: 87)
Exception in thread "main"
============ %< =============

My application does not use any Eclipse classes, so the EObject.class must
be triggered by TPTP. For some reason the classpath seems to get mixed up
for the loggers.

Yes, I can profile JDK 1.5 applications. No, that application cannot run on
JDK 1.5. So I am stuck. Any suggestions?

- J
Re: Cannot profile application running with JDK 1.4.2 [message #117061 is a reply to message #116980] Sun, 04 November 2007 08:11 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Jörg,

Look at the following error:
> java.lang.UnsupportedClassVersionError: org/eclipse/emf/ecore/EObject
> (Unsupported major.minor version 49.0)

It suggests that the org.eclipse.emf.ecore.EObject class was compiled
for Java 1.5, hence it cannot be processed by an 1.4.x JVM.

According to the stack dump, your applications does use "eclipse"
classes (e.g., org.eclipse.hyades.logging.commons.FileLoggerFactory)
which may depend internally on EMF.

Please check which version of EMF your application depends on. I know
that there are 2 versions in Eclipse 3.3, one for Java 1.5 and another
for 1.4.x, but I don't know the specific details.

Please also consider posting this issue in the EMF newsgroup.

My 2 cents...

Asaf


--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Cannot profile application running with JDK 1.4.2 [message #117163 is a reply to message #117061] Tue, 06 November 2007 09:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.schaible.elsag-solutions.com

Hi Asaf,

"Asaf Yaffe" <asaf.yaffe@intel.com> schrieb im Newsbeitrag
news:fgjus9$7fd$1@build.eclipse.org...
> J
Re: Cannot profile application running with JDK 1.4.2 [message #117440 is a reply to message #117163] Wed, 07 November 2007 08:25 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Jörg,

Just out of curiosity, any reason why you are using a JDK 1.4.2 runtime
instead of 1.5/1.6? Which JVM is IAC configured with? (check in Eclipse
Preferences | Agent Controller | Integrated Agent Controller)

Thanks,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Cannot profile application running with JDK 1.4.2 [message #117504 is a reply to message #117163] Wed, 07 November 2007 14:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexander.n.alexeev.intel.com

Hi, Jörg.

The problem is that IAC, then run your application, add extra classpath
pointed to Eclipse JARs from which you are profiling, it include EMF JARs
and so trying load classes built by Java 1.5 from these JARs.
For me it is new issues, and it have to be resolved accordingly to TPTP's
process.

By now I would suggest you to try stand alone profiling, this link should
help you
( http://help.eclipse.org/help33/topic/org.eclipse.tptp.platfo rm.doc.user/tasks/tecretrc.htm)
Don't hesitate to ask question regarding stand alone profiling in the
newsgroup.

Thanks for you interest in TPTP.

Alex.
Re: Cannot profile application running with JDK 1.4.2 [message #117515 is a reply to message #117504] Thu, 08 November 2007 08:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexander.n.alexeev.intel.com

Hi, Jörg.

Could you describe your case more precisely.
- That is type of your application?
- How do you profile it? ( as "Java application", "External Java
application" or "Eclipse application")
-
- What JAR should I put in class path to run you simple test?

By now I can propose one work around for profiling from Eclipse.

Try to profile your application as "Java application".
Set required classpath in "Classpath" tab.
And run profiling.

Thanks,
Alex
Re: Cannot profile application running with JDK 1.4.2 [message #118339 is a reply to message #117440] Fri, 16 November 2007 08:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.schaible.elsag-solutions.com

Hi Asaf,

sorry for the delay ...

"Asaf Yaffe" <asaf.yaffe@intel.com> schrieb im Newsbeitrag
news:fgrsq8$llf$1@build.eclipse.org...
> J
Re: Cannot profile application running with JDK 1.4.2 [message #118357 is a reply to message #117515] Fri, 16 November 2007 08:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.schaible.elsag-solutions.com

Hi Alex,

sorry for being late ...

"Alexander N. Alexeev" <alexander.n.alexeev@intel.com> schrieb im
Newsbeitrag news:97e498f2fd09f94f217943b07c5d66bb$1@www.eclipse.org...
> Hi, J
Re: Cannot profile application running with JDK 1.4.2 [message #118434 is a reply to message #117440] Mon, 19 November 2007 08:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.schaible.elsag-solutions.com

Hi Asaf,

sorry for the delay ... (and 2nd attempt to send this)

"Asaf Yaffe" <asaf.yaffe@intel.com> schrieb im Newsbeitrag
news:fgrsq8$llf$1@build.eclipse.org...
> J
Re: Cannot profile application running with JDK 1.4.2 [message #118439 is a reply to message #117515] Mon, 19 November 2007 08:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.schaible.elsag-solutions.com

Hi Alex,

sorry for being late ... (and 2nd attempt to send this)

"Alexander N. Alexeev" <alexander.n.alexeev@intel.com> schrieb im
Newsbeitrag news:97e498f2fd09f94f217943b07c5d66bb$1@www.eclipse.org...
> Hi, J
Re: Cannot profile application running with JDK 1.4.2 [message #118452 is a reply to message #118439] Mon, 19 November 2007 16:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexander.n.alexeev.intel.com

Hi, Jörg.

Sorry for delay in response.

> However, since I am able to reproduce the problem with this minimal Java
> application posted here in this thread at 6th Nov. the basic problem is
> buried in TPTP rather than my client ;-)
I agree, this is bug in TPTP :(. The problem is identified and, as I
wrote, main point is substituting of redundant classpath to profiled JVM.

> So simply add a commons-logging-1.1.jar.
Got it, problem is reproduced

> However, this workaround is not really feasible for the real case ... we
> have a lot of deps. As next step I will try your suggestion with the
> external profiler.
If problem only with logging then it isn't so awesome to fix classpath
with only one jar. More general you should explicitly put in profiled JVM
classpath all JARs which overlap with JAR substituted by TPTP.
Unfortunately meanwhile I can't suggest you anything else.

List of substituted for TPTP 4.4.0.3:
com.ibm.icu_3.6.1.v20070906.jar
org.eclipse.core.runtime_3.3.100.v20070530.jar
org.eclipse.emf.common_2.3.0.v200709252135.jar
org.eclipse.emf.ecore_2.3.1.v200709252135.jar
org.eclipse.equinox.common_3.3.0.v20070426.jar
org.eclipse.hyades.execution_4.4.1.v200709261752\hexcore.jar
org.eclipse.hyades.execution_4.4.1.v200709261752\hexl.jar
org.eclipse.hyades.execution_4.4.1.v200709261752\hexr.jar
org.eclipse.hyades.logging.core_4.3.101.v200709261752\config .jar
org.eclipse.hyades.logging.core_4.3.101.v200709261752\hl14.j ar
org.eclipse.hyades.logging.core_4.3.101.v200709261752\hlcomm ons.jar
org.eclipse.hyades.logging.core_4.3.101.v200709261752\hlcore .jar
org.eclipse.hyades.logging.core_4.3.101.v200709261752\hllog4 j.jar
org.eclipse.osgi_3.3.1.R33x_v20070828.jar
org.eclipse.tptp.monitoring.instrumentation_4.3.1.v200709261 752\cbeModel.jar
org.eclipse.tptp.monitoring.instrumentation_4.3.1.v200709261 752\jmxModel.jar
org.eclipse.tptp.platform.collection.framework_4.2.101.v2007 09261752\hcframe.jar
org.eclipse.tptp.platform.logging.events_4.3.101.v2007092617 52\config.jar
org.eclipse.tptp.platform.logging.events_4.3.101.v2007092617 52\hlcbe101.jar
org.eclipse.tptp.platform.logging.events_4.3.101.v2007092617 52\tlcore.jar
org.eclipse.tptp.platform.logging.events_4.3.101.v2007092617 52\tlcbe101.jar
org.eclipse.tptp.platform.logging.events_4.3.101.v2007092617 52\tlcore.jar
org.eclipse.tptp.trace.arm_4.3.1.v200709261752\armLibrary.ja r
org.eclipse.tptp.trace.arm_4.3.1.v200709261752\armModel.jar
org.eclipse.tptp.trace.arm_4.3.1.v200709261752\cbeLogging.ja r
org.mx4j.jmx_3.0.3.v200709261752\mx4j.jar
org.mx4j.jmx_3.0.3.v200709261752\mx4j-remote.jar
org.opengroup.arm_4.0.1.v200709261752\arm40_java_interfaces. jar

BTW: did you manage to use standalone profiling?


> BTW: Should I create an issue in Bugzilla (if it is not already reported)?
I've already created an issuein Bugzilla
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=209144). You can add
comments if consider them important.

Alex.
Re: Cannot profile application running with JDK 1.4.2 [message #118514 is a reply to message #118452] Tue, 20 November 2007 15:56 Go to previous message
Eclipse UserFriend
Originally posted by: joerg.schaible.elsag-solutions.com

Hi Alex,

"Alexander N. Alexeev" <alexander.n.alexeev@intel.com> schrieb im
Newsbeitrag news:4eee65deced2687059dcb95058b798b9$1@www.eclipse.org...
> Hi, J
Previous Topic:A time-out occurred while running command MacroCommand
Next Topic:Cannot collect object references
Goto Forum:
  


Current Time: Sat Nov 22 08:57:26 GMT 2014

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

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