Eclipse IDE not responding/hangs for long times - java

I have a problem with the Eclipse 2018-09 JEE version causes the IDE to be unresponsive for longer time. Sometimes it doesn't recover at all.
I even created a new workspace but it doesn't take long before the same problem occurs.
It is getting very frustrating.
Any ideas on how to fix it?
There are MANY instances of both the Interrupted and the Timeout exception in the log:
!ENTRY org.eclipse.lsp4e 4 0 2019-05-24 08:38:52.455
!MESSAGE
!STACK 0
java.lang.InterruptedException
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:347)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
at org.eclipse.lsp4e.operations.hover.LSBasedHover.getHoverInfo(LSBasedHover.java:108)
at org.springframework.tooling.boot.ls.jdt.SpringBootJavaHoverProvider.getHoverInfo2(SpringBootJavaHoverProvider.java:43)
at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:167)
at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:133)
at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:89)
at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:169)
!ENTRY org.eclipse.lsp4e 4 0 2019-05-24 08:39:54.416
!MESSAGE
!STACK 0
java.util.concurrent.TimeoutException
at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1771)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
at org.eclipse.lsp4e.operations.declaration.OpenDeclarationHyperlinkDetector.detectHyperlinks(OpenDeclarationHyperlinkDetector.java:79)
at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:81)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)

today i have same issue.
Go to Windows -> Preferences -> Language servers. Disable all checkboxes, apply & close. Restart IDE. It solved problem for me.
below link might help you
https://github.com/spring-projects/sts4/issues/25

Related

Eclipse Freeze On Autocomplete

The problem has appeared Eclipse 2019-09. I write some code without any problem. Sometimes, I write code and press ctrl+space and eclipse halting and not responding. How i can I solve this problem?
Edit: I found this error in eclipse log;
!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-10-14 13:44:08.997
!MESSAGE Failed to download org.eclipse.recommenders:index::zip:0.0.0
!STACK 0
Edit 2: I found 'Code Recommenders' cause this error. reinstall eclipse and jboss tools without recommenders. solved the problem !

Anypoint Studio 5.1.1 with empty properties view

I am running the new Version of AnypointStudio for win 64bit-5.1.0-201503171252 on a Windows 8.1 with Java 8.
If I click on a Element in the flow, I will see only:
.
I check the Eclipse Logfile (AnypointStudio\workspace\.metadata\.log) and find this error:
!ENTRY org.eclipse.e4.ui.workbench 4 2 2015-04-09 19:42:58.236
!MESSAGE Problems occurred when invoking code from plug-in: org.eclipse.e4.ui.workbench".
!STACK 0
java.lang.NoClassDefFoundError: org/mule/tooling/apikit/common/metadata/resolver/APIkitRouterInvokerMetadataResolver$1$1
at org.mule.tooling.apikit.common.metadata.resolver.APIkitRouterInvokerMetadataResolver$1.call(APIkitRouterInvokerMetadataResolver.java:65)
at org.mule.tooling.apikit.common.metadata.resolver.APIkitRouterInvokerMetadataResolver$1.call(APIkitRouterInvokerMetadataResolver.java:1)
at org.mule.tooling.utils.SilentRunner.run(SilentRunner.java:16)
I try this on different Workstation with the same error.
I search the missing class and found this file in the plugin folder:
AnypointStudio-for-win-64bit-5.1.0-201503171252\AnypointStudio\plugins\org.mule.tooling.apikit.common_1.6.1.201503121950\org\mule\tooling\apikit\common\metadata\resolver\APIkitRouterInvokerMetadataResolver$1$1.class
have you tried removing the older APIKit plugin and only installing the latest? It could be a conflict between the different versions.
HTH,
Eva

Eclipse not running on start up, showing wrong password error

The .log file shows this:-
!ENTRY com.android.ide.eclipse.adt 4 0 2014-07-04 15:50:51.019
!MESSAGE parseSdkContent failed
!STACK 0
java.lang.NullPointerException
at com.android.ide.eclipse.adt.internal.sdk.ProjectState.needs(ProjectState.java:466)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$1.onProjectOpened(Sdk.java:1125)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$1.projectOpenedWithWorkspace(Sdk.java:1092)
at com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor.addProjectListener(GlobalProjectMonitor.java:427)
at com.android.ide.eclipse.adt.internal.sdk.Sdk.<init>(Sdk.java:928)
at com.android.ide.eclipse.adt.internal.sdk.Sdk.loadSdk(Sdk.java:289)
at com.android.ide.eclipse.adt.AdtPlugin$7.run(AdtPlugin.java:1415)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Please help I am new to developing apps and cant find a solution to this.
VERSION:- eclipse juno
Seems like something in your workspace is broken. Start eclipse in a new workspace, create a new project, and copy the files you need from the broken one.

