Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4839

Ruta: autocompletion fails with warning and error dialog

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0ruta
    • Fix Version/s: 2.5.0ruta
    • Component/s: Ruta
    • Labels:
      None

      Description

      Only observed in an installed workbench.

      java.lang.NullPointerException
      	at org.eclipse.jface.viewers.StyledString.append(StyledString.java:264)
      	at org.eclipse.jface.viewers.StyledString.<init>(StyledString.java:132)
      	at org.eclipse.jface.viewers.StyledString.<init>(StyledString.java:117)
      	at org.eclipse.dltk.ui.text.completion.ScriptCompletionProposal.<init>(ScriptCompletionProposal.java:71)
      	at org.eclipse.dltk.ui.text.completion.ScriptCompletionProposal.<init>(ScriptCompletionProposal.java:42)
      	at org.apache.uima.ruta.ide.ui.text.completion.RutaScriptCompletionProposal.<init>(RutaScriptCompletionProposal.java:32)
      	at org.apache.uima.ruta.ide.ui.text.completion.RutaCompletionProposalCollector.createScriptCompletionProposal(RutaCompletionProposalCollector.java:48)
      	at org.apache.uima.ruta.ide.ui.text.completion.RutaCompletionProposalCollector.createKeywordProposal(RutaCompletionProposalCollector.java:74)
      	at org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalCollector.createScriptCompletionProposal(ScriptCompletionProposalCollector.java:456)
      	at org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalCollector.processUnprocessedProposal(ScriptCompletionProposalCollector.java:343)
      	at org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalCollector.processUnprocessedProposals(ScriptCompletionProposalCollector.java:301)
      	at org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalCollector.getScriptCompletionProposals(ScriptCompletionProposalCollector.java:283)
      	at org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalComputer.computeScriptCompletionProposals(ScriptCompletionProposalComputer.java:193)
      	at org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalComputer.computeCompletionProposals(ScriptCompletionProposalComputer.java:240)
      	at org.eclipse.dltk.ui.text.completion.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:342)
      	at org.eclipse.dltk.ui.text.completion.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:276)
      	at org.eclipse.dltk.ui.text.completion.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:291)
      	at org.eclipse.dltk.ui.text.completion.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:247)
      	at org.eclipse.jface.text.contentassist.ContentAssistant$5.run(ContentAssistant.java:1904)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1902)
      	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:573)
      	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:570)
      	at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:499)
      	at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1720)
      	at org.eclipse.dltk.internal.ui.editor.ScriptEditor$AdaptedSourceViewer.doOperation(ScriptEditor.java:441)
      	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:473)
      	at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:122)
      	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      	at sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:286)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:507)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:558)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:378)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:324)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:86)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1266)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1112)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1137)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1122)
      	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1164)
      	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1160)
      	at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1581)
      	at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4795)
      	at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:343)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4676)
      	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5050)
      	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3767)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	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:669)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
      

        Attachments

          Activity

            People

            • Assignee:
              pkluegl Peter Klügl
              Reporter:
              pkluegl Peter Klügl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: