[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology] Re: Problem running my plugin

Hi Chris,

this looks like something that you should report to the Equinox newsgroup. I experienced the same problems and ended up deleting my plugin.properties file. That did it.

Please report on the equinox newsgroup and/or open a bug.

Regards,

Antoine

Chris Thomas wrote:
Chris Thomas wrote:
Hi,

I'm the sole developer of a plugin called Esftp, it's a SFTP transfer
plugin which lets you right click files in your project and upload them
to the server.

recently I was wanting to get back to the grind and do another release,
I updated to europa (v3.3) and opened the plugin code and started to try
updating some things.

without wanting to go into detail about my problems with eclipse, I
shall link to my blog where I describe one problem with files and fat32
filesystems I found under eclipse, read more here:

http://www.antimatter-studios.co.uk/sites/chris/blog/?p=43

Anyway, that problem withstanding, I have another.  When I try to debug
my eclipse plugin, I setup a debug session for my plugin, I sorted out
one problem already with this in that eclipse can have a plugin
installed and then when you debug your plugin, sometimes eclipse
determines that the plugin should use the ALREADY installed version and
not the one you are debugging.  So you eventually figure that out and
disable the plugin you have installed during the debug session.

What happens is that my plugin cannot activate, eclipse debugging will
run the other eclipse session, but I cannot open a property page, this
is what happens, I run eclipse debug with the -consoleLog option and
then I look at the output, at the bottom you can find all the output
from various files I have and see if you can find any problem with
anything because I am stumped and cannot find anything.

I hope someone can help with this situation.

If anyone finds this plugin useful! PLEASE HELP ME FIX THIS!

<consoleLog>
!ENTRY org.eclipse.osgi 2 0 2007-07-16 22:54:27.236
!MESSAGE The activator com.antimatter_studios.esftp.Activator for bundle
com.antimatter_studios.esftp is invalid
!STACK 0
org.osgi.framework.BundleException: The activator
com.antimatter_studios.esftp.Activator for bundle
com.antimatter_studios.esftp is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:141)


at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)


at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)


at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)


at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:234)


at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1269)


at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)


at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)


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.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:243)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:239)


at
org.eclipse.ui.internal.dialogs.RegistryPageContributor.createPage(RegistryPageContributor.java:119)


at
org.eclipse.ui.internal.dialogs.PropertyPageNode.createPage(PropertyPageNode.java:56)


at
org.eclipse.jface.preference.PreferenceDialog.createPage(PreferenceDialog.java:1294)


at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(FilteredPreferenceDialog.java:313)


at
org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1185)


at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:433)


at
org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:698)


at
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)


at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at
org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)


at
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)


at
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)


at
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)


at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)


at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3296)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2974)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:156)


at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)



at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)


at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)


at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)


at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)


at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)


at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)


at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)


at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)


at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)


at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)


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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Caused by: java.lang.ClassNotFoundException:
com.antimatter_studios.esftp.Activator
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:434)


at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)


at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)


at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)


at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:289)


at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)


at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:134)


... 67 more
Root exception:
java.lang.ClassNotFoundException: com.antimatter_studios.esftp.Activator
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:434)


at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)


at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)


at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)


at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:289)


at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)


at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:134)


at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)


at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)


at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)


at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:234)


at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1269)


at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)


at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)


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.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:243)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:239)


at
org.eclipse.ui.internal.dialogs.RegistryPageContributor.createPage(RegistryPageContributor.java:119)


at
org.eclipse.ui.internal.dialogs.PropertyPageNode.createPage(PropertyPageNode.java:56)


at
org.eclipse.jface.preference.PreferenceDialog.createPage(PreferenceDialog.java:1294)


at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(FilteredPreferenceDialog.java:313)


at
org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1185)


at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:433)


at
org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:698)


at
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)


at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at
org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)


at
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)


at
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)


at
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)


at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)


at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3296)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2974)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:156)


at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)


at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)


at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)


at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)


at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)


at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)


at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)


at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)


at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)


at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)


at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)


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:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
</consoleLog>

<MANIFEST.MF>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Sftp Plug-in
Bundle-SymbolicName: com.antimatter_studios.esftp; singleton:=true
Bundle-Version: 1.1.5
Bundle-Activator: com.antimatter_studios.esftp.Activator
Bundle-Vendor: Chris Alex Thomas
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.core.resources,
 org.eclipse.jface.text,
 org.eclipse.ui.console
Eclipse-LazyStart: true
Export-Package: com.antimatter_studios.esftp,
 com.antimatter_studios.esftp.actions,
 com.antimatter_studios.esftp.directory,
 com.antimatter_studios.esftp.properties,
 com.antimatter_studios.esftp.ui
Bundle-ClassPath: .,
 lib/commons-logging.jar,
 lib/esftp-sshtools.jar
</MANIFEST.MF>

