facebook

MyEclipse 4.0 M2 NullPointerException in Content Assist

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    David Orriss Jr
    Participant

    I have the following code template generated by MyEclipse/Eclipse 4.0 M2

    /**
     * The JSF Controller for the admin UI
     * 
     */
    package com.tmobile.aasp.async.process.controller;
    
    /**
     * @author David Orriss Jr
     * @
     */
    public class AsyncUIController {
    
    }
    

    When I go to the line under the “The JSF Controller”, enter a @ and press “ctrl-space” I get this stack trace.

    
    !ENTRY org.eclipse.ui 4 4 2005-08-14 20:25:12.21
    !MESSAGE "Content Assist" did not complete normally.  Please see the log for more information.
    
    !ENTRY org.eclipse.ui 4 0 2005-08-14 20:25:12.21
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
        at com.ibm.wtp.annotations.ui.AnnotationTagCompletionProc.getAnnotationArea(AnnotationTagCompletionProc.java:417)
        at com.ibm.wtp.annotations.ui.AnnotationTagCompletionProc.computeCompletionProposals(AnnotationTagCompletionProc.java:112)
        at org.eclipse.jdt.internal.ui.text.javadoc.JavaDocCompletionProcessor.computeCompletionProposals(JavaDocCompletionProcessor.java:200)
        at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1503)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:261)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:258)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:221)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:216)
        at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1352)
        at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:188)
        at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
        at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
        at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
        at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
        at org.eclipse.core.commands.Command.execute(Command.java:311)
        at org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:459)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:781)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:828)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:550)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:493)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:117)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:917)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876)
        at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1190)
        at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3135)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3038)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
        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.core.launcher.Main.invokeFramework(Main.java:334)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
        at org.eclipse.core.launcher.Main.run(Main.java:973)
        at org.eclipse.core.launcher.Main.main(Main.java:948)
    
    #234859

    David Orriss Jr
    Participant

    FYI – this still happens in M3.

    #234872

    Scott Anderson
    Participant

    Dave,

    What type of project is it in? A web project? What capabilities have you added to it?

    I tried to replicate this in a fresh 4.0M3 build in a web project configured with JSF capabilities and content assist worked as expected. I’ll need a little help with the specifics to reproduce this, apparently.

    #234879

    David Orriss Jr
    Participant

    Hi Scott,

    You’re right.. fresh workspace, fresh project, it works just fine… Now if I could just fix it for my old codebase.. 🙁

    #234884

    Scott Anderson
    Participant

    Dave,

    I’ve seen workspaces “go bad” before. It happened in my dev environment recently, and naturally MyEclipse isn’t installed
    in it since I use it to develop some of the plugins. The easiest fix I’ve found is just to go to the Windows explorer, copy all the projects
    from your old workspace, paste them into your new workspace folder, then use File > Import > Existing Projects Into Workspace to
    suck them all in quickly. Sorry I can’t give you more info on what might fix this.

    Before that, you might try starting with -clean (eclipse.exe -clean) to see if that resolves it first.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: MyEclipse 4.0 M2 NullPointerException in Content Assist

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