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 197950 - Can't register Glassfish appserver in NetBeans
Summary: Can't register Glassfish appserver in NetBeans
Status: RESOLVED DUPLICATE of bug 192164
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.0.1
Hardware: PC Other
: P2 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
: 199193 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-21 13:29 UTC by Anton Chechel
Modified: 2011-06-07 00:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (121.25 KB, text/plain)
2011-04-21 13:29 UTC, Anton Chechel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Chechel 2011-04-21 13:29:05 UTC
Created attachment 107883 [details]
Log file

Product Version: NetBeans IDE Dev (Build 20110411-95fa2f6ba3a6)
Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Userdir: C:\Projects\netbeans\web-main\nbbuild\testuserdir

1. Run nb with clear userdir.
2. Open existing web project.
3. Try to resolve missing server.
4. Register glassfish but it doesn't appear in registered server list.

In the log there is an exception: org.openide.filesystems.FSException: Cannot rename file GlassFishEE6/Instances/.nbattrs~ in C:\Projects\netbeans\web-main\nbbuild\testuserdir\config to GlassFishEE6/Instances/.nbattrs. New file exists: false. Rename result: false.

So I predict there is something wrong with windows filesystem. Log is attached.
Comment 1 Vince Kraemer 2011-04-21 16:41:09 UTC
There are similar message being generated by the j2eeserver module during start-up.

Cannot rename file J2EE/InstalledServers/.nbattrs~ in C:\Projects\netbeans\web-main\nbbuild\testuserdir\config to J2EE/InstalledServers/.nbattrs. New file exists: false. Rename result: false.

prior to the cited message.

So, both modules are probably doing something wrong in their rename code... or the FS code is seriously messed up on Windows (though that is pretty doubtful).
Comment 2 Vince Kraemer 2011-04-22 00:26:42 UTC
this looks like issue 192164...
Comment 3 Vince Kraemer 2011-04-22 02:16:10 UTC
also similar to issue 193278
Comment 4 Vince Kraemer 2011-04-22 16:53:40 UTC
it looks like issue 191689 is related, too...
Comment 5 Vince Kraemer 2011-04-25 21:59:50 UTC
The root cause of this is the fact that the file .nbattrs~ fails to get renamed to .nbattrs

The setAttribute method seems to be an important part of this and has an open issue against it... issue 192164.

Marking this issue as a dup of that and then raising the priority on the that issue.

*** This bug has been marked as a duplicate of bug 192164 ***
Comment 6 Vince Kraemer 2011-06-07 00:11:51 UTC
*** Bug 199193 has been marked as a duplicate of this bug. ***