Bug 55744 - eclipse does not start on hpux
Summary: eclipse does not start on hpux
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Incubator (show other bugs)
Version: unspecified   Edit
Hardware: All HP-UX
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Pascal Rapicault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 14:48 EST by Grant Gayed CLA
Modified: 2005-09-27 09:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2004-03-23 14:48:42 EST
using 0323 12:08p integration build, happens on hpux only

- unzip and start a new eclipse
- at the "select a workspace" dialog just leave the default value as-is, check
the "use this as default..." checkbox, and press OK
- will soon get a dialog saying "workspace in use, choose a different one"
- but this is obviously not the case

Note that this hpux machine in the past had problems with the .lock file (was it
an NFS problem?), so maybe this is similar?  I'm launching eclipse with the
following command line, which has worked fine in previous builds:

./eclipse -vm /opt/java1.4/jre/bin/java -vmargs -XdoCloseWithReadPending
-Xmx256M -Dorg.eclipse.core.runtime.ignoreLockFile
Comment 1 DJ Houghton CLA 2004-03-23 15:07:15 EST
DataArea.createLockFile still access this system property but no one (in my
workspace) calls this method. Who does the locking now?
Moving to Equinox for comment.
Comment 2 Pascal Rapicault CLA 2004-03-23 15:16:29 EST
The locking is done by the UI team.
CCing Andrew for comments.
Comment 3 Rafael Chaves CLA 2004-03-23 15:23:14 EST
The UI calls Location.lock, but we actually implement it, right? I would suggest
restoring the check for the -Dorg.eclipse.core.runtime.ignoreLockFile in the
lock implementation (instead of the client).
Comment 4 Andrew Eidsness CLA 2004-03-23 15:23:33 EST
UI sets the lock by calling either Location.setURL(URL value, boolean lock) (if 
the user selected a workspace in the dialog) or Location.lock() (if the 
workspace was already set, e.g., -data).

It looks both of those methods wind up calling BasicLocation.lock(File) to 
create the actual lock file.  It doesn't look like that method uses the DataArea 
method.
Comment 5 DJ Houghton CLA 2004-03-23 15:24:25 EST
FYI...

Here is a reference to the original bug about not being able to create the lock
file on HP-UX: bug 44487.

The system property check was added as a work-around for first a problem in the
class libraries on hp-ux and then for behaviour on NFS mounted drives: bug 44735.
Comment 6 Rafael Chaves CLA 2004-03-23 16:12:43 EST
Pascal and I readded the workaround to BasicLocation to allow people to run when
file locking does not work.
Comment 7 Jeff McAffer CLA 2004-03-23 16:47:43 EST
but this is just a temporary hack.  The property has the wrong name.  It hsould 
be something like osgi.locking=<value> where <value> is
- none
- java.io
- java.nio

If it is set to java.nio and nio is not available then use java.io.

Comment 8 Rafael Chaves CLA 2004-03-23 16:51:32 EST
Whatever definitive name we end up choosing, we should update bug 44735 so users
are warned.
Comment 9 Jeff McAffer CLA 2004-03-24 17:35:25 EST
the workaround is in place.  Dropping the severity and setting for M9 to 
implement the approach given in comment 7
Comment 10 Pascal Rapicault CLA 2004-03-31 17:35:21 EST
The fix described in comment #7 has been fixed and released in HEAD.
Comment 11 Rafael Chaves CLA 2004-03-31 17:49:38 EST
Just to confirm... the default is java.nio, isn't?
Comment 12 Pascal Rapicault CLA 2004-04-01 09:22:43 EST
Of course :-)