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 10189

Summary: [Win2K NB Dev 142] Exception while importing Dev 136 projects
Product: projects Reporter: javaiware <javaiware>
Component: Generic InfrastructureAssignee: David Strupl <dstrupl>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: My system\projects directory that's causing the problem

Description javaiware 2001-03-12 21:23:36 UTC
Hi,

When I want to import the projects I'm working on in NB Dev 136 into 142, I get 
an exception while importing them all at once (see below). When I open the 
files one by one, there's no problem in importing them. Furthermore, when I 
open them all at once, not all projects are displayed in the listbox containing 
all projects, only after closing the dialog and reopening it, the imported 
projects are displayed. When I import the projects one by one, they all get 
displayed, right after I import them.

Iwan

Mon Mar 12 15:22:20 EST 2001java.lang.ClassCastException: 
org.openide.loaders.DataFolder
java.lang.ClassCastException: org.openide.loaders.DataFolder
        at org.netbeans.modules.projects.ProjectDataObject.createProject
(ProjectDataObject.java:84)
        at org.netbeans.modules.projects.ProjectDataObject.handleCopy
(ProjectDataObject.java:139)
        at org.openide.loaders.DataObject$2.run(DataObject.java:469)
        at org.openide.filesystems.FileSystem.runAtomicAction
(FileSystem.java:371)
        at org.openide.loaders.DataObject.copy(DataObject.java:467)
        at org.netbeans.modules.projects.importing.ImportNetbeansProject.run
(ImportNetbeansProject.java:151)
        at org.openide.util.Task.run(Task.java:124)
[catch] at org.openide.util.RequestProcessor$ProcessorThread.run
(RequestProcessor.java:567)
Comment 1 javaiware 2001-03-12 21:26:09 UTC
Created attachment 763 [details]
My system\projects directory that's causing the problem
Comment 2 David Strupl 2001-03-29 08:19:28 UTC
Reproduced on my comp with your projects dir (thanks for the attachment).
Working on it.
Comment 3 David Strupl 2001-03-29 11:58:07 UTC
Fixed in [dev] and [release32]. The fix is rather temporary in
ProjectDataObject.createProject. After the real reason of failing to copy the
projects is found the added code in ProjectDataObject can be removed.
If you spot similar behaviour please reopen or create new bug report.
Thanks for the report (especially the attachment was useful).
Comment 4 Milan Kubec 2002-10-18 10:57:24 UTC
Verified, not reproducible.
Comment 5 Quality Engineering 2003-07-01 14:16:59 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.