Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 189074 - Active process marker does not appear after closing+reopening server output tab
Active process marker does not appear after closing+reopening server output tab
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: GlassFish
: P4 (vote)
: 7.4
Assigned To: Vince Kraemer
Depends on:
  Show dependency treegraph
Reported: 2010-07-30 09:47 UTC by Petr Jiricka
Modified: 2012-11-27 14:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2010-07-30 09:47:51 UTC
1. Run GlassFish using the Start action in the Services tab
2. You see that the output window appears and its caption contains the * marker to distinguish an active process
3. Close this window and reopen it using the View Server Log action in the server popup menu
4. Output tab is reopened, but without the * marker. 

BTW, when I stop the server using the icon in the gutter on the left of the output window, the * marker reappears (until server shutdown is completed).

Also, this problem affects other servers besides GlassFish (e.g. WebLogic), so I am wondering whether this is a general infrastructure problem.
Comment 1 Vince Kraemer 2010-08-31 21:28:20 UTC
in the one case, the IDE is reading from the process that got started by the start command.

in the second case, the actual server log file is getting read, by polling.  there is no 'connection' between the process and the output window.
Comment 2 Vince Kraemer 2011-02-24 17:37:45 UTC
cosmetic issue
Comment 3 TomasKraus 2012-11-27 14:42:33 UTC
With new log reader code 'View Server Log' action reads from PipedInputStream and LogViewMgr class has no chance to know if it's reading from local or remote server.
Current tests like
        if (ignoreEof) {
            // read from file case... not associated with a process...
            //     make sure there is no star

based on ignoreEof = serverLog.getInputStream() instanceof FileInputStream check do not work.

Window opened after 'View Server Log' action is now marked as being read from active process even when server process is not running.

The only way to get this working properly is to link process marker with process status returned by GlassFishStatus class checks.
Those status checks are remote calls to server administration interface and their cost is to high to do them with every log window write. We should cache last status check for every server instance (what is already being done) and use it to set process marker with every window write.
Comment 4 TomasKraus 2012-11-27 14:45:49 UTC
Targeting for next release.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo