[Hardy]sun-java6-bin: suit.properties.tmp (Permission denied)

Bug #186247 reported by Nthalk
4
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: sun-java6-bin

After installing sun-java6-bin on ubuntu via the following command:

`sudo apt-get install sun-java6`

and making sure it was selected with

`sudo update-alternatives --config java`

I have an issue with running some java graphical programs.

I consistently get this stacktrace:
`
java.io.FileNotFoundException: suit.properties.tmp (Permission denied)
 at java.io.FileOutputStream.open(Native Method)
 at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
 at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
 at java.io.PrintStream.<init>(PrintStream.java:228)
 at com.devexperts.jnlp.utils.Utils.updateProperty(Utils.java:119)
 at com.devexperts.jnlp.UpdateManager.isModuleUptodate(UpdateManager.java:73)
 at com.devexperts.jnlp.UpdateManager.main(UpdateManager.java:235)
 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:597)
 at com.devexperts.jnlp.Launcher.run(Launcher.java:82)
 at java.lang.Thread.run(Thread.java:619)

`
Followed by a program hang. The app inits the interface fine, but then becomes an unresponsive brick.

What looks kind of familiar to me (I am no java programmer) is the first line:
`java.io.FileNotFoundException: suit.properties.tmp (Permission denied)`
If execute my application with sudo, I get no such permission problem and my application runs flawlessly.

Mind you, the only way I could actually get this to run correctly due to some bizzare xinerama//java assertion failure with Hardy is to use the libxcb* libraries from Feisty (which do not seem to have this assertion error)
`
wget http://mirrors.kernel.org/ubuntu/pool/main/libx/libxcb/libxcb-xlib0_1.0-1.1ubuntu2_i386.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/libx/libxcb/libxcb1_1.0-1.1ubuntu2_i386.deb
dpkg -i libxcb*
`

Other wise there is some bizzare and nasty assertion pops up:
`
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xa8320767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xa83208b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xa7f5829d]
#3 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xa83828ce]
#4 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xa835f067]
#5 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xa835f318]
#6 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xa835f61f]
#7 [0xb4cd23aa]
#8 [0xb4ccaf0d]
#9 [0xb4ccaf0d]
#10 [0xb4cc8249]
#11 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x637338d]
#12 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x64fd168]
#13 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x6373220]
#14 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x363) [0x63c90d3]
#15 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7ce396d]
#16 [0xb4cd23aa]
#17 [0xb4ccada7]
#18 [0xb4cc8249]
#19 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x637338d]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
/usr/local/bin/thinkorswim: line 253: 10164 Aborted (core dumped) "$app_java_home/bin/java" -Dinstall4j.jvmDir="$app_java_home" -Dexe4j.moduleName="$prg_dir/$progname" $INSTALL4J_ADD_VM_PARAMS -classpath "$local_classpath" com.install4j.runtime.Launcher launch com.devexperts.jnlp.Launcher true false "$prg_dir/client.out" "$prg_dir/client.out" true true false "" true true 470 265 "" 20 20 "Arial" "0,0,0" 8 500 "" 20 40 "Arial" "0,0,0" 8 500 -1 "$@"
`

So, in the meantime, I can run my program (which is pretty essential to my finances) with `sudo` with outdated java libs, but I don't really like that as a long term solution.

Revision history for this message
Antoine Pairet (b-ly) wrote :

In my opinion this is a duplicate of 185311
The relevant is: "java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed."

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.