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 210311 - AssertionError: If valid, it should be a folder: C:\Users\Mark\Documents\NetBeansProjects\JavaApplication28\build\classes\javaapplication28@4e32eb7:1e857d8
Summary: AssertionError: If valid, it should be a folder: C:\Users\Mark\Documents\NetB...
Status: RESOLVED DUPLICATE of bug 209886
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-28 18:38 UTC by MackSix
Modified: 2012-04-04 15:13 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186417


Attachments
stacktrace (2.48 KB, text/plain)
2012-03-28 18:39 UTC, MackSix
Details
stacktrace (2.45 KB, text/plain)
2012-04-01 06:11 UTC, narsereg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-03-28 18:38:55 UTC
This bug was originally marked as duplicate of bug 204849, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201203280401)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows Vista

User Comments:
MackSix: Exception Reporter Test

GUEST: I renamed a project including the project directory name with Netbeans

GUEST: twice rename project

MackSix: Renamed project with renaming of folder. Renamed package. The project only has 1 package. The right clicked on project and chose "Run" and got this exception.

The Output window also says, Error: Could not find or load main class observer_243.Main

"observer_243" is what I renamed the package too.

GUEST: Compiling project

greggwon: Just building the current project.  background processing probably got caught with it's hand in the cookie jar, mucking with stuff and slowing down the build.

MackSix: This still occurs. Rename Project wih folder option then rename Package with refactor option and then try to run the project. Also, the output window says: Error: Could not find or load main class javaapplication12.JavaApplication1
Java Result: 1

MackSix: 7.1 RC1 - Had already changed the name of the Project with Folder and Package with refactoring a couple of times. Did it again and this happened.

MackSix: Renaming project and project folder in the Projects window.

GUEST: editing a class

GUEST: renaming a project that had the same name as another open project

MackSix: Went through the proceedure again with project that ran ok before renaming Project and Package.

GUEST: Renamed a newly created EE Client.

GUEST: Renombrando un proyecto

GUEST: Went to exit an application that had thrown an out of memory error.

MackSix: Renamed Java Package.
Correction: Renamed Java Project.

MackSix: This bug still occurs. Renaming a project with folder.

sunbiz: Renaming a JavaCard project does not work correct. It throws the exception when renaming a project and its folder

GUEST: renaming a project




Stacktrace: 
java.lang.AssertionError: If valid, it should be a folder: C:\Users\Mark\Documents\NetBeansProjects\JavaApplication28\build\classes\javaapplication28@4e32eb7:1e857d8
   at org.netbeans.modules.masterfs.watcher.Watcher$Ext.unregister(Watcher.java:248)
   at org.netbeans.modules.masterfs.watcher.Watcher.unregister(Watcher.java:127)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.removeFileChangeListener(BaseFileObj.java:519)
   at org.openide.filesystems.FileUtil$Holder.locateCurrent(FileUtil.java:441)
   at org.openide.filesystems.FileUtil$Holder.someChange(FileUtil.java:461)
   at org.openide.filesystems.FileUtil$Holder.fileDeleted(FileUtil.java:500)
Comment 1 MackSix 2012-03-28 18:39:01 UTC
Created attachment 117429 [details]
stacktrace
Comment 2 MackSix 2012-03-28 19:08:30 UTC
This was fixed in 7.1.
Comment 3 narsereg 2012-04-01 06:11:20 UTC
Created attachment 117598 [details]
stacktrace

Try to rename project and its folder.
Comment 4 MackSix 2012-04-01 06:16:47 UTC
regression -> P1
Comment 5 narsereg 2012-04-01 06:35:09 UTC
Error repeats when I try to open Swing form file in renamed folder. .java file opens without any errors.
Comment 6 MackSix 2012-04-01 07:04:35 UTC
(In reply to comment #5)
> Error repeats when I try to open Swing form file in renamed folder. .java file
> opens without any errors.

Do you see this too?

http://netbeans.org/bugzilla/show_bug.cgi?id=209886
Comment 7 Jaroslav Tulach 2012-04-04 14:56:12 UTC
Only an assert.
Comment 8 Jaroslav Tulach 2012-04-04 15:13:53 UTC

*** This bug has been marked as a duplicate of bug 209886 ***