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 271303 - Project folder already exists and is not empty error
Summary: Project folder already exists and is not empty error
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10
: P1 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-15 22:57 UTC by steve83juno
Modified: 2017-08-15 23:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (92.69 KB, text/plain)
2017-08-15 22:57 UTC, steve83juno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steve83juno 2017-08-15 22:57:31 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_144
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.144-b01

Reproducibility: Happens every time

STEPS:
  * Open file menu and click New Project.
  * Select Java, then Java Application and click Next.
  * Name the project and click finished to see the error.

ACTUAL:
  Error at the button of the window that stops you from creating the project. The error is "Project folder already exists and is not empty". This is a new computer. I've tried a previous version of Netbeans, 8.1, which works on my other computer. I have removed the user directory files and regenerated them opening Netbeans. I've removed everything included the JDK and JDR, but still the error comes up when creating a new project. Existing projects work perfectly.

EXPECTED:
  Project files get fully generated and window closes to show the project.
Comment 1 steve83juno 2017-08-15 22:57:37 UTC
Created attachment 164958 [details]
IDE log
Comment 2 steve83juno 2017-08-15 23:08:10 UTC
Comment on attachment 164958 [details]
IDE log

The problem might be related to the error I see at the bottom of the log that says: org.xml.sax.SAXParseException; systemId: file:/C:/Users/steve/Google%20Drive/My%20Documents/NetBeansProjects/testnewproject/nbproject/project.xml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

From what I read on google, this is because there is garbage data in the beginning of the xml file. I have confirmed that there is weird characters at the beginning of the project.xml file that gets generated when the error appears. Figuring out why this invalid data gets generated with the file and where to apply the fix might solve the issue so that the project files can finish generating without issues.
Comment 3 steve83juno 2017-08-15 23:31:00 UTC
I also just noticed that this issue is present only when using the the netbeans64.exe version of the application in "C:\Program Files\NetBeans 8.2\bin". The 32 bit version, netbeans.exe, works perfectly.