How to kill debugging session in Eclipse? Nothing shown in Debug view - eclipse

I have 2 versions of my app deployed on the cloud. They both have same address, but different cloud instance names.
I am able to debug one application from cloud, but when I try to connect to the other one, eclipse gives the error:
Error launching a Cloud Debugging Session.
Server returned 409 (Conflict) for URL: 'address'
Another debugging/profiling session to this application seems to be active.
There is no sessions available in Debug view. I even restarted eclipse and my machine.
Is there a way to kill all/any debugging/profiling sessions in eclipse?
I was able before to switch debugging from one cloud app to the other but today I get this issue.

Related

Bluemix application debugging not working in Eclipse

When I select "Enable Application Debug" in Eclipse, it is showing "Establishing debug session" in progress window but ends up enabling development mode.
When "Incremental Publish" is selected, it gives error:
Failed to create JMX connection.
The connection failed. Ensure that the remote Liberty profile server is started and that the user name, password, and port number are correct.
Also, /IBMJMXConnectorREST URL is giving 404 error.
Few things on the configuration done:
Using JDK 8
Debug perspective
App memory is 1 GB
Should we configure any other thing ?
NOTE: Java Cloudant Starter pack offered by bluemix is the app's codebase in eclipse
Activating debugging is performed in Eclipse by right-click on the application name under the correct Bluemix server, and selecting Enable Application Debug
Enabling development mode (and thus incremental publish) is one of the steps for turning on debug mode. The tools ended up staying in development mode probably indicates that there are some problem on switching on debug mode after the development mode step is completed.
Can you provide the following information so that I can try to reproduce the problem?
1. What is the version of IBM Eclipse Tools for Bluemix that you are using?
2. What platform are you running on?
3. Do you see any error in the .log file in your workspace?
4. What is the exact version of JDK that you are using? Also, is it a IBM JDK or Oracle JDK?

Nodered IBM-examples are not working on my PC

I tried 2 example programs from the IBM website.
timestamp example
I cannot see anything in the debug tab. Debug node is of course activated and its output is set to debug tab and console.
Chrome developer tools gives some more information:
Warning: SVG's SMIL animations (, , etc.) are deprecated and will be removed. Please use CSS animations or Web animations instead.
It also detects that something has happended (Preview "OK", Response "OK").
I also tried Chat example
But even when I try to execute the "Run the app" button the window never displays "connection established" or any chat message. Chrome developer tools throws error:
Uncaught InvalidStateError: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
I did not install anything related to Java, JS, JSON, Node.js on my pc as I asume that everything runs inside Bluemix.
The underlying issue is a failure to establish a websocket connection with the node-red instance running in Bluemix. This is a known issue when accessing from certain networks that is usually resolved by accessing the application using https rather than http.

In GAE how do you *stop* running your app?

I'm on Eclipse (Helios) using GAE SDK 1.5.2, etc. (Just updated everything, today.)
"In the old days..." (earlier SDKs), when I ran/debug my app locally, it would create an app on my machine (Mac, OS-X 10.6.latest) and, when I wanted to quit it, I would just CMD-Q that app.
Now, when I launch the app, it appears to run as a sub-process of Eclipse (assumption on my part -- I can't find any separate app that's running), and I can't seem to figure out how to quit the app.
The specific problem I'm having is, after I change something and select Run -> Debug as... -> Web Application the 2nd time, I get "address in use" socket-binding error.
[ERROR] Unable to bind socket on port 9997 -- is another session active?
java.net.BindException: Address already in use
I suspect that, yes, another session IS active (the one I started just 2 minutes ago!), and my question is: how do I stop that session?
Thanks!
If you look in the debug window you'll see your running processes. Just select one, right click and 'Terminate':

Launching from Eclipses causes errors in browser

I've got a strange situation; when I run a Flex app from Eclipse (i.e. click run as web app), my remote calls always hang.
In Firefox, they return as failed.
But when I open up a browser and browse to my .html file in the bin-debug folder, the remote calls work.
Why is that?
Thanks for any helpful tips!
p.s. I'm accessing a websphere server and authentication is required but a Java developer hardcoded his ID in.
One thing to check:
Do you have a breakpoint set in your code somewhere? Eclipse may be waiting for you to interact with it so the program execution can continue. On my Win7 machine, when the debugger takes over, eclipse often does not take over focus; so I have to manually minimize IE.
My problem was solved today and the issue was getting through to the IBM websphere server; the authentication was still in place and the java developers had to create a cloned environment where authentication was not required. Thank you everyone for their helpful answers.

Can a deployed JBoss web application simply disappear?

A strange problem occurred yesterday on a production system which has been running fine for weeks on a JBoss 4.2.3 application server: the JAR file containing the web application was no longer in the deployment folder (so the clients could no longer access the application). The server is running on a Windows box.
There was no indication of undeployment in the server logs. Normally JBoss detects if somebody deletes (or moves) a deployed web application file and executes the standard undeployment procedure, so there would be a log entry in this case.
Other web applications on the same system continued to run fine, so it was only this JAR file which simply disappeared.
Has somebody seen a similar problem with web applications on JBoss?
I'd bet my shoes that's not possible to happen spontaneously.
Check your security settings - didn't you leave JMX console accessible? Etc.