Debian Bug report logs - #327411
libgcj6-dev: execution of java program compiled with --static fails in gnu.regexp init

Package: libgcj7-dev; Maintainer for libgcj7-dev is Debian GCC Maintainers <debian-gcc@lists.debian.org>;

Reported by: Frits Daalmans <frits@few.vu.nl>

Date: Fri, 9 Sep 2005 22:48:03 UTC

Severity: normal

Tags: wontfix

Merged with 350772

Done: Matthias Klose <doko@cs.tu-berlin.de>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#327411; Package libgcj6-dev. Full text and rfc822 format available.

Acknowledgement sent to Frits Daalmans <frits@few.vu.nl>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Frits Daalmans <frits@few.vu.nl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libgcj6-dev: execution of java program compiled with --static fails in
 gnu.regexp init
Date: Sat, 10 Sep 2005 00:41:59 +0200
Package: libgcj6-dev
Version: 4.0.1-2
Severity: normal

Hello,

When I compile a java program with gcj-4.0, and I link the resulting
object code with --static, the resulting large static executable fails
to execute with the following exception:

Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass() (Unknown Source)
      at gnu.regexp.RE.getLocalizedMessage(java.lang.String) (Unknown
      Source)
...
(some dozen more stack trace entries)
...

Caused by: java.util.MissingResourceException: Bundle gnu/regexp/MessagesBundlenot found
   at java.util.ResourceBundle.getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader) (Unknown Source)
   at java.util.ResourceBundle.getBundle(java.lang.String, java.util.Locale) (Unknown Source)
   at gnu.regexp.RE.<clinit>() (Unknown Source)
   at java.lang.Class.initializeClass() (Unknown Source)
   ...14 more


I don't know a full solution because I haven't really looked at the
structure of libgcj6. However, I found a workaround which might help you
find the source of the bug:

Workaround:
I downloaded GNU classpath and extracted gnu/regexp/MessagesBundle.properties 
in the directory where my profiling executable is (well actually in a
subdirectory gnu/regexp), and then it Just Works(tm). 

Therefore, I think this file is not properly included in some part of
libgcj6 (probably to do with gnu.regexp).
The problem doesn't occur when I compile a dynamic java executable, in 
other words when I don't use --static

Apologies for the mishmash in installed gcj version numbers :-)

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, LC_CTYPE=C

Versions of packages libgcj6-dev depends on:
ii  gcj-4.0                4.0.1-2           The GNU compiler for Java(TM)
ii  libc6-dev              2.3.2.ds1-22      GNU C Library: Development Librari
ii  libgcj6                4.0.1-2           Java runtime library for use with 
ii  libgcj6-awt            4.0.1-2           AWT peer runtime libraries for use
ii  libgcj6-common         4.0.1-2           Java runtime library for use with 
ii  zlib1g-dev             1:1.2.2-4.sarge.1 compression library - development

-- no debconf information



Merged 327411 350772. Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org. Full text and rfc822 format available.

Bug reassigned from package `libgcj6-dev' to `libgcj7-dev'. Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org. Full text and rfc822 format available.

Bug reassigned from package `libgcj7-dev' to `libgcj7-dev'. Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org. Full text and rfc822 format available.

Tags added: wontfix Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org. (Wed, 23 Jan 2008 11:42:04 GMT) Full text and rfc822 format available.

Reply sent to Matthias Klose <doko@cs.tu-berlin.de>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Frits Daalmans <frits@few.vu.nl>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #18 received at 327411-done@bugs.debian.org (full text, mbox):

From: Matthias Klose <doko@cs.tu-berlin.de>
To: 327411-done@bugs.debian.org, 350772-done@bugs.debian.org
Cc: control@bugs.debian.org
Subject: static libgcj not provided by current gcj packages.
Date: Wed, 23 Jan 2008 12:37:50 +0100
tag 327411 + wontfix
thanks

will not be fixed for gcj-4.1; current gcj-4.2/gcj-4.3 packages do not
provide a statically built libgcj (see wishlist report #448789).




Reply sent to Matthias Klose <doko@cs.tu-berlin.de>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Frits Daalmans <frits@few.vu.nl>:
Bug acknowledged by developer. Full text and rfc822 format available.

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 21 Feb 2008 07:26:35 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Feb 9 19:20:25 2010; Machine Name: busoni.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.