Not able to debug in Eclipse - eclipse

I came across this strange issue where I 'm not able to debug my application (Java Web Application) in Eclipse.
History:
I deleted and re-imported the same project again.
Debug was working before this.
I tried:
Refreshing my workspace (all the projects)
Did a Clean + Build.
Checked my debug configurations for valid port number inside eclipse.
Gave breakpoints on the obvious lines of code where I know the control will hit these points.
Update
I'm using JBoss server if that helps.
Any pointers which I might have missed out.?
Thanks!

Well, I've worked for years with Java web apps, using Eclipse and JBoss, and I've faced this issue multiple times.
What I'd usually do to fix this problem is erase .metadata folder from the workspace while Eclipse was closed (it will re-generate when opening again).

Related

Eclipse Java IDE restore

I was developing a plugin, using Eclipse IDE for java developers (Version: 2021-09 (4.21.0)
Build id: 20210910-1417)
During development, when I run it as an eclipse application, it opens a runtime-Eclipse application where the plug-in is present. In my setup this new runtime-eclips app opened from a folder next to the workspace, where C codes were present. (and my progrem would get the tests run in C , and get the results from it's exe)
Then I downloaded the Eclipse IDE for committers, which is a newer version. I downloaded it as a zip and after unpacking I run the eclipse.exe. My program had problems opening the runtime-Eclipse application in C there, so i went back to the older one which is installed on my computer.
After opening the original eclipse, on which I was working and had no problems, I was hoping everything will be fine. It opens the IDE for java developers (same version, same build) but I have the same problems with the runtime-eclipse application as the one I run as an eclipse.exe , (not recognising the C code?? I don't understand).
When i try to run the plug-in I get this error.
And when the runtime-app opens i get this error.
I cannot create C projects anymore on the runtime-app. I don't know the reason behind this.
Also I have billion of these
["java.net.UnknownHostException: downdload.eclipse.ort"]
[" org.eclipse.equinox.p2.core.ProvisionException: Unknown Host: http://downdload.eclipse.ort/eclipse/updates/4.2/content.xml "]
Thank you in advance!
I don't know if it is possible or not, since seemingly it did not update the older eclipse IDE. If it can be restored the way it was before i run the eclipse.exe, I would be happy.
eclipse.ort is obviously a typo, it should be eclipse.org, I don't know where it is coming from - but its possible you enter it yourself as update site
the runtime error means eclipse cannot resolve all dependencies, which means it could not load bunch of plugins including yours, you need to figure out why on your own, its not possible to debug this remotely, its best to start from the scratch in the new workspace
The solution was easier than expected. The run configuration was modified by the other eclipse version. It was not launched with every plugin. only a selected handful

Eclipse debugger fails to start

For the last few days, I have been getting the following error whenever I try to debug a project.
org/eclipse/jdt/internal/debug/core/model/JDIDebugTarget (wrong name: org/eclipse/jdt/internal/debug/core/model/JDIDebugTarget$AjcClosure1)
This problem occurs with every project in every workspace, even in a workspace I created after the problem started manifesting. Whether or not I have set any breakpoints, the problem still occurs.
I am using Spring Tool Suite 3.8.1, and I can still run projects, just not debug them.
Does anyone know what the problem may be?
I upgraded to version 3.8.4 of STS and I can now debug my projects. Something in my previous STS installation must have broken.

How to avoid Remote System Explorer Operation on eclipse?

I'm using Eclipse (tried with Luna,Mars,Oxygen) for Spring boot project.
I have installed 2 plugins SpringBoot and TestNG on top of default configuration.
I use EGIT for version control system.
My Eclipse is very slow, I have always the job "Remote System Explorer Operation". I disable it according to answers here : "Remote System Explorer Operation" causing freeze for couple of seconds
The problem persist.
How can I speed up my configuration ? Should I remove Spring Boot pluggin from Eclipse ?
It's an old question but I ran into the same kind of issue (but for me, I was not able to get back control on Eclipse)
I resolved it by deleting the "RemoteSystemsTempFiles" folder in my workspace
Hope it can help
Try deleting the "RemoteSystemsTempFiles" folder in
C:\Users\YOUR-USER\eclipse-workspace\RemoteSystemsTempFiles
This worked for me. Thanks to alban maillere.

Eclipse Helios seems to be corrupted

I am working on an application in Eclipse Helios and since yesterday every change in the code is not being applied when running the application. I have no idea what is going on. Is my Eclipse corrupted? Have some of you faced such situation? Many thaks.
You have probably disabled the automatic build, so Eclipse never compiles your changes. Check the main menu Project -> Build automatically.

errors on eclipse startup (WebDev + JBoss Tools + Tomcat)

i'm running into following errors everytime i start eclipse. If i move my project to a new workspace, everything works fine for the duration of one session - as soon as i open eclipse for the next time, the same thing is popping up again.
I tried various suggestions i found in other posts (closing/reopening project, validation, cleaning,etc.) without success. Here is my stacktrace from the last session (its too long to post it directly in here:))
The main symptom is that Tomcat doesnt start - it is stuck at 7%.
Thank you guys in advance, your help is highly appreciated!! If you need anything else, just leave me a comment and i i'll post it!
Your Eclipse environment is seriously messed up. Perhaps you installed plugins the wrong way or you used the wrong Eclipse or plugin version.
Trash everything. Delete the Eclipse program folder altogether. You can keep your workspace folder, but you should delete its .metadata folder. Now download a fresh copy of Eclipse for Java EE (note, with the EE!), extract it and then integrate Tomcat again the usual way by the Servers view. Note that you don't need any additional plugins for this step.
JBoss Tools should be installed via Help > Install New Software. You should specify the JBoss Tools update site matching the exact Eclipse version. Currently it's Indigo SR2, so you should specify http://download.jboss.org/jbosstools/updates/indigo/SR2/ as URL.