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 167784 - java.io.IOException: In-memory data for nbproject/private/private.properties in /home/sigi/NetBeansProjects/WebApplication10 clobbered by changes on disk
Summary: java.io.IOException: In-memory data for nbproject/private/private.properties ...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL: http://statistics.netbeans.org/except...
Keywords:
: 169843 (view as bug list)
Depends on:
Blocks: 137947
  Show dependency tree
 
Reported: 2009-06-29 10:21 UTC by Vojtech Sigler
Modified: 2009-08-06 00:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153087


Attachments
stacktrace (1.75 KB, text/plain)
2009-06-29 10:21 UTC, Vojtech Sigler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vojtech Sigler 2009-06-29 10:21:46 UTC
Build: NetBeans IDE Dev (Build 200906290201)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.28-13-generic, i386

User Comments:
vsigler: Changed application server in a web project from Tomcat 6.0 to Glassfish V3 Prelude.



Stacktrace: 
java.io.IOException: In-memory data for nbproject/private/private.properties in /home/sigi/NetBeansProjects/WebApplication10 clobbered by changes on disk
        at org.netbeans.spi.project.support.ant.ProjectProperties$PP.write(ProjectProperties.java:227)
        at org.netbeans.spi.project.support.ant.ProjectProperties.write(ProjectProperties.java:136)
        at org.netbeans.spi.project.support.ant.AntProjectHelper.save(AntProjectHelper.java:596)
        at org.netbeans.spi.project.support.ant.AntProjectHelper.access$100(AntProjectHelper.java:103)
        at org.netbeans.spi.project.support.ant.AntProjectHelper$1.save(AntProjectHelper.java:141)
        at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.saveProject(AntBasedProjectFactorySingleton.java:346)
Comment 1 Vojtech Sigler 2009-06-29 10:21:56 UTC
Created attachment 84119 [details]
stacktrace
Comment 2 Milan Kubec 2009-06-29 10:53:01 UTC
Probably related to issue #137947. Reassigning to Jesse for evaluation.
Comment 3 Jesse Glick 2009-06-29 14:38:56 UTC
In fact same root cause as #137947, just now reported better. Not sure what can/should be done about it; something wrote
to private.properties the wrong way, but I have no idea what. Seems like it happens mainly to web applications, but not
sure.

Could discard modified data before throwing this exception, which would make it be thrown only once rather than twice.
Comment 4 Jesse Glick 2009-06-29 14:51:15 UTC
web.project can also report this at INFO, so it would not show up in the exception reporter. Of course best would be to
find a way to reproduce the problem.
Comment 5 Jesse Glick 2009-07-23 22:24:54 UTC
Trying to behave more robustly in core-main #3e3a94b944ec. Still no idea how to reproduce.
Comment 6 Quality Engineering 2009-07-24 17:44:41 UTC
Integrated into 'main-golden', will be available in build *200907241401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3e3a94b944ec
User: Jesse Glick <jglick@netbeans.org>
Log: #167784: downgrading mem <-> disk conflict in *.properties to INFO and reporting rather than throwing.
Also trying to capture a stack trace of the disk modification in case this is useful for future diagnosis.
Comment 7 David Konecny 2009-08-06 00:40:23 UTC
*** Issue 169843 has been marked as a duplicate of this issue. ***