From owner-freebsd-java Sun Mar 5 1: 7:26 2000 Delivered-To: freebsd-java@freebsd.org Received: from nohow.demon.co.uk (nohow.demon.co.uk [212.228.18.189]) by hub.freebsd.org (Postfix) with ESMTP id 6A6DB37B9A9; Sun, 5 Mar 2000 01:07:22 -0800 (PST) (envelope-from noway@nohow.demon.co.uk) Received: from localhost (noway@localhost) by nohow.demon.co.uk (8.9.3/8.9.3) with ESMTP id JAA59845; Sun, 5 Mar 2000 09:07:11 GMT (envelope-from noway@nohow.demon.co.uk) Date: Sun, 5 Mar 2000 09:07:11 +0000 (GMT) From: Jose Marques To: sada@FreeBSD.org Cc: freebsd-java@FreeBSD.org Subject: Re: linux-jdk-1.2.2 ports In-Reply-To: <20000305063447B.sada@rr.iij4u.or.jp> Message-ID: X-No-Archive: yes MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 5 Mar 2000 sada@FreeBSD.org wrote: > Hi, > > I'd like to import Jose Marques's linux-jdk-1.2.2 ports > into ports-current tree by next ports freeze. > > http://www.jmcm.org/tech/ports/linux_jdk.html > > Suggestion or objection ? Have the Linux emulation patches needed to allow this JDK to be used for ApacheJserv and other server applications made it into FreeBSD 3.4/4.0 yet? If not then the port would be broken for a lot of users. -- Jose Marques To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Mar 5 11: 4:16 2000 Delivered-To: freebsd-java@freebsd.org Received: from mfo01.iij.ad.jp (mfo01.iij.ad.jp [202.232.2.118]) by hub.freebsd.org (Postfix) with ESMTP id 5972837BAB7; Sun, 5 Mar 2000 11:04:10 -0800 (PST) (envelope-from sada@rr.iij4u.or.jp) Received: from rr.iij4u.or.jp (rr.iij4u.or.jp [210.130.0.42]) by mfo01.iij.ad.jp (8.8.8/MFO1.3) with ESMTP id EAA26499; Mon, 6 Mar 2000 04:04:07 +0900 (JST) Received: from localhost (h154.p104.iij4u.or.jp [210.130.104.154]) by rr.iij4u.or.jp (8.8.8+2.2IIJ/4U1.1) with ESMTP id EAA28521; Mon, 6 Mar 2000 04:04:07 +0900 (JST) To: noway@nohow.demon.co.uk Cc: sada@FreeBSD.ORG, freebsd-java@FreeBSD.ORG Subject: Re: linux-jdk-1.2.2 ports In-Reply-To: Your message of "Sun, 5 Mar 2000 09:07:11 +0000 (GMT)". From: sada@rr.iij4u.or.jp (SADA Kenji) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22] 1999-12/19(Sun) Message-Id: <20000306040130L.sada@rr.iij4u.or.jp> Date: Mon, 06 Mar 2000 04:01:30 +0900 X-Dispatcher: imput version 990905(IM130) Lines: 15 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article noway@nohow.demon.co.uk writes: >> > I'd like to import Jose Marques's linux-jdk-1.2.2 ports >> > into ports-current tree by next ports freeze. >> > >> > http://www.jmcm.org/tech/ports/linux_jdk.html >> > >> > Suggestion or objection ? >> >> Have the Linux emulation patches needed to allow this JDK to be used for >> ApacheJserv and other server applications made it into FreeBSD 3.4/4.0 >> yet? If not then the port would be broken for a lot of users. Could you introduce me some pointers to the patch ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Mar 5 11:17:44 2000 Delivered-To: freebsd-java@freebsd.org Received: from www.kpi.com.au (www.kpi.com.au [203.31.83.86]) by hub.freebsd.org (Postfix) with ESMTP id DBC3237BAD3; Sun, 5 Mar 2000 11:17:35 -0800 (PST) (envelope-from shevlandj@kpi.com.au) Received: from elite (pA33.hbt.southcom.com.au [203.60.23.52]) by www.kpi.com.au (8.9.3/8.9.3) with SMTP id GAA55094; Mon, 6 Mar 2000 06:17:08 +1100 (EST) (envelope-from shevlandj@kpi.com.au) From: "Joe Shevland" To: "SADA Kenji" , Cc: , Subject: RE: linux-jdk-1.2.2 ports Date: Mon, 6 Mar 2000 06:18:38 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0000_01BF8733.D0479FE0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20000306040130L.sada@rr.iij4u.or.jp> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0000_01BF8733.D0479FE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit This was sent roughly about a month ago and worked out for me then... Joe ---- These patches only work on FreeBSD 3.4-STABLE - anything else, and you're on your own. Save the patches in a file, say /tmp/patches become root cd /usr/src/sys/i386/linux patch -p0 < /tmp/patches if the patches succeed, (they should fail only if you are not 3.4-STABLE) cd ../../modules/linux make I get some warnings about linux_sysent.c - they're ok. if the make succeeds, make install make clean Now you have two choices: The easy choice: reboot The fast choice: kill all processes using linux emulation kldunload linux kldload linux ---- John Rochester, Java Developer e-Net Software, Bath, UK jr@cs.mun.ca john.rochester@enetgroup.co.uk ---- -----Original Message----- From: owner-freebsd-java@FreeBSD.ORG [mailto:owner-freebsd-java@FreeBSD.ORG]On Behalf Of SADA Kenji Sent: Sunday, 5 March 2000 11:02 AM To: noway@nohow.demon.co.uk Cc: sada@FreeBSD.ORG; freebsd-java@FreeBSD.ORG Subject: Re: linux-jdk-1.2.2 ports In article noway@nohow.demon.co.uk writes: >> > I'd like to import Jose Marques's linux-jdk-1.2.2 ports >> > into ports-current tree by next ports freeze. >> > >> > http://www.jmcm.org/tech/ports/linux_jdk.html >> > >> > Suggestion or objection ? >> >> Have the Linux emulation patches needed to allow this JDK to be used for >> ApacheJserv and other server applications made it into FreeBSD 3.4/4.0 >> yet? If not then the port would be broken for a lot of users. Could you introduce me some pointers to the patch ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message ------=_NextPart_000_0000_01BF8733.D0479FE0 Content-Type: text/plain; name="patches.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="patches.txt" --- linux_socket.c.orig Wed Feb 2 12:49:23 2000 +++ linux_socket.c Wed Feb 2 13:00:25 2000 @@ -441,6 +441,11 @@ caddr_t name; int *anamelen; } */ bsd_args; + struct fcntl_args /* { + int fd; + int cmd; + long arg; + } */ f_args; int error; =20 if ((error=3Dcopyin((caddr_t)args, (caddr_t)&linux_args, = sizeof(linux_args))) ) @@ -448,7 +453,23 @@ bsd_args.s =3D linux_args.s; bsd_args.name =3D (caddr_t)linux_args.addr; bsd_args.anamelen =3D linux_args.namelen; - return oaccept(p, &bsd_args); + if (error =3D oaccept(p, &bsd_args)) + return error; + /* + * linux appears not to copy flags from the parent socket to the + * accepted one, so we must clear the flags in the new descriptor. + */ + f_args.fd =3D p->p_retval[0]; + f_args.cmd =3D F_SETFL; + f_args.arg =3D 0; + /* + * we ignore errors here since otherwise we would have an open file + * descriptor that wasn't returned to the user. + */ + (void) fcntl(p, &f_args); + /* put the file descriptor back as the return value */ + p->p_retval[0] =3D f_args.fd; + return 0; } =20 struct linux_getsockname_args { --- linux_file.c.orig Wed Feb 2 12:49:18 2000 +++ linux_file.c Wed Feb 2 13:06:27 2000 @@ -196,18 +196,10 @@ } */ fcntl_args;=20 struct linux_flock linux_flock; struct flock *bsd_flock; - struct filedesc *fdp; - struct file *fp; - struct vnode *vp; - struct vattr va; - long pgid; - struct pgrp *pgrp; - struct tty *tp, *(*d_tty) __P((dev_t)); caddr_t sg; =20 sg =3D stackgap_init(); bsd_flock =3D (struct flock *)stackgap_alloc(&sg, sizeof(struct = flock)); - d_tty =3D NULL; =20 #ifdef DEBUG printf("Linux-emul(%d): fcntl(%d, %08x, *)\n", @@ -286,47 +278,9 @@ =20 case LINUX_F_SETOWN: case LINUX_F_GETOWN: - /* - * We need to route around the normal fcntl() for these calls, - * since it uses TIOC{G,S}PGRP, which is too restrictive for - * Linux F_{G,S}ETOWN semantics. For sockets, this problem - * does not exist. - */ - fdp =3D p->p_fd; - if ((u_int)args->fd >=3D fdp->fd_nfiles || - (fp =3D fdp->fd_ofiles[args->fd]) =3D=3D NULL) - return EBADF; - if (fp->f_type =3D=3D DTYPE_SOCKET) { - fcntl_args.cmd =3D args->cmd =3D=3D LINUX_F_SETOWN ? F_SETOWN : = F_GETOWN; - fcntl_args.arg =3D args->arg; - return fcntl(p, &fcntl_args);=20 - } - vp =3D (struct vnode *)fp->f_data; - if (vp->v_type !=3D VCHR) - return EINVAL; - if ((error =3D VOP_GETATTR(vp, &va, p->p_ucred, p))) - return error; - - d_tty =3D cdevsw[major(va.va_rdev)]->d_devtotty; - if (!d_tty || (!(tp =3D (*d_tty)(va.va_rdev)))) - return EINVAL; - if (args->cmd =3D=3D LINUX_F_GETOWN) { - p->p_retval[0] =3D tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PID; - return 0; - } - if ((long)args->arg <=3D 0) { - pgid =3D -(long)args->arg; - } else { - struct proc *p1 =3D pfind((long)args->arg); - if (p1 =3D=3D 0) - return (ESRCH); - pgid =3D (long)p1->p_pgrp->pg_id; - } - pgrp =3D pgfind(pgid); - if (pgrp =3D=3D NULL || pgrp->pg_session !=3D p->p_session) - return EPERM; - tp->t_pgrp =3D pgrp; - return 0; + fcntl_args.cmd =3D args->cmd =3D=3D LINUX_F_SETOWN ? F_SETOWN : = F_GETOWN; + fcntl_args.arg =3D args->arg; + return fcntl(p, &fcntl_args);=20 } return EINVAL; } ------=_NextPart_000_0000_01BF8733.D0479FE0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Mar 5 12:24:40 2000 Delivered-To: freebsd-java@freebsd.org Received: from nohow.demon.co.uk (nohow.demon.co.uk [212.228.18.189]) by hub.freebsd.org (Postfix) with ESMTP id 1B8AE37BAF5; Sun, 5 Mar 2000 12:24:24 -0800 (PST) (envelope-from noway@nohow.demon.co.uk) Received: from localhost (noway@localhost) by nohow.demon.co.uk (8.9.3/8.9.3) with ESMTP id UAA02651; Sun, 5 Mar 2000 20:22:26 GMT (envelope-from noway@nohow.demon.co.uk) Date: Sun, 5 Mar 2000 20:22:25 +0000 (GMT) From: Jose Marques To: Joe Shevland Cc: SADA Kenji , sada@FreeBSD.ORG, freebsd-java@FreeBSD.ORG Subject: RE: linux-jdk-1.2.2 ports In-Reply-To: Message-ID: X-No-Archive: yes MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 6 Mar 2000, Joe Shevland wrote: > This was sent roughly about a month ago and > worked out for me then... And the following patch for FreeBSD 4.0-CURRENT was posted to FreeBSD-current a few days ago: Perhaps somebody can test them and send-pr them? NB: I've not tried this patch myself yet. -8<- cut here ---- From=20salaman@teknos.com Sun Mar 5 20:20:33 2000 Date: Wed, 23 Feb 2000 16:40:43 -0400 From: Victor A. Salaman To: "'freebsd-current@freebsd.org'" , "'freebsd-emulation@freebsd.org'" Subject: Linux Emulation patches [ Part 1, Text/PLAIN 123 lines. ] [ Unable to print this part. ] Hi: =A0 I was wondering who mantains the Linux Emulation? I have some patches that were sent to me for FreeBSD-3.4, I have converted them to FreeBSD 4.0-Current for Linux emulation problems. Specifically anyone trying to use any program that opens a server socket will get bitten by the emulation unless these patches are applied ( JServ, Resin, Tomcat are some Java programs affected by this... and=A0since Sun hasn't release a JDK 1.2 for FreeBSD,=A0well, the only way to run some server programs=A0is with Blackdown, but=A0without these patches they are useless ). =A0 Anyways, after sending email to marcel and peter with the patches, I haven't even received a reply. So therefore, I'm posting them here, in case anyone wants to commit them at all. I feel 4.0 shouldn't go out with a known broken linux emulation. =A0 --- /usr/src/sys/i386/linux/linux_file.c=A0Wed Feb 23 16:11:50 2000 +++ /usr/src/sys/i386/linux/linux_file.orig=A0Wed Feb 23 16:11:37 2000 @@ -199,6 +199,12 @@ =A0=A0=A0=A0 } */ fcntl_args; =A0=A0=A0=A0 struct linux_flock linux_flock; =A0=A0=A0=A0 struct flock *bsd_flock; +=A0=A0=A0 struct filedesc *fdp; +=A0=A0=A0 struct file *fp; +=A0=A0=A0 struct vnode *vp; +=A0=A0=A0 long pgid; +=A0=A0=A0 struct pgrp *pgrp; +=A0=A0=A0 struct tty *tp; =A0=A0=A0=A0 caddr_t sg; =A0=A0=A0=A0 dev_t dev; =A0 @@ -283,9 +289,47 @@ =A0 =A0=A0=A0=A0 case LINUX_F_SETOWN: =A0=A0=A0=A0 case LINUX_F_GETOWN: -=A0fcntl_args.cmd =3D args->cmd =3D=3D LINUX_F_SETOWN ? F_SETOWN : F_GETOW= N; -=A0fcntl_args.arg =3D args->arg; -=A0return fcntl(p, &fcntl_args); +=A0/* +=A0 * We need to route around the normal fcntl() for these calls, +=A0 * since it uses TIOC{G,S}PGRP, which is too restrictive for +=A0 * Linux F_{G,S}ETOWN semantics. For sockets, this problem +=A0 * does not exist. +=A0 */ +=A0fdp =3D p->p_fd; +=A0if ((u_int)args->fd >=3D fdp->fd_nfiles || +=A0=A0(fp =3D fdp->fd_ofiles[args->fd]) =3D=3D NULL) +=A0=A0=A0=A0 return EBADF; +=A0if (fp->f_type =3D=3D DTYPE_SOCKET) { +=A0=A0=A0=A0 fcntl_args.cmd =3D args->cmd =3D=3D LINUX_F_SETOWN ? F_SETOWN= : F_GETOWN; +=A0=A0=A0 =A0=A0=A0=A0 fcntl_args.arg =3D args->arg; +=A0=A0=A0=A0 return fcntl(p, &fcntl_args); +=A0} +=A0vp =3D (struct vnode *)fp->f_data; +=A0dev =3D vn_todev(vp); +=A0if (dev =3D=3D NODEV) +=A0=A0=A0=A0 return EINVAL; +=A0if (!(devsw(dev)->d_flags & D_TTY)) +=A0=A0=A0=A0 return EINVAL; +=A0tp =3D dev->si_tty; +=A0if (!tp) +=A0=A0=A0=A0 return EINVAL; +=A0if (args->cmd =3D=3D LINUX_F_GETOWN) { +=A0=A0=A0=A0 p->p_retval[0] =3D tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PID; +=A0=A0=A0=A0 return 0; +=A0} +=A0if ((long)args->arg <=3D 0) { +=A0=A0=A0=A0 pgid =3D -(long)args->arg; +=A0} else { +=A0=A0=A0=A0 struct proc *p1 =3D pfind((long)args->arg); +=A0=A0=A0=A0 if (p1 =3D=3D 0) +=A0=A0return (ESRCH); +=A0=A0=A0=A0 pgid =3D (long)p1->p_pgrp->pg_id; +=A0} +=A0pgrp =3D pgfind(pgid); +=A0if (pgrp =3D=3D NULL || pgrp->pg_session !=3D p->p_session) +=A0=A0=A0=A0 return EPERM; +=A0tp->t_pgrp =3D pgrp; +=A0return 0; =A0=A0=A0=A0 } =A0=A0=A0=A0 return EINVAL; =A0} --- /usr/src/sys/i386/linux/linux_socket.c=A0Wed Feb 23 16:11:50 2000 +++ /usr/src/sys/i386/linux/linux_socket.orig=A0Wed Feb 23 16:11:48 2000 @@ -441,11 +441,6 @@ =A0=A0caddr_t name; =A0=A0int *anamelen; =A0=A0=A0=A0 } */ bsd_args; -=A0=A0=A0 struct fcntl_args /* { -=A0=A0=A0 int fd; -=A0=A0=A0 int cmd; -=A0=A0=A0 long arg; -=A0=A0=A0 } */ f_args; =A0=A0=A0=A0 int error; =A0 =A0=A0=A0=A0 if ((error=3Dcopyin((caddr_t)args, (caddr_t)&linux_args, sizeof(linux_args)))) @@ -453,24 +448,7 @@ =A0=A0=A0=A0 bsd_args.s =3D linux_args.s; =A0=A0=A0=A0 bsd_args.name =3D (caddr_t)linux_args.addr; =A0=A0=A0=A0 bsd_args.anamelen =3D linux_args.namelen; - -=A0=A0=A0 if (error =3D oaccept(p, &bsd_args)) -=A0return error; -=A0=A0=A0 /* -=A0=A0=A0=A0 * linux appears not to copy flags from the parent socket to t= he -=A0=A0=A0=A0 * accepted one, so we must clear the flags in the new descrip= tor. -=A0=A0=A0=A0 */ -=A0=A0=A0 f_args.fd =3D p->p_retval[0]; -=A0=A0=A0 f_args.cmd =3D F_SETFL; -=A0=A0=A0 f_args.arg =3D 0; -=A0=A0 /* -=A0=A0=A0=A0 * we ignore errors here since otherwise we would have an open= file -=A0=A0=A0=A0 * descriptor that wasn't returned to the user. -=A0=A0=A0=A0 */ -=A0=A0=A0 (void) fcntl(p, &f_args); -=A0=A0=A0 /* put the file descriptor back as the return value */ -=A0=A0=A0 p->p_retval[0] =3D f_args.fd; -=A0=A0=A0 return 0; +=A0=A0=A0 return oaccept(p, &bsd_args); =A0} =A0 =A0struct linux_getsockname_args { -8<- cut here ---- --=20 Jose Marques To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 6 4:39:31 2000 Delivered-To: freebsd-java@freebsd.org Received: from mail.telekabel.nl (arnhem.telekabel.nl [194.134.132.130]) by hub.freebsd.org (Postfix) with ESMTP id 2382237B799; Mon, 6 Mar 2000 04:39:27 -0800 (PST) (envelope-from ernst@jollem.com) Received: from jollem.com (c187104187.telekabel.chello.nl [212.187.104.187]) by mail.telekabel.nl (8.8.8/8.8/EuroNet) with ESMTP id NAA25824; Mon, 6 Mar 2000 13:39:24 +0100 (MET) Message-ID: <38C3A6F5.32C874F6@jollem.com> Date: Mon, 06 Mar 2000 13:39:17 +0100 From: Ernst de Haan Organization: Jollem X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 3.4-STABLE i386) X-Accept-Language: en, nl MIME-Version: 1.0 To: sada@FreeBSD.org Cc: freebsd-java@FreeBSD.org, noway@nohow.demon.co.uk Subject: Re: linux-jdk-1.2.2 ports References: <20000305063447B.sada@rr.iij4u.or.jp> Content-Type: multipart/mixed; boundary="------------AD880F3A7DFF5A0477914F06" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------AD880F3A7DFF5A0477914F06 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit sada@FreeBSD.org wrote: > > Hi, > > I'd like to import Jose Marques's linux-jdk-1.2.2 ports > into ports-current tree by next ports freeze. > > http://www.jmcm.org/tech/ports/linux_jdk.html > > Suggestion or objection ? I strongly agree (assuming the necessary patches will be included/mandated). I run the Blackdown 1.2.2 port for some time now (on FreeBSD 3.4-STABLE) and I find it very stable and much faster than the FreeBSD JDK 1.1.8. What will be the name of the port? Suggestions: * java/blackdown-jdk-1.2.2 * java/blackdown-jdk1.2.2 * java/blackdown-linux-jdk-1.2.2 * java/blackdown-linux-jdk1.2.2 The second is prolly the best. Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ --------------AD880F3A7DFF5A0477914F06 Content-Type: text/x-vcard; charset=us-ascii; name="ernst.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Ernst de Haan Content-Disposition: attachment; filename="ernst.vcf" begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:ernst@jollem.com title:Java Architect fn:Ernst de Haan end:vcard --------------AD880F3A7DFF5A0477914F06-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 6 6:58:28 2000 Delivered-To: freebsd-java@freebsd.org Received: from lugh.relay.co.uk (lugh.relay.co.uk [194.72.177.254]) by hub.freebsd.org (Postfix) with ESMTP id DEF8D37BC74; Mon, 6 Mar 2000 06:58:02 -0800 (PST) (envelope-from john.rochester@enetgroup.co.uk) Received: from raku.enetgroup.co.uk ([194.72.178.7]) by lugh.relay.co.uk (Netscape Messaging Server 4.15) with ESMTP id FR09JD00.I48; Mon, 6 Mar 2000 14:57:13 +0000 Content-Length: 582 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Mon, 06 Mar 2000 14:58:22 -0000 (GMT) From: John Rochester To: Jose Marques Subject: RE: linux-jdk-1.2.2 ports Cc: freebsd-java@FreeBSD.ORG, sada@FreeBSD.ORG, SADA Kenji , Joe Shevland Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > And the following patch for FreeBSD 4.0-CURRENT was posted to > FreeBSD-current a few days ago: > > Perhaps somebody can test them and send-pr them? NB: I've not tried > this patch myself yet. This appears to be a trivial modification to my original patch, but its reversed - hopefully that won't be a problem. If I remember correctly, the only reason that my patch wouldn't work with CURRENT is because they changed some code that my patch deleted :) ---- John Rochester Java Developer, e-Net Software, Bath, UK john.rochester@enetgroup.co.uk jr@cs.mun.ca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 6 7:12:16 2000 Delivered-To: freebsd-java@freebsd.org Received: from hermes.research.kpn.com (hermes.research.kpn.com [139.63.192.8]) by hub.freebsd.org (Postfix) with ESMTP id 89BC637BCBF for ; Mon, 6 Mar 2000 07:12:14 -0800 (PST) (envelope-from K.J.Koster@kpn.com) Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by research.kpn.com (PMDF V5.2-31 #35196) with ESMTP id <01JMPVRVL9CW000XBI@research.kpn.com> for freebsd-java@freebsd.org; Mon, 6 Mar 2000 16:12:12 +0100 Received: by l04.research.kpn.com with Internet Mail Service (5.5.2650.21) id <19A08PZF>; Mon, 06 Mar 2000 16:12:12 +0100 Content-return: allowed Date: Mon, 06 Mar 2000 16:12:11 +0100 From: "Koster, K.J." Subject: JDK porting en Motif licensing questions To: 'FreeBSD Java mailing list' Message-id: <59063B5B4D98D311BC0D0001FA7E45220131394F@l04.research.kpn.com> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear FreeBSD Java, It seems that the backdown JDK is going to be added to the regular ports collection shortly. Good work. As I understand, the native FreeBSD 1.2 port at this point has stalled due to licensing problems with the Motif library. Understandable, but I don't see how we can have licensing problems for 1.2.2-native, but not for 1.2.2-linux? What can I do to get the native 1.2 port underway? Is the port in such a state that someone needs to roll a port? I have time to do that, if someone will tell me how to get the diffs. With 1.2.2-linux committed, is the next FreeBSD jdk going to be 1.2.2-native, or some form of 1.3? Kees Jan ============================================== You are only young once, but you can stay immature all your life To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 6 7:59:24 2000 Delivered-To: freebsd-java@freebsd.org Received: from ms.tokyo.jcom.ne.jp (ms.tokyo.jcom.ne.jp [210.234.123.18]) by hub.freebsd.org (Postfix) with ESMTP id 9E4DD37BD6A; Mon, 6 Mar 2000 07:59:21 -0800 (PST) (envelope-from knu@idaemons.org) Received: from daemon.local.idaemons.org (pc343042.tokyo.jcom.ne.jp [203.140.143.42]) by ms.tokyo.jcom.ne.jp (8.9.1/3.7W 06/01/99) with ESMTP id AAA26719; Tue, 7 Mar 2000 00:58:01 +0900 (JST) Received: by daemon.local.idaemons.org (8.9.3/3.7W) id AAA46396; Tue, 7 Mar 2000 00:57:29 +0900 (JST) Date: Tue, 07 Mar 2000 00:57:28 +0900 Message-ID: <86n1ocf5w7.wl@archon.local.idaemons.org> From: "Akinori -Aki- MUSHA" To: ernst@jollem.com Cc: sada@FreeBSD.ORG, freebsd-java@FreeBSD.ORG, noway@nohow.demon.co.uk Subject: Re: linux-jdk-1.2.2 ports In-Reply-To: In your message of "Mon, 06 Mar 2000 13:39:17 +0100" <38C3A6F5.32C874F6@jollem.com> References: <20000305063447B.sada@rr.iij4u.or.jp> <38C3A6F5.32C874F6@jollem.com> User-Agent: Wanderlust/2.2.18 (Please Forgive Me) EMIKO/1.13.12 (Euglena sociabilis) FLIM/1.13.2 (Kasanui) APEL/10.2 MULE XEmacs/21.1 (patch 9) (Canyonlands) (i386--freebsd) Organization: Associated I. Daemons MIME-Version: 1.0 (generated by EMIKO 1.13.12 - "Euglena sociabilis") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At Mon, 06 Mar 2000 13:39:17 +0100, Ernst de Haan wrote: > What will be the name of the port? Suggestions: > > * java/blackdown-jdk-1.2.2 > * java/blackdown-jdk1.2.2 > * java/blackdown-linux-jdk-1.2.2 > * java/blackdown-linux-jdk1.2.2 > > The second is prolly the best. I'd recommend `linux-jdk12'. In this case, the minor version should not be included and the vendor name could be dropped. -- / /__ __ / ) ) ) ) / Akinori -Aki- MUSHA aka / (_ / ( (__( "If you choose not to decide you still have made a choice." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 6 8: 5:42 2000 Delivered-To: freebsd-java@freebsd.org Received: from mail.telekabel.nl (arnhem.telekabel.nl [194.134.132.130]) by hub.freebsd.org (Postfix) with ESMTP id 67B9437B7C4; Mon, 6 Mar 2000 08:05:39 -0800 (PST) (envelope-from ernst@jollem.com) Received: from jollem.com (c187104187.telekabel.chello.nl [212.187.104.187]) by mail.telekabel.nl (8.8.8/8.8/EuroNet) with ESMTP id RAA01184; Mon, 6 Mar 2000 17:05:32 +0100 (MET) Message-ID: <38C3D74B.23FC4451@jollem.com> Date: Mon, 06 Mar 2000 17:05:31 +0100 From: Ernst de Haan Organization: Jollem X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 3.4-STABLE i386) X-Accept-Language: en, nl MIME-Version: 1.0 To: Akinori -Aki- MUSHA Cc: sada@FreeBSD.ORG, freebsd-java@FreeBSD.ORG, noway@nohow.demon.co.uk Subject: Re: linux-jdk-1.2.2 ports References: <20000305063447B.sada@rr.iij4u.or.jp> <38C3A6F5.32C874F6@jollem.com> <86n1ocf5w7.wl@archon.local.idaemons.org> Content-Type: multipart/mixed; boundary="------------70EF722AD3056B424C371C46" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------70EF722AD3056B424C371C46 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > I'd recommend `linux-jdk12'. In this case, the minor version should > not be included and the vendor name could be dropped. Well, there is the Sun/Inprise JDK as well, and IBM is planning on delivering a Linux Java 2 implementation sometime soon as well, so we will have to distinguish between these. You do have a point with the major/minor version numbering, tho. Suggestion: java/blackdown-jdk12 Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ --------------70EF722AD3056B424C371C46 Content-Type: text/x-vcard; charset=us-ascii; name="ernst.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Ernst de Haan Content-Disposition: attachment; filename="ernst.vcf" begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:ernst@jollem.com title:Java Architect fn:Ernst de Haan end:vcard --------------70EF722AD3056B424C371C46-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 6 8:44: 2 2000 Delivered-To: freebsd-java@freebsd.org Received: from ms.tokyo.jcom.ne.jp (ms.tokyo.jcom.ne.jp [210.234.123.18]) by hub.freebsd.org (Postfix) with ESMTP id 4780037BDD6; Mon, 6 Mar 2000 08:43:57 -0800 (PST) (envelope-from knu@idaemons.org) Received: from daemon.local.idaemons.org (pc343042.tokyo.jcom.ne.jp [203.140.143.42]) by ms.tokyo.jcom.ne.jp (8.9.1/3.7W 06/01/99) with ESMTP id BAA04351; Tue, 7 Mar 2000 01:43:26 +0900 (JST) Received: by daemon.local.idaemons.org (8.9.3/3.7W) id BAA46889; Tue, 7 Mar 2000 01:42:54 +0900 (JST) Date: Tue, 07 Mar 2000 01:42:52 +0900 Message-ID: <86k8jgf3sj.wl@archon.local.idaemons.org> From: "Akinori -Aki- MUSHA" To: ernst@jollem.com Cc: sada@FreeBSD.ORG, freebsd-java@FreeBSD.ORG, noway@nohow.demon.co.uk Subject: Re: linux-jdk-1.2.2 ports In-Reply-To: In your message of "Mon, 06 Mar 2000 17:05:31 +0100" <38C3D74B.23FC4451@jollem.com> References: <20000305063447B.sada@rr.iij4u.or.jp> <38C3A6F5.32C874F6@jollem.com> <86n1ocf5w7.wl@archon.local.idaemons.org> <38C3D74B.23FC4451@jollem.com> User-Agent: Wanderlust/2.2.18 (Please Forgive Me) EMIKO/1.13.12 (Euglena sociabilis) FLIM/1.13.2 (Kasanui) APEL/10.2 MULE XEmacs/21.1 (patch 9) (Canyonlands) (i386--freebsd) Organization: Associated I. Daemons MIME-Version: 1.0 (generated by EMIKO 1.13.12 - "Euglena sociabilis") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, At Mon, 06 Mar 2000 17:05:31 +0100, Ernst de Haan wrote: > > I'd recommend `linux-jdk12'. In this case, the minor version should > > not be included and the vendor name could be dropped. > > Well, there is the Sun/Inprise JDK as well, and IBM is planning on > delivering a Linux Java 2 implementation sometime soon as well, so we will > have to distinguish between these. They will be `linux-{sun,inprise,ibm}-jdk12'. I think we could consider Blackdown's one as fundamental and original version of Linux JDK 1.2. Sun and Insprise had just made modifications or enhancements over it and IBM had made another implementation, based on Sun's work. Blackdown's credit will appear in COMMENT and/or DESCR anyway. However, `linux-blackdown-jdk12' would be acceptable for me though it's kind of too long. :) > Suggestion: > > java/blackdown-jdk12 You seem to forget the most important thing. A port which runs under the Linux mode should have the `linux-' prefix, especially when we (are to) have a native version. -- / /__ __ / ) ) ) ) / Akinori -Aki- MUSHA aka / (_ / ( (__( "If you choose not to decide you still have made a choice." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 6 10:58:24 2000 Delivered-To: freebsd-java@freebsd.org Received: from mail.telekabel.nl (arnhem.telekabel.nl [194.134.132.130]) by hub.freebsd.org (Postfix) with ESMTP id 1602737BF2A; Mon, 6 Mar 2000 10:58:19 -0800 (PST) (envelope-from ernst@jollem.com) Received: from jollem.com (c187104187.telekabel.chello.nl [212.187.104.187]) by mail.telekabel.nl (8.8.8/8.8/EuroNet) with ESMTP id TAA02895; Mon, 6 Mar 2000 19:58:06 +0100 (MET) Message-ID: <38C3FFBC.D720111E@jollem.com> Date: Mon, 06 Mar 2000 19:58:04 +0100 From: Ernst de Haan Organization: Jollem X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 3.4-STABLE i386) X-Accept-Language: en, nl MIME-Version: 1.0 To: Akinori -Aki- MUSHA Cc: sada@FreeBSD.ORG, freebsd-java@FreeBSD.ORG, noway@nohow.demon.co.uk Subject: Re: linux-jdk-1.2.2 ports References: <20000305063447B.sada@rr.iij4u.or.jp> <38C3A6F5.32C874F6@jollem.com> <86n1ocf5w7.wl@archon.local.idaemons.org> <38C3D74B.23FC4451@jollem.com> <86k8jgf3sj.wl@archon.local.idaemons.org> Content-Type: multipart/mixed; boundary="------------5671E40613C47A7D2C611CE7" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------5671E40613C47A7D2C611CE7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > They will be `linux-{sun,inprise,ibm}-jdk12'. I think we could > consider Blackdown's one as fundamental and original version of Linux > JDK 1.2. Sun and Insprise had just made modifications or enhancements > over it and IBM had made another implementation, based on Sun's work. Hmm, I doubt whether IBM bases their work on Blackdown. They have their own codebase for a lot of operating systems (AIX, AS/400, Win32) and they have their Linux JDK 1.1.8. And the Blackdown work is based on the code provided by Sun. And the Solaris patches are still backported to the Blackdown port. Inprise doesn't have their own JDK port AFAIK. > However, `linux-blackdown-jdk12' would be acceptable for me though > it's kind of too long. :) Sounds very good to me: * linux-netscape47-communicator * linux-blackdown-jdk12 The name of the Linux Netscape port is longer :-) I think: linux-{sun,ibm,blackdown}-jdk12 is cool. Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ --------------5671E40613C47A7D2C611CE7 Content-Type: text/x-vcard; charset=us-ascii; name="ernst.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Ernst de Haan Content-Disposition: attachment; filename="ernst.vcf" begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:ernst@jollem.com title:Java Architect fn:Ernst de Haan end:vcard --------------5671E40613C47A7D2C611CE7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Mar 6 13:57:24 2000 Delivered-To: freebsd-java@freebsd.org Received: from www.kpi.com.au (www.kpi.com.au [203.31.83.86]) by hub.freebsd.org (Postfix) with ESMTP id 59F1037BA4D; Mon, 6 Mar 2000 13:57:14 -0800 (PST) (envelope-from shevlandj@kpi.com.au) Received: from elite (ws06.kpi.com.au [203.39.132.219]) by www.kpi.com.au (8.9.3/8.9.3) with SMTP id IAA57307; Tue, 7 Mar 2000 08:56:12 +1100 (EST) (envelope-from shevlandj@kpi.com.au) From: "Joe Shevland" To: "John Rochester" , "Jose Marques" Cc: , , "SADA Kenji" Subject: RE: linux-jdk-1.2.2 ports Date: Tue, 7 Mar 2000 08:57:48 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Just on that note, I had some troubles applying the (earlier) patch to a -STABLE machine of 3/3/2000, I assume that this is the CURRENT issue being retrofitted? It asked for the name of the file to patch about half-way through which it didn't do before... this may be a red herring because of my upgrading... I could probably reproduce with the output though if you like, I'd just need to re-cvsup this area. Cheers, joe -----Original Message----- From: owner-freebsd-java@FreeBSD.ORG [mailto:owner-freebsd-java@FreeBSD.ORG]On Behalf Of John Rochester Sent: Monday, 6 March 2000 6:58 AM To: Jose Marques Cc: freebsd-java@FreeBSD.ORG; sada@FreeBSD.ORG; SADA Kenji; Joe Shevland Subject: RE: linux-jdk-1.2.2 ports > And the following patch for FreeBSD 4.0-CURRENT was posted to > FreeBSD-current a few days ago: > > Perhaps somebody can test them and send-pr them? NB: I've not tried > this patch myself yet. This appears to be a trivial modification to my original patch, but its reversed - hopefully that won't be a problem. If I remember correctly, the only reason that my patch wouldn't work with CURRENT is because they changed some code that my patch deleted :) ---- John Rochester Java Developer, e-Net Software, Bath, UK john.rochester@enetgroup.co.uk jr@cs.mun.ca 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 Mar 6 15:50:56 2000 Delivered-To: freebsd-java@freebsd.org Received: from ares.maths.adelaide.edu.au (ares.maths.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id DEC7737BEF1 for ; Mon, 6 Mar 2000 15:50:51 -0800 (PST) (envelope-from glewis@ares.maths.adelaide.edu.au) Received: (from glewis@localhost) by ares.maths.adelaide.edu.au (8.9.3/8.9.3) id KAA02809 for freebsd-java@freebsd.org; Tue, 7 Mar 2000 10:20:49 +1030 (CST) (envelope-from glewis) From: Greg Lewis Message-Id: <200003062350.KAA02809@ares.maths.adelaide.edu.au> Subject: JDK 1.2.2 source - Solaris fcntl flags To: freebsd-java@freebsd.org Date: Tue, 7 Mar 2000 10:20:48 +1030 (CST) X-Mailer: ELM [version 2.4ME+ PL70 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, During compiling JDK 1.2.2 under FreeBSD one of the errors I've run into is in compiling the awt_Robot.c file which contains the code (in fdSetNoBuffer) flags |= O_NDELAY|O_SYNC|O_DSYNC|O_RSYNC; if (fcntl(fd, F_SETFL, flags) != -1) { /* fprintf(stderr, * "ERROR OCCURRED IN fdSetNoBuffer(). " * "File output may be buffered.\n"); */ return; } FreeBSD certainly defines O_NDELAY (as an alias for O_NONBLOCK) but doesn't define the other flags. On a Solaris 2.5.1 box the remaining flags are defined as (in /usr/include/sys/fcntl.h) #if defined(__EXTENSIONS__) || !defined(_POSIX_C_SOURCE) || \ (_POSIX_C_SOURCE > 2) || defined(_XOPEN_SOURCE) #define O_SYNC 0x10 /* synchronized file update option */ #define O_DSYNC 0x40 /* synchronized data update option */ #define O_RSYNC 0x8000 /* synchronized file update option */ /* defines read/write file integraty */ /* we are taking last bit as no spece */ /* left in first 8 bits */ #endif /* defined(__EXTENSIONS__) || !defined(_POSIX_C_SOURCE) ... */ Nothing leaps out at me from the FreeBSD fcntl.h as equivalent. Anyone got any thoughts on this? If not I'll just experiment I guess :). -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Mar 7 12: 9:39 2000 Delivered-To: freebsd-java@freebsd.org Received: from boca.livius.net (boca.RO.EU.net [193.226.128.210]) by hub.freebsd.org (Postfix) with ESMTP id 08B1637BB4E for ; Tue, 7 Mar 2000 12:09:27 -0800 (PST) (envelope-from ilg@livius.net) Received: from ilglibretto (ilg-pc.ro.eu.net [193.226.128.201]) by boca.livius.net (8.9.2/8.9.1) with SMTP id AAA40912 for ; Wed, 8 Mar 2000 00:07:18 +0200 (EET) (envelope-from ilg@livius.net) From: "Liviu Ionescu" To: Subject: RMI server registration bug? Date: Tue, 7 Mar 2000 22:09:16 +0200 Message-ID: <001301bf8871$048a07a0$c980e2c1@ro.eu.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I am using jdk1.1.8 on 3.4-RELEASE and I am constantly getting error messages while trying to start a RMI server (sources are from jGuru RMI tutorial, downloaded from Sun): develop:~/java/rmi/exercises/SimpleBankingSystem/solution$ java BankSystemServer Failure during Name registration: java.rmi.ServerException: Server RemoteException; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: BankManagerImpl_Stub the BankManagerImpl_Stub.class is obviously present (I tried even to copy it in the first directory in CLASSPATH, with no change). apparently the problem is not related to class presence, since running java -verbose showed the class as loaded: ... [Loaded sun/rmi/transport/KeepAlive.class from /usr/local/jdk1.1.8/lib/classes.zip] [Loaded ./AccountImpl.class] [Loaded ./Account.class] [Loaded ./AccountImpl_Skel.class] [Loaded ./AccountImpl_Stub.class] [Loaded ./BankManagerImpl_Skel.class] [Loaded ./BankManagerImpl_Stub.class] [Loaded java/rmi/Naming.class from /usr/local/jdk1.1.8/lib/classes.zip] ... running the class in jdb was possible up to a point where source code was no longer available. as shown in the jdb session below, the problem occurs in Naming.rebind; I tried on two different ports (1099 and 1100), but it made no difference. stopping the rmiregistry generated a different (normal) message: "java.net.ConnectException: Connection refused". even more strange, trying repeatedly from different accounts at different moments led most of the times to displaying the error, but there were cases (apparently first trials) when the error was not displayed. however the server was probably not running, since client attempts to connect showed no reaction (and no error messages too...). anyone else encountered this error? regards, Liviu Ionescu ilg@livius.net ... Breakpoint hit: java.rmi.Naming.rebind (Naming:108) main[1] list 104 105 if (obj == null) 106 throw new NullPointerException("cannot bind to null"); 107 108 => registry.rebind(getName(url), obj); 109 } 110 111 /** 112 * Returns an array of strings of the URLs in the registry. main[1] step main[1] Breakpoint hit: sun.rmi.registry.RegistryImpl_Stub.rebind (RegistryImpl_Stub:125) main[1] next main[1] Breakpoint hit: sun.rmi.registry.RegistryImpl_Stub.rebind (RegistryImpl_Stub:127) main[1] step up main[1] Breakpoint hit: BankSystemServer.main (BankSystemServer:33) main[1] list Unable to find BankSystemServer.java main[1] use . main[1] list 29 30 // Register an external name for the service 31 try { 32 Naming.rebind("//localhost:1100/BankSystem", bm); 33 => } catch (RemoteException remoteException) { 34 System.err.println( 35 "Failure during Name registration: " + 36 remoteException); 37 } catch (MalformedURLException malformedException) { main[1] next main[1] Breakpoint hit: BankSystemServer.main (BankSystemServer:34) main[1] list 30 // Register an external name for the service 31 try { 32 Naming.rebind("//localhost:1100/BankSystem", bm); 33 } catch (RemoteException remoteException) { 34 => System.err.println( 35 "Failure during Name registration: " + 36 remoteException); 37 } catch (MalformedURLException malformedException) { 38 System.err.println( main[1] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Mar 8 1:18:54 2000 Delivered-To: freebsd-java@freebsd.org Received: from hermes.research.kpn.com (hermes.research.kpn.com [139.63.192.8]) by hub.freebsd.org (Postfix) with ESMTP id A29B137B513 for ; Wed, 8 Mar 2000 01:18:46 -0800 (PST) (envelope-from K.J.Koster@kpn.com) Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by research.kpn.com (PMDF V5.2-31 #35196) with ESMTP id <01JMSC17ZQW2000SRJ@research.kpn.com> for freebsd-java@FreeBSD.ORG; Wed, 8 Mar 2000 10:18:40 +0100 Received: by l04.research.kpn.com with Internet Mail Service (5.5.2650.21) id <19A086A7>; Wed, 08 Mar 2000 10:18:40 +0100 Content-return: allowed Date: Wed, 08 Mar 2000 10:18:33 +0100 From: "Koster, K.J." Subject: RE: RMI server registration bug? To: 'Liviu Ionescu' , freebsd-java@FreeBSD.ORG Message-id: <59063B5B4D98D311BC0D0001FA7E452201313956@l04.research.kpn.com> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear Liviu, For a list of frequently asked RMI questions you can refer to: http://java.sun.com/products/jdk/rmi/faq.html To view past RMI-USERS postings, see: http://archives.java.sun.com/archives/rmi-users.html > > I am using jdk1.1.8 on 3.4-RELEASE and I am constantly getting error > messages while trying to start a RMI server (sources are from > jGuru RMI > tutorial, downloaded from Sun): > > develop:~/java/rmi/exercises/SimpleBankingSystem/solution$ java > BankSystemServer > Failure during Name registration: java.rmi.ServerException: Server > RemoteException; nested exception is: > java.rmi.UnmarshalException: error unmarshalling > arguments; nested > exception is: > java.lang.ClassNotFoundException: BankManagerImpl_Stub > Have you started the RMI registry without the stub in the class path? (I start it in /tmp, usually). Can you download the stub from the code base using a web browser? Have you set an RMI security manager? Kees Jan ============================================== You are only young once, but you can stay immature all your life To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Mar 8 6: 8:25 2000 Delivered-To: freebsd-java@freebsd.org Received: from assurance.rstcorp.com (rstrorp2.daf.concentric.net [216.112.242.2]) by hub.freebsd.org (Postfix) with ESMTP id E3EC037B5F8 for ; Wed, 8 Mar 2000 06:08:20 -0800 (PST) (envelope-from vshah@rstcorp.com) Received: (from uucp@localhost) by assurance.rstcorp.com (8.9.3/8.9.3) id JAA29089 for ; Wed, 8 Mar 2000 09:10:03 -0500 Received: from sandbox.rstcorp.com(192.168.2.63) by assurance.rstcorp.com via smap (V2.0) id xma029072; Wed, 8 Mar 00 14:09:43 GMT Received: from jabberwock.rstcorp.com (jabberwock.rstcorp.com [192.168.2.98]) by sandbox.rstcorp.com (8.9.3/8.9.3) with ESMTP id JAA01961 for ; Wed, 8 Mar 2000 09:07:59 -0500 (EST) Received: by jabberwock.rstcorp.com (Postfix, from userid 93) id D5BBB5AD3; Wed, 8 Mar 2000 09:07:58 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14534.24254.753198.892575@jabberwock.rstcorp.com> Date: Wed, 8 Mar 2000 09:07:58 -0500 (EST) From: "Viren R.Shah" To: freebsd-java@freebsd.org Subject: font problems with displaying Java Swing on FreeBSD X-Mailer: VM 6.72 under 19.16 "Lille" XEmacs Lucid Reply-To: "Viren R.Shah" X-Face: )~y+U*K:yzjz{q<5lzpI_SVef'U.])9g[C9`1N@]u3,MHY7f*l7C)[_NjM4y4K8$uIUh|\u (K&&HS6,M!61&GMTk'mqmB/Qg]]X}"?TzsFl]"2v!bl8']dma.:^IY^a[lbOI>U:b<~FyK3q-p{HmZ mn~g.`~BE!5{2D:}Yi+\_KkWe?XaHj9$ko1k8iKLYv5*_2c8"G=?Up[}hn+7RNM(bzBZ_wWk6!Pf&B ?3Tcm7M7B~W%K/I0aX3]*=jP?aM]H6HBPT`oLk+0n^_;N\2\%|Rhy;p}34Q.jEsM\qtnxcm;ag%Nq Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [This is only tangentially related to FreeBSD Java, but it seemed like the best forum for it] I'm trying to display a Java 1.2.2/Swing application from a Solaris 2.7 box onto a FreeBSD -current machine. It won't display, citing the following error messages: Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Exception in thread "main" java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java, Compiled Code) at javax.swing.UIDefaults.get(UIDefaults.java, Compiled Code) at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java, Compiled Code) at javax.swing.UIDefaults.getUIClass(UIDefaults.java, Compiled Code) at javax.swing.UIDefaults.getUI(UIDefaults.java, Compiled Code) at javax.swing.UIManager.getUI(UIManager.java, Compiled Code) at javax.swing.JPanel.updateUI(JPanel.java, Compiled Code) at javax.swing.JPanel.(JPanel.java, Compiled Code) at javax.swing.JPanel.(JPanel.java, Compiled Code) at javax.swing.JRootPane.createGlassPane(JRootPane.java, Compiled Code) at javax.swing.JRootPane.(JRootPane.java, Compiled Code) at javax.swing.JFrame.createRootPane(JFrame.java, Compiled Code) at javax.swing.JFrame.frameInit(JFrame.java, Compiled Code) at javax.swing.JFrame.(JFrame.java, Compiled Code) at SwingApplication.main(SwingApplication.java, Compiled Code) I tried the same thing on an NT box with X-Win32, and while it gave the same erros, it did display. Also the application displayed on the console of the solaris box. This is one of the standard exampels in the Swing tutorial. http://web2.java.sun.com/docs/books/tutorial/uiswing/start/example-swing/SwingApplication.java Does anyone have a solution for this. I use FreeBSD for my desktop, and this makes it very difficult to write a java/swing app. Thanks Viren -- Viren R. Shah {viren @ rstcorp . com} Names : Vanadium(23) Iodine(53) RhEnium(75) Nitrogen(7) Density(g/mL): 5.8 4.92 21 0.0001251 Average Density: 7.93003 g/mL To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Mar 8 7:55:20 2000 Delivered-To: freebsd-java@freebsd.org Received: from hermes.research.kpn.com (hermes.research.kpn.com [139.63.192.8]) by hub.freebsd.org (Postfix) with ESMTP id 9750037B595 for ; Wed, 8 Mar 2000 07:55:18 -0800 (PST) (envelope-from K.J.Koster@kpn.com) Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by research.kpn.com (PMDF V5.2-31 #35196) with ESMTP id <01JMSPUXG4EQ000VJN@research.kpn.com> for freebsd-java@freebsd.org; Wed, 8 Mar 2000 16:55:15 +0100 Received: by l04.research.kpn.com with Internet Mail Service (5.5.2650.21) id <19A0894R>; Wed, 08 Mar 2000 16:55:14 +0100 Content-return: allowed Date: Wed, 08 Mar 2000 16:55:10 +0100 From: "Koster, K.J." Subject: RE: font problems with displaying Java Swing on FreeBSD To: "'Viren R.Shah'" Cc: 'FreeBSD Java mailing list' Message-id: <59063B5B4D98D311BC0D0001FA7E452201313962@l04.research.kpn.com> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hmm. I get these font errors too, but I have no problems with any apps. Since you are using a FreeBSD X server, this may have to do with font issues on your FreeBSD machine. There is some information about this on the Java developer site, try searching their knowledge base. It's got to do with your X server's font database, that's all I know. Kees Jan ============================================== You are only young once, but you can stay immature all your life > > [This is only tangentially related to FreeBSD Java, but it > seemed like the best forum for it] > > I'm trying to display a Java 1.2.2/Swing application from a Solaris > 2.7 box onto a FreeBSD -current machine. It won't display, citing the > following error messages: > > Font specified in font.properties not found [-urw-itc > zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] > [etc...] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Mar 8 8:48:45 2000 Delivered-To: freebsd-java@freebsd.org Received: from mail.telekabel.nl (arnhem.telekabel.nl [194.134.132.130]) by hub.freebsd.org (Postfix) with ESMTP id 32A6D37C275 for ; Wed, 8 Mar 2000 08:48:18 -0800 (PST) (envelope-from ernst@jollem.com) Received: from jollem.com (c187104187.telekabel.chello.nl [212.187.104.187]) by mail.telekabel.nl (8.8.8/8.8/EuroNet) with ESMTP id RAA09181; Wed, 8 Mar 2000 17:48:13 +0100 (MET) Message-ID: <38C6844E.A5C1F7DD@jollem.com> Date: Wed, 08 Mar 2000 17:48:14 +0100 From: Ernst de Haan Organization: Jollem X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 3.4-STABLE i386) X-Accept-Language: en, nl MIME-Version: 1.0 To: "Viren R.Shah" Cc: freebsd-java@freebsd.org Subject: Re: font problems with displaying Java Swing on FreeBSD References: <14534.24254.753198.892575@jabberwock.rstcorp.com> Content-Type: multipart/mixed; boundary="------------FCEE31F2DC29048105FF4B53" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------FCEE31F2DC29048105FF4B53 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, > I'm trying to display a Java 1.2.2/Swing application from a Solaris I believe your problem is a known feature of the Blackdown JDK in combination with some Linux systems and/or FreeBSD systems. It has to do something with the font path. Perhaps www.blackdown.org will tell you some more? Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ --------------FCEE31F2DC29048105FF4B53 Content-Type: text/x-vcard; charset=us-ascii; name="ernst.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Ernst de Haan Content-Disposition: attachment; filename="ernst.vcf" begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:ernst@jollem.com title:Java Architect fn:Ernst de Haan end:vcard --------------FCEE31F2DC29048105FF4B53-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Mar 8 10:10:42 2000 Delivered-To: freebsd-java@freebsd.org Received: from kleopatra.acc.umu.se (kleopatra.acc.umu.se [130.239.18.150]) by hub.freebsd.org (Postfix) with ESMTP id D296137B650 for ; Wed, 8 Mar 2000 10:10:35 -0800 (PST) (envelope-from markush@acc.umu.se) Received: from mao.acc.umu.se (root@mao.acc.umu.se [130.239.18.154]) by kleopatra.acc.umu.se (8.9.3/8.9.3) with ESMTP id SAA29520 for ; Wed, 8 Mar 2000 18:51:59 +0100 Received: (from markush@localhost) by mao.acc.umu.se (8.9.3/8.9.3/Debian/GNU) id SAA04197 for freebsd-java@freebsd.org; Wed, 8 Mar 2000 18:51:59 +0100 Date: Wed, 8 Mar 2000 18:51:59 +0100 From: Markus Holmberg To: freebsd-java@freebsd.org Subject: BSDi and Java Message-ID: <20000308185158.A2526@mao.acc.umu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org (http://www.daemonnews.org/200003/merger.html) Since Walnut Creek and BSDi are merging, and so is supposedly the codebase, I have a few questions/thoughts about FreeBSD and Java. Does anyone know which Java platform version BSDi are beta testing at the moment? (http://www.bsdi.com/java) It's only a JRE, but it's still something. It might be 1.2? Not getting my hopes up though. Hopefully BSDi might consider putting developer effort on bringing support for the newer Java platform versions to FreeBSD in a while..? Servlets/JSPs gain heavy usage.. Markus -- Markus Holmberg | Give me UNIX or give me a typewriter. markush@acc.umu.se | http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Mar 8 11:49:46 2000 Delivered-To: freebsd-java@freebsd.org Received: from boca.livius.net (boca.RO.EU.net [193.226.128.210]) by hub.freebsd.org (Postfix) with ESMTP id 771D537B57E for ; Wed, 8 Mar 2000 11:49:42 -0800 (PST) (envelope-from ilg@livius.net) Received: from ilglibretto (ilg-pc.ro.eu.net [193.226.128.201]) by boca.livius.net (8.9.2/8.9.1) with SMTP id XAA53334; Wed, 8 Mar 2000 23:47:32 +0200 (EET) (envelope-from ilg@livius.net) From: "Liviu Ionescu" To: "'Koster, K.J.'" , Subject: RE: RMI server registration bug? Date: Wed, 8 Mar 2000 21:49:33 +0200 Message-ID: <001501bf8937$6de82440$c980e2c1@ro.eu.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 In-Reply-To: <59063B5B4D98D311BC0D0001FA7E452201313956@l04.research.kpn.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org probably this was one of the VVFAQ (very-very frequently asked questions). :-( starting the rmiregistry with the stub in the classpath solved the problem. the security manager was not needed. thank you, Liviu Ionescu > Dear Liviu, > > For a list of frequently asked RMI questions you can refer to: > http://java.sun.com/products/jdk/rmi/faq.html > > To view past RMI-USERS postings, see: > http://archives.java.sun.com/archives/rmi-users.html > > > > > I am using jdk1.1.8 on 3.4-RELEASE and I am constantly getting error > > messages while trying to start a RMI server (sources are from > > jGuru RMI > > tutorial, downloaded from Sun): > > > > develop:~/java/rmi/exercises/SimpleBankingSystem/solution$ java > > BankSystemServer > > Failure during Name registration: java.rmi.ServerException: Server > > RemoteException; nested exception is: > > java.rmi.UnmarshalException: error unmarshalling > > arguments; nested > > exception is: > > java.lang.ClassNotFoundException: BankManagerImpl_Stub > > > Have you started the RMI registry without the stub in the > class path? (I > start it in /tmp, usually). > > Can you download the stub from the code base using a web browser? > > Have you set an RMI security manager? > > Kees Jan > > ============================================== > You are only young once, > but you can stay immature all your life > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Mar 8 12:26:44 2000 Delivered-To: freebsd-java@freebsd.org Received: from assurance.rstcorp.com (rstrorp2.daf.concentric.net [216.112.242.2]) by hub.freebsd.org (Postfix) with ESMTP id 4C23837C477 for ; Wed, 8 Mar 2000 12:26:40 -0800 (PST) (envelope-from vshah@rstcorp.com) Received: (from uucp@localhost) by assurance.rstcorp.com (8.9.3/8.9.3) id PAA05008; Wed, 8 Mar 2000 15:28:19 -0500 Received: from sandbox.rstcorp.com(192.168.2.63) by assurance.rstcorp.com via smap (V2.0) id xma004992; Wed, 8 Mar 00 20:27:47 GMT Received: from jabberwock.rstcorp.com (jabberwock.rstcorp.com [192.168.2.98]) by sandbox.rstcorp.com (8.9.3/8.9.3) with ESMTP id PAA16815; Wed, 8 Mar 2000 15:26:02 -0500 (EST) Received: by jabberwock.rstcorp.com (Postfix, from userid 93) id 9C0BA5A7F; Wed, 8 Mar 2000 15:26:00 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14534.46936.495288.407359@jabberwock.rstcorp.com> Date: Wed, 8 Mar 2000 15:26:00 -0500 (EST) From: "Viren R.Shah" To: Sven Reimers Cc: freebsd-java@freebsd.org, Ernst de Haan Subject: Re: font problems with displaying Java Swing on FreeBSD In-Reply-To: <38C6714D.25C2C58E@tu-harburg.de> References: <14534.24254.753198.892575@jabberwock.rstcorp.com> <38C6714D.25C2C58E@tu-harburg.de> X-Mailer: VM 6.72 under 19.16 "Lille" XEmacs Lucid Reply-To: "Viren R.Shah" X-Face: )~y+U*K:yzjz{q<5lzpI_SVef'U.])9g[C9`1N@]u3,MHY7f*l7C)[_NjM4y4K8$uIUh|\u (K&&HS6,M!61&GMTk'mqmB/Qg]]X}"?TzsFl]"2v!bl8']dma.:^IY^a[lbOI>U:b<~FyK3q-p{HmZ mn~g.`~BE!5{2D:}Yi+\_KkWe?XaHj9$ko1k8iKLYv5*_2c8"G=?Up[}hn+7RNM(bzBZ_wWk6!Pf&B ?3Tcm7M7B~W%K/I0aX3]*=jP?aM]H6HBPT`oLk+0n^_;N\2\%|Rhy;p}34Q.jEsM\qtnxcm;ag%Nq Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>>>> "Sven" == Sven Reimers writes: Sven> Get the URW-fonts (e.g gimp.org) Sven> Sven I did get and install them. Unfortunately I still have the same problem. I'm running XFree86 3.3.5 -- could this be a problem? [I also looked at blackdown.org, which suggests the same thing] I also tried installing gsfonts-5.10, and manually editing the fonts.scale file to change the zapfchancery font spec to conform to what the solaris JDK wanted -- this stopped the eoor messages below, but I still get the same exception. Any ideas? Sven> "Viren R.Shah" wrote: >> >> [This is only tangentially related to FreeBSD Java, but it seemed like >> the best forum for it] >> >> I'm trying to display a Java 1.2.2/Swing application from a Solaris >> 2.7 box onto a FreeBSD -current machine. It won't display, citing the >> following error messages: >> >> Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] ...[deleted lots more of the same] >> Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] >> Exception in thread "main" java.lang.NullPointerException >> at java.util.Hashtable.get(Hashtable.java, Compiled Code) >> at javax.swing.UIDefaults.get(UIDefaults.java, Compiled Code) >> at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java, Compiled Code) >> at javax.swing.UIDefaults.getUIClass(UIDefaults.java, Compiled Code) >> at javax.swing.UIDefaults.getUI(UIDefaults.java, Compiled Code) >> at javax.swing.UIManager.getUI(UIManager.java, Compiled Code) >> at javax.swing.JPanel.updateUI(JPanel.java, Compiled Code) >> at javax.swing.JPanel.(JPanel.java, Compiled Code) >> at javax.swing.JPanel.(JPanel.java, Compiled Code) >> at javax.swing.JRootPane.createGlassPane(JRootPane.java, Compiled Code) >> at javax.swing.JRootPane.(JRootPane.java, Compiled Code) >> at javax.swing.JFrame.createRootPane(JFrame.java, Compiled Code) >> at javax.swing.JFrame.frameInit(JFrame.java, Compiled Code) >> at javax.swing.JFrame.(JFrame.java, Compiled Code) >> at SwingApplication.main(SwingApplication.java, Compiled Code) >> >> I tried the same thing on an NT box with X-Win32, and while it gave >> the same erros, it did display. Also the application displayed on the >> console of the solaris box. This is one of the standard exampels in >> the Swing tutorial. >> http://web2.java.sun.com/docs/books/tutorial/uiswing/start/example-swing/SwingApplication.java >> >> Does anyone have a solution for this. I use FreeBSD for my desktop, >> and this makes it very difficult to write a java/swing app. >> >> Thanks >> Viren Thanks Viren -- Viren R. Shah {viren @ rstcorp . com} Names : Vanadium(23) Iodine(53) RhEnium(75) Nitrogen(7) Density(g/mL): 5.8 4.92 21 0.0001251 Average Density: 7.93003 g/mL To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Mar 8 23:53:43 2000 Delivered-To: freebsd-java@freebsd.org Received: from rztsun.rz.tu-harburg.de (rztsun.rz.tu-harburg.de [134.28.200.14]) by hub.freebsd.org (Postfix) with ESMTP id 02F1037B542 for ; Wed, 8 Mar 2000 23:53:25 -0800 (PST) (envelope-from reimers@tu-harburg.de) Received: from tu-harburg.de (data.et8.tu-harburg.de [134.28.45.64]) by rztsun.rz.tu-harburg.de (8.9.0/8.8.8) with ESMTP id IAA24959; Thu, 9 Mar 2000 08:53:17 +0100 (MET) Message-ID: <38C7586D.FAC3F1A@tu-harburg.de> Date: Thu, 09 Mar 2000 08:53:17 +0100 From: Sven Reimers X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Viren R.Shah" Cc: freebsd-java@FreeBSD.ORG, Ernst de Haan Subject: Re: font problems with displaying Java Swing on FreeBSD References: <14534.24254.753198.892575@jabberwock.rstcorp.com> <38C6714D.25C2C58E@tu-harburg.de> <14534.46936.495288.407359@jabberwock.rstcorp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Did you adjust your fontpath under X? Here is mine: /usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/100dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1, /usr/X11R6/lib/X11/fonts/Speedo,/usr/X11R6/lib/X11/fonts/misc, /usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi, /usr/X11R6/lib/X11/fonts/URW, !!! URW-fonts /usr/X11R6/lib/X11/fonts/freefont, !!! Freefonts /usr/local/lib/xemacs/xemacs-packages/etc/x-symbol/pcf/ Else try the freefonts. I just want to add that it works for me (no missing fonts). "Viren R.Shah" wrote: > > >>>>> "Sven" == Sven Reimers writes: > > Sven> Get the URW-fonts (e.g gimp.org) > Sven> Sven > > I did get and install them. Unfortunately I still have the same > problem. I'm running XFree86 3.3.5 -- could this be a problem? > [I also looked at blackdown.org, which suggests the same thing] > > I also tried installing gsfonts-5.10, and manually editing the > fonts.scale file to change the zapfchancery font spec to conform to > what the solaris JDK wanted -- this stopped the eoor messages below, > but I still get the same exception. Any ideas? > > Sven> "Viren R.Shah" wrote: > >> > >> [This is only tangentially related to FreeBSD Java, but it seemed like > >> the best forum for it] > >> > >> I'm trying to display a Java 1.2.2/Swing application from a Solaris > >> 2.7 box onto a FreeBSD -current machine. It won't display, citing the > >> following error messages: > >> > >> Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] > ...[deleted lots more of the same] > >> Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] > >> Exception in thread "main" java.lang.NullPointerException > >> at java.util.Hashtable.get(Hashtable.java, Compiled Code) > >> at javax.swing.UIDefaults.get(UIDefaults.java, Compiled Code) > >> at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java, Compiled Code) > >> at javax.swing.UIDefaults.getUIClass(UIDefaults.java, Compiled Code) > >> at javax.swing.UIDefaults.getUI(UIDefaults.java, Compiled Code) > >> at javax.swing.UIManager.getUI(UIManager.java, Compiled Code) > >> at javax.swing.JPanel.updateUI(JPanel.java, Compiled Code) > >> at javax.swing.JPanel.(JPanel.java, Compiled Code) > >> at javax.swing.JPanel.(JPanel.java, Compiled Code) > >> at javax.swing.JRootPane.createGlassPane(JRootPane.java, Compiled Code) > >> at javax.swing.JRootPane.(JRootPane.java, Compiled Code) > >> at javax.swing.JFrame.createRootPane(JFrame.java, Compiled Code) > >> at javax.swing.JFrame.frameInit(JFrame.java, Compiled Code) > >> at javax.swing.JFrame.(JFrame.java, Compiled Code) > >> at SwingApplication.main(SwingApplication.java, Compiled Code) > >> > >> I tried the same thing on an NT box with X-Win32, and while it gave > >> the same erros, it did display. Also the application displayed on the > >> console of the solaris box. This is one of the standard exampels in > >> the Swing tutorial. > >> http://web2.java.sun.com/docs/books/tutorial/uiswing/start/example-swing/SwingApplication.java > >> > >> Does anyone have a solution for this. I use FreeBSD for my desktop, > >> and this makes it very difficult to write a java/swing app. > >> > >> Thanks > >> Viren > > Thanks > Viren > -- > Viren R. Shah {viren @ rstcorp . com} > Names : Vanadium(23) Iodine(53) RhEnium(75) Nitrogen(7) > Density(g/mL): 5.8 4.92 21 0.0001251 > Average Density: 7.93003 g/mL > > 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 Fri Mar 10 5:32:45 2000 Delivered-To: freebsd-java@freebsd.org Received: from voyager.cistron.net (voyager.cistron.net [195.64.68.34]) by hub.freebsd.org (Postfix) with ESMTP id C7A6E37BA55 for ; Fri, 10 Mar 2000 05:32:40 -0800 (PST) (envelope-from gary@abc.aaa-mainstreet.nl) Received: from abc.aaa-mainstreet.nl (abc.aaa-mainstreet.nl [195.64.77.2]) by voyager.cistron.net (8.9.3/8.9.3/Debian/GNU) with ESMTP id OAA12149; Fri, 10 Mar 2000 14:32:43 +0100 Date: Fri, 10 Mar 2000 13:32:08 +0000 (GMT) From: Gary To: Joachim Jaeckel Cc: freebsd-java@freebsd.org Subject: Re: How to run Visual-Age for Java/Linux under FreeBSD In-Reply-To: <389FC5FF.C46CF217@coffeebreak.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thanks for the info - good of you to remember me. I'll check it out soon. Gary On Tue, 8 Feb 2000, Joachim Jaeckel wrote: > Hello again, > > the WEB-page with the HowTo is now up and running. You can reach the > page under: > > http://www.coffeebreak.de/freebsd > > Any comments or suggestions are welcome! > > Ciao, > Joachim. > > > 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 Fri Mar 10 9:45:57 2000 Delivered-To: freebsd-java@freebsd.org Received: from post-ofc04.srv.cis.pitt.edu (post-ofc04.srv.cis.pitt.edu [136.142.185.11]) by hub.freebsd.org (Postfix) with ESMTP id B608F37BB5A for ; Fri, 10 Mar 2000 09:45:53 -0800 (PST) (envelope-from donnah+@pitt.edu) Received: from ehdup-f1-4.rmt.net.pitt.edu (ehdup-f1-4.rmt.net.pitt.edu [136.142.21.74]) by post-ofc04.srv.cis.pitt.edu with ESMTP (8.8.8/8.8.8/cispo-7.2.2.2) ID ; Fri, 10 Mar 2000 12:45:02 -0500 (EST) Date: Fri, 10 Mar 2000 12:45:02 -0500 From: Donna Hoffmeister To: Jose Marques , Ernst de Haan Cc: freebsd-java@freebsd.org Subject: Re: Linux JDK 1.2.2 RC4 Message-ID: <3504529694.952692302@ehdup-f1-4.rmt.net.pitt.edu> In-Reply-To: Originator-Info: login-id=donnah; server=imap.pitt.edu X-Mailer: Mulberry (Win32) [1.4.4, s/n S-398070] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have downloaded the linux emulation of jdk2 onto freebsd. The demos work, my code compiles but does not run. Is this the latest state of affairs? --On Tuesday, February 15, 2000, 3:40 PM +0000 Jose Marques wrote:r > On Tue, 15 Feb 2000, Ernst de Haan wrote: > >> Would you care creating a ports Makefile for the Sun JDK 1.2.2-final as >> well? I've never written a port Makefile, so uhmmm... /:-) > > I've created a port but as far as I can tell the Sun JDK doesn't work > properly - at least on FreeBSD 3.4-Stable. Command line tests appear to > work but JFC demos do not - no windows appear, top shows java using all > the CPU and a kill -9 is required to terminate java. I had the same > problem with the release candidate. Anybody have any luck with the Sun > JDK 1.2.2-final and JFC on FreeBSD? > > -- > Jose Marques > > > > > 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 Fri Mar 10 9:56:14 2000 Delivered-To: freebsd-java@freebsd.org Received: from beta.nova.org (beta.nova.org [209.31.144.41]) by hub.freebsd.org (Postfix) with ESMTP id 92F9937BD3B for ; Fri, 10 Mar 2000 09:56:11 -0800 (PST) (envelope-from bsletten@nova.org) Received: from fcac.org (members.fcac.org [209.31.144.35]) by beta.nova.org (8.9.1/8.9.1) with ESMTP id MAA00158; Fri, 10 Mar 2000 12:56:09 -0500 (EST) Received: from localhost by fcac.org (8.8.8+Sun/SMI-SVR4) id MAA21007; Fri, 10 Mar 2000 12:56:05 -0500 (EST) Date: Fri, 10 Mar 2000 12:56:05 -0500 (EST) From: Brian Sletten To: Donna Hoffmeister Cc: Jose Marques , Ernst de Haan , freebsd-java@FreeBSD.ORG Subject: Re: Linux JDK 1.2.2 RC4 In-Reply-To: <3504529694.952692302@ehdup-f1-4.rmt.net.pitt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I have downloaded the linux emulation of jdk2 onto freebsd. The demos work, > my code compiles but does not run. Is this the latest state of affairs? I've only seen two problems. 1) JServ doesn't work without the patch that circulated through here a while ago. 2) I tried starting all of the services necessary for JavaSpaces last night and got some bizarre behavior as far as the Activation daemon was concerned. The same code worked fine on an equivalent RedHat box. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 10 20:49:59 2000 Delivered-To: freebsd-java@freebsd.org Received: from lab12.ie.pitt.edu (lab12.ie.pitt.edu [136.142.89.102]) by hub.freebsd.org (Postfix) with ESMTP id AED0637B63E for ; Fri, 10 Mar 2000 20:49:56 -0800 (PST) (envelope-from grafe@lab12.ie.pitt.edu) Received: (from grafe@localhost) by lab12.ie.pitt.edu (8.9.3+Sun/8.9.3) id XAA22087 for freebsd-java@freebsd.org; Fri, 10 Mar 2000 23:49:32 -0500 (EST) Date: Fri, 10 Mar 2000 23:49:32 -0500 (EST) Message-Id: <200003110449.XAA22087@lab12.ie.pitt.edu> From: grafe@lab12.ie.pitt.edu (Gary Rafe) To: freebsd-java@freebsd.org Subject: Q: trouble with linux-jdk1.2pre-v2 on 3.3-R reading System.in ... Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org After seeing comments suggesting the usability of the blackdown.org jdk1.2pre-v2 port on FreeBSD 3.3-RELEASE systems, we pulled it down & gave it a try. The AWT & Swing demos seem to run quite well (except for the font complaints). We're finding, however, that the readLine() method of BufferedReader doesn't fetch anything from stdin (i.e., the keyboard) and "hangs", while the native FreeBSD JDK1.1.8 port works as advertised: BufferedReader stdin = new BufferedReader( new InputStreamReader(System.in)); String inbuf; ... while ((inbuf = stdin.readLine()) != null) { System.out.println(inbuf); } Can anyone comment on this behavior ? -- Gary Rafe gerst4@pitt.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Mar 11 1:28:51 2000 Delivered-To: freebsd-java@freebsd.org Received: from lugh.relay.co.uk (lugh.relay.co.uk [194.72.177.254]) by hub.freebsd.org (Postfix) with ESMTP id 6B50137B8F1 for ; Sat, 11 Mar 2000 01:28:48 -0800 (PST) (envelope-from john.rochester@enetgroup.co.uk) Received: from raku.enetgroup.co.uk ([194.72.178.7]) by lugh.relay.co.uk (Netscape Messaging Server 4.15) with ESMTP id FR93MO00.H1B; Sat, 11 Mar 2000 09:28:00 +0000 Content-Length: 710 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200003110449.XAA22087@lab12.ie.pitt.edu> Date: Sat, 11 Mar 2000 09:29:42 -0000 (GMT) From: John Rochester To: (Gary Rafe) Subject: RE: Q: trouble with linux-jdk1.2pre-v2 on 3.3-R reading System.i Cc: freebsd-java@freebsd.org Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 11-Mar-00 Gary Rafe wrote: > After seeing comments suggesting the usability of the blackdown.org > jdk1.2pre-v2 port on FreeBSD 3.3-RELEASE systems, > we pulled it down & gave it a try. > > We're finding, however, that the readLine() method of BufferedReader > doesn't fetch anything from stdin (i.e., the keyboard) and "hangs", > while the native FreeBSD JDK1.1.8 port works as advertised: > > Can anyone comment on this behavior ? This is a bug in the linux emulation. I posted a patch for 3.4-STABLE several weeks ago which fixes this. I'm not sure how it would work on 3.3. ---- John Rochester Java Developer, e-Net Software, Bath, UK john.rochester@enetgroup.co.uk jr@cs.mun.ca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Mar 11 9:58:29 2000 Delivered-To: freebsd-java@freebsd.org Received: from lab12.ie.pitt.edu (lab12.ie.pitt.edu [136.142.89.102]) by hub.freebsd.org (Postfix) with ESMTP id 8036C37BC02 for ; Sat, 11 Mar 2000 09:58:26 -0800 (PST) (envelope-from grafe@lab12.ie.pitt.edu) Received: (from grafe@localhost) by lab12.ie.pitt.edu (8.9.3+Sun/8.9.3) id MAA29790 for freebsd-java@freebsd.org; Sat, 11 Mar 2000 12:57:52 -0500 (EST) Date: Sat, 11 Mar 2000 12:57:52 -0500 (EST) Message-Id: <200003111757.MAA29790@lab12.ie.pitt.edu> From: grafe@lab12.ie.pitt.edu (Gary Rafe) To: freebsd-java@freebsd.org Subject: Re: Q: trouble with linux-jdk1.2pre-v2 on 3.3-R reading System.in Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org !> After seeing comments suggesting the usability of the blackdown.org !> jdk1.2pre-v2 port on FreeBSD 3.3-RELEASE systems, !> we pulled it down & gave it a try. !> !> We're finding, however, that the readLine() method of BufferedReader !> doesn't fetch anything from stdin (i.e., the keyboard) and "hangs", !> while the native FreeBSD JDK1.1.8 port works as advertised: !> !> Can anyone comment on this behavior ? ! !This is a bug in the linux emulation. I posted a patch for 3.4-STABLE !several weeks ago which fixes this. I'm not sure how it would work on !3.3. ! !---- !John Rochester Java Developer, e-Net Software, Bath, UK !john.rochester@enetgroup.co.uk jr@cs.mun.ca Thanks for this information. I applied the patch to my 3.3-R /usr/src/sys, compiled the new linux.ko module, and it installed without complaint. And the good news is, the Linux JDK1.2pre-v2 here reads input now. Thanks again ! -- Gary Rafe gerst4@pitt.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Mar 11 12:16:12 2000 Delivered-To: freebsd-java@freebsd.org Received: from smtprch1.nortel.com (smtprch1.nortelnetworks.com [192.135.215.14]) by hub.freebsd.org (Postfix) with ESMTP id DCF4137BD30 for ; Sat, 11 Mar 2000 12:16:04 -0800 (PST) (envelope-from atrens@nortelnetworks.com) Received: from zmers013 by smtprch1.nortel.com; Sat, 11 Mar 2000 14:16:09 -0600 Received: from hcarp00g.ca.nortel.com by zmers013; Sat, 11 Mar 2000 15:15:43 -0500 Received: from hcarp00g.ca.nortel.com (hcarp00g.ca.nortel.com [47.196.31.114]) by hcarp00g.ca.nortel.com (8.9.3/8.7.3) with ESMTP id PAA00593 for ; Sat, 11 Mar 2000 15:24:25 -0500 (EST) Date: Sat, 11 Mar 2000 15:24:25 -0500 (EST) From: "Andrew Atrens" X-Sender: atrens@hcarp00g.ca.nortel.com Reply-To: "Andrew Atrens" To: freebsd-java@freebsd.org Subject: bug - `try' doesn't catch sigfpe Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org All, The subject says it all. Running the latest and greatest 1.1.8, I was asked to try out the spec benchmark to see how fast (and robust) 1.1.8 was on FreeBSD. The test immediately croaked when some code purposely did a divide by 0 in a `try' block. The benchmark expected the `try' to fail, but did not expect the app to core. Andrew. -- +-- | Andrew Atrens Nortel Networks, Ottawa, Canada. | | All opinions expressed are my own, not those of any employer. | --+ Berkeley had what we called "copycenter", which is "take it down to the copy center and make as many copies as you want". -- Kirk McKusick +-- --+ Bill Gates is a white Persian cat and a monocle away from becoming another James Bond villain. "No Mr Bond, I expect you to upgrade." -- Dennis Miller +-- --+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Mar 11 15:27:25 2000 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.79.126]) by hub.freebsd.org (Postfix) with ESMTP id 2974B37B9E9 for ; Sat, 11 Mar 2000 15:27:22 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.79.115]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id QAA19532; Sat, 11 Mar 2000 16:27:20 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id QAA04192; Sat, 11 Mar 2000 16:27:18 -0700 (MST) (envelope-from nate) Date: Sat, 11 Mar 2000 16:27:18 -0700 (MST) Message-Id: <200003112327.QAA04192@nomad.yogotech.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Andrew Atrens" Cc: freebsd-java@FreeBSD.ORG Subject: Re: bug - `try' doesn't catch sigfpe In-Reply-To: References: X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > The subject says it all. Running the latest and greatest 1.1.8, I was > asked to try out the spec benchmark to see how fast (and robust) 1.1.8 was > on FreeBSD. The test immediately croaked when some code purposely did a > divide by 0 in a `try' block. The benchmark expected the `try' to fail, > but did not expect the app to core. I thought we fixed that bug in one of the later 1.1.8 release. Are you sure you're running the latest/greatest release? On which version of FreeBSD? Can you send out the test code you're using to verify the bug? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Mar 11 17:28: 0 2000 Delivered-To: freebsd-java@freebsd.org Received: from smtprch1.nortel.com (smtprch1.nortelnetworks.com [192.135.215.14]) by hub.freebsd.org (Postfix) with ESMTP id 1E2F037BB09 for ; Sat, 11 Mar 2000 17:27:54 -0800 (PST) (envelope-from atrens@nortelnetworks.com) Received: from zmers013 by smtprch1.nortel.com; Sat, 11 Mar 2000 19:27:44 -0600 Received: from hcarp00g.ca.nortel.com by zmers013; Sat, 11 Mar 2000 20:27:17 -0500 Received: from hcarp00g.ca.nortel.com (hcarp00g.ca.nortel.com [47.196.31.114]) by hcarp00g.ca.nortel.com (8.9.3/8.7.3) with ESMTP id UAA01801; Sat, 11 Mar 2000 20:35:59 -0500 (EST) Date: Sat, 11 Mar 2000 20:35:59 -0500 (EST) From: "Andrew Atrens" X-Sender: atrens@hcarp00g.ca.nortel.com Reply-To: "Andrew Atrens" To: Nate Williams Cc: freebsd-java@FreeBSD.ORG Subject: Re: bug - `try' doesn't catch sigfpe In-Reply-To: <200003112327.QAA04192@nomad.yogotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This - FreeBSD churchill 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Wed Mar 8 17:56:36 EST 2000 root@churchill:/usr/local/src/sys/compile/CHURCHILL i386 and this - jdk1.1.8_ELF.V1999-11-9.tar.gz This little class tickles the bug - class sigfpe { void fpe() { int a, b; a = 7; b = 0; try { a = a / b; return; // fail } catch (java.lang.Exception x) { // pass } return; } public static void main(String[] args) { sigfpe foo = new sigfpe(); foo.fpe(); } } Andrew. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Mar 11 17:40:57 2000 Delivered-To: freebsd-java@freebsd.org Received: from yourbox.net (eraclito.yourbox.net [151.4.128.2]) by hub.freebsd.org (Postfix) with ESMTP id C431C37BDB0 for ; Sat, 11 Mar 2000 17:40:47 -0800 (PST) (envelope-from gea@yourbox.net) Received: from yourbox.net (socrate.yourbox.net [151.4.128.4]) by yourbox.net (8.9.3/8.9.3) with ESMTP id CAA25924; Sun, 12 Mar 2000 02:40:35 +0100 (CET) (envelope-from gea@yourbox.net) Message-ID: <38CAF593.2AE86D0B@yourbox.net> Date: Sun, 12 Mar 2000 02:40:35 +0100 From: Amedeo Beck Peccoz X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.4-STABLE i386) X-Accept-Language: it, en, fr, de MIME-Version: 1.0 To: Andrew Atrens , freebsd-java@FreeBSD.ORG Subject: Re: bug - `try' doesn't catch sigfpe References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andrew Atrens wrote: > > This - > > FreeBSD churchill 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Wed Mar 8 17:56:36 > EST 2000 root@churchill:/usr/local/src/sys/compile/CHURCHILL i386 > > and this - > > jdk1.1.8_ELF.V1999-11-9.tar.gz FYI: on an old FreeBSD 2.2.8-STABLE #0: Wed Jun 9 13:26:56 CEST 1999 with jdk1.1.8_AOUT.V99-9-22.tar.gz it works. FYI: on a recent FreeBSD 3.4-STABLE #0: Thu Feb 24 13:55:37 CET 2000 with jdk1.1.8_ELF.V1999-11-9.tar.gz it works as well. Ciao! -- Amedeo Beck Peccoz Channel Manager - Southern Europe Cidera Europe Ltd Mob: +39-348-3818006 Fax: +39-0125-359004 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Mar 11 19:10:23 2000 Delivered-To: freebsd-java@freebsd.org Received: from axp5.physik.fu-berlin.de (axp5.physik.fu-berlin.de [160.45.34.3]) by hub.freebsd.org (Postfix) with ESMTP id 76B1437BAAC for ; Sat, 11 Mar 2000 19:10:17 -0800 (PST) (envelope-from dieringe@sirius.physik.fu-berlin.de) Received: from sirius.physik.fu-berlin.de (sirius.physik.fu-berlin.de [160.45.34.162]) by axp5.physik.fu-berlin.de (8.9.1a/8.9.1) with ESMTP id EAA06122; Sun, 12 Mar 2000 04:10:15 +0100 (MET) Received: from localhost (dieringe@localhost) by sirius.physik.fu-berlin.de (8.9.1a/8.9.1) with ESMTP id EAA26430; Sun, 12 Mar 2000 04:10:13 +0100 (MET) Date: Sun, 12 Mar 2000 04:10:13 +0100 (MET) From: Martin Dieringer To: Andrew Atrens Cc: Nate Williams , freebsd-java@FreeBSD.ORG Subject: Re: bug - `try' doesn't catch sigfpe In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 11 Mar 2000, Andrew Atrens wrote: > FreeBSD churchill 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Wed Mar 8 17:56:36 > EST 2000 root@churchill:/usr/local/src/sys/compile/CHURCHILL i386 > > and this - > > jdk1.1.8_ELF.V1999-11-9.tar.gz FreeBSD 4.0-CURRENT #33 and the same (I think) jdk: same thing, but no problem with TYA 1.6 (J11) Copyright (c) 1997-2000 Albrecht Kleine where the exception is thrown correctly martin > > > This little class tickles the bug - > > > class sigfpe { > > void fpe() { > int a, b; > a = 7; b = 0; > try { > a = a / b; > return; // fail > } catch (java.lang.Exception x) { > // pass > } > return; > } > > public static void main(String[] args) { > sigfpe foo = new sigfpe(); > foo.fpe(); > } > } > > > Andrew. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Mar 11 21:50:47 2000 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.79.126]) by hub.freebsd.org (Postfix) with ESMTP id 4244937BB59 for ; Sat, 11 Mar 2000 21:50:38 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.79.115]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id WAA22095; Sat, 11 Mar 2000 22:50:33 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id WAA06716; Sat, 11 Mar 2000 22:50:32 -0700 (MST) (envelope-from nate) Date: Sat, 11 Mar 2000 22:50:32 -0700 (MST) Message-Id: <200003120550.WAA06716@nomad.yogotech.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Andrew Atrens" Cc: Nate Williams , freebsd-java@FreeBSD.ORG Subject: Re: bug - `try' doesn't catch sigfpe In-Reply-To: References: <200003112327.QAA04192@nomad.yogotech.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > FreeBSD churchill 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Wed Mar 8 17:56:36 > EST 2000 root@churchill:/usr/local/src/sys/compile/CHURCHILL i386 > > and this - > > jdk1.1.8_ELF.V1999-11-9.tar.gz > > > This little class tickles the bug - It *might* be a FreeBSD-current bug, since this application works fine under FreeBSD 2.2 and 3.4R. Exceptions were just changed in the last couple of days to be different in -current. At this point, I'd lean towards it being a 'bug' or feature in the version of FreeBSD you are running. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message