From owner-freebsd-java Mon Nov 25 1:45:18 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EEA037B401 for ; Mon, 25 Nov 2002 01:45:16 -0800 (PST) Received: from diomedes.noc.ntua.gr (diomedes.noc.ntua.gr [147.102.222.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8EFE43EA3 for ; Mon, 25 Nov 2002 01:45:13 -0800 (PST) (envelope-from mantzios@softlab.ece.ntua.gr) Received: from theseas.softlab.ece.ntua.gr (theseas.softlab.ece.ntua.gr [147.102.1.1]) by diomedes.noc.ntua.gr (8.11.6/8.11.6) with ESMTP id gAP9j6Z62467 for ; Mon, 25 Nov 2002 11:45:06 +0200 (EET) Received: from localhost (mantzios@localhost) by theseas.softlab.ece.ntua.gr (8.11.6/8.11.6) with ESMTP id gAP9j5X04188 for ; Mon, 25 Nov 2002 11:45:05 +0200 (EET) Date: Mon, 25 Nov 2002 11:45:05 +0200 (EET) From: Mantzios Achilleus To: Subject: Jboss, -Xss with hotspot on -release 4.7p2 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have (i think) built hotspot (core) on stable 4.7. When i run jboss 3.0.1 with -Xss30m i get: Stack size of 30720 Kb exceeds current limit of 1024 Kb. (Stack sizes are rounded up to a multiple of the system page size.) I then try to use this limit with -Xss1m. When i run jboss with hotspot (core) i get sigbus (10). An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 10 occurred at PC=0x29a77288 Function name=Java_java_net_InetAddressImpl_getHostByAddr Library=/usr/local/jdk1.3.1/jre/lib/i386/libnet.so Current Java thread: at java.net.InetAddressImpl.getHostByAddr(Native Method) at java.net.InetAddress.getHostName(InetAddress.java:156) at java.net.InetAddress.getHostName(InetAddress.java:127) at java.net.InetAddress.toString(InetAddress.java:265) at java.lang.String.valueOf(String.java:1947) at java.lang.StringBuffer.append(StringBuffer.java:370) - locked <4001e2c8> (a java.lang.StringBuffer) at java.net.ServerSocket.toString(ServerSocket.java:316) at java.lang.String.valueOf(String.java:1947) at java.lang.StringBuffer.append(StringBuffer.java:370) - locked <4001e280> (a java.lang.StringBuffer) at org.jboss.web.WebServer.start(WebServer.java:162) at org.jboss.web.WebService.startService(WebService.java:104) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:950) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:384) - locked <402cf590> (a org.jboss.system.ServiceController) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) at $Proxy3.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:786) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:581) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:319) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216) at org.jboss.Main.boot(Main.java:142) at org.jboss.Main$1.run(Main.java:375) at java.lang.Thread.run(Thread.java:484) Error: Cannot print dynamic libraries. Function not implemented for FreeBSD Local Time = Mon Nov 25 11:40:27 2002 Elapsed Time = -2147483648 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Core VM (1.3.1-internal interpreted mode) ----- - Where is this the limit of stacksize limited to 1mb??? (i mean i cannot set it to -Xss30m) The only kernel related sysctl variable is kern.usrstack: 3217031168. Also ulimit stacksize is set to 65M. - Has anyone come across to thos problem in Java_java_net_InetAddressImpl_getHostByAddr?? I will try compiler1,2... Achilleus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 25 2: 9: 0 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7592437B401 for ; Mon, 25 Nov 2002 02:08:57 -0800 (PST) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3124843EAA for ; Mon, 25 Nov 2002 02:08:56 -0800 (PST) (envelope-from mantzios@softlab.ece.ntua.gr) Received: from theseas.softlab.ece.ntua.gr (theseas.softlab.ece.ntua.gr [147.102.1.1]) by ulysses.noc.ntua.gr (8.11.6/8.11.6) with ESMTP id gAPA8mN65548 for ; Mon, 25 Nov 2002 12:08:49 +0200 (EET) Received: from localhost (mantzios@localhost) by theseas.softlab.ece.ntua.gr (8.11.6/8.11.6) with ESMTP id gAPA8m705783 for ; Mon, 25 Nov 2002 12:08:48 +0200 (EET) Date: Mon, 25 Nov 2002 12:08:48 +0200 (EET) From: Mantzios Achilleus To: Subject: Re: Jboss, -Xss with hotspot on -release 4.7p2 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ---------------------------------------------------------------- | go to the source -> http://www.softlab.ece.ntua.gr/~mantzios | ---------------------------------------------------------------- On Mon, 25 Nov 2002, Mantzios Achilleus wrote: > > I have (i think) built hotspot (core) on stable 4.7. > > When i run jboss 3.0.1 with -Xss30m i get: > > Stack size of 30720 Kb exceeds current limit of 1024 Kb. > (Stack sizes are rounded up to a multiple of the system page size.) > > I then try to use this limit with -Xss1m. > > When i run jboss with hotspot (core) > i get sigbus (10). > > > An unexpected exception has been detected in native code outside the VM. > Unexpected Signal : 10 occurred at PC=0x29a77288 > Function name=Java_java_net_InetAddressImpl_getHostByAddr > Library=/usr/local/jdk1.3.1/jre/lib/i386/libnet.so > > Current Java thread: > at java.net.InetAddressImpl.getHostByAddr(Native Method) > at java.net.InetAddress.getHostName(InetAddress.java:156) > at java.net.InetAddress.getHostName(InetAddress.java:127) > at java.net.InetAddress.toString(InetAddress.java:265) > at java.lang.String.valueOf(String.java:1947) > at java.lang.StringBuffer.append(StringBuffer.java:370) > - locked <4001e2c8> (a java.lang.StringBuffer) > at java.net.ServerSocket.toString(ServerSocket.java:316) > at java.lang.String.valueOf(String.java:1947) > at java.lang.StringBuffer.append(StringBuffer.java:370) > - locked <4001e280> (a java.lang.StringBuffer) > at org.jboss.web.WebServer.start(WebServer.java:162) > at org.jboss.web.WebService.startService(WebService.java:104) > at > org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164) > at java.lang.reflect.Method.invoke(Native Method) > at > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) > at > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) > at > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:950) > at $Proxy0.start(Unknown Source) > at > org.jboss.system.ServiceController.start(ServiceController.java:384) > - locked <402cf590> (a org.jboss.system.ServiceController) > at java.lang.reflect.Method.invoke(Native Method) > at > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) > at > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) > at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) > at $Proxy3.start(Unknown Source) > at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243) > at org.jboss.deployment.MainDeployer.start(MainDeployer.java:786) > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615) > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:581) > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565) > at java.lang.reflect.Method.invoke(Native Method) > at > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) > at > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) > at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:319) > at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216) > at org.jboss.Main.boot(Main.java:142) > at org.jboss.Main$1.run(Main.java:375) > at java.lang.Thread.run(Thread.java:484) > > Error: Cannot print dynamic libraries. Function not implemented for > FreeBSD > > Local Time = Mon Nov 25 11:40:27 2002 > Elapsed Time = -2147483648 > # > # The exception above was detected in native code outside the VM > # > # Java VM: Java HotSpot(TM) Core VM (1.3.1-internal interpreted mode) > > ----- > > > - Where is this the limit of stacksize limited to 1mb??? > (i mean i cannot set it to -Xss30m) > The only kernel related sysctl variable is kern.usrstack: 3217031168. > Also ulimit stacksize is set to 65M. > Since -classic works with -Xss30m, i dont think its ulimit (shell) or kern.usrstack: (kernel) matter. > - Has anyone come across to thos problem in > Java_java_net_InetAddressImpl_getHostByAddr?? > > I will try compiler1,2... > > Achilleus > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 25 2:42:15 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D16437B401 for ; Mon, 25 Nov 2002 02:42:14 -0800 (PST) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D626243E3B for ; Mon, 25 Nov 2002 02:42:13 -0800 (PST) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 18GGg9-0003gj-00; Mon, 25 Nov 2002 02:41:25 -0800 Date: Mon, 25 Nov 2002 02:41:24 -0800 To: Mantzios Achilleus Cc: freebsd-java@FreeBSD.ORG, "Bill Huey (Hui)" Subject: Re: Jboss, -Xss with hotspot on -release 4.7p2 Message-ID: <20021125104124.GA13270@gnuppy.monkey.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Nov 25, 2002 at 11:45:05AM +0200, Mantzios Achilleus wrote: > I have (i think) built hotspot (core) on stable 4.7. > > When i run jboss 3.0.1 with -Xss30m i get: > > Stack size of 30720 Kb exceeds current limit of 1024 Kb. > (Stack sizes are rounded up to a multiple of the system page size.) > > I then try to use this limit with -Xss1m. > > When i run jboss with hotspot (core) > i get sigbus (10). Yeah, sounds like a stack limit problem, fairly trivial to fix. Those are reentrant C functions being called if I remember correctly and I wonder what's going with it and I was the person that commited that logic to the core JVM library itself. I'll get at it after the all reworking that I'm currently doing. I'm in the process of reading stuff both in the HotSpot source tree, libc_r, and stuff outside of this project, so it's going to be a bit before I can get at it. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 25 3: 7:44 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3066437B401 for ; Mon, 25 Nov 2002 03:07:43 -0800 (PST) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8169043EB2 for ; Mon, 25 Nov 2002 03:07:39 -0800 (PST) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id gAPE9gip037909; Mon, 25 Nov 2002 14:09:43 GMT Received: (from ml@localhost) by phantom.cris.net (8.12.2/8.12.2) id gAPBCakF077698; Mon, 25 Nov 2002 13:12:36 +0200 (EET) (envelope-from ml) Date: Mon, 25 Nov 2002 13:12:36 +0200 From: Alexey Zelkin To: Bill Huey Cc: Mantzios Achilleus , freebsd-java@FreeBSD.ORG Subject: Re: Jboss, -Xss with hotspot on -release 4.7p2 Message-ID: <20021125131236.A77656@phantom.cris.net> References: <20021125104124.GA13270@gnuppy.monkey.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021125104124.GA13270@gnuppy.monkey.org>; from billh@gnuppy.monkey.org on Mon, Nov 25, 2002 at 02:41:24AM -0800 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, It sounds also like a problem with using different gethostby*_r() functions. It's quite possible that dynamic linker is using gethostbyname_r() from something in /usr/lib instead of JDK's libnet.so. I have had similar one while doing 1.4 porting work and resolved(?) simply by renaming home born implementation of gethostby*_r() functions to JVM_$1 as well as renamed calls to these functions in .c files in j2se sources. On Mon, Nov 25, 2002 at 02:41:24AM -0800, Bill Huey wrote: > On Mon, Nov 25, 2002 at 11:45:05AM +0200, Mantzios Achilleus wrote: > > I have (i think) built hotspot (core) on stable 4.7. > > > > When i run jboss 3.0.1 with -Xss30m i get: > > > > Stack size of 30720 Kb exceeds current limit of 1024 Kb. > > (Stack sizes are rounded up to a multiple of the system page size.) > > > > I then try to use this limit with -Xss1m. > > > > When i run jboss with hotspot (core) > > i get sigbus (10). > > Yeah, sounds like a stack limit problem, fairly trivial to fix. Those are > reentrant C functions being called if I remember correctly and I wonder > what's going with it and I was the person that commited that logic to the > core JVM library itself. I'll get at it after the all reworking that I'm > currently doing. I'm in the process of reading stuff both in the HotSpot > source tree, libc_r, and stuff outside of this project, so it's going to > be a bit before I can get at it. > > bill > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 25 3:31:18 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79C8137B401 for ; Mon, 25 Nov 2002 03:31:17 -0800 (PST) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCB7D43E88 for ; Mon, 25 Nov 2002 03:31:16 -0800 (PST) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 18GHSG-0000J3-00; Mon, 25 Nov 2002 03:31:08 -0800 Date: Mon, 25 Nov 2002 03:31:08 -0800 To: Achilleus Mantzios Cc: Mantzios Achilleus , freebsd-java@FreeBSD.ORG, "Bill Huey (Hui)" Subject: Re: Jboss, -Xss with hotspot on -release 4.7p2 Message-ID: <20021125113108.GA1169@gnuppy.monkey.org> References: <20021125104124.GA13270@gnuppy.monkey.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Nov 25, 2002 at 01:35:27PM +0200, Achilleus Mantzios wrote: > Note that compiler2 doesnt build: > > a bunch of compiler options e.g > cc1plus: Invalid option `-fssa' > give errors. > > BTW is there something "fast" i could do to start working > with jboss (that is having worked around -Xss flag issue that Bill > commnted on and Java_java_net_InetAddressImpl_getHostByAddr issue > that Andrey commnted on)?? Find thoe gethost* function in the main JVM sources, maybe renamed them, etc... as previously suggested by Alexey. Funny, though, since classic works correctly, which is why I'm thinking it's a HotSpot specific problem still. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 25 4:21:40 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 803C437B401 for ; Mon, 25 Nov 2002 04:21:35 -0800 (PST) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id E145543E91 for ; Mon, 25 Nov 2002 04:21:31 -0800 (PST) (envelope-from phantom@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id gAPFNaip040386; Mon, 25 Nov 2002 15:23:37 GMT Received: (from phantom@localhost) by phantom.cris.net (8.12.2/8.12.2) id gAPCQXNo077985; Mon, 25 Nov 2002 14:26:33 +0200 (EET) (envelope-from phantom) Date: Mon, 25 Nov 2002 14:26:33 +0200 From: Alexey Zelkin To: Achilleus Mantzios Cc: Bill Huey , Mantzios Achilleus , freebsd-java@FreeBSD.ORG Subject: Re: Jboss, -Xss with hotspot on -release 4.7p2 Message-ID: <20021125142633.A77963@phantom.cris.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from achill@matrix.gatewaynet.com on Mon, Nov 25, 2002 at 01:37:20PM +0200 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Nov 25, 2002 at 01:37:20PM +0200, Achilleus Mantzios wrote: > On Mon, 25 Nov 2002, Achilleus Mantzios wrote: > > > On Mon, 25 Nov 2002, Bill Huey wrote: > > > > > On Mon, Nov 25, 2002 at 11:45:05AM +0200, Mantzios Achilleus wrote: > > > > I have (i think) built hotspot (core) on stable 4.7. > > > > > > > > When i run jboss 3.0.1 with -Xss30m i get: > > > > > > > > Stack size of 30720 Kb exceeds current limit of 1024 Kb. > > > > (Stack sizes are rounded up to a multiple of the system page size.) > > > > > > > > I then try to use this limit with -Xss1m. > > > > > > > > When i run jboss with hotspot (core) > > > > i get sigbus (10). > > > > > > Yeah, sounds like a stack limit problem, fairly trivial to fix. Those are > > > reentrant C functions being called if I remember correctly and I wonder > > > what's going with it and I was the person that commited that logic to the > > > core JVM library itself. I'll get at it after the all reworking that I'm > > > currently doing. I'm in the process of reading stuff both in the HotSpot > > > source tree, libc_r, and stuff outside of this project, so it's going to > > > be a bit before I can get at it. > > > > Also hotspot compiler1 fails in the exact same fashion. > > > > Note that compiler2 doesnt build: > > > > a bunch of compiler options e.g > > cc1plus: Invalid option `-fssa' > > give errors. > > > > BTW is there something "fast" i could do to start working > > with jboss (that is having worked around -Xss flag issue that Bill > > commnted on and Java_java_net_InetAddressImpl_getHostByAddr issue > > that Andrey commnted on)?? > ^^^^^^ > I MEANT ALEXEY!!! > SORRY!! :-) I have attached a patch against jdk1.4 sources, but I think it would be trivial to do same for 1.3. PS: It was supposed to be a hack :) So, if it'll fix your problem -- I'll go with clean it up and propose to commit to 1.3 tree also. Index: Inet4AddressImpl.c =================================================================== RCS file: /home/Java/CVS/JDK2/javasrc_1_4_scsl/j2se/src/solaris/native/java/net/Inet4AddressImpl.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -u -r1.2 -r1.3 --- Inet4AddressImpl.c 16 Aug 2002 06:50:27 -0000 1.2 +++ Inet4AddressImpl.c 21 Oct 2002 16:51:50 -0000 1.3 @@ -27,10 +27,10 @@ #define HENT_BUF_SIZE 1024 #define BIG_HENT_BUF_SIZE 10240 /* a jumbo-sized one */ -#ifndef __GLIBC__ -/* gethostname() is in libc.so but I can't find a header file for it */ -extern int gethostname(char *buf, int buf_len); -#endif +//#ifndef __GLIBC__ +///* gethostname() is in libc.so but I can't find a header file for it */ +//extern int gethostname(char *buf, int buf_len); +//#endif /* reentrant BIND includes --billh */ @@ -41,11 +41,11 @@ /* forward declarations --billh */ HOST_R_RETURN -gethostbyname_r(const char *name, struct hostent *hptr, +JDK_gethostbyname_r(const char *name, struct hostent *hptr, HOST_R_ARGS); HOST_R_RETURN -gethostbyaddr_r(const char *addr, int len, int type, +JDK_gethostbyaddr_r(const char *addr, int len, int type, struct hostent *hptr, HOST_R_ARGS); @@ -85,16 +85,16 @@ int h_error=0; #ifdef __GLIBC__ - gethostbyname_r(hostname, &res, buf, sizeof(buf), &hp, &h_error); + JDK_gethostbyname_r(hostname, &res, buf, sizeof(buf), &hp, &h_error); #else - hp = gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error); + hp = JDK_gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error); #endif if (hp) { #ifdef __GLIBC__ - gethostbyaddr_r(hp->h_addr, hp->h_length, AF_INET, + JDK_gethostbyaddr_r(hp->h_addr, hp->h_length, AF_INET, &res2, buf2, sizeof(buf2), &hp, &h_error); #else - hp = gethostbyaddr_r(hp->h_addr, hp->h_length, AF_INET, + hp = JDK_gethostbyaddr_r(hp->h_addr, hp->h_length, AF_INET, &res2, buf2, sizeof(buf2), &h_error); #endif if (hp) { @@ -157,9 +157,9 @@ /* Try once, with our static buffer. */ #ifdef __GLIBC__ - gethostbyname_r(hostname, &res, buf, sizeof(buf), &hp, &h_error); + JDK_gethostbyname_r(hostname, &res, buf, sizeof(buf), &hp, &h_error); #else - hp = gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error); + hp = JDK_gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error); #endif /* With the re-entrant system calls, it's possible that the buffer @@ -170,10 +170,10 @@ if (hp == NULL && errno == ERANGE) { if ((tmp = (char*)malloc(BIG_HENT_BUF_SIZE))) { #ifdef __GLIBC__ - gethostbyname_r(hostname, &res, tmp, BIG_HENT_BUF_SIZE, + JDK_gethostbyname_r(hostname, &res, tmp, BIG_HENT_BUF_SIZE, &hp, &h_error); #else - hp = gethostbyname_r(hostname, &res, tmp, BIG_HENT_BUF_SIZE, + hp = JDK_gethostbyname_r(hostname, &res, tmp, BIG_HENT_BUF_SIZE, &h_error); #endif } @@ -255,10 +255,10 @@ addr |= (caddr[3] & 0xff); addr = htonl(addr); #ifdef __GLIBC__ - gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, + JDK_gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &h_error); #else - hp = gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, + hp = JDK_gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &h_error); #endif /* With the re-entrant system calls, it's possible that the buffer @@ -269,10 +269,10 @@ if (hp == NULL && errno == ERANGE) { if ((tmp = (char*)malloc(BIG_HENT_BUF_SIZE))) { #ifdef __GLIBC__ - gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, + JDK_gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, tmp, BIG_HENT_BUF_SIZE, &hp, &h_error); #else - hp = gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, + hp = JDK_gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent, tmp, BIG_HENT_BUF_SIZE, &h_error); #endif } else { @@ -309,7 +309,7 @@ copy_hostent(struct hostent *, struct hostent *, HOST_R_COPY_ARGS); HOST_R_RETURN -gethostbyname_r(const char *name, struct hostent *hptr, HOST_R_ARGS) { +JDK_gethostbyname_r(const char *name, struct hostent *hptr, HOST_R_ARGS) { struct hostent *he = gethostbyname(name); HOST_R_ERRNO; @@ -321,7 +321,7 @@ } HOST_R_RETURN -gethostbyaddr_r(const char *addr, int len, int type, +JDK_gethostbyaddr_r(const char *addr, int len, int type, struct hostent *hptr, HOST_R_ARGS) { struct hostent *he = gethostbyaddr(addr, len, type); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 25 4:24:11 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F27A737B401 for ; Mon, 25 Nov 2002 04:24:09 -0800 (PST) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id B845443EAA for ; Mon, 25 Nov 2002 04:24:07 -0800 (PST) (envelope-from mantzios@softlab.ece.ntua.gr) Received: from theseas.softlab.ece.ntua.gr (theseas.softlab.ece.ntua.gr [147.102.1.1]) by ulysses.noc.ntua.gr (8.11.6/8.11.6) with ESMTP id gAPCNuN78000; Mon, 25 Nov 2002 14:23:56 +0200 (EET) Received: from localhost (mantzios@localhost) by theseas.softlab.ece.ntua.gr (8.11.6/8.11.6) with ESMTP id gAPCNuD14457; Mon, 25 Nov 2002 14:23:56 +0200 (EET) Date: Mon, 25 Nov 2002 14:23:55 +0200 (EET) From: Mantzios Achilleus To: Bill Huey Cc: Achilleus Mantzios , Subject: Re: Jboss, -Xss with hotspot on -release 4.7p2 In-Reply-To: <20021125113108.GA1169@gnuppy.monkey.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ---------------------------------------------------------------- | go to the source -> http://www.softlab.ece.ntua.gr/~mantzios | ---------------------------------------------------------------- On Mon, 25 Nov 2002, Bill Huey wrote: > On Mon, Nov 25, 2002 at 01:35:27PM +0200, Achilleus Mantzios wrote: > > Note that compiler2 doesnt build: > > > > a bunch of compiler options e.g > > cc1plus: Invalid option `-fssa' > > give errors. > > > > BTW is there something "fast" i could do to start working > > with jboss (that is having worked around -Xss flag issue that Bill > > commnted on and Java_java_net_InetAddressImpl_getHostByAddr issue > > that Andrey commnted on)?? > > Find thoe gethost* function in the main JVM sources, maybe renamed them, > etc... as previously suggested by Alexey. Funny, though, since classic > works correctly, which is why I'm thinking it's a HotSpot specific > problem still. I think you are right. gethostbyaddr_r function is never called in hotspot. (only plain gethostbyaddr). Thats what grep says, i have no knowledge of java/hotspot internals as to know the whole arch and possibly find a way to resolve these problems. However since i started it being a FreeBSD fun, as a ... break from my main ordinary work (java developer), i think its about time to quit trying until some good fella puts some effort to make it run on -stable (or wait untill what is presently 5.0 -current becomes 5.X -stable. Anyway you all (Bill, Alexey, Greg) did a great job. Too pity SUN or the so called biggest fun of open-source IBM didnt pay you to keep doing it. > > bill > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 25 8: 0: 6 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B5B937B401 for ; Mon, 25 Nov 2002 08:00:04 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A05B43EA9 for ; Mon, 25 Nov 2002 08:00:04 -0800 (PST) (envelope-from eischen@pcnet1.pcnet.com) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.3/8.12.1) with ESMTP id gAPG03S1026541 for ; Mon, 25 Nov 2002 11:00:03 -0500 (EST) Date: Mon, 25 Nov 2002 11:00:03 -0500 (EST) From: Daniel Eischen To: freebsd-java@freebsd.org Subject: PATCH - changing libc_r to use *context() (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org FYI, this patch should have everything you've been asking for. To answer some potential questions, a threads context is always in thread->ctx as a ucontext_t. A thread's interrupted context is stored in the same location. Signal handlers caused by pthread_kill() now also get a siginfo and ucontext passed to them (assuming the handler was installed with SA_SIGINFO). ---------- Forwarded message ---------- Date: Mon, 25 Nov 2002 10:52:04 -0500 From: Daniel Eischen To: freebsd-current@freebsd.org Subject: PATCH - changing libc_r to use *context() There's a patch at: http://people.freebsd.org/~deischen/libc_r.diffs that changes libc_r to use *context() instead of setjmp/longjmp. There are some other changes that the -java folks have wanted for some time (signal handlers installed with SA_SIGINFO now always get a siginfo_t and ucontext_t). Normally I would wait until after 5.0-release to do this, but the ia64 folks (perhaps the sparc64?) really wanted this. I'd like some feedback on whether some heavy threaded apps (GNOME, OpenOffice, Java, etc) have any problems with this patch before asking re@ for commit permission. BTW, it also needs testing on alpha. Thanks, -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 25 11: 1:11 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2541E37B401 for ; Mon, 25 Nov 2002 11:01:10 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 142B843EE6 for ; Mon, 25 Nov 2002 11:01:03 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAPJ13x3083011 for ; Mon, 25 Nov 2002 11:01:03 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAPJ13iT082981 for java@freebsd.org; Mon, 25 Nov 2002 11:01:03 -0800 (PST) Date: Mon, 25 Nov 2002 11:01:03 -0800 (PST) Message-Id: <200211251901.gAPJ13iT082981@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: java@FreeBSD.org Subject: Current problem reports assigned to you Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/02/25] java/35320 java linux-jdk-1.4 JVM fails when running Tomc o [2002/10/05] java/43724 java linux_base-7.1 + linux-sun-jdk-1.3.1.04 d 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/10/11] java/43925 java New port: net/beepcore-java (supersedes p 1 problem total. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 25 14:52:52 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7248937B401 for ; Mon, 25 Nov 2002 14:52:51 -0800 (PST) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6B1C43EBE for ; Mon, 25 Nov 2002 14:52:50 -0800 (PST) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 18GS5m-0000qL-00; Mon, 25 Nov 2002 14:52:38 -0800 Date: Mon, 25 Nov 2002 14:52:38 -0800 To: Daniel Eischen Cc: freebsd-java@freebsd.org, "Bill Huey (Hui)" Subject: Re: PATCH - changing libc_r to use *context() (fwd) Message-ID: <20021125225238.GA3236@gnuppy.monkey.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Nov 25, 2002 at 11:00:03AM -0500, Daniel Eischen wrote: > FYI, this patch should have everything you've been asking for. > > To answer some potential questions, a threads context is > always in thread->ctx as a ucontext_t. A thread's interrupted > context is stored in the same location. > > Signal handlers caused by pthread_kill() now also get a > siginfo and ucontext passed to them (assuming the handler > was installed with SA_SIGINFO). I was in the process of getting the jmp_buf method going, but I'll guess I check the viability of this out instead. ;) Currently, I'm reading how all the safepointing code works so that I can directly use the Solaris fast path method for getting the ucontext (evil stuff with EIP/program counter manipulation), but the normal signal stack frame method should be at least half working now. ..Remaining thread suspension problems... don't know. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 26 0:59:58 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEBE437B401 for ; Tue, 26 Nov 2002 00:59:56 -0800 (PST) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30AB643EAF for ; Tue, 26 Nov 2002 00:59:55 -0800 (PST) (envelope-from mantzios@softlab.ece.ntua.gr) Received: from theseas.softlab.ece.ntua.gr (theseas.softlab.ece.ntua.gr [147.102.1.1]) by ulysses.noc.ntua.gr (8.11.6/8.11.6) with ESMTP id gAQ8xlN07888; Tue, 26 Nov 2002 10:59:48 +0200 (EET) Received: from localhost (mantzios@localhost) by theseas.softlab.ece.ntua.gr (8.11.6/8.11.6) with ESMTP id gAQ8xlE14891; Tue, 26 Nov 2002 10:59:47 +0200 (EET) Date: Tue, 26 Nov 2002 10:59:47 +0200 (EET) From: Mantzios Achilleus To: Alexey Zelkin Cc: Achilleus Mantzios , Bill Huey , Subject: Re: Jboss, -Xss with hotspot on -release 4.7p2 In-Reply-To: <20021125142633.A77963@phantom.cris.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I tried the patch of Alexey, i get java.net.BindException: Address already in use , and java.net.SocketException: Interrupted system call and jboss doesnt seem to come up in relatively reasonable amount of time. (its been 3 minutes since i started it, whereas under green-threads/OpenJIT works fine). Also i must note that native-threads seem to not work too. (i had to play with -X* options to get it going and the performance was way too bad: Startup time for green-threads/OpenJIT 14 secs Linux Hotspot (On RedHat 7.1*) 30 secs Native-threads/OpenJIT 45 secs Hotspot (native) >= 3 mins * On a similar machine (with more memory) I must say that apart from the bad scaling the the green-threads/OpenJIT solution shows, it rocks on atomic operations over the rest of cases. Anyway, now i dont get the SIGBUS Java_java_net_InetAddressImpl_getHostByAddr error. Achilleus. P.S. Note that in order to build Hotspot a patch from some nice japanese guys was needed. (i dont recall the message-id but it is easy to find). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 26 7:12:48 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C086737B401 for ; Tue, 26 Nov 2002 07:12:42 -0800 (PST) Received: from bsd.ultra-secure.de (bsd.ultra-secure.de [62.146.46.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0CD443E4A for ; Tue, 26 Nov 2002 07:12:41 -0800 (PST) (envelope-from rainer@bsd.ultra-secure.de) Received: (qmail 3884 invoked by uid 1001); 26 Nov 2002 15:12:56 -0000 Message-ID: <20021126151256.3883.qmail@bsd.ultra-secure.de> From: "Rainer Duffner" To: freebsd-java@freebsd.org Subject: Problem with Jahia (Portal Engine, CMS etc.) Date: Tue, 26 Nov 2002 16:12:56 +0100 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I downloaded the jahia product (based on tomcat and a slew of other open source software) and tried to run it. I tried the linux-jdk-1.3.1_06 and the "native" 1.3.1p7 and both run through the installation successfully, but fail to actually start the application: 2002-11-26 15:49:53 Your Jahia Server has generated an error. Please review the details below for additional information: Error : null URL : http://localhost:8080/jahia/installation/ Method : POST Remote host : localhost.example.net Remote Address : 127.0.0.1 Request headers : host:localhost:8080 user-agent:Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20020925 accept:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/p lain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0 .1 accept-language:en-us, en;q=0.50 accept-encoding:gzip, deflate, compress;q=0.9 accept-charset:ISO-8859-1, utf-8;q=0.66, *;q=0.66 keep-alive:300 connection:keep-alive referer:http://localhost:8080/jahia/installation/?call=values_process&go=nex t cookie:JSESSIONID=D30E676D39F6B16B0E9BC8337A6193CB content-type:application/x-www-form-urlencoded content-length:25 Stack trace : java.lang.NullPointerException at org.jahia.services.usermanager.JahiaUserManagerRoutingService.init(JahiaUser ManagerRoutingService.java:151) at org.jahia.registries.ServicesRegistry.loadService(ServicesRegistry.java:615) at org.jahia.registries.ServicesRegistry.init(ServicesRegistry.java:244) at org.jahia.bin.Jahia.initServicesRegistry(Jahia.java:763) at org.jahia.bin.Jahia.init(Jahia.java:372) at org.jahia.bin.Jahia.service(Jahia.java:566) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:356) at org.jahia.bin.JahiaConfigurationWizard.doRedirect(JahiaConfigurationWizard.j ava:290) at org.jahia.bin.JahiaConfigurationWizard.redirectToJahia(JahiaConfigurationWiz ard.java:1127) at java.lang.reflect.Method.invoke(Native Method) at org.jahia.utils.ActionHandler.call(ActionHandler.java:117) at org.jahia.bin.JahiaConfigurationWizard.dispatcher(JahiaConfigurationWizard.j ava:322) at org.jahia.bin.JahiaConfigurationWizard.service(JahiaConfigurationWizard.java :190) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:533) at java.lang.Thread.run(Thread.java:484) I have this working on Solaris (it's supported on that, and on Linux), but I'd like to get this working on FreeBSD. cheers, Rainer -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rainer Duffner Munich rainer@ultra-secure.de Germany http://www.i-duffner.de Freising ======================================== When shall we three meet again In thunder, lightning, or in rain? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 26 8:34:40 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08FA737B401 for ; Tue, 26 Nov 2002 08:34:36 -0800 (PST) Received: from bsd.ultra-secure.de (bsd.ultra-secure.de [62.146.46.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D7B543E9C for ; Tue, 26 Nov 2002 08:34:35 -0800 (PST) (envelope-from rainer@bsd.ultra-secure.de) Received: (qmail 4404 invoked by uid 1001); 26 Nov 2002 16:34:39 -0000 Message-ID: <20021126163439.4403.qmail@bsd.ultra-secure.de> References: <20021126151256.3883.qmail@bsd.ultra-secure.de> <200211261638.36371.znerd@FreeBSD.org> In-Reply-To: <200211261638.36371.znerd@FreeBSD.org> From: "Rainer Duffner" To: freebsd-java@freebsd.org Subject: Re: Problem with Jahia (Portal Engine, CMS etc.) Date: Tue, 26 Nov 2002 17:34:39 +0100 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_0_4402_1038328479"; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a MIME-formatted message. If you see this text it means that your mail software cannot handle MIME-formatted messages. --=_0_4402_1038328479 Content-Type: text/plain; format=flowed; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Ernst de Haan writes: > Rainer, > > This looks like an application problem for sure. Can you take a peek at > the source code? Specifically: > > org/jahia/services/usermanager/JahiaUserManagerRoutingService.java > line 151 > > The statement on that line generates a NullPointerException. Perhaps it is > due to some configuration difference. I have corresponded with the developers of Jahia (who are very friendly and helpful) about this, and you'll find their say on this in the attachement. The software comes with source-code. cheers, Rainer -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rainer Duffner Munich rainer@ultra-secure.de Germany http://www.i-duffner.de Freising ======================================== When shall we three meet again In thunder, lightning, or in rain? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --=_0_4402_1038328479 Content-Disposition: attachment; filename="Help with install on FreeBSD needed.txt" Content-Type: text/plain; charset="iso-8859-1"; name="Help with install on FreeBSD needed.txt" Content-Transfer-Encoding: 7bit From serge.huber@jahia.com Mon Nov 25 10:19:58 2002 Received: (qmail 35828 invoked from network); 25 Nov 2002 09:20:20 -0000 Received: from unknown (HELO aline.hexocube.com) (80.74.132.18) by bsd.ultra-secure.de with SMTP; 25 Nov 2002 09:20:20 -0000 Received: (qmail 15183 invoked by uid 529); 25 Nov 2002 09:19:59 -0000 Mailing-List: contact install_list-help@jahia.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Post: List-Unsubscribe: Reply-To: Delivered-To: mailing list install_list@jahia.org Received: (qmail 15175 invoked from network); 25 Nov 2002 09:19:59 -0000 Message-Id: <5.1.0.14.0.20021125101643.02696ec0@mail.jahia.com> X-Sender: shuber@jahia.com@mail.jahia.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 25 Nov 2002 10:19:58 +0100 To: From: Serge Huber Subject: Re: Help with install on FreeBSD needed. In-Reply-To: <20021124213728.31490.qmail@bsd.ultra-secure.de> References: <5.1.0.14.0.20021124213636.0265f048@mail.jahia.com> <5.1.0.14.0.20021122150207.03ea6dd0@mail.jahia.com> <5.2.0.9.0.20021122102439.017e7e28@mail.jahia.com> <5.2.0.9.0.20021122102439.017e7e28@mail.jahia.com> <5.1.0.14.0.20021122150207.03ea6dd0@mail.jahia.com> <5.1.0.14.0.20021124213636.0265f048@mail.jahia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-UID: 16 Hi Rainer, Indeed the logs don't say much more :( Anyway I've checked the code in which the exception is generated, and it looks like this : public void init( JahiaPrivateSettings jSettings ) throws JahiaInitializationException { try { loadConfiguration(jSettings.jahiaEtcDiskPath + this.CONFIG_PATH + File.separator + this.CONFIG_FILE_NAME); } catch (JahiaException je) { JahiaConsole.printe("JahiaUserManagerRoutingService.init#" + "Error while trying to load configuration from " + jSettings.jahiaEtcDiskPath + this.CONFIG_PATH + File.separator + this.CONFIG_FILE_NAME, je); throw new JahiaInitializationException("Error while trying to load configuration from " + jSettings.jahiaEtcDiskPath + this.CONFIG_PATH + File.separator + this.CONFIG_FILE_NAME + " Exception:" + je.getMessage()); } Iterator providerIter = providersTable.keySet().iterator(); while (providerIter.hasNext()) { String curProviderKey = (String) providerIter.next(); UserManagerProviderBean curProvider = (UserManagerProviderBean) providersTable.get(curProviderKey); curProvider.getInstance().init(jSettings); } } On the last line (curProvider.getInstance().init(jSettings)) is where the null pointer exception is generated. I'm guessing the curProvider.getInstance() call is failing for some reason. The getInstance() call uses reflection to get the instance, and maybe this is failing on FreeBSD for some reason ?! Regards, Serge Huber. At 22:37 24.11.2002 +0100, you wrote: >Serge Huber writes: >>Hi Rainer, >>Just one more thought, it seems you might be having a problem with XML >>parsers. Check that you have not modified anything from the default >>install in that regards. > >No, I always wipe the install after an unsuccessful try. >Also, I don't try to replace the tomcat you supply with the one form the >ports-tree, I've given up on that ;-) >>Or it might just be that Tomcat's getRealPath() method behaves >>differently on FreeBSD. > >I've done a run with a log_level of 10, which you'll find attached. > > >cheers, >Rainer >-- >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Rainer Duffner Munich >rainer@ultra-secure.de Germany >http://www.i-duffner.de Freising >======================================== > When shall we three meet again > In thunder, lightning, or in rain? >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > --=_0_4402_1038328479-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 26 8:40:51 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33A0F37B401 for ; Tue, 26 Nov 2002 08:40:47 -0800 (PST) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53A1143E9C for ; Tue, 26 Nov 2002 08:40:46 -0800 (PST) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id gAQFcdHv031470; Tue, 26 Nov 2002 16:38:39 +0100 (CET) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id gAQFcaBS031465; Tue, 26 Nov 2002 16:38:36 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: "Rainer Duffner" , freebsd-java@freebsd.org Subject: Re: Problem with Jahia (Portal Engine, CMS etc.) Date: Tue, 26 Nov 2002 16:38:36 +0100 User-Agent: KMail/1.4.3 References: <20021126151256.3883.qmail@bsd.ultra-secure.de> In-Reply-To: <20021126151256.3883.qmail@bsd.ultra-secure.de> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200211261638.36371.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Rainer, This looks like an application problem for sure. Can you take a peek at the source code? Specifically: org/jahia/services/usermanager/JahiaUserManagerRoutingService.java line 151 The statement on that line generates a NullPointerException. Perhaps it is due to some configuration difference. Ernst On Tuesday 26 November 2002 16:12, Rainer Duffner wrote: > Hi, > > I downloaded the jahia product (based on tomcat and a slew of other open > source software) and tried to run it. > I tried the linux-jdk-1.3.1_06 and the "native" 1.3.1p7 and both run > through the installation successfully, but fail to actually start the > application: > > 2002-11-26 15:49:53 Your Jahia Server has generated an error. Please > review the details below for additional information: > Error : null > URL : http://localhost:8080/jahia/installation/ Method : POST > Remote host : localhost.example.net Remote Address : 127.0.0.1 > Request headers : > host:localhost:8080 > user-agent:Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) > Gecko/20020925 > > accept:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,tex >t/p > lain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*; >q=0 .1 > accept-language:en-us, en;q=0.50 > accept-encoding:gzip, deflate, compress;q=0.9 > accept-charset:ISO-8859-1, utf-8;q=0.66, *;q=0.66 > keep-alive:300 > connection:keep-alive > > referer:http://localhost:8080/jahia/installation/?call=values_process&go= >nex t > cookie:JSESSIONID=D30E676D39F6B16B0E9BC8337A6193CB > content-type:application/x-www-form-urlencoded > content-length:25 > Stack trace : > java.lang.NullPointerException > at > org.jahia.services.usermanager.JahiaUserManagerRoutingService.init(JahiaU >ser ManagerRoutingService.java:151) > at > org.jahia.registries.ServicesRegistry.loadService(ServicesRegistry.java:6 >15) at > org.jahia.registries.ServicesRegistry.init(ServicesRegistry.java:244) > at org.jahia.bin.Jahia.initServicesRegistry(Jahia.java:763) > at org.jahia.bin.Jahia.init(Jahia.java:372) > at org.jahia.bin.Jahia.service(Jahia.java:566) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatch >er. java:684) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispa >tch er.java:432) > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatc >her .java:356) > at > org.jahia.bin.JahiaConfigurationWizard.doRedirect(JahiaConfigurationWizar >d.j ava:290) > at > org.jahia.bin.JahiaConfigurationWizard.redirectToJahia(JahiaConfiguration >Wiz ard.java:1127) > at java.lang.reflect.Method.invoke(Native Method) > at org.jahia.utils.ActionHandler.call(ActionHandler.java:117) > at > org.jahia.bin.JahiaConfigurationWizard.dispatcher(JahiaConfigurationWizar >d.j ava:322) > at > org.jahia.bin.JahiaConfigurationWizard.service(JahiaConfigurationWizard.j >ava > > :190) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat >ion FilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte >rCh ain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve >.ja va:260) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in >vok eNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48 >0) at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve >.ja va:191) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in >vok eNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48 >0) at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396 >) at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: >180 ) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in >vok eNext(StandardPipeline.java:643) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal >ve. java:170) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in >vok eNext(StandardPipeline.java:641) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: >172 ) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in >vok eNext(StandardPipeline.java:641) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48 >0) at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j >ava > > :174) > > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in >vok eNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48 >0) at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405 >) at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processCo >nne ction(Http11Protocol.java:380) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508 >) at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool. >jav a:533) > at java.lang.Thread.run(Thread.java:484) > > > I have this working on Solaris (it's supported on that, and on Linux), > but I'd like to get this working on FreeBSD. > > > > cheers, > Rainer -- Ernst de Haan Development Team Leader Wanadoo Nederland B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 26 8:48: 0 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EF2037B401 for ; Tue, 26 Nov 2002 08:47:59 -0800 (PST) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 441DC43EB2 for ; Tue, 26 Nov 2002 08:47:58 -0800 (PST) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id gAQGlxHv031698; Tue, 26 Nov 2002 17:47:59 +0100 (CET) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id gAQGlxRp031697; Tue, 26 Nov 2002 17:47:59 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: "Rainer Duffner" , freebsd-java@freebsd.org Subject: Re: Problem with Jahia (Portal Engine, CMS etc.) Date: Tue, 26 Nov 2002 17:47:59 +0100 User-Agent: KMail/1.4.3 References: <20021126151256.3883.qmail@bsd.ultra-secure.de> <200211261638.36371.znerd@FreeBSD.org> <20021126163439.4403.qmail@bsd.ultra-secure.de> In-Reply-To: <20021126163439.4403.qmail@bsd.ultra-secure.de> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200211261747.59042.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Just add some verbose debugging code in the Jahia code at the specified spot, recompile and test again. Ernst On Tuesday 26 November 2002 17:34, Rainer Duffner wrote: > Ernst de Haan writes: > > Rainer, > > > > This looks like an application problem for sure. Can you take a peek at > > the source code? Specifically: > > > > org/jahia/services/usermanager/JahiaUserManagerRoutingService.java > > line 151 > > > > The statement on that line generates a NullPointerException. Perhaps it > > is due to some configuration difference. > > I have corresponded with the developers of Jahia (who are very friendly > and helpful) about this, and you'll find their say on this in the > attachement. > > The software comes with source-code. > > > cheers, > Rainer -- Ernst de Haan Development Team Leader Wanadoo Nederland B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Nov 27 17:36:50 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C86B37B401 for ; Wed, 27 Nov 2002 17:36:48 -0800 (PST) Received: from bsd.ultra-secure.de (bsd.ultra-secure.de [62.146.46.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 403AE43E88 for ; Wed, 27 Nov 2002 17:36:47 -0800 (PST) (envelope-from rainer@bsd.ultra-secure.de) Received: (qmail 13576 invoked by uid 1001); 28 Nov 2002 01:36:51 -0000 Message-ID: <20021128013651.13575.qmail@bsd.ultra-secure.de> From: "Rainer Duffner" To: freebsd-java@freebsd.org Subject: Re: Problem with Jahia Date: Thu, 28 Nov 2002 02:36:51 +0100 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, this is what I got sent from the jahia-developers: As I said, the same bug happens with the linux-jdk and FreeBSD's native JDK (on FreeBSD). cheers, Rainer -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rainer Duffner Munich rainer@ultra-secure.de Germany http://www.i-duffner.de Freising ======================================== When shall we three meet again In thunder, lightning, or in rain? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------Forwarded message ---------- Date: Mon, 25 Nov 2002 10:19:58 +0100 To: From: Serge Huber Subject: Re: Help with install on FreeBSD needed. In-Reply-To: <20021124213728.31490.qmail@bsd.ultra-secure.de> References: <5.1.0.14.0.20021124213636.0265f048@mail.jahia.com> <5.1.0.14.0.20021122150207.03ea6dd0@mail.jahia.com> <5.2.0.9.0.20021122102439.017e7e28@mail.jahia.com> <5.2.0.9.0.20021122102439.017e7e28@mail.jahia.com> <5.1.0.14.0.20021122150207.03ea6dd0@mail.jahia.com> <5.1.0.14.0.20021124213636.0265f048@mail.jahia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Hi Rainer, Indeed the logs don't say much more :( Anyway I've checked the code in which the exception is generated, and it looks like this : public void init( JahiaPrivateSettings jSettings ) throws JahiaInitializationException { try { loadConfiguration(jSettings.jahiaEtcDiskPath + this.CONFIG_PATH + File.separator + this.CONFIG_FILE_NAME); } catch (JahiaException je) { JahiaConsole.printe("JahiaUserManagerRoutingService.init#" + "Error while trying to load configuration from " + jSettings.jahiaEtcDiskPath + this.CONFIG_PATH + File.separator + this.CONFIG_FILE_NAME, je); throw new JahiaInitializationException("Error while trying to load configuration from " + jSettings.jahiaEtcDiskPath + this.CONFIG_PATH + File.separator + this.CONFIG_FILE_NAME + " Exception:" + je.getMessage()); } Iterator providerIter = providersTable.keySet().iterator(); while (providerIter.hasNext()) { String curProviderKey = (String) providerIter.next(); UserManagerProviderBean curProvider = (UserManagerProviderBean) providersTable.get(curProviderKey); curProvider.getInstance().init(jSettings); } } On the last line (curProvider.getInstance().init(jSettings)) is where the null pointer exception is generated. I'm guessing the curProvider.getInstance() call is failing for some reason. The getInstance() call uses reflection to get the instance, and maybe this is failing on FreeBSD for some reason ?! Regards, Serge Huber. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 2:35:55 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B04F37B401 for ; Thu, 28 Nov 2002 02:35:55 -0800 (PST) Received: from mgate3.rrzn.uni-hannover.de (mgate3.rrzn.uni-hannover.de [130.75.2.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAAEC43ECD for ; Thu, 28 Nov 2002 02:35:53 -0800 (PST) (envelope-from jr@pmp.uni-hannover.de) Received: from www.pmp.uni-hannover.de (www.pmp.uni-hannover.de [130.75.117.2]) by mgate3.rrzn.uni-hannover.de (8.12.6/8.12.6) with ESMTP id gASAZoan016871 for ; Thu, 28 Nov 2002 11:35:51 +0100 (MET) Received: from theq.pmp.uni-hannover.de (theq.pmp.uni-hannover.de [130.75.117.4]) by www.pmp.uni-hannover.de (Postfix) with ESMTP id 1A0FF30B for ; Thu, 28 Nov 2002 11:35:46 +0100 (CET) Content-Type: text/plain; charset="us-ascii" From: Jens Reiche To: freebsd-java@freebsd.org Subject: Problems with the Java-Performance Date: Thu, 28 Nov 2002 11:35:45 +0100 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211281135.45870.jr@pmp.uni-hannover.de> X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Since we have installed freeBSD on our server, my numerical programs are=20 running more than five times slower with the native freeBSD-Java (v. 1.3.= 1) compared to the former IBM-Java 1.3.1 on Suse-Linux 8.0. Using the Linux-Version of Sun's JDK 1.4.1 over the binary compability th= e=20 difference is even worse (a factor about 10!). Does somebody know why and how I can solve this problem? Jens To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 2:37:58 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6449337B401 for ; Thu, 28 Nov 2002 02:37:57 -0800 (PST) Received: from seed.net.tw (sn10.seed.net.tw [139.175.54.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85C2943F06 for ; Thu, 28 Nov 2002 02:37:51 -0800 (PST) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.151.142] (port=49188 helo=leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.10:3) id 18HM3K-000Lev-00 for freebsd-java@FreeBSD.ORG; Thu, 28 Nov 2002 18:37:50 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id gASAbn8t048595 for ; Thu, 28 Nov 2002 18:37:49 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id gASAbnPR048594 for freebsd-java@FreeBSD.ORG; Thu, 28 Nov 2002 18:37:49 +0800 (CST) Date: Thu, 28 Nov 2002 18:37:49 +0800 From: JY To: freebsd-java@FreeBSD.ORG Subject: Re: Problems with the Java-Performance Message-ID: <20021128103749.GA48586@leafy.idv.tw> Mail-Followup-To: freebsd-java@FreeBSD.ORG References: <200211281135.45870.jr@pmp.uni-hannover.de> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <200211281135.45870.jr@pmp.uni-hannover.de> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Nov 28, 2002 at 11:35:45AM +0100, Jens Reiche wrote: > Since we have installed freeBSD on our server, my numerical programs are > running more than five times slower with the native freeBSD-Java (v. 1.3.1) > compared to the former IBM-Java 1.3.1 on Suse-Linux 8.0. > Using the Linux-Version of Sun's JDK 1.4.1 over the binary compability the > difference is even worse (a factor about 10!). > Does somebody know why and how I can solve this problem? > > Jens > Hi, Try java -version and see if you run the classic VM. If so, that's the problem. You will have to search this mailing list for installation of HotSpot VM and try them with your program. Cheers, JY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 2:38:57 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25A9F37B401 for ; Thu, 28 Nov 2002 02:38:56 -0800 (PST) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5227343EAF for ; Thu, 28 Nov 2002 02:38:55 -0800 (PST) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id gASAcuHv050668; Thu, 28 Nov 2002 11:38:56 +0100 (CET) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id gASAcuQ4050667; Thu, 28 Nov 2002 11:38:56 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Jens Reiche , freebsd-java@freebsd.org Subject: Re: Problems with the Java-Performance Date: Thu, 28 Nov 2002 11:38:56 +0100 User-Agent: KMail/1.4.3 References: <200211281135.45870.jr@pmp.uni-hannover.de> In-Reply-To: <200211281135.45870.jr@pmp.uni-hannover.de> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200211281138.56261.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Gutentag Jens! > Since we have installed freeBSD on our server, my numerical programs are > running more than five times slower with the native freeBSD-Java (v. > 1.3.1) compared to the former IBM-Java 1.3.1 on Suse-Linux 8.0. > Using the Linux-Version of Sun's JDK 1.4.1 over the binary compability > the difference is even worse (a factor about 10!). > Does somebody know why and how I can solve this problem? Do you use HotSpot? What version of FreeBSD do you use? How did you measure the performance difference? Ernst -- Ernst de Haan Development Team Leader Wanadoo Nederland B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 2:40:19 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BB5637B401 for ; Thu, 28 Nov 2002 02:40:18 -0800 (PST) Received: from cetelem.hu (mail2.cetelem.hu [194.143.226.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75AD943E9C for ; Thu, 28 Nov 2002 02:40:16 -0800 (PST) (envelope-from kuti@cetelem.hu) Received: from server.cetelem.hu (unverified) by cetelem.hu (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Thu, 28 Nov 2002 11:38:16 +0100 Received: from kuti (192.9.210.105 [192.9.210.105]) by server.cetelem.hu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id W879CAHB; Thu, 28 Nov 2002 11:34:24 +0100 Date: Thu, 28 Nov 2002 11:40:30 +0100 From: Zsolt Kuti To: freebsd-java@freebsd.org Subject: Re: Problems with the Java-Performance Message-Id: <20021128114030.671a2bad.kuti@cetelem.hu> In-Reply-To: <200211281135.45870.jr@pmp.uni-hannover.de> References: <200211281135.45870.jr@pmp.uni-hannover.de> Organization: Magyar Cetelem Rt. X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 28 Nov 2002 11:35:45 +0100 Jens Reiche wrote: > Since we have installed freeBSD on our server, my numerical programs > are running more than five times slower with the native freeBSD-Java > (v. 1.3.1) compared to the former IBM-Java 1.3.1 on Suse-Linux 8.0. > Using the Linux-Version of Sun's JDK 1.4.1 over the binary compability > the difference is even worse (a factor about 10!). > Does somebody know why and how I can solve this problem? How about a JIT? Zsolt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 3:22:10 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 675E237B401 for ; Thu, 28 Nov 2002 03:22:09 -0800 (PST) Received: from mgate3.rrzn.uni-hannover.de (mgate3.rrzn.uni-hannover.de [130.75.2.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8681643EB2 for ; Thu, 28 Nov 2002 03:22:08 -0800 (PST) (envelope-from jr@pmp.uni-hannover.de) Received: from www.pmp.uni-hannover.de (www.pmp.uni-hannover.de [130.75.117.2]) by mgate3.rrzn.uni-hannover.de (8.12.6/8.12.6) with ESMTP id gASBM2an018592 for ; Thu, 28 Nov 2002 12:22:06 +0100 (MET) Received: from theq.pmp.uni-hannover.de (theq.pmp.uni-hannover.de [130.75.117.4]) by www.pmp.uni-hannover.de (Postfix) with ESMTP id D72B411D for ; Thu, 28 Nov 2002 12:21:57 +0100 (CET) Content-Type: text/plain; charset="big5" From: Jens Reiche To: freebsd-java@FreeBSD.ORG Subject: Re: Problems with the Java-Performance Date: Thu, 28 Nov 2002 12:21:57 +0100 User-Agent: KMail/1.4.3 References: <200211281135.45870.jr@pmp.uni-hannover.de> <20021128103749.GA48586@leafy.idv.tw> In-Reply-To: <20021128103749.GA48586@leafy.idv.tw> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211281221.57772.jr@pmp.uni-hannover.de> X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am using: java version "1.3.1-p7" Java(TM) 2 Runtime Environment, Standard Edition (build=20 1.3.1-p7-root-021112-18:40) Classic VM (build 1.3.1-p7-root-021112-18:40, green threads, nojit) on=20 FreeBSD theq.pmp.uni-hannover.de 4.7-RELEASE FreeBSD 4.7-RELEASE. I measured the time by using the following lines in java: at the beginning: long timeZero=3DSystem.currentTimeMillis(); and at the end of the program: System.out.println("Time spend on patching data and fitting:=20 "+((System.currentTimeMillis()-timeZero)/1000.f)+" s."); But I got the equivalent results using the commandline time comman= d. I looked up the mailinglist for hotspot, what is hotspot and where is the= =20 difference to my java version? Jens To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 4:26:10 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D6F237B401 for ; Thu, 28 Nov 2002 04:26:09 -0800 (PST) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F1E143EC2 for ; Thu, 28 Nov 2002 04:26:03 -0800 (PST) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id gASFRgip078202; Thu, 28 Nov 2002 15:27:42 GMT Received: (from ml@localhost) by phantom.cris.net (8.12.2/8.12.2) id gASCV8au098398; Thu, 28 Nov 2002 14:31:08 +0200 (EET) (envelope-from ml) Date: Thu, 28 Nov 2002 14:31:08 +0200 From: Alexey Zelkin To: Jens Reiche Cc: freebsd-java@FreeBSD.ORG Subject: Re: Problems with the Java-Performance Message-ID: <20021128143108.A98337@phantom.cris.net> References: <200211281135.45870.jr@pmp.uni-hannover.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200211281135.45870.jr@pmp.uni-hannover.de>; from jr@pmp.uni-hannover.de on Thu, Nov 28, 2002 at 11:35:45AM +0100 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, Well, I'll not suggest way of improving of performance, but I'd be interesting to compare it against native jdk 1.4.0 and linux native 1.4.1. If your code is not restricted, you may send it to me, so we can compare results. On Thu, Nov 28, 2002 at 11:35:45AM +0100, Jens Reiche wrote: > Since we have installed freeBSD on our server, my numerical programs are > running more than five times slower with the native freeBSD-Java (v. 1.3.1) > compared to the former IBM-Java 1.3.1 on Suse-Linux 8.0. > Using the Linux-Version of Sun's JDK 1.4.1 over the binary compability the > difference is even worse (a factor about 10!). > Does somebody know why and how I can solve this problem? > > Jens > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 4:29: 5 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 538CC37B401 for ; Thu, 28 Nov 2002 04:29:04 -0800 (PST) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB6F943EC2 for ; Thu, 28 Nov 2002 04:29:00 -0800 (PST) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id gASFUcip078277; Thu, 28 Nov 2002 15:30:39 GMT Received: (from ml@localhost) by phantom.cris.net (8.12.2/8.12.2) id gASCY3d8098452; Thu, 28 Nov 2002 14:34:03 +0200 (EET) (envelope-from ml) Date: Thu, 28 Nov 2002 14:34:03 +0200 From: Alexey Zelkin To: Daniel Eischen Cc: freebsd-java@FreeBSD.ORG Subject: Re: PATCH - changing libc_r to use *context() (fwd) Message-ID: <20021128143403.A98438@phantom.cris.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from eischen@pcnet1.pcnet.com on Mon, Nov 25, 2002 at 11:00:03AM -0500 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Wow! Cool. Did you do performance measurements ? I think such switch will cause performance slowdown. PS: Any plans on MFCing these changes ? On Mon, Nov 25, 2002 at 11:00:03AM -0500, Daniel Eischen wrote: > FYI, this patch should have everything you've been asking for. > > To answer some potential questions, a threads context is > always in thread->ctx as a ucontext_t. A thread's interrupted > context is stored in the same location. > > Signal handlers caused by pthread_kill() now also get a > siginfo and ucontext passed to them (assuming the handler > was installed with SA_SIGINFO). > > ---------- Forwarded message ---------- > Date: Mon, 25 Nov 2002 10:52:04 -0500 > From: Daniel Eischen > To: freebsd-current@freebsd.org > Subject: PATCH - changing libc_r to use *context() > > There's a patch at: > > http://people.freebsd.org/~deischen/libc_r.diffs > > that changes libc_r to use *context() instead of setjmp/longjmp. There > are some other changes that the -java folks have wanted for some time > (signal handlers installed with SA_SIGINFO now always get a siginfo_t > and ucontext_t). > > Normally I would wait until after 5.0-release to do this, but the > ia64 folks (perhaps the sparc64?) really wanted this. > > I'd like some feedback on whether some heavy threaded apps (GNOME, > OpenOffice, Java, etc) have any problems with this patch before > asking re@ for commit permission. BTW, it also needs testing on > alpha. > > Thanks, > > -- > Dan Eischen > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 4:33: 1 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AC3937B401 for ; Thu, 28 Nov 2002 04:33:00 -0800 (PST) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8259543EB2 for ; Thu, 28 Nov 2002 04:32:58 -0800 (PST) (envelope-from mantzios@softlab.ece.ntua.gr) Received: from theseas.softlab.ece.ntua.gr (theseas.softlab.ece.ntua.gr [147.102.1.1]) by ulysses.noc.ntua.gr (8.11.6/8.11.6) with ESMTP id gASBFhN04638; Thu, 28 Nov 2002 13:15:43 +0200 (EET) Received: from localhost (mantzios@localhost) by theseas.softlab.ece.ntua.gr (8.11.6/8.11.6) with ESMTP id gASBFhS23739; Thu, 28 Nov 2002 13:15:43 +0200 (EET) Date: Thu, 28 Nov 2002 13:15:43 +0200 (EET) From: Mantzios Achilleus To: Jens Reiche Cc: Subject: Re: Problems with the Java-Performance Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Since we have installed freeBSD on our server, my numerical programs are >running more than five times slower with the native freeBSD-Java (v. >1.3.1) >compared to the former IBM-Java 1.3.1 on Suse-Linux 8.0. >Using the Linux-Version of Sun's JDK 1.4.1 over the binary compability >the >difference is even worse (a factor about 10!). >Does somebody know why and how I can solve this problem? I have tried native jdk1.3.1p7_2 (with hotspot build), with jboss. My app has a lot of numerical processing,server-side graphics, some EJBs, jsps,servlets and the like. After spending hours of benchmarking, i concluded that native jdk1.3.1p7_2 with GREEN threads and OpenJIT 1.1.16 is the best bet. OpenJIT really rocks! (I can beat an identical linux box running blackdown in run times). Also shujit 0.7.13 works ok too. But the native hotspot hasnt proven that usable untill now. > Jens P.S. Anybody knows what happened with the development of OpenJIT?? shujit seems quite active, whereas OpenJIT seems a little bit dead. Sure there is no massive need of JITs today with hotspot on most systems, but a good JIT engine like OpenJIT seems a must have for* BSDs (at least to me). ---------------------------------------------------------------- | go to the source -> http://www.softlab.ece.ntua.gr/~mantzios | ---------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 5: 0:50 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68B2037B401 for ; Thu, 28 Nov 2002 05:00:48 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C843F43EA9 for ; Thu, 28 Nov 2002 05:00:47 -0800 (PST) (envelope-from eischen@pcnet1.pcnet.com) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.3/8.12.1) with ESMTP id gASD0fVW026966; Thu, 28 Nov 2002 08:00:41 -0500 (EST) Date: Thu, 28 Nov 2002 08:00:41 -0500 (EST) From: Daniel Eischen To: Alexey Zelkin Cc: freebsd-java@FreeBSD.ORG Subject: Re: PATCH - changing libc_r to use *context() (fwd) In-Reply-To: <20021128143403.A98438@phantom.cris.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 28 Nov 2002, Alexey Zelkin wrote: > Wow! Cool. Did you do performance measurements ? I think such > switch will cause performance slowdown. No, it shouldn't be much slower, at least for i386. Each arch now has a MD header file which is used by the thread scheduler. This file has to define THR_SETCONTEXT, THR_GETCONTEXT, and THR_SWAPCONTEXT. For i386, we provide userland versions of the *context() calls. For other archs that just want to get up and running, they can define these to be the system calls. And since libc_r is going away eventually, there's really no nead for optimizing them for other archs anyways. > PS: Any plans on MFCing these changes ? I don't see them working on -stable, since it doesn't have *context() system calls. It could work for i386, but there are some other problems in the kernel that may prevent it anyways (floating point state is not aligned). And on -current, this patch isn't quite right. FPU state isn't being properly restored and the kernel needs to be fixed to align the FPU state also. > On Mon, Nov 25, 2002 at 11:00:03AM -0500, Daniel Eischen wrote: > > FYI, this patch should have everything you've been asking for. > > > > To answer some potential questions, a threads context is > > always in thread->ctx as a ucontext_t. A thread's interrupted > > context is stored in the same location. > > > > Signal handlers caused by pthread_kill() now also get a > > siginfo and ucontext passed to them (assuming the handler > > was installed with SA_SIGINFO). > > > > ---------- Forwarded message ---------- > > Date: Mon, 25 Nov 2002 10:52:04 -0500 > > From: Daniel Eischen > > To: freebsd-current@freebsd.org > > Subject: PATCH - changing libc_r to use *context() > > > > There's a patch at: > > > > http://people.freebsd.org/~deischen/libc_r.diffs > > > > that changes libc_r to use *context() instead of setjmp/longjmp. There > > are some other changes that the -java folks have wanted for some time > > (signal handlers installed with SA_SIGINFO now always get a siginfo_t > > and ucontext_t). > > > > Normally I would wait until after 5.0-release to do this, but the > > ia64 folks (perhaps the sparc64?) really wanted this. > > > > I'd like some feedback on whether some heavy threaded apps (GNOME, > > OpenOffice, Java, etc) have any problems with this patch before > > asking re@ for commit permission. BTW, it also needs testing on > > alpha. > > > > Thanks, > > > > -- > > Dan Eischen > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 16:27:28 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84FDD37B401 for ; Thu, 28 Nov 2002 16:27:27 -0800 (PST) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id E659243EB2 for ; Thu, 28 Nov 2002 16:27:26 -0800 (PST) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 18HZ03-0000TV-00; Thu, 28 Nov 2002 16:27:19 -0800 Date: Thu, 28 Nov 2002 16:27:18 -0800 To: Mantzios Achilleus Cc: Jens Reiche , freebsd-java@freebsd.org, "Bill Huey (Hui)" Subject: Re: Problems with the Java-Performance Message-ID: <20021129002718.GA1818@gnuppy.monkey.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Nov 28, 2002 at 01:15:43PM +0200, Mantzios Achilleus wrote: > My app has a lot of numerical processing,server-side graphics, > some EJBs, jsps,servlets and the like. The mixture of activities could be masking funny delays problems that are known with the current patch release. It's fixed in my source tree. > Anybody knows what happened with the development of OpenJIT?? > shujit seems quite active, whereas OpenJIT seems a little bit > dead. > > Sure there is no massive need of JITs today with hotspot > on most systems, but a good JIT engine like OpenJIT > seems a must have for* BSDs (at least to me). HotSpot should be pretty ass kicking and more significantly so than just about every JIT out there except, say, for IBM's stuff. We're pretty close to Linux's HotSpot performance as far as raw CPU operations goes, so I don't think your problems are related to the compiler. A Sieve test I ran was equivalent to gcc at -O1, so it wasn't whimpy in any way what so ever. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 16:35:10 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18BFC37B401 for ; Thu, 28 Nov 2002 16:35:09 -0800 (PST) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AB4843E9C for ; Thu, 28 Nov 2002 16:35:08 -0800 (PST) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 18HZ7O-0000Wz-00; Thu, 28 Nov 2002 16:34:54 -0800 Date: Thu, 28 Nov 2002 16:34:53 -0800 To: Daniel Eischen Cc: Alexey Zelkin , freebsd-java@FreeBSD.ORG, "Bill Huey (Hui)" Subject: Re: PATCH - changing libc_r to use *context() (fwd) Message-ID: <20021129003453.GB1818@gnuppy.monkey.org> References: <20021128143403.A98438@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Nov 28, 2002 at 08:00:41AM -0500, Daniel Eischen wrote: > No, it shouldn't be much slower, at least for i386. Each arch > now has a MD header file which is used by the thread scheduler. > This file has to define THR_SETCONTEXT, THR_GETCONTEXT, and > THR_SWAPCONTEXT. For i386, we provide userland versions of > the *context() calls. For other archs that just want to get > up and running, they can define these to be the system calls. > And since libc_r is going away eventually, there's really > no nead for optimizing them for other archs anyways. I looked at the patch and it's exactly what we need for doing the kind of ucontext trickery we're doing now and need in the future. ;) Both native versions of J2SE are i386 only at this time, so it'll fine for folks like us, not sure what you're having to deal with at this time for other architectures. If compilation of those changes can be made architectural specific, then putting in place will be nice. That's up to you though. I'm getting the register values (esp, eip, ebp) out of the backing jmp_buf for now, which is sufficient at this time and the need for a ucontext isn't terrible urgent. I'll switch once that's all in place and then "fast path" the entire thing. > I don't see them working on -stable, since it doesn't have > *context() system calls. It could work for i386, but there > are some other problems in the kernel that may prevent it > anyways (floating point state is not aligned). > > And on -current, this patch isn't quite right. FPU state > isn't being properly restored and the kernel needs to be > fixed to align the FPU state also. I'm targetting all of my stuff for -current at this time because of the threading issues. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 28 23:57:48 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08B5737B401 for ; Thu, 28 Nov 2002 23:57:47 -0800 (PST) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 473B643E4A for ; Thu, 28 Nov 2002 23:57:45 -0800 (PST) (envelope-from mantzios@softlab.ece.ntua.gr) Received: from theseas.softlab.ece.ntua.gr (theseas.softlab.ece.ntua.gr [147.102.1.1]) by ulysses.noc.ntua.gr (8.11.6/8.11.6) with ESMTP id gAT7vfN20061; Fri, 29 Nov 2002 09:57:42 +0200 (EET) Received: from localhost (mantzios@localhost) by theseas.softlab.ece.ntua.gr (8.11.6/8.11.6) with ESMTP id gAT7vfM23278; Fri, 29 Nov 2002 09:57:41 +0200 (EET) Date: Fri, 29 Nov 2002 09:57:40 +0200 (EET) From: Mantzios Achilleus To: Bill Huey Cc: Jens Reiche , Subject: Re: Problems with the Java-Performance In-Reply-To: <20021129002718.GA1818@gnuppy.monkey.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ---------------------------------------------------------------- | go to the source -> http://www.softlab.ece.ntua.gr/~mantzios | ---------------------------------------------------------------- On Thu, 28 Nov 2002, Bill Huey wrote: > On Thu, Nov 28, 2002 at 01:15:43PM +0200, Mantzios Achilleus wrote: > > My app has a lot of numerical processing,server-side graphics, > > some EJBs, jsps,servlets and the like. > > The mixture of activities could be masking funny delays problems > that are known with the current patch release. It's fixed in my > source tree. You mean -classic -native here? (Thats what i meant). > > > Anybody knows what happened with the development of OpenJIT?? > > shujit seems quite active, whereas OpenJIT seems a little bit > > dead. > > > > Sure there is no massive need of JITs today with hotspot > > on most systems, but a good JIT engine like OpenJIT > > seems a must have for* BSDs (at least to me). > > HotSpot should be pretty ass kicking and more significantly so > than just about every JIT out there except, say, for IBM's stuff. > > We're pretty close to Linux's HotSpot performance as far as raw > CPU operations goes, so I don't think your problems are related > to the compiler. A Sieve test I ran was equivalent to gcc at -O1, > so it wasn't whimpy in any way what so ever. > My problems are related to the fact that i cannot start jboss with hotspot 1.3.1p7_2, and i know of no one that had success with jboss 3.0.3 and the native hotspot. I hope this will change in the future :) > bill > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Nov 29 0:14:23 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5564637B401 for ; Fri, 29 Nov 2002 00:14:22 -0800 (PST) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F56E43E4A for ; Fri, 29 Nov 2002 00:14:20 -0800 (PST) (envelope-from mantzios@softlab.ece.ntua.gr) Received: from theseas.softlab.ece.ntua.gr (theseas.softlab.ece.ntua.gr [147.102.1.1]) by ulysses.noc.ntua.gr (8.11.6/8.11.6) with ESMTP id gAT8EDN21286; Fri, 29 Nov 2002 10:14:13 +0200 (EET) Received: from localhost (mantzios@localhost) by theseas.softlab.ece.ntua.gr (8.11.6/8.11.6) with ESMTP id gAT8ED125634; Fri, 29 Nov 2002 10:14:13 +0200 (EET) Date: Fri, 29 Nov 2002 10:14:13 +0200 (EET) From: Mantzios Achilleus To: Bill Huey Cc: Jens Reiche , Subject: Re: Problems with the Java-Performance In-Reply-To: <20021129002718.GA1818@gnuppy.monkey.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Sorry for the incomplete reply. I had these delay problems with -native -classic that Bill addressed. But at least on 4.7-RELEASE-p2 with native jdk-1.3.1p7_2/hotspot i had no luck starting jboss. Achilleus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Nov 29 11:15:18 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B35C37B401 for ; Fri, 29 Nov 2002 11:15:17 -0800 (PST) Received: from smg.is.titech.ac.jp (smg.is.titech.ac.jp [131.112.35.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DB5C43E9C for ; Fri, 29 Nov 2002 11:15:16 -0800 (PST) (envelope-from fuyuhik8@is.titech.ac.jp) Received: from tripper.private (smg [131.112.35.1]) by smg.is.titech.ac.jp (Postfix) with ESMTP id 4546E2B0FD; Sat, 30 Nov 2002 04:15:10 +0900 (JST) Date: Sat, 30 Nov 2002 04:15:02 +0900 Message-ID: <55r8d4193d.wl@dittohead.is.titech.ac.jp> From: Fuyuhiko Maruyama To: Marc Recht Cc: K.J.Koster@kpn.com, freebsd-java@FreeBSD.ORG Subject: Re: eclipse port In-Reply-To: <1034774906.37159.13.camel@leeloo.intern.geht.de> References: <59063B5B4D98D311BC0D0001FA7E45220A3567A6@l04.research.kpn.com> <1034774906.37159.13.camel@leeloo.intern.geht.de> User-Agent: Wanderlust/2.11.0 (Wonderwall) on XEmacs/21.5.5 (beets) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, On 16 Oct 2002 15:28:25 +0200, Marc Recht wrote: > Hi! > > > A friend of mine has just pointed me to Eclipse this week, and I have been > > reluctant to try it because there is no FreeBSD port for it. :) > I had sort of the same feeling while looking at the eclipse page. "No > FreeBSD version - can't be." :) Silly IBM.. > > > > I'd say that ${PREFIX}/eclipse is a good place to stick it. Look at how the > > JBuilder port does it, since that is another port of this type. > Thanks! I'll look at this. > > > I'll test this on -stable if you send me the port directory. > I hope to have a more complete port ready untill sunday... > > Marc If you haven't done porting GTK+ version of eclipse, my work may help you. In fact, I have concentrated only GTK+ version ;-). http://matsu-www.is.titech.ac.jp/~maruyama/d/freebsd/eclipse-freebsd.tar.bz2 is the porting kit that I made. -- Fuyuhiko MARUYAMA Matsuoka laboratory, Department of Mathematical and Computing Sciences, Graduate School of Information Science and Engineering, Tokyo Institute of Technology. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message