Subscribe

The choosen operation is not available

  1. nobody

    2009-09-16 01:26:16 PDT
    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(BundleLoader.java:481) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313) 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.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.java: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(ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.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(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(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\splash.bmp -launcher
  2. spjProject Admin

    2009-09-16 03:13:00 PDT
    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
  3. nobody

    2009-09-16 03:47:26 PDT
    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
  4. nobody

    2009-09-16 04:29:35 PDT
    I have found the defect. ECLIPSE_HOME pointed to the wrong directory. After correction anything works fine. thanks 4 all
  5. spjProject Admin

    2009-09-16 08:22:19 PDT
    That's strange: A wrong ECLIPSE_HOME causes plugins not to load.
  6. spjProject Admin

    2009-09-16 23:59:00 PDT
    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
  7. nobody

    2009-09-21 04:43:57 PDT
    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(BundleLoader.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(DefaultClassLoader.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.java:231) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874) 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:267) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:263) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode.createPage(WorkbenchPreferenceNode.java:47) at org.eclipse.jface.preference.PreferenceDialog.createPage(PreferenceDialog.java:1339) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(FilteredPreferenceDialog.java:382) at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1230) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.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(PreferenceDialog.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(StructuredViewer.java:862) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1175) at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1200) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java: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(WorkbenchPreferenceDialog.java:211) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.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(EclipseAppLauncher.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(DelegatingMethodAccessorImpl.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)
  8. spjProject Admin

    2009-09-21 23:18:27 PDT
    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
  9. nobody

    2009-09-22 02:15:06 PDT
    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.
  10. spjProject Admin

    2009-09-23 01:03:13 PDT
    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!
  11. spjProject Admin

    2011-03-15 13:11:46 PDT
    Closed discussion because of spam.
  12. spjProject Admin

    2011-09-12 13:53:08 PDT
    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.
  13. spjProject Admin

    2011-10-12 11:59:29 PDT
    UCDetector 1.9.0 will work with "Eclipse IDE for Java Developers" (changed dependency org.eclipse.pde.core to "optional")
Jump To:
< Previous | 1 | Next >

Add a Reply

You may use standard BBCode tags in your post.

Monitor this

Log in to monitor this topic. Not registered? Create an account to receive email updates when replies are posted to this topic. If you do not log in or register, your reply will be added anonymously.