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 221129

Summary: Home Folder is on a network share: error while locking file "7.3beta2/netigso/org.eclipse.osgi/.manager/.fileTableLock": "Operation not supported"
Product: platform Reporter: mohnid <mohnid>
Component: NetigsoAssignee: Jaroslav Tulach <jtulach>
Severity: normal CC: anebuzelsky, jrechtacek
Priority: P3 Keywords: RELNOTE
Version: 7.2.1   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Laucher Startup Log File

Description mohnid 2012-10-30 19:31:41 UTC
My user home is on a mac osx server and mounter thru afp on login.
Therefore my Home Folder is mounted on /Network/Servers/myServer/Users
Installation is working fine, but starting Netbeans will result in a crash.
In the Console I get this error:

30.10.12 20:14:39.663[273]: ([0x0-0xaa0aa].org.netbeans.ide.baseide.201210100934[48606]) Exited with code: 2

to local folders on my iMac will fix this issue, but I don't think this is the way to go.
Comment 1 Libor Fischmeistr 2012-11-13 09:54:09 UTC
Can you please provide us the launcher log?

Start NetBeans: ./netbeans &> launcher.log

Also the mount list could be helpful: mount > mount.txt

Comment 2 mohnid 2012-11-13 18:35:58 UTC
Created attachment 127737 [details]
Laucher Startup Log File

log file created launching netbeans from 
/Applications/NetBeans/NetBeans 7.3 Beta
with ./netbeans &> launcher.log

The Log File clearly the problem in my environment: 

by: An error occurred while locking file "/Network/Servers/": "Operation not supported". A common reason is that the file system or Runtime Environment does not support file locking for that location. Please choose a different location, or disable file locking by passing "-Dosgi.locking=none" as a VM argument.

Look like its related to the jdk and not netbeans itself.
Comment 3 Jiri Rechtacek 2012-11-14 12:28:13 UTC
Thanks you for your log. Jardo, do you know something about this problem? Thanks
Comment 4 Jaroslav Tulach 2012-11-16 17:54:17 UTC
The problem is related to Equinox. I would re-install on a local disk rather than network one or I'd passed in the command line parameter to disable locking. Let me know if that works or reopen the bug.
Comment 5 mohnid 2012-11-16 19:02:31 UTC
The Installation is on the local disc, only the home folder is on a network disc.
Now, is there an easy way to set the command line argument on a Mac App Bundle ?

I think it would be good to show an error dialog with a hint how to resolve this problem when launching Netbeans, instead of just crashing...
Or even better the Installer could check if the home folder is on a network share and set the option by default.

Maybe there should also be a note on this problem on the Netbeans Installation Instructions Page.
Comment 6 Jaroslav Tulach 2012-11-19 09:37:14 UTC
See and let us know if that helped. If so, we can add a release note.

I am not sure how to close the bug. Marking as worksforme, although it is is not really correct resolution.
Comment 7 mohnid 2012-11-19 18:55:45 UTC
After disabling osgi locking adding '-J-Dosgi.locking=none' to the startup parameters I got another problem.
This is reported thru Exception Reporter as Bug 211808.
Therefore disabling locking is not an option here, but changing ${DEFAULT_CACHEDIR_ROOT}
to a local location will fix the problem.
At least Netbeans is now starting without issue.
Comment 8 Jaroslav Tulach 2012-11-21 16:48:13 UTC
I guess I could use osgi.locking=none by default. That would fix the start. The bug 211808 will need to be fixed anyway, as it has too many duplicates.
Comment 9 Jaroslav Tulach 2012-11-26 15:44:06 UTC
Comment 10 Quality Engineering 2012-11-28 02:36:16 UTC
Integrated into 'main-golden', will be available in build *201211280002* on (upload may still be in progress)
User: Jaroslav Tulach <>
Log: #221129: We can run without Equinox specific locking as the locking should be provided by NetBeans CLI locking scheme