Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3917

Java content assist is broken after using ResourceBundleEditor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 3.6.1.RELEASE
    • Fix Version/s: 3.6.2.RELEASE
    • Component/s: None
    • Labels:
      None

      Description

      As described in this SO thread (http://stackoverflow.com/questions/25754089/resourcebundle-editor-disables-basic-functions-in-spring-tool-suite) we have a problem after installing and using the ResourceBundleEditor. I tried this myself and can reproduce the issue. This doesn't seem to be a problem of only the ResourceBundleEditor, since this doesn't happen when installing it into a pure Eclipse JEE Luna distribution. The error shows up in STS only, so we should investigate this.

      The install URL of the ResourceBundleEditor is:
      https://raw.githubusercontent.com/essiembre/eclipse-rbe/master/eclipse-rbe-update-site/site.xml

      steps to reproduce:

      • create a simple Java project with a simple class
      • open the Java editor -> everything works fine
      • create a test.properties and open it with the "ResourceBundle Editor"
      • do something in there and save the .properties file
      • go back to the Java class and try content-assist, an exception shows up in the Error Log.
      org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)
      	at org.eclipse.swt.SWT.error(SWT.java:4441)
      	at org.eclipse.swt.SWT.error(SWT.java:4356)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3983)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
      	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:382)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      Caused by: java.lang.IllegalArgumentException: Argument not valid
      	at org.eclipse.swt.SWT.error(SWT.java:4422)
      	at org.eclipse.swt.SWT.error(SWT.java:4356)
      	at org.eclipse.swt.SWT.error(SWT.java:4327)
      	at org.eclipse.swt.widgets.Widget.error(Widget.java:783)
      	at org.eclipse.swt.widgets.Control.setBackground(Control.java:3479)
      	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.createProposalSelector(CompletionProposalPopup.java:661)
      	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$22(CompletionProposalPopup.java:588)
      	at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:515)
      	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$2.run(ContentAssistant.java:378)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
      	... 23 more
      

        Attachments

          Activity

            People

            Assignee:
            aboyko Alex Boyko
            Reporter:
            mlippert Martin Lippert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: