Bug#352178: eclipse: Error reading configuration

2006-02-10 Thread Mateusz Kaduk
Package: eclipse
Version: 3.1.2-1
Severity: important

When I start eclipse I get exception about configuration file

An error has occurred. See the log file
/usr/share/eclipse/configuration/1139562299034.log.

If chmod o+w /usr/share/eclipse/configuration then
it creates dirs in /usr/share/eclipse/configuration and start.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages eclipse depends on:
ii  eclipse-jdt   3.1.2-1Java Development Tools plug-ins fo
ii  eclipse-pde   3.1.2-1Plug-in Development Environment to
ii  eclipse-source3.1.2-1Eclipse source code plug-ins

eclipse recommends no packages.

-- no debconf information
~ eclipse -clean -debug -consolelog
using specified vm: /usr/lib/j2sdk1.5-sun
Start VM: /usr/lib/j2sdk1.5-sun/bin/java
-Djava.library.path=/usr/lib/jni
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.0/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=never
-Dosgi.locking=none
-jar /usr/share/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 300015
-install /usr/share/eclipse
-clean
-debug
-consolelog
-vm /usr/lib/j2sdk1.5-sun/bin/java
-vmargs
-Djava.library.path=/usr/lib/jni
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.0/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=never
-Dosgi.locking=none
-jar /usr/share/eclipse/startup.jar
Install location:
file:/usr/share/eclipse/
Configuration file:
file:/usr/share/eclipse/configuration/config.ini loaded
Configuration location:
file:/usr/share/eclipse/configuration/
Framework located:
file:/usr/share/eclipse/plugins/org.eclipse.osgi_3.1.2.jar
Framework classpath:
file:/usr/share/eclipse/plugins/org.eclipse.osgi_3.1.2.jar
Splash location:
/usr/share/eclipse/plugins/org.eclipse.platform_3.1.2/splash.bmp
runCommand:

/usr/lib/eclipse/eclipse-nameEclipse-showsplash600/usr/share/eclipse/plugins/org.eclipse.platform_3.1.2/splash.bmp
Debug options:
file:/home/mateusz/.options not found
!SESSION 2006-02-10 09:59:14.339 ---
eclipse.buildId=M20060118-1600
java.version=1.5.0_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=pl_PL
Command-line arguments:  -os linux -ws gtk -arch x86 -clean -debug -consolelog

!ENTRY org.eclipse.osgi 2006-02-10 09:59:14.830
!MESSAGE Error reading configuration: No such file or directory
!STACK 0
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1345)
at java.io.File.createTempFile(File.java:1434)
at 
org.eclipse.core.runtime.adaptor.FileManager.initializeInstanceFile(FileManager.java:143)
at 
org.eclipse.core.runtime.adaptor.FileManager.open(FileManager.java:664)
at 
org.eclipse.core.runtime.adaptor.EclipseAdaptor.initFileManager(EclipseAdaptor.java:818)
at 
org.eclipse.core.runtime.adaptor.EclipseAdaptor.initialize(EclipseAdaptor.java:139)
at 
org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:128)
at 
org.eclipse.osgi.framework.internal.core.Framework.init(Framework.java:106)
at 
org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
at org.eclipse.osgi.framework.internal.core.OSGi.init(OSGi.java:31)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:272)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
!SESSION 2006-02-10 09:59:14.339 ---
eclipse.buildId=M20060118-1600
java.version=1.5.0_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=pl_PL
Command-line arguments:  -os linux -ws gtk -arch x86 -clean -debug -consolelog

!ENTRY org.eclipse.osgi 2006-02-10 09:59:14.830
!MESSAGE Error reading configuration: No such file or directory
!STACK 0
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
   

Bug#352178: eclipse: Error reading configuration

2006-02-10 Thread Stephan Michels
On 2/10/06, Mateusz Kaduk [EMAIL PROTECTED] wrote:
 When I start eclipse I get exception about configuration file

 An error has occurred. See the log file
 /usr/share/eclipse/configuration/1139562299034.log.

 If chmod o+w /usr/share/eclipse/configuration then
 it creates dirs in /usr/share/eclipse/configuration and start.

I changed the order of some lines and make a diff between your log output
and mine:
@@ -5,15 +5,15 @@
 -jar /usr/share/eclipse/startup.jar
 -os linux
 -ws gtk
--arch ppc
+-arch x86
 -launcher /usr/lib/eclipse/eclipse
 -name Eclipse
 -showsplash 600
--exitdata a00019
+-exitdata 300015
 -install /usr/share/eclipse
 -debug
 -consolelog
--vm /usr/lib/jvm/java-gcj/bin/java
+-vm /usr/lib/j2sdk1.5-sun/bin/java
 -vmargs
 -Djava.library.path=/usr/lib/jni
 -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.0/classmap.db
@@ -25,10 +25,6 @@
 Configuration file:
 file:/usr/share/eclipse/configuration/config.ini loaded
 Configuration location:
-file:/home/stephan/.eclipse/org.eclipse.platform_3.1.2/configuration/
-Configuration file:
-
file:/home/stephan/.eclipse/org.eclipse.platform_3.1.2/configuration/config.ini
not found or not read
-Shared configuration location:
 file:/usr/share/eclipse/configuration/
 Framework located:
 file:/usr/share/eclipse/plugins/org.eclipse.osgi_3.1.2.jar
@@ -40,4 +36,4 @@
/usr/lib/eclipse/eclipse-nameEclipse-showsplash600/usr/share/eclipse/plugins/org.eclipse.platform_3.1.2/splash.bmp
 Debug options:
-file:/home/stephan/.options not found
+file:/home/mateusz/.options not found

It seems that eclipse doesn't use
.eclipse/org.eclipse.platform_3.1.2/configuration/ as your
configuration
directory. With your exception in the log I think it can't create a
temporary lock file in
.eclipse/org.eclipse.platform_3.1.2/configuration/org.eclipse.osgi/.manager:
.tmpys9gk6.instance for example.

Can you try to create this file to see if you have some weird problems with your
file system.

Stephan Michels.