Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

The choosen operation is not available

2009-09-16
2013-01-02
  • Nobody/Anonymous

    Hi,

    if i choose the Menue-Items "detect unnecessary code" i get the
    error-message "The choosen operation is currently not available".

    what is wrong?

    You will find some information at the bottom.

    best regards

    Klaus Welsing

    In the error-log i see those exceptions:

    ENTRY org.eclipse.ui 4 4 2009-09-15 15:07:46.774

    !MESSAGE Could not create action delegate for id: org.ucdetector.SearchAction

    !ENTRY org.eclipse.equinox.registry 4 1 2009-09-15 15:07:46.774

    !MESSAGE Plug-in org.ucdetector was unable to load class
    org.ucdetector.action.UCDetectorAction.

    !STACK 0

    java.lang.ClassNotFoundException: org.ucdetector.action.UCDetectorAction

    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(Bun
    dleLoader.java:481)

    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoade
    r.java:397)

    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoade
    r.java:385)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultC
    lassLoader.java:87)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoade
    r.java:313)

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

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractB
    undle.java:1274)

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

    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtens
    ion(ExtensionRegistry.java:867)

    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExt
    ension(ConfigurationElement.java:243)

    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecuta
    bleExtension(ConfigurationElementHandle.java:51)

    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:267)

    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.jav
    a:263)

    at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)

    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:223)

    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Actio
    nContributionItem.java:583)

    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContribution
    Item.java:500)

    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContrib
    utionItem.java:411)

    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)

    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)

    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)

    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)

    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)

    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)

    at
    org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)

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

    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(EclipseA
    ppLauncher.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(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:549)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

    some eclipse-Infos:

    *** Platform Details:

    *** System properties:
    awt.toolkit=sun.awt.windows.WToolkit

    eclipse.buildId=M20080911-1700

    eclipse.commands=-os

    win32

    -ws
    win32

    -arch
    x86

    -showsplash
    C:\Programme\eclipse\plugins\org.eclipse.platform_3.3.101.v200809111700\splas
    h.bmp

    -launcher

     
  • Joerg Spieler

    Joerg Spieler - 2009-09-16

    That's strange! UCDetector should work with eclipse 3.3.

    You must use java >= 1.5

    Can you see the UCDetector preference page?

    Do you have more then one ucdetector*.jar in the plugins dir?

    Maybe the stack trace you added above is not complete.

    Try it with eclipse > 3.3

     
  • Nobody/Anonymous

    I use java jdk1.6.0_16.

    I didn't se the UCDetector UCDetector preference page.

    There is only the file org.ucdetector.source_1.2.0.jar in the plugins dir.

    In an another environment i have got the same message with eclips 3.5.

    I used the install discreption at the homepage of udetector.

    thank's for your answer

    Klaus Welsing

     
  • Nobody/Anonymous

    I have found the defect. ECLIPSE_HOME pointed to the wrong directory.

    After correction anything works fine.

    thanks 4 all

     
  • Joerg Spieler

    Joerg Spieler - 2009-09-16

    That's strange: A wrong ECLIPSE_HOME causes plugins not to load.

     
  • Joerg Spieler

    Joerg Spieler - 2009-09-17

    I god another solution for this problem by a user:

    I reinstalled the plugin and it's working fine now.

    Another solution may be moving the jar

    from:

    ECLIPSE_HOME\dropins\org.ucdetector_x.y.z.jar

    to:

    ECLIPSE_HOME\plugins\org.ucdetector_x.y.z.jar

     
  • Nobody/Anonymous

    I got the same problem where the error log shows a ClassNotFoundException.
    (using java 1.5, no problem with ECLIPSE_HOME) This also prevented the
    UCDetector reference page to load. stacktrace:

    java.lang.ClassNotFoundException:
    org.ucdetector.preferences.UCDetectorPreferencePageKeywords

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoade
    r.java:489)

    at
    org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)

    at
    org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultC
    lassLoader.java:105)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

    at
    org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:321)

    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.ja
    va:231)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractB
    undle.java:1193)

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

    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtens
    ion(ExtensionRegistry.java:874)

    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExt
    ension(ConfigurationElement.java:243)

    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecuta
    bleExtension(ConfigurationElementHandle.java:51)

    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:267)

    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.jav
    a:263)

    at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode.createPage(Workbenc
    hPreferenceNode.java:47)

    at org.eclipse.jface.preference.PreferenceDialog.createPage(PreferenceDialog.j
    ava:1339)

    at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(Filtere
    dPreferenceDialog.java:382)

    at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.jav
    a:1230)

    at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredP
    referenceDialog.java:679)

    at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:
    708)

    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

    at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(Preference
    Dialog.java:704)

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

    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.JFaceUtil$1.run(JFaceUtil.java:48)

    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)

    at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(Structu
    redViewer.java:862)

    at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewe
    r.java:1175)

    at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewe
    r.java:1200)

    at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.jav
    a:251)

    at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:245)

    at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:419)

    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

    at
    org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)

    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)

    at org.eclipse.jface.window.Window.open(Window.java:801)

    at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPre
    ferenceDialog.java:211)

    at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.jav
    a:65)

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

    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Actio
    nContributionItem.java:584)

    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContribution
    Item.java:501)

    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContrib
    utionItem.java:411)

    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)

    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)

    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)

    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)

    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)

    at
    org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

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

    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
    :194)

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

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseA
    ppLauncher.java:79)

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

    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(DelegatingMethodAccessorImp
    l.java:25)

    at java.lang.reflect.Method.invoke(Method.java:585)

    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

     
  • Joerg Spieler

    Joerg Spieler - 2009-09-22

    I think this is not a UCDetector problem. It is a update manager (p2) problem.
    Try:

    • Uninstall UCDetector (or remove ucdetector.jar from plugins dir)
    • restart eclipse
    • put ucdetector.jar in dropins directory
    • restart eclipse

    Maybe there is more information in WORKSPACE/.metadata/.log

     
  • Nobody/Anonymous

    Hi spj,

    This did not fix the problem. I tried using the update manager instead of
    dropping the jar in either the dropins or plugins, but that resulted in the
    plugin to be not visible at all.

    The .log file in .metadata shows a classnotfound:

    Caused by: java.lang.ClassNotFoundException: org.ucdetector.UCDetectorPlugin

    I saw that after using the update site, eclipse created a feature folder for
    UCdetector 1.2.0. I tried adding the jar after that by hand, because it was
    not present in the plugins folder. I don't know why eclipse would be unable to
    fund the classes. If I can provide more information, please ask.

     
  • Joerg Spieler

    Joerg Spieler - 2009-09-23

    I experimented a little bit and had the same problems,

    when ucdetector was installed by "Help/install new software".

    After:

    • uninstalling ucdetector using "Help/install new software".
    • Exit eclipse
    • put ucdetector.jar in dropin directory

    it worked.

    Maybe org.ucdetector_1.2.0.jar is corrupt:

    Check, if file size is about 162 KB

    Can you unzip org.ucdetector_1.2.0.jar ?

    If all this does not work... Sorry I have no more idea...

    Maybe try a fresh eclipse-3.5!

     
  • Joerg Spieler

    Joerg Spieler - 2011-03-15

    Closed discussion because of spam.

     
  • Joerg Spieler

    Joerg Spieler - 2011-09-12

    When the plugin is not visible at all, start eclipse with the osgi console and
    install ucdetector manually:

    > cd eclipse
    > ./eclipse -console
    osgi> install file:./dropins/org.ucdetector_1.8.0.jar
    osgi> start org.ucdetector
    

    This should result in an error message.

     
  • Joerg Spieler

    Joerg Spieler - 2011-10-12

    UCDetector 1.9.0 will work with "Eclipse IDE for Java Developers" (changed
    dependency org.eclipse.pde.core to "optional")

     
  • Anonymous

    Anonymous - 2013-01-02

    Steps to use the UCDetector as below link:

    http://www.ucdetector.org/

    Nanda Kishore

     

Anonymous
Anonymous

Cancel  Add attachments