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 60474

Summary: ClassCastException creating a new web project with preexisting sources
Product: javaee Reporter: _ gtzabari <gtzabari>
Component: Web ProjectAssignee: Radko Najman <rnajman>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: stack-trace

Description _ gtzabari 2005-06-24 06:45:27 UTC
dev build 200506231800

I get this exception when creating a new web project with preexisting sources.
It occurs right after the wizard closes.
Comment 1 _ gtzabari 2005-06-24 06:45:38 UTC
Created attachment 22880 [details]
stack-trace
Comment 2 zikmund 2005-06-24 09:44:17 UTC
I can't reproduce it (same build, JDK 1.5.0_04, WinXP).
Could you please try your scenario with minimal project? - i.e. only 1 source
root with only 1 Java file without any tests? Does it happen too? Thanks.
Comment 3 _ gtzabari 2005-06-24 17:46:29 UTC
It looks as like issue was the result of a corrupt cache somehow and occured
randomly. I tried reproducing it a couple of times on the exact same set of
files and it no longer occured. I suggest we close as WORKSFORME and if I'm able
to reproduce it I'll reopen this issue. Sorry for the false alarm :)

Also, on closing, I should mention it looks like there are still some bugs to do
with the cache floating around. In one case, I was recreating the web project
with existing sources, tried adding the source directory and Netbeans complained
about that directory already being used by another project; except that other
project was the exact same project I was recreating! Closing the wizard and
trying again made the problem go away. I suspect that when I closed the project
and deleted it from disk (so I can recreate it) Netbeans still kept its records
in the cache for some reason and this caused problems. It might somehow be
related to the originally problem I reported as well or maybe not.

Anyway, I am still not able to reliably reproduce any of this. It is very random
and I see something maybe once every five times I try. Should we close as
WORKSFORME until there are more reliable repro steps?
Comment 4 zikmund 2005-08-26 10:08:27 UTC
Closing as WorksForMe - as Gili suggested.