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 139879 - uninformative warning dialog: file already exists in userdir
Summary: uninformative warning dialog: file already exists in userdir
Status: RESOLVED DUPLICATE of bug 96587
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-14 14:10 UTC by Kenneth Ganfield
Modified: 2009-06-19 15:53 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 Kenneth Ganfield 2008-07-14 14:10:46 UTC
If i have 2 projects with the same name, each time i try to run one of the projects I get a warning dialog that says

"File XXX already exists in PATH_TO_USERDIR/myuserdir/config."

I can click OK to dismiss the dialog, but what is the reason for the dialog and what is the problem?
How do I prevent the warning from appearing again?
What is the file in my userdir that already exists?

If there is a problem, dialog should provide more information about how to resolve it.

Excerpt of IDE output:

msg
Caused: java.io.SyncFailedException: File CustomerBook already exists in
/Applications/Netbeans_builds/userdirs/userdir6.5_2808/config.
        at org.openide.filesystems.LocalFileSystem.createData(LocalFileSystem.java:275)
        at org.openide.filesystems.LocalFileSystem$Impl.createData(LocalFileSystem.java:551)
        at org.openide.filesystems.AbstractFileObject.createData(AbstractFileObject.java:466)
        at org.openide.filesystems.FileUtil.createData(FileUtil.java:582)
        at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1073)
        at org.openide.filesystems.FileUtil.createData(FileUtil.java:582)
        at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1073)
        at org.openide.filesystems.FileUtil.createData(FileUtil.java:582)
[catch] at org.netbeans.modules.j2ee.deployment.impl.TargetModuleConverter.writeTargetModule(TargetModuleConverter.java:163)
        at org.netbeans.modules.j2ee.deployment.impl.TargetModule.save(TargetModule.java:268)
        at
org.netbeans.modules.j2ee.deployment.impl.projects.DeploymentTargetImpl.setTargetModules(DeploymentTargetImpl.java:253)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:184)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:485)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
ALL [null]: File CustomerBook already exists in /Applications/Netbeans_builds/userdirs/userdir6.5_2808/config.
FINE [org.netbeans.modules.javahelp]: modal (or viewer) dialog event:
java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on dialog14 [Warning]
FINE [org.netbeans.modules.javahelp]: new modal dialog stack: [Warning]
FINE [org.netbeans.modules.javahelp]: 1. No viewer open. Dialog opened. Push it on stack. rTFL = false.
Comment 1 Jiri Skrivanek 2008-07-28 17:52:00 UTC
I added full path of affected file to the error message. Stack trace points to some problem in j2ee area but you could
help with evaluation providing mode detailed steps to reproduce. Thanks.

http://hg.netbeans.org/core-main/rev/b2dbd49481bc
Comment 2 Petr Hejl 2008-08-20 12:50:28 UTC
Netbeans writes data about deployed apps in order to (re)deploy them when needed. This mechanism does not support two
apps with same name. It is too risky to change it for 6.5.
Comment 3 _ jyothivasa 2008-11-21 21:22:08 UTC
Not planned for 7.0
Comment 4 Petr Hejl 2009-06-19 15:53:46 UTC

*** This issue has been marked as a duplicate of 96587 ***