facebook

unable to instantiate TemplateCompletionProposalComputer

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #297434 Reply

    In my fresh MyEclipse 7.1.1 installation,
    when I use the CTRL+SPACE shortcut, I get this error :

    
    !ENTRY org.eclipse.jdt.ui 4 0 2009-04-10 16:07:34.500
    !MESSAGE The 'org.eclipse.jdt.ui.TemplateProposalComputer' proposal computer from the 'org.eclipse.jdt.ui' plug-in did not complete normally. Unable to instantiate the extension.
    !STACK 1
    org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.jdt.ui" was unable to instantiate class "org.eclipse.jdt.internal.ui.text.java.TemplateCompletionProposalComputer".
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:172)
        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.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.createComputer(CompletionProposalComputerDescriptor.java:291)
        at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.getComputer(CompletionProposalComputerDescriptor.java:258)
        at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.sessionStarted(CompletionProposalComputerDescriptor.java:401)
        at org.eclipse.jdt.internal.ui.text.java.CompletionProposalCategory.sessionStarted(CompletionProposalCategory.java:313)
        at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor$CompletionListener.assistSessionStarted(ContentAssistProcessor.java:112)
        at org.eclipse.jface.text.contentassist.ContentAssistant.fireSessionBeginEvent(ContentAssistant.java:2218)
        at org.eclipse.jface.text.contentassist.ContentAssistant.prepareToShowCompletions(ContentAssistant.java:1693)
        at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1660)
        at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:177)
        at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
        at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
        at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:472)
    Caused by: java.lang.NullPointerException
        at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateContextRegistry(JavaPlugin.java:796)
        at org.eclipse.jdt.internal.ui.text.java.TemplateCompletionProposalComputer.<init>(TemplateCompletionProposalComputer.java:46)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance0(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
        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.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.createComputer(CompletionProposalComputerDescriptor.java:291)
        at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.getComputer(CompletionProposalComputerDescriptor.java:258)
    ...
    

    I have the following plugins installed :

      DBG Debug Feature
      Eclipse plugin for Bazaar
      Xdebug Feature
      Subversive SVN Integration for the Mylyn Project
      Subversive SVN JDT Ignore Extensions
      Native JavaHL 1.5 Implementation
      JavaHL 1.65.4 Win32 Binaries
      SVNKit 1.2.2 Implementations
      Mylyn Bridge: Eclipse IDE
      Mylyn Bridge: Java Development
      Mylyn Connector: JIRA
      Mylyn Bridge: Team Support
      PHPEclipse
      Subversive Plug-in
      Mylyn
      SpringIDE for MyEclipse – Mylyn Support
      SpringIDE for MyEclipse – AJDT Support
      MyEclipse UML2 (Early Access 2)

    Could you help me to understand what’s wrong ? Thank you for your help.

    #297475 Reply

    Loyal Water
    Member

    It is one of the plugins you have setup that might be incompatible with MyEclipse and causing this problem. You can go to Window > Prefs > Java > Editor > Templates preference page, and hit “Restore Defaults”. This might help.

    #297568 Reply

    When I go to this preferences panel, I get the following error :

    Unable to create the selected preference page.
    java.lang.NullPointerException
    

    Nothing is displayed, and restoring Defaults doesn’t help.

    Logs show this stack trace :

    !ENTRY org.eclipse.equinox.registry 4 1 2009-04-15 16:14:56.843
    !MESSAGE Unable to create the selected preference page.
    !STACK 0
    java.lang.NullPointerException
        at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateContextRegistry(JavaPlugin.java:796)
        at org.eclipse.jdt.internal.ui.JavaPlugin.getTemplateStore(JavaPlugin.java:842)
        at org.eclipse.jdt.internal.ui.preferences.JavaTemplatePreferencePage.<init>(JavaTemplatePreferencePage.java:52)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance0(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
        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.createExtension(WorkbenchPlugin.java:259)
        at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode.createPage(WorkbenchPreferenceNode.java:47)
        at org.eclipse.jface.preference.PreferenceDialog.createPage(PreferenceDialog.java:1306)
        at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(FilteredPreferenceDialog.java:369)
        at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1197)
        at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:570)
        at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:702)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        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:880)
        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:840)
        at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1639)
        at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1104)
        at org.eclipse.jface.preference.PreferenceDialog.selectSavedItem(PreferenceDialog.java:1021)
        at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.selectSavedItem(FilteredPreferenceDialog.java:624)
        at org.eclipse.jface.preference.PreferenceDialog$4.run(PreferenceDialog.java:369)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.jface.preference.PreferenceDialog.createContents(PreferenceDialog.java:365)
        at org.eclipse.jface.window.Window.create(Window.java:431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
        at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.createDialogOn(WorkbenchPreferenceDialog.java:96)
        at org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialogOn(PreferencesUtil.java:97)
        at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:64)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
        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)
    

    Can you guess what’s wrong ? What else can I do ?

    #297600 Reply

    Loyal Water
    Member

    bgandon,
    We fixed this issue in the 7.1.1 release. Im not sure why you are still running into it. Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #297616 Reply

    Here it is

    *** Date: 
    jeudi 16 avril 2009 10 h 05 CEST
    
    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.5.0_11
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.1.1
    Build id: 7.1.1-20090310
    
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 7.1.1
    Build id: 7.1.1-20090310
    
    
    
    
    Eclipse Platform
    
    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700
    
    
    Eclipse Java Development Tools
    
    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800
    
    
    Eclipse Plug-in Development Environment
    
    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800
    
    
    Eclipse Graphical Editing Framework GEF
    
    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400
    
    
    Eclipse RCP
    
    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800
    
    
    
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 7.1\myeclipse.exe
    -name
    Myeclipse
    --launcher.library
    C:\Program Files\Genuitec\MyEclipse 7.1\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 7.1\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    -clean
    -configuration
    configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\client\jvm.dll
    

    I have reinstalled a fresh MyEclipse 7.1.1 last week after having experienced event loops troubles with my updated MyEclipse 7.0 installation.

    So my workspace may have been created with a former MyEclipse update. Could this be a cause for this trouble ?

    #297638 Reply

    Loyal Water
    Member

    So my workspace may have been created with a former MyEclipse update. Could this be a cause for this trouble ?

    That should not cause any issues but can you still try switching to a new workspace and testing this again.

    Also, did you setup MyEclipse using the All in one installer?

    #297719 Reply

    Switching to a new workspace does not help, unfortunately.
    I did install MyEclipse with the 7.1.1 All in one installer, indeed.

    I uninstalled MyEclipse and I’m now in the process of reinstlling it with the 7.1.1 All in one installer.
    For the moment it is stuck on the update check. I’ll keep you informed.

    #297720 Reply

    Ok, you were perfectly right : that was a conflicting plugin.
    In this case, it was PHPEclipse (or some of its debug features).

    It’s working fine now. Thank you very much for your help !

    #297741 Reply

    Loyal Water
    Member

    Your welcome.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: unable to instantiate TemplateCompletionProposalComputer

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in