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 146858 - <debug> on web app fails in some cases
Summary: <debug> on web app fails in some cases
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-10 22:57 UTC by _ pcw
Modified: 2008-09-11 17:43 UTC (History)
0 users

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 _ pcw 2008-09-10 22:57:04 UTC
Start NetBeans, create a web app, targeting GlassFish V3.
<Debug> web app on server, should debug fine.

Now, using the buttons on the server log window or the menu actions on the server instance popup menu (services tab),
stop the server and restart it in "Normal" (non-debug) mode.

Now go back to the project and run <Debug> on the web app again -- server is not running in debug mode but won't be
restarted, so the action fails.
Comment 1 _ pcw 2008-09-10 22:58:52 UTC
Stop action is handled by glassfish.common module, yet glassfish.javaee was maintaining a local cache of whether the
server was in debug mode or not.  This cache was never updated when the server is stopped and then restarted via the
control buttons/menu items.
Comment 2 _ pcw 2008-09-10 23:04:15 UTC
Fixed.

http://hg.netbeans.org/main/rev/f9f4392ce949
Comment 3 Quality Engineering 2008-09-11 17:43:00 UTC
Integrated into 'main-golden', will be available in build *200809111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f9f4392ce949
User: pcw@netbeans.org
Log: #146858 <debug> fails sometimes for webapps on glassfish v3