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 198742 - Glassfish output window not showing output in real time
Summary: Glassfish output window not showing output in real time
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 18:35 UTC by eialbur
Modified: 2012-06-13 17:32 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 eialbur 2011-05-19 18:35:29 UTC
I have not changed my Glassfish installation, so the issue is almost certainly in Netbeans.

Prior state:  
a) When Glassfish generated output, the output would immediately show up in the output window.  

b) When Glassfish was restarted, the restart output would begin to show up in the output window.

Current state:
a) The Glassfish generated output is buffered somewhere and doesn't show up in the output window until I undeploy or redeploy on Glassfish.  This makes it very difficult to follow what is going on inside Glassfish.

b) When Glassfish is restarted the output window is cleared and the results of prior restarts scroll up before the new output begins.  This was very confusing for me at first, as I kept seeing errors I thought I had fixed reappear.
Comment 1 Vince Kraemer 2011-05-19 19:01:31 UTC
Can you provide some step-by-step info on how I would reproduce this problem?

Are you seeing this with the local server or a remote server?

Is that server started by NetBeans or did it get start outside NB?
Comment 2 eialbur 2011-05-19 19:07:33 UTC
Glassfish was started from outside Netbeans (for some reason, when I start it from inside Netbeans I get a Glassfish error).

Glassfish is running on the same box as Netbeans.


Running Netbeans

Start Glassfish from terminal

Deploy on Glassfish from inside Netbeans - deploy shows up ok.

Run application against Glassfish ... Beans in Glassfish write log messages.  Log messages do not show up in Glassfish window.

Clean and build application in Netbeans ... the missing log messages show up in output window.

Deploy from Netbeans to Glassfish - original deploy messages scrolls by, (if any exceptions occurred in previous run, they scroll by again), then new deploy messages scroll by.
Comment 3 Vince Kraemer 2011-05-19 20:01:58 UTC
I just tried to replicate this with recently pulled sources (7.1) and haven't been able to replicate the problem on Solaris.

Obviously, you are not closing the output window between steps outlined above... right?
Comment 4 eialbur 2011-05-19 20:04:32 UTC
Correct - I am not closing the window.

I can either try with 7.1 (point me to the download), or I can make a screen capture movie for you ... which would you prefer?
Comment 5 Vince Kraemer 2011-05-19 20:19:00 UTC
I do not doubt that you are seeing a problem.

There are a lot of subtle variable that might be coming into play, though.

Please capture a movie of the situation as guidance for reproducing the problem.
Comment 6 Vince Kraemer 2011-05-19 20:38:20 UTC
I installed 7.0 from netbeans.org and could replicate the issue.  No need for a movie
Comment 7 eialbur 2011-05-19 20:46:48 UTC
So ... is there a 7.1 I should download?  Or a patch?  Or do I just wait for the next release?  Any of these are acceptable (although some are preferable)

Thanks
Comment 8 Vince Kraemer 2011-05-19 22:16:56 UTC
There isn't a 7.1 installer available yet.

7.1 development just got started.  The Development download is the 7.0.1 bits... (which also exhibit this issue for me on Solaris).

I think I know which change will resolve this issue... but want to verify it first.
Comment 9 Vince Kraemer 2011-05-19 22:59:40 UTC
OK.  I just confirmed that http://hg.netbeans.org/main-golden/rev/2a2cab9656c6 seems to address this issue.
Comment 10 Petr Jiricka 2011-05-20 08:32:37 UTC
The latest 7.1 bits are available at http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 11 Vince Kraemer 2011-05-24 21:30:36 UTC
I could replicate this issue but it would only happen the 'first time' the log window was opened... so my earlier comment about this being resolved by http://hg.netbeans.org/main-golden/rev/2a2cab9656c6 was wrong.

http://hg.netbeans.org/web-main/rev/20a4bbcc5126 seems to resolve the problem
Comment 12 Vince Kraemer 2011-05-25 01:00:29 UTC
you may be able to work-around this by changing your workflow just a little bit.

start the server at a shell prompt using asadmin

start NB

Find the node for the server in the Services explorer

Select 'View Server Log' from the right click menu

switch to the Projects explorer window and deploy your project

you should see the deploy processing

when you run your app by hitting its front-page, you should see log messages in the output window.
Comment 13 Quality Engineering 2011-05-25 11:08:09 UTC
Integrated into 'main-golden', will be available in build *201105250400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/20a4bbcc5126
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #198742 : log viewer does not display results in real-time
Comment 14 Vince Kraemer 2011-05-25 16:28:45 UTC
eialbur: please download the latest bits... see the links in http://netbeans.org/bugzilla/show_bug.cgi?id=198742#c13 to verify that the change resolves the issue that you have encountered.

Please reopen or mark VERIFIED after testing it out, so the change can get merged into the codeline for 7.0.1
Comment 15 Vince Kraemer 2011-05-25 16:30:36 UTC
eialbur: Was the work-around from comment 12 effective for you?
Comment 16 Petr Jiricka 2011-06-02 12:36:47 UTC
Cc'ing Jirka Skrivanek - Jirko, can you please help verify this fix? Thanks.
Comment 17 Vince Kraemer 2011-06-02 15:42:09 UTC
These are the steps that I used to reproduce this problem with NB 7.0...

1. Make sure NB and GF are stopped.

2. Start GF from a terminal window.

3. Start NB

4. Create a web app project that targets the server started in step 2.

5. Create a servlet in the web app that generates messages on System.err (which will end up in the server's log file)

6. use the Deploy action on the project.
   the log message window will open.

7. Use the browser to trigger the servlet created in step 5.
    the messages that should appear in the server log window do not appear.

8. edit the servlet and save it.
   the messages that should have appeared at step 7 appear now.
Comment 18 Jiri Skrivanek 2011-06-03 10:12:57 UTC
I can confirm it works in NetBeans IDE Dev (Build 201105290401). I haven't noticed any regression.

Java: 1.7.0-ea; Java HotSpot(TM) Client VM 21.0-b14
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Comment 19 Vince Kraemer 2011-06-03 20:40:40 UTC
http://hg.netbeans.org/releases/rev/d4de8b5fe9a6
Comment 20 Vladimir Riha 2011-07-27 15:32:48 UTC
I've followed steps in comment #17 and it works fine so verified...


Product Version: NetBeans IDE 7.0.1 (Build 201107211357)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-10-generic running on i386; UTF-8; en_US (nb)
Comment 21 pukkyy 2012-06-13 17:32:03 UTC
Hi:

 I was suffering from the same problem this post is about. The work-around from comment 12 worked for me wonders! 

Thank you