Vault Eclipse Plugin Mac OS X PropertyTester

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

brewer531
Posts: 26
Joined: Tue Aug 31, 2004 3:07 pm

Vault Eclipse Plugin Mac OS X PropertyTester

Post by brewer531 » Tue May 12, 2009 2:48 pm

I am using Eclipse 3.4.2 on OS X. I import a project into my workspace and everything seems ok until I quit Eclipse and relaunch it. When I right-click on my project, I get the stack trace below. I have to scrap my workspace and re-import the project. Any ideas what could be wrong? That class is certainly in Eclipse.

Thanks, Jeff Brewer, PayCycle, Inc.

!MESSAGE Plug-in com.sourcegear.vault.team was unable to load class com.sourcegear.vault.team.ui.ConnectionPropertyTester.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/core/expressions/PropertyTester
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:446)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:315)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.core.internal.expressions.PropertyTesterDescriptor.instantiate(PropertyTesterDescriptor.java:92)
at org.eclipse.core.internal.expressions.TypeExtension.findTypeExtender(TypeExtension.java:91)
at org.eclipse.core.internal.expressions.TypeExtension.findTypeExtender(TypeExtension.java:141)
at org.eclipse.core.internal.expressions.TypeExtension.findTypeExtender(TypeExtension.java:124)
at org.eclipse.core.internal.expressions.TypeExtension.findTypeExtender(TypeExtension.java:124)
at org.eclipse.core.internal.expressions.TypeExtensionManager.getProperty(TypeExtensionManager.java:107)
at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:96)
at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
at org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:53)
at org.eclipse.ui.internal.ObjectActionContributor$ObjectContribution.isApplicableTo(ObjectActionContributor.java:374)
at org.eclipse.ui.internal.ObjectActionContributor.isApplicableTo(ObjectActionContributor.java:242)
at org.eclipse.ui.internal.ObjectContributorManager.isApplicableTo(ObjectContributorManager.java:303)
at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(ObjectActionContributorManager.java:83)
at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(PopupMenuExtender.java:261)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:337)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:335)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:463)
at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:459)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:485)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:235)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1566)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:225)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:3534)
at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java:2083)
at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:375)
at org.eclipse.swt.widgets.Display.controlProc(Display.java:862)
at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method)
at org.eclipse.swt.widgets.Tree.kEventMouseDown(Tree.java:2599)
at org.eclipse.swt.widgets.Widget.mouseProc(Widget.java:1326)
at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2929)
at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3051)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

brewer531
Posts: 26
Joined: Tue Aug 31, 2004 3:07 pm

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by brewer531 » Tue May 12, 2009 2:51 pm

I forgot to mention I am on Vault 4.1.4

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by Beth » Tue May 12, 2009 3:33 pm

What JRE version are you using?
Beth Kieler
SourceGear Technical Support

brewer531
Posts: 26
Joined: Tue Aug 31, 2004 3:07 pm

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by brewer531 » Tue May 12, 2009 4:08 pm

!SESSION 2009-05-12 13:40:55.291 -----------------------------------------------
eclipse.buildId=M20090211-1700
java.version=1.5.0_16
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments: -keyring /Users/jeff/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws carbon -arch x86 -keyring /Users/jeff/.eclipse_keyring -consoleLog -showlocation

shannon

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by shannon » Wed May 13, 2009 7:36 am

Are you using plain Eclipse or an Eclipse-based IDE? (If it's plain Eclipse do you know exactly what flavor you downloaded, i.e. Classic, for Java Devs, for JEE Devs, etc?)

Usually we only see that error when that class is really missing and that happens mostly with Eclipse-based IDEs because they'll strip out some of the packages they don't need. It's weird if you're seeing the error and the PropertyTester class really does exist. Are there any other errors listed in your Eclipse error log?

I'm investigating one other report of this, but I haven't tracked a cause yet.

brewer531
Posts: 26
Joined: Tue Aug 31, 2004 3:07 pm

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by brewer531 » Wed May 13, 2009 11:26 am

I am using the java EE developers package right from eclipse.org - eclipse-jee-ganymede-SR2-macosx-carbon.tar.gz

I see the jar that the class is in in the plugins directory. I figure its some kind of messed up configuration but I've cleaned out as much stuff as I can find and started with a clean eclipse installation. This seems to happen on one of my machines and not the other one too but I haven't been able to track down what's different.

shannon

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by shannon » Thu May 14, 2009 7:32 am

You're right. I've done some testing with the JEE version and it doesn't seem to find PropertyTester even though it exists (I did crack open the jar to make sure it was there). However, when I restart Eclipse, everything still works (except the loading of PropertyTester, which shouldn't be a big problem). I'm still working on this, I'll keep this thread updated.

shannon

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by shannon » Thu May 14, 2009 8:04 am

Can you post/attach a copy of your VaultEclipseLog.log file? I think it should be in /tmp or /usr/tmp

brewer531
Posts: 26
Joined: Tue Aug 31, 2004 3:07 pm

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by brewer531 » Thu May 14, 2009 11:27 am

Because it dies so early, it never creates a Vault eclipse log for me.

shannon

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by shannon » Thu May 14, 2009 11:46 am

Really? It should have created one the very first time you logged in and connected to a repository to do the import.

Ok, something is happening to your cache files I think. I think they should be stored here: ~/Library/SourceGear/Vault_1
I don't really have much direction to give here, but maybe nose around that area and see if that data is being deleted by some other process or maybe we can't write to that area for some reason.

brewer531
Posts: 26
Joined: Tue Aug 31, 2004 3:07 pm

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by brewer531 » Thu May 14, 2009 1:11 pm

I cleared my log after setting it up. I attached the log from the point of setting up a new project. My point was that it doesn't write to that log after I restart eclipse and start getting the PropertyTester error. I attached my full .log and VaultLog to this post to see if that gives you any clues.

One interesting thing is that I am getting this while setting up the project if you can look in your source:
!ENTRY org.eclipse.ui 4 4 2009-05-14 10:56:56.169
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.sourcegear.vault.team.LabelDecorator.decorate(LabelDecorator.java:75)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:72)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:356)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:338)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:374)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:334)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Attachments
eclipse.txt
(15.7 KiB) Downloaded 562 times
VaultEclipseLog.txt.gz
(122.09 KiB) Downloaded 590 times

shannon

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by shannon » Thu May 14, 2009 1:31 pm

Sorry, I misunderstood.

So, the log confirms, Eclipse should be looking for your cache files here /Users/jeff/Library/Sourcegear/Vault_1

Is there anything there?

brewer531
Posts: 26
Joined: Tue Aug 31, 2004 3:07 pm

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by brewer531 » Thu May 14, 2009 3:03 pm

Yes. It's all there (it contains a client folder and stuff under there). If I import the project it works fine until I quit eclipse and then start it back up. When I start it back up, nothing is written to the VaultEclipseLog - the PropertyTester exception is just there.

shannon

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by shannon » Thu May 14, 2009 3:16 pm

Do you have any projects closed in your Eclipse workspace? If so, open them up and restart, see if that helps.

brewer531
Posts: 26
Joined: Tue Aug 31, 2004 3:07 pm

Re: Vault Eclipse Plugin Mac OS X PropertyTester

Post by brewer531 » Thu May 14, 2009 4:34 pm

I only have one project.

Post Reply