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 251016 - Disappearing output tab in Maven project
Summary: Disappearing output tab in Maven project
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-08 18:14 UTC by akobberup
Modified: 2016-06-09 10:32 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215956


Attachments
stacktrace (1.68 KB, text/plain)
2015-03-08 18:14 UTC, akobberup
Details
stacktrace (1.68 KB, text/plain)
2015-03-24 19:31 UTC, akobberup
Details
stacktrace (1.68 KB, text/plain)
2015-03-30 13:36 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2015-03-08 18:14:17 UTC
Build: NetBeans IDE Dev (Build 201503050001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.31-b07, Java(TM) SE Runtime Environment, 1.8.0_31-b13
OS: Windows 8

User Comments:
akobberup: Closed a running process. 
It happens a lot in recent dev builds, that the output window for a running process "disapers". This is the first exception for this i have seen!




Stacktrace: 
java.lang.IllegalStateException: No OutWriter available
   at org.netbeans.core.output2.NbIO.outOrException(NbIO.java:197)
   at org.netbeans.core.output2.NbIO.access$900(NbIO.java:75)
   at org.netbeans.core.output2.NbIO$IOFoldingImpl$NbIoFoldHandleDefinition.setExpanded(NbIO.java:683)
   at org.netbeans.core.output2.NbIO$IOFoldingImpl$NbIoFoldHandleDefinition.setExpanded(NbIO.java:671)
   at org.openide.windows.FoldHandle.setExpanded(FoldHandle.java:101)
   at org.netbeans.modules.maven.execute.cmd.ExecutionEventObject$Tree.collapseFold(ExecutionEventObject.java:266)
Comment 1 akobberup 2015-03-08 18:14:19 UTC
Created attachment 152485 [details]
stacktrace
Comment 2 akobberup 2015-03-24 19:31:46 UTC
Created attachment 152828 [details]
stacktrace

It seems that output windows dissapears. I think it happens if i build a project that already is running. Instead of opening two tabs with "project name" the first one just seems to dissapear.
Comment 3 akobberup 2015-03-30 13:36:31 UTC
Created attachment 152921 [details]
stacktrace

The output window had dissapered. It happens sometimes when a project is run twice (i run the same project, but different maven configurations)
Comment 4 Jaroslav Havlin 2015-08-17 08:43:08 UTC
I'm sorry, I cannot reproduce the bug with current development build.

Do you change the configuration using the drop-down (select menu) in main toolbar? 
Can you still reproduce the bug with the latest daily build?
If so, can you please describe exact steps to reproduce?

Thank you.
Comment 5 akobberup 2015-08-19 07:26:21 UTC
I experienced it yesterday, running this recent build:

Product Version: NetBeans IDE Dev (Build 201508160002)
Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07
Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13
System: Windows 8 version 6.2 running on amd64; Cp1252; da_DK (nb)

My (maven) project consist of a server part and a client part, which i run using two different goals set up as actions: project properties --> Actions (the goals are "jetty:run-war"  and  "gwt:run"). It is same configuration.

So basically i run a server and the client. The problem then occurs if i shut down the client process and start it up again, then sometimes the server process tab will disappear. 
I unfortunately have not found the exact pattern to reproduce the issue, as i typically do not realize it until i need to check the log from the server process.
I will keep looking for reproducible steps to this.
Comment 6 Jaroslav Havlin 2015-08-25 13:51:04 UTC
CCing Tomas Stupka. Please, do you have any idea what could cause this?
Comment 7 akobberup 2015-12-17 12:40:23 UTC
A new variation..

I still run two processes on same maven project (so the output tabs have the same display name - in this case GWTClient) - each executed with a different profile (server and client). 
I then build another project, and when it is done, sometimes one of the two GWTClient output tabs has gone.. just like what i describe above.

But - it now seems that the log output from the GWTClient process for which the output tab has disappeared is now being channeled into the output tab of the other GWTClient process, like this:

-- this log entries is from the GWTClient process that owns the output tab
noServer is set! Skipping exploding war file...
dec. 17, 2015 12:52:45 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
-- the log below this, is from the other GWTClient process - for whom the output tab has gone missing
17 dec. 2015 12:55:22 INFO 876768764@qtp-1254651534-26 (Event.java:270) - Setting cacheEvict time for event 4737, Thread: 876768764@qtp-1254651534-26
17 dec. 2015 12:59:17 WARN 2067269851@qtp-1254651534-32 (ManagerClientServiceImpl.java:81) - Long running Request: [TeamGroup] 	UpdateTeamGroupRequest, request number 8, in 2410 ms
17 dec. 2015 12:59:26 WARN 2067269851@qtp-1254651534-32 (ManagerClientServiceImpl.java:81) - Long running Request: [TeamGroup] 	UpdateTeamGroupRequest, request number 9, in 2066 ms
17 dec. 2015 12:59:42 INFO 723583994@qtp-1254651534-28 (Event.java:270) - Setting cacheEvict time for event 4737, Thread: 723583994@qtp-1254651534-28

So it kinda seems like the output tabs are stored by their name (the project name)? If this is the case, maybe appending the selected active profile to the name would help (it would help identify the output tabs, regardless of whether it helps with this issue, if the tabs were called "GWTClient - client" and "GWTClient - server" or something like that).