#311 Error using Eclipse 3.7

open
nobody
None
5
2014-08-26
2011-06-28
Matthias Albert
No

After installing vssplugin in Eclipse 3.7, an error occurs after starting a new workspace and opening some views:
"Problem Occured", "An error has occured. See log for more details. org/vssplugin/ui/menuactions/ActionAdaptor"

Is there still support for vssplugin??
Thanks in advance.
Matthias

stacktrace from error log:

java.lang.NoClassDefFoundError: org/vssplugin/ui/menuactions/ActionAdaptor
at org.vssplugin.ui.menuactions.MenuAction.selectionChanged(MenuAction.java:159)
at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:277)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:299)
at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:156)
at org.eclipse.ui.internal.AbstractSelectionService.setActivePart(AbstractSelectionService.java:282)
at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:135)
at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:125)
at org.eclipse.ui.internal.WWinPartService$WWinListener.partDeactivated(WWinPartService.java:50)
at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:115)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55)
at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:113)
at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:242)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3636)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3159)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:279)
at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:325)
at org.eclipse.ui.internal.PartStack$PartStackDropResult.drop(PartStack.java:235)
at org.eclipse.ui.internal.dnd.DragUtil.performDrag(DragUtil.java:134)
at org.eclipse.ui.internal.FastViewPane$2.dragStart(FastViewPane.java:161)
at org.eclipse.ui.internal.FastViewPane$2.dragStart(FastViewPane.java:136)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:118)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:269)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:282)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.handleDragStarted(AbstractTabFolder.java:366)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder$2.handleEvent(AbstractTabFolder.java:67)
at org.eclipse.ui.presentations.PresentationUtil.handleMouseMove(PresentationUtil.java:110)
at org.eclipse.ui.presentations.PresentationUtil.access$4(PresentationUtil.java:95)
at org.eclipse.ui.presentations.PresentationUtil$2.handleEvent(PresentationUtil.java:63)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

Discussion

  • soynerdito
    soynerdito
    2011-10-03

    Same thing happened to me.
    I downloaded the code for the plugin and check on that. Seems that on the new Eclipse Platform the class ActiveEditorAction.java is not included. In my case, I downloaded the code for this class (from https://www.docjar.com/html/api/org/eclipse/ui/internal/ActiveEditorAction.java.html\) and recompiled the plugin. and it worked.
    You may want to try that if you want. Just starting on using it again in the Indigo release so do not know if something else shall appear.
    If somebody involved in this project reads this, this is a fast and not that nice fix (but might be sufficient to get version alive).

     
  • D. A. Rickard
    D. A. Rickard
    2011-10-19

    soynerdito, can you post your patched jar? If not, can you give more specific instructions on how you created yours?

    Thanks!

     
  • Wendy G
    Wendy G
    2011-11-15

    This project is an example why using any class after .internal is a bad idea, trying to rebuild it for my 64 eclipse, and failing at almost every point. It won't compile as all the COM methods are internal and access restricted.

     
  • soynerdito
    soynerdito
    2011-12-08

    The compiled plugin for 32 bits is at:
    http://www.megaupload.com/?d=T01ENHSY

    On windows 64 bits is another story.
    Sorry for not posting a link.

     
  • soynerdito
    soynerdito
    2011-12-20

    Adding to this thread my preliminary findings.
    I was able to compile the vssplugin in a windows 64 bits pc (the error is just some calling functions needed to be changed from int to long). However it did not worked correctly and I tracked down the up to the call of the visual source safe dll. From there searched the web and found a forum (sorry I closed and do not have the link) where mentioned the problem and that it was related to the dll being in 32 bits and the calling program in 64 bits.

    There are two fast and dirty "fixes":
    Resolution 1:
    I was able to connect on Windows 64 bits by using Eclipse 32 bits. If you are in need of using VSS plugin in eclipse from a windows 64 bit computer. Download and run the Eclipse 32 bit and it should work (based on preliminary testing).

    Resolution 2: (Have not tried)
    In this post is mentioned that the dll of the 32 bit (the one from Microsoft source safe client) can be copy pasted the reference in the registry and the calling processes (Eclipse).
    http://www.gfi.com/blog/32bit-object-64bit-environment/

    If I have any progress on this matter will get back here to post and update. Hope this helps.
    If somebody is able to run this by using the 32 bit Eclipse, please comment bellow for others to benefit.

     
  • SANSSAN
    SANSSAN
    2012-01-10

    @ soynerdito:

    Megaupload site is down. Could you please upload, the VSS plugin for 32bit os and Eclipse 3.7 or later versions?

     
  • soynerdito
    soynerdito
    2012-01-24

    Plugin Compiled as a jar is now on mediafire. This only works with 32 bit Eclipse version (if on a 64 PC use 32 bit Eclipse if want to connect to source safe)
    Download link:
    http://www.mediafire.com/?7dsjm4nb1h9pjni