Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141862 - emerge dev-java/jarjar-0.6 failed
Summary: emerge dev-java/jarjar-0.6 failed
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 141863 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-27 01:44 UTC by Massimo Fantin
Modified: 2006-07-27 09:58 UTC (History)
0 users

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 Massimo Fantin 2006-07-27 01:44:47 UTC
Buildfile: build.xml

init:

compile:
    [mkdir] Created dir: /var/tmp/portage/jarjar-0.6/work/jarjar-0.6/build/main
     [copy] Copying 2 files to /var/tmp/portage/jarjar-0.6/work/jarjar-0.6/build/main
     [copy] Copied 6 empty directories to 1 empty directory under /var/tmp/portage/jarjar-0.6/work/jarjar-0.6/build/main
    [javac] Compiling 53 source files to /var/tmp/portage/jarjar-0.6/work/jarjar-0.6/build/main

    [javac] Issued 1 semantic warning compiling "/var/tmp/portage/jarjar-0.6/work/jarjar-0.6/src/main/com/tonicsystems/jarjar/ClassPathIterator.java":

    [javac]    137.                 if (foundClass = isClassFile(getName(next))) {
    [javac]                             ^-------------------------------------^
    [javac] *** Semantic Warning: Suggest parentheses around assignment used as truth value.

    [javac] Issued 1 semantic warning compiling "/var/tmp/portage/jarjar-0.6/work/jarjar-0.6/src/main/com/tonicsystems/jarjar/DepKillTransformer.java":

    [javac]                 <--------
    [javac]    105.         case 'D':
    [javac]    . . .
    [javac]    107.             mv.visitInsn(Opcodes.POP2);
    [javac]         -------------------------------------->
    [javac] *** Semantic Warning: This switch block can fall through to the next case. Did you forget a break statement?

jar:
    [mkdir] Created dir: /var/tmp/portage/jarjar-0.6/work/jarjar-0.6/dist
   [jarjar] Building jar: /var/tmp/portage/jarjar-0.6/work/jarjar-0.6/dist/jarjar-0.6.jar

BUILD FAILED
/var/tmp/portage/jarjar-0.6/work/jarjar-0.6/build.xml:73: java.lang.NullPointerException

Total time: 2 seconds

!!! ERROR: dev-java/jarjar-0.6 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  jarjar-0.6.ebuild, line 39:   Called die

!!! failed to build
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-27 01:50:52 UTC
*** Bug 141863 has been marked as a duplicate of this bug. ***
Comment 2 Massimo Fantin 2006-07-27 02:57:33 UTC
emerge --info

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4,
2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System version 1.6.15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/grass60/etc /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb
/usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks metadata-transfer prelink sandbox sfperms
strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LC_ALL="it_IT"
LINGUAS="it en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/ifolder-overlay
/usr/portage/local/layman/vmware /usr/portage/local/layman/java-experimental
/usr/portage/local/layman/java-migration-packages"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts asterisk avi berkdb bitmap-fonts bri bzip2
cairo cdr cli crypt cups curl dba dbus dhcp dlloader dri eds emboss encode esd
examples exif expat extensions fam faxonly firefox foomaticdb fortran ftp gd
gdbm gif glitz glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal idn
imagemagick imap imlib isdnlog ithreads java java-external javamail jikes jpeg
junit kde lcms ldap libclamav libg++ libwww mad maildir mailwrapper mhash
mikmod mmx mng mode-force mono motif mp3 mpeg mppe-mppc mysql ncurses nls nptl
nptlonly oav odbc ogg opengl oss pam pcre pdf pdflib pear perl php pic png
posix postgres pppd pthreads python qt qt3 qt4 quicktime readline reflection
ruby samba sasl sdl session slang sockets spell spl sqlite sse ssl tcltk tcpd
threads tiff truetype truetype-fonts type1-fonts udev unicode usb vda vhosts
virus-scan vorbis wxwindows xml xml2 xmms xorg xv zaptel zip zlib elibc_glibc
input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux
linguas_it linguas_en userland_GNU video_cards_radeon video_cards_vesa
video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-07-27 07:01:58 UTC
Which JDK are you using? Wasn't able to reproduce herer with sun-jdk-1.4.
Comment 4 Massimo Fantin 2006-07-27 08:37:41 UTC
i'm using sun-jdk 1.4.2.12 and sun-jdk 1.5.0.07 with the new java system (from https://projects.gentooexperimental.org/expj/wiki/Using_migration-overlay) now in the portage tree

The problem is in the "ant" process (i'm using ant 1.6.5) 
that go in :
/var/tmp/portage/jarjar-0.6/work/jarjar-0.6/build.xml:73:
java.lang.NullPointerException

I have one other gentoo server with the same config and i can build 
jarjar with success but i can't find any config difference,
maybe related to some package not unmasked 

but this are all unmask in the 2 server :

dev-java/ant-core
dev-java/ant-tasks
dev-java/ant
dev-java/java-config
dev-java/java-config-wrapper
dev-java/javatoolkit
dev-java/jikes
dev-java/sun-jdk








Comment 5 Massimo Fantin 2006-07-27 09:09:49 UTC
I have find the solution...

In my /etc/env.d i have this file 
21-java-classpath
with inside :
CLASSPATH=/usr/share/cglib-2/lib/cglib-full.jar:/usr/share/cglib-2/lib/cglib.jar

I HAVE REMOVE THIS FILE AND do env-update

emerge jarjar

ALL OK !!

I don't know where come from 21-java.classpath maybe from older version of cglib !!

Thank You
Comment 6 Josh Nichols (RETIRED) gentoo-dev 2006-07-27 09:39:04 UTC
21-java-classpath is created when you use java-config to set a global classpath. This is deprecated and generally frowned upon for causing problems like this.

Also, please don't mark 'FIXED'. If you looka the descriptions of the resolutions, fixed implies there was a bug that needed a fix in code/ebuild/doc/whatever. In this case, it was a configuration issue.
Comment 7 Massimo Fantin 2006-07-27 09:58:25 UTC
Ok...

Close , configuration error.