Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 215163
Alias:
Product:
Component:
Status: RESOLVED
Resolution: NEEDINFO
Assigned To: OpenOffice Team <openoffice@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Billy DeVincentis <billydv1@verizon.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
javaldx.log.bz2 strace output of javaldx application/octet-stream Giacomo Perale 2008-03-28 20:53 0000 45.52 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 215163 depends on: Show dependency tree
Bug 215163 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-28 11:29 0000
After  update  to  2.4,  OO  won't  allow  you  to  choose  a  java,  all 
installed  java's  show  up  under  tools,  options,  java  but  regardles  of 
which  you  choose  after  restarting  OO  with  the  new  chosen  java,  java 
needing  tasks  such  as  letter  wizard  complain  of  defective  java.

Reproducible: Always




emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.3, glibc-
2.7-r1, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core P
rocessor 4200+
Timestamp of tree: Fri, 28 Mar 2008 05:30:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2,
 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/k
de/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.
0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
 /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/w
eb2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages metadata-transfer parallel-fe
tch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/
pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times -
-compress --force --whole-file --delete --stats --timeout=180 --exclud
e=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/miscellaneous /usr/local/portage/f
ont-overlay /usr/local/portage/desktop-effects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowtext S3TC X a52 aac aalib accessibility acl acpi aiglx
 alsa amarok amd64 apm arts artworkextra asf audiofile automount avahi
 avi bash-completion berkdb bidi bitmap-fonts bittorrent branding bzip
2 cairo calendar cann cdda cdio cdparanoia cdr cli cpudetection crackl
ib crypt cups curl dbus deprecated devil dga directfb discouraged dist
ribution divx dlloader doc dri dts dv dvb dvd dvdr dvdread eds effects
 elisp emacs emboss emerald encode esd evo examples exif ext-man ext-r
tf ext-tex extraicons fam fat fax fbcon fbcondecor fbsplash ffmpeg fir
efox flac flash foomaticdb fortran freetype fuse gb gcj gd gdbm gdphot
o2 gedit gif gimp gimpprint glitz gmedia gnome gnutls gphoto2 gpm gstr
eamer gtk gtk2 gtkhtml hal hddtemp hfs howl html htmlhandbook httpd ic
onv idn ieee1394 imagemagick imlib inkjar ipv6 isdnlog jack java jfs j
oystick jpeg kde kde4 kdehiddenvisibility kerberos lcms ldap libao lib
caca libg++ lirc live lm_sensors logrotate mad mail matroska mdnsrespo
nder-compat midi mikmod mime mjpeg mmx mmxext mng mono mozbranding moz
calendar mozilla mp3 mpeg mplayer mudflap mysql nas nautilus ncurses n
etworking new-login newspr nforce2 nls nptl nptlonly nsplugin ntfs nvi
dia odbc offensive ogg oggvorbis opengl openmp oss pam parport pcre pd
f pdflib perl pmu png postgres ppds pppd python qt3 qt3support qt4 qui
cktime rar rdesktop readline realmedia reflection regex reiser4 reiser
fs samba scanner sdl seamonkey semantic-desktop servletapi session ski
ns slp smp sndfile snmp sound sounds speex spell spl spreadsheet sqlit
e sse sse2 ssl startup-notification stream streams subversion svg swat
 symlink sysfs syslog tcltk tcpd tetex theora thesaurus threads thunde
rbird tidy tiff timidity tk truetype truetype-fonts type1 type1-fonts
udev unicode usb utempter utils v4l vcd vdr vlm voice vorbis vram weat
her wmf wmp wordperfect wxwindows xattr xcb xcomposite xforms xfs xine
 xml xorg xpm xprint xscreensaver xv xvid zeroconf zlib" ALSA_CARDS="a
li5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens137
0 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 tr         
                                            ident usb-audio via82xx
via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm                                  
                    alaw asym copy dmix dshare dsnoop empty extplug file hooks
iec958 iopl                                                      ug ladspa
lfloat linear meter mulaw multi null plug rate route share s                   
                                  hm softvol" APACHE2_MODULES="actions alias
auth_basic authn_alias auth                                                    
 n_anon authn_dbm authn_default authn_file authz_dbm authz_default auth        
                                             z_groupfile authz_host authz_owner
authz_user autoindex cache dav dav_                                            
         fs dav_lock deflate dir disk_cache env expires ext_filter file_cache f
                                                     ilter headers include info
log_config logio mem_cache mime mime_magic                                     
                 negotiation rewrite setenvif speling status unique_id userdir
usertrac                                                      k vhost_alias"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERN                        
                             EL="linux" LCD_DEVICES="bayrad cfontz cfontz633
glk hd44780 lb216 lcdm                                                      001
mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cir             
                                        rus cyrix dummy fbdev glint i128 i810