GWT compilation failed

I am developping a GWT Application and when I was about to compile I got a message "GWT Compilation Failed" without any stacktrace.
Then I've tried something even simpler, like creating the sample application and I've got "Creation of element failed. Reason: Invocation of com.google.gwt.user.tools.WebAppCreator failed".
I did a lot of research and tried a lot of stuff (change folder permissions, deactivate antivirus, changed version of eclipse and gwt, checked windows event logger (found nothing), recreate workspace, remove ClassPath environment variavble...). The most weird thing is that in my personal computer everything works fine, but copying the eclipse folder to my work's computer I get always the same problems.
This is the .log from eclipse.
!ENTRY org.eclipse.jdt.ui 4 10001 2014-05-19 17:07:17.829
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Core Exception [code 0] Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details.
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5204)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details.
at com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:70)
at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:683)
at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:292)
at com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:154)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:118)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5204)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
!SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2014-05-19 17:07:17.829
!MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details.
Does anyone has any ideas about how to fix this?
I removed ClassPath entry from Windows Environment Variables and it did the trick.

Android ADT Eclipse install errors

Installed Eclipse and the ADT package, 2.3 SDK etc, but get thrown a whole mess of errors on startup and I need some guidance, my searches haven't found the solution I'm looking for, just single errors as opposed to the entire stack I'm getting.
Could not create the view: org.eclipse.wst.server.ui.ServersView
Could not create the view: org.eclipse.datatools.connectivity.DataSourceExplorerNavigator
!ENTRY org.eclipse.ui 4 4 2013-06-26 09:45:18.955
!MESSAGE Conflicting handlers for org.eclipse.jdt.ui.edit.text.java.open.editor: {ActionHandler(org.eclipse.jdt.ui.actions.OpenAction#5a1755b3)} vs {ActionHandler(org.eclipse.jdt.ui.actions.OpenAction#31fb88fa)}
!ENTRY org.eclipse.ui 4 4 2013-06-26 09:45:18.957
!MESSAGE Conflicting handlers for org.eclipse.ui.edit.cut: {ActionHandler(org.eclipse.ui.actions.TextActionHandler$CutActionHandler#6e9b8445)} vs {ActionHandler(org.eclipse.ui.actions.TextActionHandler$CutActionHandler#240906be)}
!ENTRY org.eclipse.ui 4 4 2013-06-26 09:45:18.959
!MESSAGE Conflicting handlers for org.eclipse.ui.edit.copy: {ActionHandler(org.eclipse.ui.actions.TextActionHandler$CopyActionHandler#493ad9ad)} vs {ActionHandler(org.eclipse.ui.actions.TextActionHandler$CopyActionHandler#36a9126a)}
!ENTRY org.eclipse.ui 4 4 2013-06-26 09:45:18.961
!MESSAGE Conflicting handlers for org.eclipse.ui.edit.paste: {ActionHandler(org.eclipse.ui.actions.TextActionHandler$PasteActionHandler#c31132)} vs {ActionHandler(org.eclipse.ui.actions.TextActionHandler$PasteActionHandler#69dea02)}
**(these go on and on and on)**
!ENTRY org.eclipse.jface 4 0 2013-06-26 09:45:18.345
!MESSAGE Unable to resolve plug-in "platform:/plugin/org.eclipse.datatools.connectivity.ui.dse/icons/full/cview16/enterprise_explorer.gif".
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.eclipse.datatools.connectivity.ui.dse/icons/full/cview16/enterprise_explorer.gif".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:64)
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.resolve(PlatformURLPluginConnection.java:75)
at org.eclipse.core.internal.boot.PlatformURLHandler.openConnection(PlatformURLHandler.java:67)
at org.eclipse.osgi.framework.internal.protocol.URLStreamHandlerProxy.openConnection(URLStreamHandlerProxy.java:112)
at java.net.URL.openConnection(Unknown Source)
at org.eclipse.core.internal.runtime.PlatformURLConverter.toFileURL(PlatformURLConverter.java:33)
**As do these**
I am a complete noob so go easy, I've followed all the install steps I've found and yet to get it working, and can't figure it out on my lonesome.
EDIT:
Reinstalled all of Java. I'm still getting the Conflicting Handlers errors, and have this up permanently "activity_main.xml will refresh automatically once the process is finished."
This is because you have it pointing at a workspace that has projects in it that were created with an old version of Eclipse. Change the workspace and it should work.

Categories

Resources