ClassCastException or ClassNotFoundException [message #103209] |
Thu, 05 July 2007 17:52  |
Eclipse User |
|
|
|
I am trying to profile an application in Eclipse (Europa) and I keep
getting some exception like:
java.lang.ClassNotFoundException:
org.eclipse.hyades.logging.commons.FileLoggerFactory
or a ClassCastException telling me that FileLoggerFactory doesn't
implement org.apache.commons.logging.LogFactory
depending on where i am in my experiments to get it working. (btw these
exceptions are being thrown while it attempts to configure the logger
for Hibernate).
I have installed 4.4 with all prereqs to 3.3. The application launches
and runs correctly outside of TPTP.
Is there any specific plugins that i should make available in the launch
configuration or the running plugin?
How can I debug such a situation? Using launch profile doesn't support
debugging?
Any and all help would be very welcome.
Thanks
Alain
|
|
|
|
|
Re: ClassCastException or ClassNotFoundException [message #103463 is a reply to message #103351] |
Sat, 07 July 2007 14:39   |
Eclipse User |
|
|
|
Eugene,
I ran many more tests to try to pinpoint the origin of the issue.
I started with a new install to see if our install method that relies on
the link/products directories could have anything to do with the issue.
Well, I am not getting the same behavior at all, except that it looks worse.
I have been getting this error whenever I 1st try to start a profiling
session:
Error occurred during initialization of VM
Could not find agent library on the library path or in the local
directory: JPIBootLoader
And now I just got another type of error:
The JVMTI agent org.eclipse.tptp.jvmti is not available. Make sure that
the librairies for the agent are available and that it is configured
properly.
I then tried to make some path changes and cleanup. This changed the
error messages, but it still kept failing.
I also tried running the sampleclient application, and that ran without
a glitch.
After all of this, I then downloaded the "all TPTP SDK" package and
overlaid it on my new install. After a clean restart, I have now stopped
getting any of the new errors and I am actually getting the exact same
errors as with my original install (ClassNotFoundException:
org.eclipse.hyades.logging.commons.FileLoggerFactory).
A couple more notes:
1) It seems that unless I do a connection test prior to launching the
profile launch, I get an error connecting to the agent.
2) Every time I start profile a launch configuration, it insist of doing
a "build before launch", even if I have just been running the same exact
launch config under debug seconds before. Furthermore, it is trying to
build other non-related workspace projects. Is that expected behavior?
Thanks for your help (I really need it here).
Alain
|
|
|
|
|
|
|
|
|
|
Re: ClassCastException or ClassNotFoundException [message #120901 is a reply to message #109085] |
Wed, 16 January 2008 00:16  |
Eclipse User |
|
|
|
This problem still exists in TPTP 4.4.1. I've filed the bug 215438 here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=215438
Svenja Wendler wrote on 8/15/2007 7:22 PM:
> Hi,
>
> I have a similar problem to you, but I did not find the bug for that so
> I cannot aprove if its solved already. This is my log:
>
> !SUBENTRY 1 org.eclipse.equinox.registry 4 1 2007-08-14 17:58:03.884
> !MESSAGE Plug-in "com.builder" was unable to instantiate class
> "com.builder.Builder".
> !STACK 0
> java.lang.ExceptionInInitializerError
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
> Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n
> Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.core.internal.events.BuildManager.instantiateBui lder(BuildManager.java:779)
>
> at
> org.eclipse.core.internal.events.BuildManager.initializeBuil der(BuildManager.java:732)
>
> at
> org.eclipse.core.internal.events.BuildManager.getBuilder(Bui ldManager.java:473)
>
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:195)
>
> at
> org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:246)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:249)
>
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:214)
>
> at
> org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:353)
> at
> org.eclipse.core.internal.resources.Project.internalBuild(Pr oject.java:494)
> at org.eclipse.core.internal.resources.Project.build(Project.ja va:75)
> at
> org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(Clea nDialog.java:242)
>
> at
> org.eclipse.ui.internal.ide.dialogs.CleanDialog$1.runInWorks pace(CleanDialog.java:127)
>
> at
> org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.eclipse.hyades.logging.commons.FileLoggerFactory (Caused by
> java.lang.ClassNotFoundException:
> org.eclipse.hyades.logging.commons.FileLoggerFactory)
> at
> org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1205)
> at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 994)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.commons.logging.LogFactory.newFactory(LogFactory. java:991)
> at
> org.apache.commons.logging.LogFactory.getFactory(LogFactory. java:572)
> at org.apache.commons.logging.LogFactory.getLog(LogFactory.java :645)
> at
> com.bosch.blueworx.builder.BlueWorXBuilder.<clinit>(BlueWorXBuilder.java:207)
>
> ... 25 more
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.hyades.logging.commons.FileLoggerFactory
> at java.lang.ClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:429)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at
> org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1190)
> ... 31 more
>
> What is the problem?
>
> I hope you could help me
>
> Svenja
>
|
|
|
Powered by
FUDForum. Page generated in 0.27887 seconds