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.
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: | Netigso | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
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
Can you please provide us the launcher log? Start NetBeans: ./netbeans &> launcher.log Also the mount list could be helpful: mount > mount.txt Thanks Created attachment 127737 [details]
Laucher Startup Log File
log file created launching netbeans from
/Applications/NetBeans/NetBeans 7.3 Beta 2.app/Contents/Resources/NetBeans/bin
with ./netbeans &> launcher.log
The Log File clearly the problem in my environment:
by: java.io.IOException: An error occurred while locking file "/Network/Servers/srv1.int.mohni.info/Users/daniel/Library/Caches/NetBeans/7.3beta2/netigso/org.eclipse.osgi/.manager/.fileTableLock": "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.
Thanks you for your log. Jardo, do you know something about this problem? Thanks 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. 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. See http://wiki.netbeans.org/FaqNetbeansConf 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. 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. 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. ergonomics#c0c6ba293e0f Integrated into 'main-golden', will be available in build *201211280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c0c6ba293e0f User: Jaroslav Tulach <jtulach@netbeans.org> Log: #221129: We can run without Equinox specific locking as the locking should be provided by NetBeans CLI locking scheme |