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 119906 - Cannot create new C++ Application
Summary: Cannot create new C++ Application
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-24 14:10 UTC by eskild
Modified: 2008-01-10 06:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
SAXParseException (2.42 KB, text/plain)
2007-10-24 14:10 UTC, eskild
Details
configurations.xml (1.97 KB, text/xml)
2007-10-24 14:14 UTC, eskild
Details
messages.log with NPE and ArrayIndexOutOfBoundsException (23.24 KB, text/plain)
2007-12-24 15:05 UTC, alexandrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eskild 2007-10-24 14:10:04 UTC
1. Try to create new C++ project
2. See it fail with not being able to read from configurations.xml

I'm about to attach a "Premature end of file" SAXParseException from messages.log.
Comment 1 eskild 2007-10-24 14:10:54 UTC
Created attachment 51571 [details]
SAXParseException
Comment 2 eskild 2007-10-24 14:14:29 UTC
Created attachment 51573 [details]
configurations.xml
Comment 3 eskild 2007-10-24 14:16:34 UTC
Hm, interesting: I tried closing Netbeans, starting it again. Then I could create one project, but the second attempt
failed. However, the configurations.xml files are identical (I tried a 'diff').
Comment 4 Maria Tishkova 2007-10-24 14:19:09 UTC
Do you have Linux OS? Are you trying to create project in the local folder or using nfs?
Comment 5 eskild 2007-10-24 14:47:25 UTC
Yes, Linux + NFS -- SuSE 10.0, kernel 2.6.13-15.11-smp, Sun ST5320 NFS server.
Comment 6 Maria Tishkova 2007-10-24 15:25:19 UTC
Thanks for info, I will try to reproduce on Suse 10 as it works just fine for Ubuntu+NFS
Comment 7 eskild 2007-10-24 15:31:50 UTC
I've just downloaded the latest nightly (200710231200) of the NB/cnd version, and here I cannot reproduce the problem.
So it may be beta-2 specific and already fixed?
Comment 8 Thomas Preisler 2007-10-24 16:28:14 UTC
I have never seen or heard about this particular problem before and don't recalling fixing any bugs in this area after
beta2. Is your hardware fast?

But is good news that you cannot reproduce with latest bits. Please let us know if you see it again.
Comment 9 Jesse Grodnik 2007-10-24 18:36:06 UTC
Since this works on latest build, the defect is closed.
Comment 10 Alexander Pepin 2007-11-23 13:11:22 UTC
closed as not reproducible
Comment 11 eskild 2007-12-11 13:14:24 UTC
I'm back... Latest nightly (200712110000): Create new C++ project from existing source, with existing makefile.
Everything goes well until I get error about not being able to read from configurations.xml: premature end-of-file, says
the IDE log.

So, I look in my nbproject dir and see this:

-rw-r--r--  1 xxx xxx    0 2007-12-11 13:56 configurations.xml
-rw-r--r--  1 xxx xxx  867 2007-12-11 13:56 Makefile-Default.mk
-rw-r--r--  1 xxx xxx 3275 2007-12-11 13:56 Makefile-impl.mk
drwxr-xr-x  2 xxx xxx 4096 2007-12-11 13:56 private
-rw-r--r--  1 xxx xxx    0 2007-12-11 13:56 project.properties
-rw-r--r--  1 mae mae  406 2007-12-11 13:56 project.xml

No wonder we'll hit premature end-of-file on configurations.xml...

The IDE log shows the SAXParseException, but nothing prior, so I have no clue why this fails.

So far it's happened three times today, initially on nightly 200712050000; I then tried to upgrade to the most recent
nightly but the problem remains. 

With 6.0 (release), I'm (so far) able to create projects without problems, so it looks like a regression.

So, now for some merry speculation on my side:

* When I first posted this bug, the xml file looked sane, yet I got the premature-end-of-file exception nonetheless.

* Now, when I'm re-opening the bug, the file isn't sane -- it's empty. And I get a premature-end-of-file exception.

Since the file is rewritten occasionally, might we have a race condition somewhere, along the lines of:

1. thread A: Creates/opens the file for writing
2. thread B: Opens the file for reading, but there's nothing, so we get the exception
(3. thread A would then write the file and close it)

but we never get to 3 nowadays, whereas we did when I first filed the bug?
Comment 12 alexandrov 2007-12-24 15:05:46 UTC
Created attachment 54485 [details]
messages.log with NPE and ArrayIndexOutOfBoundsException
Comment 13 alexandrov 2007-12-24 15:06:23 UTC
I've reproduced the same problem few times for today with latest build 2007122400 on Sparc-Solaris platform. After error
I've got an NPE.
Steps to reproduce: create HelloApp project in newly created directory. 
Messages.log is attached
Comment 14 alexandrov 2007-12-24 15:06:32 UTC
I've reproduced the same problem few times for today with latest build 2007122400 on Sparc-Solaris platform. After error
I've got an NPE.
Steps to reproduce: create HelloApp project in newly created directory. 
Messages.log is attached
Comment 15 soldatov 2008-01-09 15:11:44 UTC
latest NPE is similar to NPE in issue 124951 (They have identical first three lines)
Comment 16 Alexander Pepin 2008-01-09 18:55:29 UTC
I would say that NPE stacktraces in these two issues are mostly identical except a few lines what I guess is a
consequence   of the recent code rewriting. So for me these issues look similar. Also taking into account that the
latest NPE has nothing to do with the original bug's description I think this issue can be considered as fixed.
Comment 17 alexandrov 2008-01-10 06:54:45 UTC
could not reproduce SAXParseException on build 2008010900