mach64 mga neomagic nv r128 rade                                               
      on rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga tride   
                                                  nt tseng v4l vesa vga via
vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,         
                                             LINGUAS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTR                                     
                A_OPTS

------- Comment #1 From Giacomo Perale 2008-03-28 11:50:44 0000 -------
Similar problem here. The difference is that under Tools->Options->Java there's
no JRE, no matter which JREs are installed on the system (tested with sun-jdk
1.5.0.15/-r1, sun-jdk 1.6.0.05/-r1, sun-jre-bin 1.5.0.15, sun-jre-bin 1.6.0.5).

On console there's this error message: 
javaldx: Could not find a Java Runtime Environment!

emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0,
2.6.24-gentoo-r3 i686)
=================================================================
System uname: 2.6.24-gentoo-r3 i686 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Fri, 28 Mar 2008 11:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans
userfetch"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="it en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dati/wdpata36gb/portage-tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/x11-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac acl acpi alsa bash-completion berkdb boost bzip2
cairo cdio cdr cli cracklib crypt cups curl dbus dri dts dvd dvdr dvdread eds
emboss encode evo exif fam ffmpeg firefox flac fontconfig fortran gcj gdbm gif
gimp glitz gnome gphoto2 gpm gstreamer gtk hal iconv imagemagick isdnlog java
jce jpeg kdeenablefinal keyring lcms libnotify mad midi mmx mmxext mng mono mp3
mpeg mudflap musepack musicbrainz mysql nautilus ncurses nls nntp nptl nptlonly
nsplugin ogg opengl openmp pam pcre pdf perl png pppd python qt3support
quicktime readline real reflection samba scanner sdl session spell spl sqlite
sqlite3 sse sse2 ssl startup-notification svg svga tcpd tetex theora threads
tiff truetype unicode usb vorbis win32codecs wmf x264 x86 xattr xcb xcomposite
xml xorg xv xvid zlib" ALSA_CARDS="emu10k1 intel8x0" ALSA_PCM_PLUGINS="adpcm
alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
lfloat linear meter mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm
authn_default authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir
disk_cache env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling
status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc"
INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en"
USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Jakub Moc (RETIRED) 2008-03-28 12:03:01 0000 -------
Please, drop the double spacing, it's extremely annoying. Already asked you a
couple of times.

Also, post emerge -pv openoffice output.

------- Comment #3 From Andreas Proschofsky 2008-03-28 12:15:45 0000 -------
Try to remove your user install dir at ~/.ooo-2.0, this should fix the problem

