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 237686 - Ant JavaEE Web project corrupted with private.properties File from older IDE version
Summary: Ant JavaEE Web project corrupted with private.properties File from older IDE ...
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.4
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-26 06:46 UTC by bht
Modified: 2013-11-05 08:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2013-10-26 06:46:05 UTC
I had last opened the project with the 7.4 dev version. Then I uninstalled the dev version
before installing 7.4 final. All on the same computer.

When building the project, I get an error:

nbproject\build-impl.xml:797: The libs.CopyLibs.classpath property is not set up.

This appears to be caused by entries in private.properties pointing to the old uninstalled dev version:

deploy.ant.properties.file=C:\\Documents and Settings\\name\\Application Data\\NetBeans\\dev\\config\\GlassFishEE6\\Properties\\gfv3-2122326925.properties
j2ee.platform.is.jsr109=true
j2ee.server.domain=C:/Program Files/glassfish-3.1.2.2/glassfish/domains/domain1
j2ee.server.home=C:/Program Files/glassfish-3.1.2.2/glassfish
j2ee.server.instance=[C:\\Program Files\\glassfish-3.1.2.2\\glassfish;C:\\Program Files\\glassfish-3.1.2.2\\glassfish\\domains\\domain1]deployer:gfv3ee6wc:localhost:4848
j2ee.server.middleware=C:/Program Files/glassfish-3.1.2.2
javac.debug=true
javadoc.preview=true
selected.browser=default
user.properties.file=C:\\Documents and Settings\\name\\Application Data\\NetBeans\\dev\\build.properties

The user.properties.file location does not exist anymore.

I have used this project between versions many times before, and it never failed. I would open the project on the same day in different IDE versions.
I only found minor issues when I had the project open in two IDE versions at the same time.

I guess this is a new bug in 7.4 where it fails to re-write the private.properties file with values that apply to the current IDE installation.
Comment 1 Milos Kleint 2013-10-31 12:57:13 UTC
can you attach your IDE log file? AFAIK at least the user.properties.file property should be rewritten each time the project is opened in different IDE.

http://wiki.netbeans.org/FaqLogMessagesFile
Comment 2 bht 2013-11-04 05:27:54 UTC
My apologies, I don't have a log file anymore. It is my fault. But to be honest, it does not matter whether it is my fault or not. The problem is that the number of log file generations is ridiculously low. IMHO we should let the computer do the work and not rely on humans to sort these things out.

I have copied the whole project in its erroneous state, but just forgot to copy the log file. Please consider that these log files are deeply buried in the system, and I forget to copy it. So perhaps it is worth considering to increase the number of generations to something like 14 days minimum. To me this looks even more important than even this bug.

I may be able to reproduce this by uninstalling 7.4 and re-installing the dev version. Of course I am not sure about that.
Comment 3 Milos Kleint 2013-11-05 08:41:43 UTC
unfortunately whenever I open a project from different version of netbeans, the private properties are properly updated for me. Without steps to reproduce and/or the log (which could show some exceptions logged that caused the failure) I cannot do much. 

if the problem persists, you can fix the problem yourself manually by updating the user.properties.file property in the nbproject/private/private.properties file.

closing as worksforme, please reopenen with any additional comments