← Back to team overview

openjdk team mailing list archive

Bug#490617: openjdk-6-jre-headless: fails to install due to warning from java -client -Xshare:dump

 

Package: openjdk-6-jre-headless
Version: 6b10dfsg-1
Severity: normal

I had to modify the postinst to get openjdk-6-jre-headless installed:

    # activate class data sharing
    case i386 in i386|sparc)
        rm -f $basedir/jre/lib/i386/client/classes.jsa
        $basedir/bin/java -client -Xshare:dump > /dev/null || test $? = 2
    esac

I added the || test $? = 2 bit on the end of the command.

Here is a log of the failure when running the postinst in set -x mode:

root@chianamo:~# aptitude -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
The following partially installed packages will be configured:
  openjdk-6-jre openjdk-6-jre-headless 
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.

Setting up openjdk-6-jre-headless (6b10dfsg-1) ...
+ priority=1061
+ basedir=/usr/lib/jvm/java-6-openjdk
+ basediralias=/usr/lib/jvm/java-6-openjdk
+ jdiralias=java-6-openjdk
+ mandir=/usr/lib/jvm/java-6-openjdk/jre/man
+ srcext=1.gz
+ dstext=1.gz
+ jre_tools='java keytool pack200 rmid rmiregistry unpack200 orbd servertool tnameserv'
+ case "$1" in
+ '[' -d /etc/.java ']'
+ '[' -d /etc/.java/.systemPrefs ']'
+ '[' '!' -f /etc/.java/.systemPrefs/.system.lock ']'
+ '[' '!' -f /etc/.java/.systemPrefs/.systemRootModFile ']'
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/java.1.gz                 java.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz'
+ false
+ update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 --slave /usr/share/man/man1/java.1.gz java.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/keytool.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/keytool.1.gz                 keytool.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/keytool.1.gz'
+ false
+ update-alternatives --install /usr/bin/keytool keytool /usr/lib/jvm/java-6-openjdk/jre/bin/keytool 1061 --slave /usr/share/man/man1/keytool.1.gz keytool.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/keytool.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/pack200.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/pack200.1.gz                 pack200.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/pack200.1.gz'
+ false
+ update-alternatives --install /usr/bin/pack200 pack200 /usr/lib/jvm/java-6-openjdk/jre/bin/pack200 1061 --slave /usr/share/man/man1/pack200.1.gz pack200.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/pack200.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmid.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/rmid.1.gz                 rmid.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmid.1.gz'
+ false
+ update-alternatives --install /usr/bin/rmid rmid /usr/lib/jvm/java-6-openjdk/jre/bin/rmid 1061 --slave /usr/share/man/man1/rmid.1.gz rmid.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmid.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmiregistry.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/rmiregistry.1.gz                 rmiregistry.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmiregistry.1.gz'
+ false
+ update-alternatives --install /usr/bin/rmiregistry rmiregistry /usr/lib/jvm/java-6-openjdk/jre/bin/rmiregistry 1061 --slave /usr/share/man/man1/rmiregistry.1.gz rmiregistry.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmiregistry.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/unpack200.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/unpack200.1.gz                 unpack200.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/unpack200.1.gz'
+ false
+ update-alternatives --install /usr/bin/unpack200 unpack200 /usr/lib/jvm/java-6-openjdk/jre/bin/unpack200 1061 --slave /usr/share/man/man1/unpack200.1.gz unpack200.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/unpack200.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/orbd.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/orbd.1.gz                 orbd.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/orbd.1.gz'
+ false
+ update-alternatives --install /usr/bin/orbd orbd /usr/lib/jvm/java-6-openjdk/jre/bin/orbd 1061 --slave /usr/share/man/man1/orbd.1.gz orbd.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/orbd.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/servertool.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/servertool.1.gz                 servertool.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/servertool.1.gz'
+ false
+ update-alternatives --install /usr/bin/servertool servertool /usr/lib/jvm/java-6-openjdk/jre/bin/servertool 1061 --slave /usr/share/man/man1/servertool.1.gz servertool.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/servertool.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/tnameserv.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/tnameserv.1.gz                 tnameserv.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/tnameserv.1.gz'
+ false
+ update-alternatives --install /usr/bin/tnameserv tnameserv /usr/lib/jvm/java-6-openjdk/jre/bin/tnameserv 1061 --slave /usr/share/man/man1/tnameserv.1.gz tnameserv.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/tnameserv.1.gz
+ update-alternatives --install /usr/bin/jexec jexec /usr/lib/jvm/java-6-openjdk/jre/lib/jexec 1061 --slave /usr/share/binfmts/jar jexec-binfmt /usr/lib/jvm/java-6-openjdk/jre/lib/jar.binfmt
+ '[' -x /usr/sbin/update-binfmts ']'
+ '[' -r /usr/share/binfmts/jar ']'
+ /usr/sbin/update-binfmts --package openjdk-6 --import jar
+ mount
+ grep -qs '^proc on /proc'
+ case i386 in
+ rm -f /usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/classes.jsa
+ /usr/lib/jvm/java-6-openjdk/bin/java -client -Xshare:dump
dpkg: error processing openjdk-6-jre-headless (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-6-jre:
 openjdk-6-jre depends on openjdk-6-jre-headless (>= 6b10dfsg-1); however:
  Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing openjdk-6-jre (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openjdk-6-jre-headless
 openjdk-6-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up openjdk-6-jre-headless (6b10dfsg-1) ...
+ priority=1061
+ basedir=/usr/lib/jvm/java-6-openjdk
+ basediralias=/usr/lib/jvm/java-6-openjdk
+ jdiralias=java-6-openjdk
+ mandir=/usr/lib/jvm/java-6-openjdk/jre/man
+ srcext=1.gz
+ dstext=1.gz
+ jre_tools='java keytool pack200 rmid rmiregistry unpack200 orbd servertool tnameserv'
+ case "$1" in
+ '[' -d /etc/.java ']'
+ '[' -d /etc/.java/.systemPrefs ']'
+ '[' '!' -f /etc/.java/.systemPrefs/.system.lock ']'
+ '[' '!' -f /etc/.java/.systemPrefs/.systemRootModFile ']'
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/java.1.gz                 java.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz'
+ false
+ update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 --slave /usr/share/man/man1/java.1.gz java.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/keytool.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/keytool.1.gz                 keytool.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/keytool.1.gz'
+ false
+ update-alternatives --install /usr/bin/keytool keytool /usr/lib/jvm/java-6-openjdk/jre/bin/keytool 1061 --slave /usr/share/man/man1/keytool.1.gz keytool.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/keytool.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/pack200.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/pack200.1.gz                 pack200.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/pack200.1.gz'
+ false
+ update-alternatives --install /usr/bin/pack200 pack200 /usr/lib/jvm/java-6-openjdk/jre/bin/pack200 1061 --slave /usr/share/man/man1/pack200.1.gz pack200.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/pack200.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmid.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/rmid.1.gz                 rmid.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmid.1.gz'
+ false
+ update-alternatives --install /usr/bin/rmid rmid /usr/lib/jvm/java-6-openjdk/jre/bin/rmid 1061 --slave /usr/share/man/man1/rmid.1.gz rmid.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmid.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmiregistry.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/rmiregistry.1.gz                 rmiregistry.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmiregistry.1.gz'
+ false
+ update-alternatives --install /usr/bin/rmiregistry rmiregistry /usr/lib/jvm/java-6-openjdk/jre/bin/rmiregistry 1061 --slave /usr/share/man/man1/rmiregistry.1.gz rmiregistry.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/rmiregistry.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/unpack200.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/unpack200.1.gz                 unpack200.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/unpack200.1.gz'
+ false
+ update-alternatives --install /usr/bin/unpack200 unpack200 /usr/lib/jvm/java-6-openjdk/jre/bin/unpack200 1061 --slave /usr/share/man/man1/unpack200.1.gz unpack200.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/unpack200.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/orbd.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/orbd.1.gz                 orbd.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/orbd.1.gz'
+ false
+ update-alternatives --install /usr/bin/orbd orbd /usr/lib/jvm/java-6-openjdk/jre/bin/orbd 1061 --slave /usr/share/man/man1/orbd.1.gz orbd.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/orbd.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/servertool.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/servertool.1.gz                 servertool.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/servertool.1.gz'
+ false
+ update-alternatives --install /usr/bin/servertool servertool /usr/lib/jvm/java-6-openjdk/jre/bin/servertool 1061 --slave /usr/share/man/man1/servertool.1.gz servertool.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/servertool.1.gz
+ for i in '$jre_tools'
+ unset slave1 slave2
+ '[' -e /usr/lib/jvm/java-6-openjdk/jre/man/man1/tnameserv.1.gz ']'
+ slave1='--slave 		/usr/share/man/man1/tnameserv.1.gz                 tnameserv.1.gz                 /usr/lib/jvm/java-6-openjdk/jre/man/man1/tnameserv.1.gz'
+ false
+ update-alternatives --install /usr/bin/tnameserv tnameserv /usr/lib/jvm/java-6-openjdk/jre/bin/tnameserv 1061 --slave /usr/share/man/man1/tnameserv.1.gz tnameserv.1.gz /usr/lib/jvm/java-6-openjdk/jre/man/man1/tnameserv.1.gz
+ update-alternatives --install /usr/bin/jexec jexec /usr/lib/jvm/java-6-openjdk/jre/lib/jexec 1061 --slave /usr/share/binfmts/jar jexec-binfmt /usr/lib/jvm/java-6-openjdk/jre/lib/jar.binfmt
+ '[' -x /usr/sbin/update-binfmts ']'
+ '[' -r /usr/share/binfmts/jar ']'
+ /usr/sbin/update-binfmts --package openjdk-6 --import jar
+ mount
+ grep -qs '^proc on /proc'
+ case i386 in
+ rm -f /usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/classes.jsa
+ /usr/lib/jvm/java-6-openjdk/bin/java -client -Xshare:dump
dpkg: error processing openjdk-6-jre-headless (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-6-jre:
 openjdk-6-jre depends on openjdk-6-jre-headless (>= 6b10dfsg-1); however:
  Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing openjdk-6-jre (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openjdk-6-jre-headless
 openjdk-6-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  

root@chianamo:~# /usr/lib/jvm/java-6-openjdk/bin/java -client -Xshare:dump
Loading classes to share ... OpenJDK Core VM warning: 
The permanent generation is not large enough to preload requested classes.
Use -XX:PermSize= to increase the initial size of the permanent generation.

root@chianamo:~# echo $?
2

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages openjdk-6-jre-headless depends on:
ii  ca-certificates-java   20080712          Common CA certificates (JKS keysto
hi  dpkg                   1.14.20           Debian package management system
ii  java-common            0.30              Base of all Java packages
ii  libaccess-bridge-java  1.23.0-1          Java Access Bridge for GNOME
ii  libc6                  2.7-12            GNU C Library: Shared libraries
ii  libcups2 [libcupsys2]  1.3.7-9           Common UNIX Printing System(tm) - 
ii  libcupsys2             1.3.7-9           Common UNIX Printing System (trans
ii  libfreetype6           2.3.7-1           FreeType 2 font engine, shared lib
ii  libgcc1                1:4.3.1-6         GCC support library
ii  liblcms1               1.16-10           Color management library
ii  openjdk-6-jre-lib      6b10dfsg-1        OpenJDK Java runtime (architecture
ii  rhino                  1.7R1-1           JavaScript engine written in Java
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages openjdk-6-jre-headless recommends:
ii  libnss-mdns                   0.10-3     NSS module for Multicast DNS name 
pn  tzdata-java                   <none>     (no description available)

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part