Subject: Re: Java on GENERIC.MP
To: None <port-i386@netbsd.org>
From: Andreas Drewke <andreas_dr@gmx.de>
List: port-i386
Date: 06/02/2004 12:35:38
to get a little bit more into detail:

The exceptions in the java application itself are more accidentially and=20
random... They make no sence to me. And they do not occur when using GENERI=
C.

Here some examples:

java.lang.ArrayIndexOutOfBoundsException
=A0 =A0 =A0 =A0 at java.lang.System.arraycopy(Native Method)
=A0 =A0 =A0 =A0 at java.lang.String.getChars(Unknown Source)
=A0 =A0 =A0 =A0 at java.lang.StringBuffer.append(Unknown Source)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Headers.<init>(Headers.java:41)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Worker.handleClient(Worker.java:86)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Server.handleConnection(Server.java:239)
=A0 =A0 =A0 =A0 at org.mortbay.util.ThreadedServer.handle(ThreadedServer.ja=
va:289)
=A0 =A0 =A0 =A0 at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.ja=
va:501)
java.lang.NullPointerException
=A0 =A0 =A0 =A0 at java.lang.StringBuffer.append(Unknown Source)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Headers.<init>(Headers.java:41)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Worker.handleClient(Worker.java:86)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Server.handleConnection(Server.java:239)
=A0 =A0 =A0 =A0 at org.mortbay.util.ThreadedServer.handle(ThreadedServer.ja=
va:289)
=A0 =A0 =A0 =A0 at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.ja=
va:501)
java.lang.ArrayStoreException
=A0 =A0 =A0 =A0 at java.lang.System.arraycopy(Native Method)
=A0 =A0 =A0 =A0 at java.lang.String.getChars(Unknown Source)
=A0 =A0 =A0 =A0 at java.lang.StringBuffer.append(Unknown Source)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Headers.<init>(Headers.java:41)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Worker.handleClient(Worker.java:86)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Server.handleConnection(Server.java:239)
=A0 =A0 =A0 =A0 at org.mortbay.util.ThreadedServer.handle(ThreadedServer.ja=
va:289)
=A0 =A0 =A0 =A0 at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.ja=
va:501)
java.lang.NullPointerException
=A0 =A0 =A0 =A0 at java.lang.String.startsWith(Unknown Source)
=A0 =A0 =A0 =A0 at java.lang.String.startsWith(Unknown Source)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Headers.setHeader(Headers.java:75)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Headers.<init>(Headers.java:36)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Worker.handleClient(Worker.java:86)
=A0 =A0 =A0 =A0 at Drewke.AltaProxy.Server.handleConnection(Server.java:239)
=A0 =A0 =A0 =A0 at org.mortbay.util.ThreadedServer.handle(ThreadedServer.ja=
va:289)
=A0 =A0 =A0 =A0 at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.ja=
va:501)

This is maybe more interessting since this is the message the jvm prints ou=
t=20
before it dies:

#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
#
# Error ID: 43113F32554E54494D45110E4350500308
#
# Problematic Thread: prio=3D1 tid=3D0x0813d7a8 nid=3D0x1ad runnable
#

Heap at VM Abort:
Heap
=A0def new generation =A0 total 4544K, used 1629K [0x4c490000, 0x4c970000,=
=20
0x4ce60000)
=A0 eden space 4096K, =A039% used [0x4c490000, 0x4c627e50, 0x4c890000)
=A0 from space 448K, =A0 0% used [0x4c890000, 0x4c890000, 0x4c900000)
=A0 to =A0 space 448K, =A0 0% used [0x4c900000, 0x4c900000, 0x4c970000)
=A0tenured generation =A0 total 60544K, used 0K [0x4ce60000, 0x50980000,=20
0x54490000)
=A0 =A0the space 60544K, =A0 0% used [0x4ce60000, 0x4ce60000, 0x4ce60200,=20
0x50980000)
=A0compacting perm gen =A0total 4096K, used 2078K [0x54490000, 0x54890000,=
=20
0x58490000)
=A0 =A0the space 4096K, =A050% used [0x54490000, 0x54697a90, 0x54697c00, 0x=
54890000)
server shutdown

dmesg shows nothing special at all:

NetBSD 2.0_BETA (GENERIC.MP) #0: Sat May 29 04:46:47 UTC 2004
=A0 =A0 =A0 =A0=20
autobuild@tgm.netbsd.org:/autobuild/netbsd-2-0/i386/OBJ/autobuild/netbsd-2-=
0/src/sys/arch/i386/compile/GENERIC.MP
total memory =3D 511 MB
avail memory =3D 492 MB
BIOS32 rev. 0 found at 0xf03e0
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (OEM00000 PROD00000000)
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: Intel Pentium Pro (686-class), 199.45 MHz, id 0x619
cpu0: features fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features fbff<PGE,MCA,CMOV>
cpu0: I-cache 8 KB 32b/line 4-way, D-cache 8 KB 32b/line 2-way
cpu0: L2 cache 256 KB 32b/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: calibrating local timer
cpu0: apic clock running at 66 MHz
cpu0: 16 page colors
cpu1 at mainbus0: apid 0 (application processor)
cpu1: starting
cpu1: Intel Pentium Pro (686-class), 199.43 MHz, id 0x617
cpu1: features fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features fbff<PGE,MCA,CMOV>
cpu1: I-cache 8 KB 32b/line 4-way, D-cache 8 KB 32b/line 2-way
cpu1: L2 cache 256 KB 32b/line 4-way
cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
mpbios: bus 0 is type PCI
mpbios: bus 1 is type ISA
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82441FX PCI and Memory Controller (PMC) (rev. 0x02)
pcib0 at pci0 dev 1 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
piixide0 at pci0 dev 1 function 1
piixide0: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
piixide0: device disabled (at device)
epic0 at pci0 dev 9 function 0: SMC 83c170 Fast Ethernet, rev. 8
epic0: interrupting at ioapic0 pin 19 (irq 12)
epic0: SMC9432TX_2, Ethernet address 00:e0:29:6c:4d:c0
acphy0 at epic0 phy 3: AC101 10/100 media interface, rev. 11
acphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vga1 at pci0 dev 11 function 0: Nvidia Corporation RIVA TNT2 Model 64 (rev.=
=20
0x15)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ahc1 at pci0 dev 12 function 0: Adaptec 2940 Ultra SCSI adapter
ahc1: interrupting at ioapic0 pin 16 (irq 11)
ahc1: aic7880: Ultra Wide Channel A, SCSI Id=3D7, 16/253 SCBs
scsibus0 at ahc1: 16 targets, 8 luns per target
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <IBM, DDRS-39130W, S97B> disk fixed
sd0: 8715 MB, 8387 cyl, 10 head, 212 sec, 512 bytes/sect x 17850000 sectors
sd0: sync (100.00ns offset 8), 16-bit (20.000MB/s) transfers, tagged queuei=
ng
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
cpu1: CPU 0 running

=2D-=20