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 143553 - Window Vista:V3:Exeption should be handled gracefully
Summary: Window Vista:V3:Exeption should be handled gracefully
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 149807 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-12 02:03 UTC by davisn
Modified: 2008-10-17 23:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (75.68 KB, text/plain)
2008-08-12 02:04 UTC, davisn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2008-08-12 02:03:25 UTC
On Window Vista if Netbean was installed on User 1 directory when starts Netbean IDE from a different User Desktop,  
FileAlreadyLockedException occurs

Steps to Reproduce
1. Login Window Vista as Administrator User, create User1 account 
2. Re-login winVista as User1 > Install Netbean 6.5 Trunk build (08/11/2008) onto User1 directory, including Glassfish 
V2 and GlassfishV3-prelude-b15b builds
3. Re-login as Adminsitrator user
4. Start Netbean IDE from the Desktop icon
BUG: 
   Exception error message occurs as described in the message below (messages.log file attached)
    org.openide.filesystems.FileAlreadyLockedException: org-netbeans-api-project-libraries/libraries-
timestamps.properties
	at org.openide.filesystems.MultiFileObject.lock(MultiFileObject.java:641)
	at org.netbeans.modules.project.libraries.LibrariesStorage.saveTimeStamps(LibrariesStorage.java:493)
	at org.netbeans.modules.project.libraries.LibrariesStorage.fileChanged(LibrariesStorage.java:448)
	at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSupport.java:136)
	at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEvent(FCLSupport.java:122)
	at org.openide.filesystems.FCLSupport.dispatchEvent(FCLSupport.java:99)
	at org.openide.filesystems.FileObject$ED.dispatch(FileObject.java:915)
	at org.openide.filesystems.EventControl.invokeDispatchers(EventControl.java:203)
	at org.openide.filesystems.EventControl.exitAtomicAction(EventControl.java:177)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:122)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
	at org.netbeans.modules.j2ee.sun.ide.j2ee.db.RegisterPointbase.registerDerbyLibrary(RegisterPointbase.java:575)
	at org.netbeans.modules.j2ee.sun.ide.j2ee.db.RegisterPointbase.register(RegisterPointbase.java:265)
	at org.netbeans.modules.j2ee.sun.ide.Installer$PrepareEnvironment.run(Installer.java:127)
[catch] at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 davisn 2008-08-12 02:04:26 UTC
Created attachment 67099 [details]
messages.log
Comment 2 Lukas Hasik 2008-08-12 11:28:24 UTC
-> projects
	at org.netbeans.modules.project.libraries.LibrariesStorage.saveTimeStamps(LibrariesStorage.java:493)
	at org.netbeans.modules.project.libraries.LibrariesStorage.fileChanged(LibrariesStorage.java:448)

---
davisn,have you started the IDE as user1? Was the IDe running when you switched the users? Have you opened/created a
project in the IDE?
Comment 3 davisn 2008-08-12 19:20:58 UTC
-I do not have a problem to start the Netbean IDE as User1
-If I started NB as User1 and then switch to User2, I would not be able to see the IDE started because each user created
his own .netbean and .netbean-derby directories. User 2 has to start the Netbean IDE by himself
Comment 4 Tomas Zezula 2008-08-26 10:30:04 UTC
http://hg.netbeans.org/main/rev/c322e4ac68ad
Comment 5 Quality Engineering 2008-08-26 17:26:00 UTC
Integrated into 'main-golden', available in build *200808261401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/c322e4ac68ad
User: Tomas Zezula <tzezula@netbeans.org>
Log: #143553:Window Vista:V3:Exeption should be handled gracefully
Comment 6 _ pcw 2008-10-17 23:07:32 UTC
*** Issue 149807 has been marked as a duplicate of this issue. ***