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 189074

Summary: Active process marker does not appear after closing+reopening server output tab
Product: serverplugins Reporter: Petr Jiricka <pjiricka>
Component: GlassFishAssignee: Vince Kraemer <vkraemer>
Status: NEW ---    
Severity: normal CC: phejl
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

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
            io.getErr().close();
            io.getOut().close();
        }

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.