<plugin.xml>

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            adaptable="true"
            id="com.antimatter_studios.esftp.Menu"
            objectClass="org.eclipse.core.resources.IResource">

         <menu
               id="com.antimatter_studios.esftp"
               label="ESftp">
            <separator name="group"/>
         </menu>

         <action
            class="com.antimatter_studios.esftp.actions.GetSelection"
            definitionId="com.antimatter_studios.esftp.get"
            id="com.antimatter_studios.esftp.getItem"
            label="Get File From Server"
            menubarPath="com.antimatter_studios.esftp/group"/>

        <action
            class="com.antimatter_studios.esftp.actions.PutSelection"
            definitionId="com.antimatter_studios.esftp.put"
            id="com.antimatter_studios.esftp.putItem"
            label="Put File to Server"
            menubarPath="com.antimatter_studios.esftp/group"/>

        <action
            class="com.antimatter_studios.esftp.actions.PutSaveSelection"
            definitionId="com.antimatter_studios.esftp.putSave"
            id="com.antimatter_studios.esftp.putSaveItem"
            label="Put File to Server and Save"
            menubarPath="com.antimatter_studios.esftp/group"/>

      </objectContribution>
   </extension>
   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            class="com.antimatter_studios.esftp.ui.Workbench"
            id="com.antimatter_studios.esftp.properties.Workbench"
            name="ESftp"/>
   </extension>

   <extension
         point="org.eclipse.ui.propertyPages">
      <page
            class="com.antimatter_studios.esftp.ui.Project"
            id="com.antimatter_studios.esftp.properties.Project"
            name="ESftp"
            objectClass="org.eclipse.core.resources.IProject"/>
   </extension>

    <extension point="org.eclipse.ui.actionSets">
        <actionSet label="ESftp" visible="true"
            id="com.antimatter_studios.esftp.actionSet">
            <menu label="ESf&amp;tp"
            id="com.antimatter_studios.esftp.esftpmenu"
            path="window">
                <separator name="ESftpGroupMenu"></separator>
            </menu>
            <action
         class="com.antimatter_studios.esftp.actions.PutSelection"
         definitionId="com.antimatter_studios.esftp.put"
         icon="icons/put.gif"
         id="com.antimatter_studios.esftp.putActionSet"
         label="&amp;Put File"

menubarPath="com.antimatter_studios.esftp.esftpmenu/ESftpGroupMenu"
         toolbarPath="ESftpGroupMenu"
         tooltip="Put File to Server">
            </action>
            <action
         class="com.antimatter_studios.esftp.actions.PutSaveSelection"
         definitionId="com.antimatter_studios.esftp.putSave"
         icon="icons/put.gif"
         id="com.antimatter_studios.esftp.putSaveActionSet"
         label="&amp;Put+Save File"

menubarPath="com.antimatter_studios.esftp.esftpmenu/ESftpGroupMenu"
         toolbarPath="ESftpGroupMenu"
         tooltip="Put File to Server and Save">
            </action>
            <action
         class="com.antimatter_studios.esftp.actions.GetSelection"
         definitionId="com.antimatter_studios.esftp.get"
         icon="icons/get.gif"
         id="com.antimatter_studios.esftp.getActionSet"
         label="&amp;Get File"

menubarPath="com.antimatter_studios.esftp.esftpmenu/ESftpGroupMenu"
         toolbarPath="ESftpGroupMenu"
         tooltip="Get file from remote">
            </action>
        </actionSet>
    </extension>

    <extension point="org.eclipse.ui.commands">
        <category name="EsftpCategory"
            description="ESftp Commands"
            id="com.antimatter_studios.esftp.commandCategory">
        </category>
        <command
            categoryId="com.antimatter_studios.esftp.commandCategory"
            name="Put File to Server"
            id="com.antimatter_studios.esftp.put" />
        <command
        categoryId="com.antimatter_studios.esftp.commandCategory"
        id="com.antimatter_studios.esftp.putSave"
        name="Put File to Server and Save"/>
        <command
            categoryId="com.antimatter_studios.esftp.commandCategory"
            name="Get File from Server"
            id="com.antimatter_studios.esftp.get" />
    </extension>
    <extension point="org.eclipse.ui.bindings">
        <key sequence="Ctrl+Alt+P"
            commandId="com.antimatter_studios.esftp.put"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" />
        <key sequence="Ctrl+Alt+S"
            commandId="com.antimatter_studios.esftp.putSave"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" />
        <key sequence="Ctrl+Alt+G"
            commandId="com.antimatter_studios.esftp.get"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" />
    </extension>
</plugin>

</plugin.xml>

<build.properties>
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
               META-INF/,\
               .,\
               lib/
</build.properties>

ok, after talking to paul webster on IRC, I found the solution, which was that on the build tab, at the top, you have two sections under "runtime configuration", on the left, you have add library, it usually contains "." as the only item, or more, but "." is usually there. On the other side, you have add Folder, there was the problem, it was empty, upon adding "src", which is the folder containing the plugin source code, I was able to finally get the plugin to work.


so I hope that helps some people and saves them from the problem I had.


--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com";>http://www.intalio.com</a>
<a href="http://bpms.intalio.com";>Community website</a>