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 254319

Summary: AssertionError: Need to normalize ... Different letter-case in path
Product: platform Reporter: ytn01
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: alexvsimon, manikantannaren, ytn01
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 209011
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description ytn01 2015-08-12 15:18:45 UTC
Build: NetBeans IDE Dev (Build 201508100002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-ea-b25
OS: Mac OS X

User Comments:
ytn01: 1. Created a new web application with Glassfish server.
2. Added a simple plain text Restful service to it.
3. Compiled, deployed and run service.
4. Attempted to Test resource uri,... kept getting "project needs to be deployed" error dialog.
5. Deleted project
6. Created project again with same format,... exception was thrown,... and project didn't load on projects window,... but "index.html" page of project was opened.

GUEST: Once I creating a new C++ project, this problem appear.




Stacktrace: 
java.lang.AssertionError: Need to normalize /Users/YTN/NetBeansProjects/RESTFULtest/src/java(class java.io.File) was /Users/YTN/NetBeansProjects/RESTfulTest/src/java(class java.io.File)
   at org.openide.filesystems.FileUtil.assertNormalized(FileUtil.java:157)
   at org.openide.filesystems.FileUtil.assertNormalized(FileUtil.java:141)
   at org.openide.filesystems.FileChangeImpl.addFileChangeListenerImpl(FileChangeImpl.java:220)
   at org.openide.filesystems.FileUtil.addFileChangeListener(FileUtil.java:298)
   at org.netbeans.api.java.classpath.ClassPath$RootsListener.addRoots(ClassPath.java:1278)
   at org.netbeans.api.java.classpath.ClassPath.createRoots(ClassPath.java:349)
Comment 1 ytn01 2015-08-12 15:18:47 UTC
Created attachment 155300 [details]
stacktrace
Comment 2 ytn01 2015-08-12 15:51:27 UTC
Created attachment 155302 [details]
stacktrace

1. Created multiple Java Web Projects with unique server and JEE version settings
2. Made some manipulation to projects (added servlets, modified index pages, etc) and deploy/run all
3. Selected all projects and pressed "Debug" from IDE toolbar

exception was generated.
Comment 3 Jaroslav Havlin 2015-08-13 07:28:00 UTC
Thank you for reporting.

There is different letter-case in these file names:
RESTFULtest vs. RESTfulTest

Did you rename the folder?

(It is a problem to detect these file-name changes on case-insensitive filesystems.)
Comment 4 Jaroslav Havlin 2015-09-22 12:01:42 UTC
*** Bug 254801 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Simon 2016-06-14 08:02:20 UTC
Created attachment 160042 [details]
stacktrace

start ide
Comment 6 Alexander Simon 2016-06-14 08:05:20 UTC
Created attachment 160043 [details]
stacktrace

start ide