Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69542 - javaws does not start
Summary: javaws does not start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: InVCS
: 74753 80165 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-30 13:40 UTC by Charles Noneman
Modified: 2005-07-23 18:15 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Noneman 2004-10-30 13:40:35 UTC
Running javaws does nothing and causes CPU usage to go to 100%. Passing options gives the same result.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
Java Web Start to launch

Portage 2.0.51-r2 (default-amd64-2004.2, gcc-3.4.2, glibc-2.3.4.20041021-r0,
2.6.9-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.4
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d/ /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://gentoo.noved.org/ http://mirrors.tds.net/gentoo
http://mirror.tucdemonic.org/gentoo/ http://adelie.polymtl.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 apm avi berkdb bitmap-fonts cdr crypt cups directfb
divx4linux dvd dvdr encode f77 flac foomaticdb gdbm gif gimpprint gnome gpm
gstreamer gtk gtk2 gtkhtml imlib ipv6 java jpeg libg++ libwww mad mikmod motif
mozdevelop mozilla moznoirc moznomail mpeg multilib mysql ncurses nls nogcj
oggvorbis opengl pam pdflib perl png ppds python quicktime readline samba sdl
slang spell ssl tcltk tcpd tiff truetype unicode usb videos x xinerama xml xml2
xmms xprint xv xvid zlib video_cards_radeon"
Comment 1 Michael Schnake 2004-11-04 03:43:49 UTC
Exactly the same here, but with sun-jdk-1.4.2.06 as well as sun-jdk-1.5.0. No
matter which JDK or what javaws options used, javaws goes to 100% CPU and does
nothing (no error message, no splash, no anything). Process list shows
"javawsbin" with high (> 80%) CPU load and one (zombified) child process "[java] <defunct>"

Java itself runs without any problems (e.g. Eclipse and NetBeans IDEs work well).

Also unmerged both JDKs and emerged a "fresh" sun-jdk-1.4.2.06. Same result.

BTW starting with "JAVAWS_HOME=/opt/sun-jdk-1.4.2.06/jre/javaws javawsbin"
does not help either.

Sys-Info: Portage 2.0.51-r2 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.2, glibc-2.3.4.20041021-r0, 2.6.9-nitro2 i686)

CFLAGS="-march=pentium3 -pipe -O2 -fomit-frame-pointer -ftracer"

Note that we have the same gcc and glibc versions (and they are pretty up to date, too ;-). Wondering if this is a "bleeding edge" kind of problem.
Comment 2 Michael Schnake 2004-11-19 02:14:06 UTC
FYI, there is an upstream bug report at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6195591
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-11-23 19:52:29 UTC
A more contentful upstream report : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6188963
(They claim that it's fixed in the 5.0u2 release, which, as far as I can tell, is not available for download yet - oh well)
Comment 4 Charles Noneman 2004-12-04 12:46:01 UTC
This seems to be fixed in dev-java/blackdown-jdk-1.4.2.01, closing.
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2004-12-04 12:55:47 UTC
blackdown-jdk-1.4.2.01 is based on sun-jdk 1.4.2.07 alpha code, so it should also be fixed in the next sun release 
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2005-01-30 22:18:23 UTC
Seems like sun broke it again in there .07 release
Comment 7 Thomas Matthijs (RETIRED) gentoo-dev 2005-01-30 22:19:34 UTC
*** Bug 80165 has been marked as a duplicate of this bug. ***
Comment 8 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-01-31 11:21:36 UTC
*** Bug 74753 has been marked as a duplicate of this bug. ***
Comment 9 Stefan Mahnke 2005-02-05 12:45:47 UTC
POSSIBLE WORKAROUND

i also had this problem.
strace showed that javaws could not open ~/.java/.deployment/deployment.properties
i fetched one from another machine, fixed the path locations and stored that file.
now javaws works as expected. my deployment.properties:



#
#Sat Feb 05 20:09:05 CET 2005
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.0.platform=1.4
deployment.javaws.player.bounds=354,310,572,403
deployment.javaws.jre.0.osname=Linux
deployment.javaws.jre.0.path=/opt/sun-jdk-1.4.2.07/jre/bin/java
deployment.javaws.jre.0.product=1.4.2_07
deployment.javaws.player.manager=0
deployment.javaws.jre.0.osarch=i386
deployment.javaws.player.mode=1
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.version=javaws-1.4.2_07
deployment.javaws.jre.0.enabled=true
Comment 10 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-02-05 20:45:36 UTC
Very good catch.  I am interested as to why javaws does not function without a configuration file.  It would be good to know that this is not just the side effect of another bug.
Comment 11 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-02-06 09:21:50 UTC
After reading up on this, the "workaround" is valid.  With 1.4.2 the javaws config file (javaws.cfg) was removed, and the configuration was sent to deployment.{config,properties}.  The ebuilds do not do this, and as such caused this bug.
Comment 12 Thomas Matthijs (RETIRED) gentoo-dev 2005-03-31 06:56:46 UTC
http://www.advogato.org/person/rmathew/diary.html?start=71

'another workaround'
Comment 13 Jakob Schiotz 2005-05-16 13:38:12 UTC
Apparently, this bug may hit when sun-jdk is updated.  My .deployment.properties contained references to sun-jdk-1.4.2.05, when it was changed to sun-jdk-1.4.2.08 javaws started to work again.  I wonder how an ebuild should handle such things.
Comment 14 Thomas Matthijs (RETIRED) gentoo-dev 2005-05-16 13:55:11 UTC
preferably it would not, and sun would fix the program
Comment 15 Dead Schorsch 2005-06-09 08:37:22 UTC
In my situation, the workaround creating proper deployment.properties does not
solve this issue.

This bug triggers just on one desktop machine, while it does not appear on a
laptop, also running gentoo. On the desktop-machine, it works for root, but not
for any other user, while on the laptop, it runs for anybody.

I think, it could be related to the desktops setup, where /home is provided via
NFS by a Debian Sarge machine. On the laptop, /home has it's own partition, but
still is local.
Comment 16 Thomas Matthijs (RETIRED) gentoo-dev 2005-07-11 06:32:59 UTC
updated the ebuilds too use the hack in comment #13 
Comment 17 aditsu 2005-07-18 11:43:26 UTC
I wonder why the bug is listed as "resolved" and "fixed" when it is not fixed at
all in my new gentoo installation (Gentoo 2005.0 up to date, sun-jre-bin
1.4.2.08 first installed today). It works after creating the
deployment.properties file (with the appropriate data).
Comment 18 Thomas Matthijs (RETIRED) gentoo-dev 2005-07-18 11:56:34 UTC
it should work with latest ~x86
Comment 19 Gus Heck 2005-07-23 18:15:56 UTC
I'm not sure it's just an ebuild thing. should this be switched by java-config?
I got into this bug when I wound up with a default blackdown and then tried to
switch to sun. 

I switched to it using java-config and then tried to load a jws app in firefox.
Of course I picked the currently selected java, but my properties file still
said blackdown all over it. 

This of course introduces the broader question of whether or not java-config
should also switch what javaws your browser invokes. (which I suspect is a
difficult problem). However, as a naieve user of java-config, this was may
natural expectation.

Certainly the smooth user experience is the one where you say "use jde/jdk X"
once, as opposed to set javaws it in your browser and edit a properties file and
run java-config to switch which java you are using. 

Note that if I had said take this action every time in the firefox dialog, I'm
not sure how to get it to stop using that program if I want to switch what java
I am using (I'm sure I could find it eventually)

Perhaps this should just result in a message from java-config stating that
javaws is not effected by java-config -S, on each switch