p4eclipse 0.6.24 + eclipse 3.0.1 + Perforce 2004.2 +
java 1.5:
Eclipse startup is extremely slow when p4eclipse is
enabled.
Eclipse log file follows (note the 5000ms delays):
!SESSION Nov 09, 2004 16:47:55.561
---------------------------------------------
eclipse.buildId=I200406251208
java.version=1.5.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32,
NL=en_US
!ENTRY org.eclipse.osgi Nov 09, 2004 16:47:55.561
!MESSAGE While loading class
"net.sourceforge.perforce.core.internal.api.Counters",
thread "Perforce Background Update Monitor" timed out
waiting (5000ms) for thread "main" to finish starting
bundle "net.sourceforge.perforce.core". To avoid
deadlock, thread "Perforce Background Update Monitor"
is proceeding but
"net.sourceforge.perforce.core.internal.api.Counters"
may not be fully initialized.
!STACK 0
java.lang.Exception: Generated exception.
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:102)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
net.sourceforge.perforce.core.internal.api.PerforceServer.counters(PerforceServer.java:368)
at
net.sourceforge.perforce.core.internal.BackgroundUpdateRunnable.getCurrentChangelistNumber(BackgroundUpdateRunnable.java:177)
at
net.sourceforge.perforce.core.internal.BackgroundUpdateRunnable.getLastChangelistNumber(BackgroundUpdateRunnable.java:160)
at
net.sourceforge.perforce.core.internal.BackgroundUpdateRunnable.run(BackgroundUpdateRunnable.java:70)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.osgi Nov 09, 2004 16:48:00.592
!MESSAGE While loading class
"net.sourceforge.perforce.core.internal.api.AbstractPerforceCommand",
thread "Perforce Background Update Monitor" timed out
waiting (5000ms) for thread "main" to finish starting
bundle "net.sourceforge.perforce.core". To avoid
deadlock, thread "Perforce Background Update Monitor"
is proceeding but
"net.sourceforge.perforce.core.internal.api.AbstractPerforceCommand"
may not be fully initialized.
!STACK 0
java.lang.Exception: Generated exception.
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:102)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:298)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineClass(EclipseClassLoader.java:223)
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.findClassImpl(DefaultClassLoader.java:281)
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.findClass(DefaultClassLoader.java:172)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.findLocalClass(AbstractClassLoader.java:220)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFindLocalClass(EclipseClassLoader.java:135)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:104)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
net.sourceforge.perforce.core.internal.api.PerforceServer.counters(PerforceServer.java:368)
at
net.sourceforge.perforce.core.internal.BackgroundUpdateRunnable.getCurrentChangelistNumber(BackgroundUpdateRunnable.java:177)
at
net.sourceforge.perforce.core.internal.BackgroundUpdateRunnable.getLastChangelistNumber(BackgroundUpdateRunnable.java:160)
at
net.sourceforge.perforce.core.internal.BackgroundUpdateRunnable.run(BackgroundUpdateRunnable.java:70)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.osgi Nov 09, 2004 16:48:05.608
!MESSAGE While loading class
"net.sourceforge.perforce.core.api.ICountersResult",
thread "Perforce Background Update Monitor" timed out
waiting (5000ms) for thread "main" to finish starting
bundle "net.sourceforge.perforce.core". To avoid
deadlock, thread "Perforce Background Update Monitor"
is proceeding but
"net.sourceforge.perforce.core.api.ICountersResult" may
not be fully initialized.
!STACK 0
java.lang.Exception: Generated exception.
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:102)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
net.sourceforge.perforce.core.internal.api.PerforceServer.counters(PerforceServer.java:368)
at
net.sourceforge.perforce.core.internal.BackgroundUpdateRunnable.getCurrentChangelistNumber(BackgroundUpdateRunnable.java:177)
at
net.sourceforge.perforce.core.internal.BackgroundUpdateRunnable.getLastChangelistNumber(BackgroundUpdateRunnable.java:160)
at
net.sourceforge.perforce.core.internal.BackgroundUpdateRunnable.run(BackgroundUpdateRunnable.java:70)
at java.lang.Thread.run(Unknown Source)
Logged In: YES
user_id=728382
I just started using p4eclipse with multiple shared projects
using two difference "server" (p4 client) definitions, and I
started getting this error pretty soon thereafter.
On restarting eclipse, it doesn't necessarily hang
immediately, but the projects are left in
incompletely-shared status ("Share Project" is greyed out,
and the project is listed in the Perforce Server's
Properties>Project References, but the files do not seem to
be known as being under source control). When I Disconnect,
then try again to "Share Project", the hang occurs again
until I kill eclipse. On restart, the project sharing
status is still messed up.
I get exactly the same log messages as noted above, and a
clear thread-deadlock 100%-CPU situation in one or sometimes
two of the eclipse threads.