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 17894 - Editor got lost after switching projects, exception thrown
Summary: Editor got lost after switching projects, exception thrown
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks: 17716
  Show dependency tree
 
Reported: 2001-11-20 15:40 UTC by Milan Kubec
Modified: 2008-12-23 09:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stack traces (2.10 KB, text/plain)
2001-11-20 15:41 UTC, Milan Kubec
Details
exception stack trace - only XML file was in editor (1.06 KB, text/plain)
2001-11-20 16:31 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2001-11-20 15:40:28 UTC
JDK 1.4. Editor window got lost during switching between projects. Steps to
reproduce:
- open IDE in SDI mode
- create 2 new projects
- switch to default project, mount repository with modules
- open some build script and execute it, e.g. for ant module
- open some other files in editor
- switch to another project and open form MemoryView
- switch to default project
if everything works OK, try to switch couple times between project with form and
default one. IOExceptions were thrown.

IOException are attached.
Comment 1 Milan Kubec 2001-11-20 15:41:54 UTC
Created attachment 3498 [details]
exception stack traces
Comment 2 Milan Kubec 2001-11-20 16:31:57 UTC
Created attachment 3499 [details]
exception stack trace - only XML file was in editor
Comment 3 Milan Kubec 2001-11-21 10:17:57 UTC
It seems that it's not conected to XML file but to type of editor
openned in Editor window. Basically if you open txt file in one
project and then txt file in another project the first editor is
closed. The same works even for java files. Steps to reproduce:
- create new project
- switch to default project and open txt (java) file
- switch to new project and open another txt (java) file
- switch back to default project and first editor is closed
Exception is not reproducible.

Comment 4 Vitezslav Stejskal 2001-11-21 19:07:04 UTC
Moving to core/winsys. It seems to be related to way how Window System 
is saved during the project close. The save activity may post some 
tasks which then interfere with the open activity performed on the new 
project. I am investigating it further, it's quite good reproducible 
on JDK 1.4.
We discussed probable fixes, but all of them are too risky to put them 
in trunk immediately before entering high resistance mode.
Comment 5 Vitezslav Stejskal 2001-11-21 19:18:53 UTC
-> winsys
Comment 6 Jan Zajicek 2001-11-22 11:22:32 UTC
Just ccing me.
Comment 7 Vitezslav Stejskal 2001-11-26 15:10:22 UTC
Two thinks were changed in order to improve winsys behavior during 
project switch:

1. SessionManager waits for AutomountSupport to finish repository 
update after the new project layer is set

2. Winsys waits for tasks deferred to AWT thread during the project 
close

Above changes were done on release33 branch, please try to verify it 
and remind me in case you will observe this problem again. It rarely 
occured on my W2K box with JDK 1.4 and seems to be gone after the 
changes were applied.

DeferredPerformer.java (1.9.38.1)
WindowManagerImpl.java (1.118.2.1)
Comment 8 Jan Chalupa 2001-12-03 15:25:53 UTC
Waived for 3.3. Not reliably reproducible and the cause is not clear.
Comment 9 Marian Mirilovic 2002-05-30 09:58:32 UTC
I cannot reproduce in [nb_dev](20020530),
closed.