------- Comment #4 From Giacomo Perale 2008-03-28 12:23:00 0000 -------
(In reply to comment #3)
> Try to remove your user install dir at ~/.ooo-2.0, this should fix the problem
> 

First thing I did, and it doesn't fix my problem.

------- Comment #5 From Andreas Proschofsky 2008-03-28 13:04:51 0000 -------
(In reply to comment #4)
> (In reply to comment #3)
> > Try to remove your user install dir at ~/.ooo-2.0, this should fix the problem
> > 
> 
> First thing I did, and it doesn't fix my problem.
> 

hmm strange, deleting the user dir worked fine here. 

------- Comment #6 From Giacomo Perale 2008-03-28 20:53:39 0000 -------
Created an attachment (id=147573) [details]
strace output of javaldx

Recompiled the new version (patchset 2.4.0.5) without any luck.
Attached is the compressed output of "strace -o javaldx.log
/usr/lib/openoffice/program/javaldx" (uncompressed ~21M), apparently it looks
for a JRE everywhere, including into the directories where the JRE is, without
finding it.

------- Comment #7 From Billy DeVincentis 2008-03-28 22:14:11 0000 -------
Again, my apologies for the double spacing, I do alot of typing and it just
comes naturally.

I want to say that deleting my home user profile did the trick, but also I
wanted to mention that I have Iced Tea installed and thats the java it chose,
it may or may not work with just the standard 1.5 and 1.6 sun javas.

------- Comment #8 From Billy DeVincentis 2008-03-28 22:20:07 0000 -------
I found an easier way, instead of deleting your entire user file, just go in
and delete this /home/billydv/.ooo-2.0/user/config/javasettings_Linux_x86.xml
and after restarting Openoffice, java came up fine.

------- Comment #9 From Andreas Proschofsky 2008-03-28 22:49:33 0000 -------
(In reply to comment #8)
> I found an easier way, instead of deleting your entire user file, just go in
> and delete this /home/billydv/.ooo-2.0/user/config/javasettings_Linux_x86.xml
> and after restarting Openoffice, java came up fine.
> 

Good catch. btw: works fine here with both sun-jdk-1.5 and sun-jdk-1.6

------- Comment #10 From Chris Mayo 2008-03-29 09:18:55 0000 -------
For me this has been (not new with the latest OpenOffice or jdk) an example of:
http://bugs.freedesktop.org/show_bug.cgi?id=11390
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373

doing:

sed -i 's/XINERAMA/FAKEEXTN/g'
/opt/sun-jdk-1.6.0.05/jre/lib/amd64/xawt/libmawt.so

fixes it for me, not sure what other damage it does though.

------- Comment #11 From Giacomo Perale 2008-03-29 10:09:15 0000 -------
(In reply to comment #10)
> For me this has been (not new with the latest OpenOffice or jdk) an example of:
> http://bugs.freedesktop.org/show_bug.cgi?id=11390
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373
> 
> doing:
> 
> sed -i 's/XINERAMA/FAKEEXTN/g'
> /opt/sun-jdk-1.6.0.05/jre/lib/amd64/xawt/libmawt.so
> 
> fixes it for me, not sure what other damage it does though.
> 

Worked for me, so libxcb new locking mechanism seems to be the cause of the
problem. 
I could get javaldx to find the JRE by running it with
LIBXCB_ALLOW_SLOPPY_LOCK=1 but then openoffice could not find it at runtime.
The sed (against /opt/sun-jdk-1.6.0.05/jre/lib/i386/xawt/libmawt.so, not 64 bit
here) fixed also the detection at runtime.
I hope it has no consequences, or at least that they're just xinerama-related,
because I don't use that extension.

------- Comment #12 From yuk 2008-04-03 06:49:47 0000 -------
(In reply to comment #10)

Worked also for me (not 64 bit).
Removing /home/toor/.ooo-2.0/user/config/javasettings_Linux_x86.xml added to
the list of available jres alsa 1.4.2 by Free Software Foundation.

> For me this has been (not new with the latest OpenOffice or jdk) an example of:
> http://bugs.freedesktop.org/show_bug.cgi?id=11390
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373
> 
> doing:
> 
> sed -i 's/XINERAMA/FAKEEXTN/g'
> /opt/sun-jdk-1.6.0.05/jre/lib/amd64/xawt/libmawt.so
> 
> fixes it for me, not sure what other damage it does though.
> 

------- Comment #13 From Chris Mayo 2008-04-17 19:35:40 0000 -------
Fixed for me with dev-java/sun-jdk-1.6.0.06

See also #215150.

------- Comment #14 From Udo Schuermann 2008-04-19 00:40:14 0000 -------
(In reply to comment #9)
> (In reply to comment #8)
> > I found an easier way, instead of deleting your entire user file, just go in
> > and delete this /home/billydv/.ooo-2.0/user/config/javasettings_Linux_x86.xml
> > and after restarting Openoffice, java came up fine.
> > 
> 
> Good catch. btw: works fine here with both sun-jdk-1.5 and sun-jdk-1.6

I had this same issue with 2.3.1 ("javaldx failed!" in shell) and the same fix
worked there, too. The problem appears that OOo doesn't realize when a JVM is
updated: it still pointed at 1.6.0.04 in my xml file which was no longer there;
I'm on 1.6.0.06 at this point.

Picking a new JVM from OOo's GUI does not fix the issue, however, and that is a
problem (silent failure): it gives no error but doesn't update the xml file,
either.

------- Comment #15 From Justin Findlay 2008-04-30 21:11:51 0000 -------
I tried removing both just ~/.ooo-2.0/user/config/javasettings_Linux_x86.xm and
the whole ~/.ooo-2.o dir with no success.  I also performed the recommended sed
in comment #10 with no luck.  I have app-office/openoffice-bin-2.4.0 and
dev-java/sun-jre-bin-1.6.0.05 and dev-java/sun-jdk-1.6.0.05 installed.  Setting
LIBXCB_ALLOW_SLOPPY_LOCK=1 as recommended in comment #11 while running either
javaldx or oobase doesn't work.  And, finally, no JRE's show up in the java
config dialog and I can't get openoffice to recognize either JRE when I try to
add one, no matter what directory within /opt/sun-jdk-1.6.0.05 or
/opt/sun-jre-bin-1.6.0.05 I select.

------- Comment #16 From Justin Findlay 2008-05-02 18:26:01 0000 -------
In the past couple of days I upgraded to

dev-java/sun-jdk-1.6.0.06
dev-java/sun-jre-bin-1.6.0.06

and installed

jre1.6.0_10

from java.sun.com.  None of these changes at first didn't fix the openoffice
problem, but thereafter I unmerged then remerged openoffice-bin-2.4.0 and now
it recognizes all versions of java I have installed.  I'm not certain what
finally fixed it.

------- Comment #17 From Andreas Proschofsky 2008-05-29 12:52:37 0000 -------
Could you please rebuild openoffice 2.4.0? There have been some recent fixes in
regards to java detection, so those might help

------- Comment #18 From Andreas Proschofsky 2008-10-16 20:23:33 0000 -------
No feedback for months, closing

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug