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 17753 - FileNotFoundException and Editing workspace lost after switching projects
Summary: FileNotFoundException and Editing workspace lost after switching projects
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
: 17665 17802 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-11-16 09:45 UTC by Jan Chalupa
Modified: 2008-12-23 09:07 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Three exceptions thrown after the project switch (3.84 KB, text/plain)
2001-11-16 09:48 UTC, Jan Chalupa
Details
More exceptions (probably due to the missing Editing workspace) (1.30 KB, text/plain)
2001-11-16 09:50 UTC, Jan Chalupa
Details
Another FileNotFoundException (3.15 KB, text/plain)
2001-11-19 09:34 UTC, Jiri Skrivanek
Details
Stack trace of SAXParseException (5.23 KB, text/plain)
2001-11-20 07:47 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Chalupa 2001-11-16 09:45:20 UTC
[dev-20011116; Sun JDK 1.3.1_01; MDI]

Steps to reproduce:

1. Start with a clean userdir
2. Create a new project via Project | Project Manager | New...
3. Open Tools | Options...  window and leave it on
4. Switch to the Default project via Project | Project Manager | Open...
5. A series of exceptions starting w/ FileNotFound is thrown (see attachment)
6. Editing workspace is lost
Comment 1 Jan Chalupa 2001-11-16 09:48:12 UTC
Created attachment 3440 [details]
Three exceptions thrown after the project switch
Comment 2 Jan Chalupa 2001-11-16 09:50:26 UTC
Created attachment 3441 [details]
More exceptions (probably due to the missing Editing workspace)
Comment 3 Jiri Rechtacek 2001-11-16 10:25:26 UTC
*** Issue 17665 has been marked as a duplicate of this issue. ***
Comment 4 Vitezslav Stejskal 2001-11-16 10:43:33 UTC
Seems to be related to ICFolderImpl, I am investigating it.
Comment 5 Jaromir Uhrik 2001-11-16 13:24:49 UTC
This FileNotFoundException appears to me when I just started IDE and 
disabled the Projects module.
Comment 6 Marian Mirilovic 2001-11-18 10:54:17 UTC
*** Issue 17802 has been marked as a duplicate of this issue. ***
Comment 7 Jiri Skrivanek 2001-11-19 09:32:15 UTC
I guess I found another test case related to this bug:

- run IDE
- open examples/advanced/MemoryView
- create new project
- java.io.FileNotFoundException is thrown (see attachment) with
annotation "Windows null could not be saved due to problems with their
deserialization"
Comment 8 Jiri Skrivanek 2001-11-19 09:34:31 UTC
Created attachment 3470 [details]
Another FileNotFoundException
Comment 9 Vitezslav Stejskal 2001-11-19 16:40:38 UTC
Winsys doesn't listen to events fired when project layer is switched. 
The hierarchy of objects is refreshed after the new project layer is 
set. I tried to reproduce all use cases listed here and all of them 
were negative (reported buggy behavior doesn't occur anymore on my 
W2K box).

Fixed in main trunk and merged to release33_beta5.
Comment 10 Jiri Skrivanek 2001-11-20 07:45:29 UTC
Well, my test case doesn't throw FileNotFoundException anymore but it
throws this in 50% of attempts:

Tue Nov 20 07:42:27 CET 2001: org.xml.sax.SAXParseException: Cannot
parse configuration of TCRef MemoryView_1.
Nested annotation: Document root element is missing.
java.io.IOException: Cannot parse configuration of TCRef MemoryView_1.
        at
org.netbeans.core.windows.layers.TCRefImpl.parse(TCRefImpl.java:549)

I don't know if it is project or form issue.
Comment 11 Jiri Skrivanek 2001-11-20 07:47:02 UTC
Created attachment 3483 [details]
Stack trace of SAXParseException
Comment 12 Milan Kubec 2001-11-20 09:02:59 UTC
Reopenning, I can reproduce the same exceptions as Jirka by switching
between projects in beta 5 build. Shouldn't it be filed as separate
issue.
Comment 13 Milan Kubec 2001-11-20 10:22:31 UTC
I think I know the way how to reproduce it. I created many projects
(10), I left all windows in default positions and default layout and
then I was switching between all of them and nothing happened. Then I
docked property sheet into Explorer (botom) in one project and then I
switched to another project and back - exceptions were thrown.
Comment 14 Milan Kubec 2001-11-20 13:18:17 UTC
The same problem is also manifested when you start working in MDI,
where you create couple of new projects and then if you switch to SDI
and try to switch between projects these exceptions are thrown.
Comment 15 Vitezslav Stejskal 2001-11-20 14:16:55 UTC
Fixed in main trunk and merged to release33_beta5 branch.
Comment 16 Marian Mirilovic 2001-12-11 10:42:15 UTC
It seems like fixed now.

Verified in [nb_release330](200112102331) on [jdk1.4](89) &&
[jdk1.3.1](01) and both scenarios.
Comment 17 Quality Engineering 2003-07-01 16:38:06 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.