This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57292 - Regression: run then debug: does not attach
Summary: Regression: run then debug: does not attach
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Libor Kotouc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-31 23:53 UTC by _ ludo
Modified: 2006-03-24 13:04 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ ludo 2005-03-31 23:53:12 UTC
Regression in how servers are started:

Follow these steps:

1/ create web app
2/ run it: this will start the App server in normal mode.
3/ then select debug: this should stop the server and restart it in debug mode
and attach to it.

The stop and start is debug mode is happening at the server level, but the IDE
waits forever thinking the server is not restarted.

This is a regression and I was able to detect that on a build form 3/21 it was
working.
I did more analysis of the regression and  it is in ServerInstance.java
cvs update -P -r 1.46 ServerInstance.java (in directory
C:\acvs\nb_all\j2eeserver\src\org\netbeans\modules\j2ee\deployment\impl\)
P ServerInstance.java

is working

but version 1.47
is not working.

Also, from times to time I see the progress bar with buttons containing
"UNKNOWN COMMAND" ...This has not impact on the process...
Comment 1 Sherold Dev 2005-04-01 07:41:44 UTC
Libor, please investigate. 
Comment 2 Libor Kotouc 2005-04-01 16:23:56 UTC
I have fix in my IDE. The problem is in usage of isRunningLastCheck() method in
_retrieveTarget() method. There should be isRunning() call because isRunning
field indicating server state is not set by the thread causing server state
change (it results in obtaing obsolete info in _retrieveTarget() and starting
server while starting server in debug).
I will commit this fix on Monday because I met some other bug while testing this
fix and must investigate whether it is forgotten bug or a new one caused by this
fix.
Comment 3 _ ludo 2005-04-01 17:21:14 UTC
Maybe if you send me your diff, I can take a look...
Not sure, but I can try,
Ludo
Comment 4 Libor Kotouc 2005-04-02 12:41:14 UTC
Fixed along with some additional minor "caching" and "NPE" problems.

Checking in ServerInstance.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerInstance.java,v
 <--  ServerInstance.java
new revision: 1.52; previous revision: 1.51
done


Question for QE: Could you please focus on "UNKNOWN COMMAND" problem (and file
another bug if needed)?
Comment 5 Jiri Skrivanek 2005-04-04 09:46:23 UTC
We have filed issue 49598 for "UNKNOWN COMMAND" problem.
Comment 6 Jaroslav Pospisil 2005-04-04 12:32:38 UTC
Verified in build 200504031800.