From owner-freebsd-java Sun May 28 7:49:20 2000
Delivered-To: freebsd-java@freebsd.org
Received: from imr1.ericy.com (imr1.ericy.com [208.237.135.240])
by hub.freebsd.org (Postfix) with ESMTP id 0F41337B89E
for <freebsd-java@FreeBSD.ORG>; Sun, 28 May 2000 07:49:17 -0700 (PDT)
(envelope-from lmcmgin@lmc.ericsson.se)
Received: from mr3.exu.ericsson.se (mr3u3.ericy.com [208.237.135.126])
by imr1.ericy.com (8.9.3/8.9.3) with ESMTP id JAA29520
for <freebsd-java@FreeBSD.ORG>; Sun, 28 May 2000 09:48:51 -0500 (CDT)
Received: from lmc.ericsson.se (noah.lmc.ericsson.se [142.133.1.1])
by mr3.exu.ericsson.se (8.9.3/8.9.3) with ESMTP id JAA26125
for <freebsd-java@FreeBSD.ORG>; Sun, 28 May 2000 09:48:50 -0500 (CDT)
Received: from linux8.lmc.ericsson.se (linux8.lmc.ericsson.se [142.133.4.228])
by lmc.ericsson.se (8.9.2/8.9.2) with ESMTP id KAA14398
for <freebsd-java@FreeBSD.ORG>; Sun, 28 May 2000 10:48:43 -0400 (EDT)
Date: Sun, 28 May 2000 10:47:12 -0400 (EDT)
From: Martin Gingras <lmcmgin@lmc.ericsson.se>
X-Sender: r00t@linux8.lmc.ericsson.se
To: freebsd-java@FreeBSD.ORG
Subject: Re: Java IDEs
In-Reply-To: <200005262341.JAA78444@ares.trc.adelaide.edu.au>
Message-ID: <Pine.BSF.4.21.0005281043580.469-100000@linux8.lmc.ericsson.se>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Hi, I can confirm that jbuilder35 is working smoothly with the official
jdk1.2.2 port. This might be off topic but anyone had experience with
Clearcase 4.0 under freebsd (linux bins) or anyone can point me
somewhere.... Since this is the only thing I missed to have a perfect
'corporate' development environment....
regards,
Martin Gingras
On Sat, 27 May 2000, Greg Lewis wrote:
> John Daniels wrote:
> > I should have mentioned that I intend to use the IDB with FreeBSD native JDK
> > 1.2.2 (patchset 8 and future patchsets). So I would like information only
> > on IDEs that will run under FreeBSD (preferably native).
> [snippage]
> > Is there much difference between JBuilder Foundation, Forte Community
> > Edition (leaving out IBM for the moment because of an apparent lack of JDK
> > 1.2.2 support in their free IDE)? For example, both Inprise and Sun seem
> > to reserve EJB development to the high-end Enterprise products. How easy is
> > it to install these IDE's? I assume that they only run on FreeBSD under
> > Linux emulation.
>
> No real comments on which IDEs are best (I've only had some indirect
> experience with VisualCafe, and it wasn't a good experience ;). However,
> I've seen reports on the list recently of both Forte and JBuilder running
> with patchset 8. The only caveat was that you needed to install jpda.jar
> from the Blackdown JDK to get JBuilder running. YMMV.
>
> --
> 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
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Mon May 29 0:47:34 2000
Delivered-To: freebsd-java@freebsd.org
Received: from zeus.mipnet.org (zeus.mipnet.org [195.115.143.1])
by hub.freebsd.org (Postfix) with ESMTP id 07BF537BC20
for <freebsd-java@freebsd.org>; Mon, 29 May 2000 00:47:24 -0700 (PDT)
(envelope-from mahe@twam.com)
Received: from twamx.twam (sad-hermes-15.mipnet.org [195.115.76.30])
by zeus.mipnet.org (8.9.3/8.9.3) with ESMTP id KAA12243
for <freebsd-java@freebsd.org>; Mon, 29 May 2000 10:03:02 +0200 (MET DST)
Received: from twam.com (twamx.twam [127.0.0.1])
by twamx.twam (8.9.2/8.9.2) with ESMTP id JAA01190
for <freebsd-java@freebsd.org>; Mon, 29 May 2000 09:49:42 +0200 (CEST)
(envelope-from mahe@twam.com)
Message-ID: <39322116.487AED3A@twam.com>
Date: Mon, 29 May 2000 09:49:42 +0200
From: "Loic Mahe'" <mahe@twam.com>
Organization: TWAM Informatique
X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.1-RELEASE i386)
X-Accept-Language: fr, en
MIME-Version: 1.0
To: freebsd-java@freebsd.org
Subject: SIGSEV with FBSD 3.1 and linux-jdk-1.2 (pre-v2)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Hello,
I'm using FreeBSD 3.1 and I wanted to try JDK 1.2.
According to http://www.jmcm.org/tech/ports/linux_jdk.html,
I installed linux_base-5.2 and Blackdown 1.2pre-v2 JDK.
(I get the messages about the missing "Zapf" font ; I therefore
commented out the lines with zapf in font.properties.)
None of the demos (applets or jfc) are running. Let's take for example
the SinmpleExample demo. The window briefly opens but the contents
(in particular fonts) are unreadable. And the window closes with a
very long error message (which I included below).
Any ideas ?
Thanks in advance (please reply alos to me directly if possible).
Loic
============================
Here the error message :
SIGSEGV 11* segmentation violation
stackpointer=0x297b22e0
Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, green threads):
"AWT-Finalizer" (TID:0x28509e88, sys_thread_t:0x88aeab8, state:CW) prio=9
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Compiled Code)
at sun.awt.AWTFinalizer.run(Compiled Code)
"Screen Updater" (TID:0x28507c28, sys_thread_t:0x886ab58, state:CW) prio=4
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Compiled Code)
at sun.awt.ScreenUpdater.nextEntry(Compiled Code)
at sun.awt.ScreenUpdater.run(Compiled Code)
"Image Fetcher 3" (TID:0x284fe748, sys_thread_t:0x8783018, state:R) prio=3
at java.awt.MediaTracker.setDone(Compiled Code)
at java.awt.MediaEntry.setStatus(Compiled Code)
at java.awt.ImageMediaEntry.imageUpdate(Compiled Code)
at sun.awt.image.ImageWatched.newInfo(Compiled Code)
at sun.awt.image.ImageRepresentation.imageComplete(Compiled Code)
at sun.awt.image.ImageDecoder.imageComplete(Compiled Code)
at sun.awt.image.GifImageDecoder.produceImage(Compiled Code)
at sun.awt.image.InputStreamImageSource.doFetch(Compiled Code)
at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
at sun.awt.image.ImageFetcher.run(Compiled Code)
"Image Fetcher 2" (TID:0x284fd200, sys_thread_t:0x8747a98, state:R) prio=3
at java.awt.MediaTracker.setDone(Compiled Code)
at java.awt.MediaEntry.setStatus(Compiled Code)
at java.awt.ImageMediaEntry.imageUpdate(Compiled Code)
at sun.awt.image.ImageWatched.newInfo(Compiled Code)
at sun.awt.image.ImageRepresentation.imageComplete(Compiled Code)
at java.awt.image.ImageFilter.imageComplete(Compiled Code)
at sun.awt.image.PixelStore.replay(Compiled Code)
at sun.awt.image.PixelStore.replay(Compiled Code)
at sun.awt.image.InputStreamImageSource.updateFromStore(Compiled Code)
at sun.awt.image.InputStreamImageSource.doFetch(Compiled Code)
at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
at sun.awt.image.ImageFetcher.run(Compiled Code)
"Image Fetcher 1" (TID:0x284fc7e0, sys_thread_t:0x8779180, state:R) prio=3
at java.awt.MediaTracker.setDone(Compiled Code)
at java.awt.MediaEntry.setStatus(Compiled Code)
at java.awt.ImageMediaEntry.imageUpdate(Compiled Code)
at sun.awt.image.ImageWatched.newInfo(Compiled Code)
at sun.awt.image.ImageRepresentation.imageComplete(Compiled Code)
at sun.awt.image.ImageDecoder.imageComplete(Compiled Code)
at sun.awt.image.GifImageDecoder.produceImage(Compiled Code)
at sun.awt.image.InputStreamImageSource.doFetch(Compiled Code)
at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
at sun.awt.image.ImageFetcher.run(Compiled Code)
"Image Fetcher 0" (TID:0x284f64f8, sys_thread_t:0x870f1a0, state:R) prio=3
at java.awt.MediaTracker.setDone(Compiled Code)
at java.awt.MediaEntry.setStatus(Compiled Code)
at java.awt.ImageMediaEntry.imageUpdate(Compiled Code)
at sun.awt.image.ImageWatched.newInfo(Compiled Code)
at sun.awt.image.ImageRepresentation.imageComplete(Compiled Code)
at sun.awt.image.ImageDecoder.imageComplete(Compiled Code)
at sun.awt.image.GifImageDecoder.produceImage(Compiled Code)
at sun.awt.image.InputStreamImageSource.doFetch(Compiled Code)
at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
at sun.awt.image.ImageFetcher.run(Compiled Code)
"TimerQueue" (TID:0x284f61c8, sys_thread_t:0x85c6128, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at javax.swing.TimerQueue.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
"AWT-Motif" (TID:0x284f2400, sys_thread_t:0x83988c0, state:R) prio=5
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Compiled Code)
"SunToolkit.PostEventQueue-0" (TID:0x284f2ac0, sys_thread_t:0x83b39c8, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Compiled Code)
at sun.awt.PostEventQueue.run(Compiled Code)
"AWT-EventQueue-0" (TID:0x284f2a90, sys_thread_t:0x8411840, state:R) prio=6
at sun.java2d.loops.DefaultComponent.IntIsomorphicCopy(Native Method)
at sun.java2d.loops.IntRgbToIntRgb.OpaqueBlit(Compiled Code)
at sun.java2d.loops.RasterOutputManager.performOpaqueBlit(Compiled Code)
at sun.java2d.loops.RasterOutputManager.compositeSrcDst(Compiled Code)
at sun.java2d.loops.RasterOutputManager.renderImage(Compiled Code)
at sun.java2d.SunGraphics2D.renderingPipeImage(Compiled Code)
at sun.java2d.SunGraphics2D.drawImage(Compiled Code)
at sun.awt.motif.X11Graphics.drawImage(Compiled Code)
at javax.swing.JComponent.paint(Compiled Code)
at java.awt.Container.paint(Compiled Code)
at sun.awt.motif.MComponentPeer.handleEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Window.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
"Finalizer" (TID:0x284d8320, sys_thread_t:0x80fb9b0, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(Compiled Code)
at java.lang.ref.ReferenceQueue.remove(Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0x284d83b0, sys_thread_t:0x80f7020, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0x284d83e0, sys_thread_t:0x80f3790, state:CW) prio=5
"Thread-0" (TID:0x28508a78, sys_thread_t:0x804c3d0, state:CW) prio=5
Monitor Cache Dump:
sun.awt.PostEventQueue@284F2AC0/2857B2D8: <unowned>
Waiting to be notified:
"SunToolkit.PostEventQueue-0" (0x83b39c8)
sun.awt.image.PixelStore8@284FD2D0/285B8570: owner "Image Fetcher 2" (0x8747a98) 2 entries
java.lang.ref.ReferenceQueue$Lock@284D8338/2850DD60: <unowned>
Waiting to be notified:
"Finalizer" (0x80fb9b0)
javax.swing.TimerQueue@284F61F0/285A1768: <unowned>
Waiting to be notified:
"TimerQueue" (0x85c6128)
sun.awt.ScreenUpdater@28507C28/285DC6A0: <unowned>
Waiting to be notified:
"Screen Updater" (0x886ab58)
java.lang.ref.Reference$Lock@284D83C0/2850D890: <unowned>
Waiting to be notified:
"Reference Handler" (0x80f7020)
java.lang.Class@284EF8D8/28571610: owner "AWT-EventQueue-0" (0x8411840) 1 entry
sun.awt.AWTFinalizer@28509E88/287AED18: <unowned>
Waiting to be notified:
"AWT-Finalizer" (0x88aeab8)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "AWT-EventQueue-0" (0x8411840) 1 entry
Dynamic loading lock: <unowned>
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x80f3790)
Child death monitor: <unowned>
I/O monitor: owner "AWT-Motif" (0x83988c0) 1 entry
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x804d770)
Thread queue lock: owner "AWT-EventQueue-0" (0x8411840) 1 entry
Waiting to be notified:
"Thread-0" (0x804c3d0)
Monitor registry: owner "AWT-EventQueue-0" (0x8411840) 1 entry
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Mon May 29 1:40: 9 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 A5FAD37BB56
for <freebsd-java@FreeBSD.ORG>; Mon, 29 May 2000 01:40:05 -0700 (PDT)
(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 #42699)
with ESMTP id <01JPYWNCNXPY0005S5@research.kpn.com> for
freebsd-java@FreeBSD.ORG; Mon, 29 May 2000 10:39:59 +0200
Received: by l04.research.kpn.com with Internet Mail Service (5.5.2650.21)
id <L6WZ686N>; Mon, 29 May 2000 10:29:18 +0100
Content-return: allowed
Date: Mon, 29 May 2000 10:29:15 +0100
From: "Koster, K.J." <K.J.Koster@kpn.com>
Subject: RE: JDK 1.2.2 Problems
To: 'Martin Gingras' <lmcmgin@lmc.ericsson.se>,
freebsd-java@FreeBSD.ORG
Message-id: <59063B5B4D98D311BC0D0001FA7E4522026D759F@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
What version of the linux_base do you have installed? You may want to
upgrade to the latest.
I've had reports that *only* 6.1 works properly, and the error messages you
print are disturbingly similar.
Kees Jan
==============================================
Everyone is responsible for his own actions,
and (people tend to forget this) the effect
they have on others.
> -----Original Message-----
> From: Martin Gingras [mailto:lmcmgin@lmc.ericsson.se]
> Sent: vrijdag 26 mei 2000 17:41
> To: freebsd-java@FreeBSD.ORG
> Subject: JDK 1.2.2 Problems
>
>
>
> Hi, I am experiencing strange problem with the official port release.
>
> > uname -a
> FreeBSD linux8.lmc.ericsson.se 4.0-RELEASE FreeBSD
> 4.0-RELEASE #0: Sun May
> 21 12:50:13 EDT 2000
> r00t@linux8.lmc.ericsson.se:/usr/src/sys/compile/GENERIC i386
>
> I am using /bin/sh.
>
> downloaded from http://www.freebsd.org/ports/java.html#linux-jdk-1.2.2
>
> # pwd
> /usr/home/r00t/linux-jdk
>
> # make install
> ===> Installing for jdk-1.2.2-RC4-linux-i386-glibc-2.1.2
> ===> jdk-1.2.2-RC4-linux-i386-glibc-2.1.2 depends on
> file: /compat/linux/usr/i486-linux-libc5/lib/libc.so.5 - found
> /bin/mkdir -p /usr/local/linux-jdk1.2.2
> (cd /usr/home/r00t/linux-jdk/work/jdk1.2.2 && tar -c -f - .) | (cd
> /usr/local/linux-jdk1.2.2 && tar fx -)
> /bin/rm /usr/local/linux-jdk1.2.2/bin/.java_wrapper.orig
> /bin/rm /usr/local/linux-jdk1.2.2/jre/bin/.java_wrapper.orig
> ===> Generating temporary packing list
> ===> Registering installation for
> jdk-1.2.2-RC4-linux-i386-glibc-2.1.2
> #
>
> (no errors)
>
> # /usr/local/linux-jdk1.2.2/bin/java
> Segmentation fault - core dumped
> /usr/local/linux-jdk1.2.2/bin/java: /bin/realpath: not found
> /usr/local/linux-jdk1.2.2/bin/java: /bin/realpath: not found
> java was not found in /bin/i386/green_threads/java
> #
>
> I have tried other shells (csh, bash) and got the same results.
>
> let's have a look to /usr/local/linux-jdk1.2.2/bin/java:
>
> I add some echo (variable):
>
> -snip-
>
> echo
> echo APPHOME:$APPHOME
> echo
>
> echo
> echo JREHOME:$JREHOME
> echo
>
> echo
> echo JRE:$jre
> echo
>
> # Get the canonicalized absolute pathnames
> jre="`$jre/bin/realpath $jre`"
> APPHOME="`${jre}/bin/realpath $APPHOME`"
> JREHOME="`${jre}/bin/realpath $JREHOME`"
> export APPHOME JREHOME
>
> echo
> echo APPHOME:$APPHOME
> echo
>
> echo
> echo JREHOME:$JREHOME
> echo
>
> -snip-
>
> running java again I got:
>
> # java
> APPHOME:/usr/local/linux-jdk1.2.2/bin/..
> JREHOME:/usr/local/linux-jdk1.2.2/bin/../jre
> JRE:/usr/local/linux-jdk1.2.2/bin/../jre
> Segmentation fault - core dumped
> /usr/local/linux-jdk1.2.2/bin/java: /bin/realpath: not found
> /usr/local/linux-jdk1.2.2/bin/java: /bin/realpath: not found
> APPHOME:
> JREHOME:
> java was not found in /bin/i386/green_threads/java
> #
>
>
>
> I tried to force the definition of APPHOME and JREHOME with no luck.
>
> Anyone can tell me what is going on ?
> Is it shell related?
> Someone can send me their /usr/local/linux-jdk1.2.2/bin/java
> to compare?
>
> Thanx
>
> Martin Gingras
>
>
>
>
>
> 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 May 29 4:28:34 2000
Delivered-To: freebsd-java@freebsd.org
Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92])
by hub.freebsd.org (Postfix) with ESMTP id 0A23637BA51
for <freebsd-java@freebsd.org>; Mon, 29 May 2000 04:28:28 -0700 (PDT)
(envelope-from dfr@calcaphon.com)
Received: from calcaphon.demon.co.uk ([193.237.19.5] helo=bluebottle.qubesoft.com)
by anchor-post-34.mail.demon.net with esmtp (Exim 2.12 #1)
id 12wNiZ-000Iyg-0Y; Mon, 29 May 2000 12:28:23 +0100
Received: from doug02.qubesoft.com (doug02.qubesoft.com [192.168.1.4])
by bluebottle.qubesoft.com (8.9.3/8.9.1) with ESMTP id MAA15268;
Mon, 29 May 2000 12:29:11 +0100 (BST)
(envelope-from dfr@calcaphon.com)
Date: Mon, 29 May 2000 12:28:19 +0100 (BST)
From: Doug Rabson <dfr@calcaphon.com>
X-Sender: dfr@doug02.qubesoft.com
To: Greg Lewis <glewis@trc.adelaide.edu.au>
Cc: Andrzej Bialecki <abial@webgiro.com>, freebsd-java@freebsd.org
Subject: Re: Kernel threads (RE: alphaworks 1.3 linux port)
In-Reply-To: <200005272248.IAA61104@ares.trc.adelaide.edu.au>
Message-ID: <Pine.BSF.4.21.0005291227510.551-100000@doug02.qubesoft.com>
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, 28 May 2000, Greg Lewis wrote:
> Andrzej Bialecki wrote:
> > > > As I wrote about two weeks ago, I tried to get it running on
> > > > relatively up-to-date 5.0-CURRENT. Alphaworks JVM uses native threads on
> > > > Linux, which (as far as I understand) are impossible to have right now,
> > > > either under Linux emulation or otherwise.
> > >
> > > /usr/ports/devel/linuxthreads?
> >
> > Sure. Have you got the sources for their JVM?
> >
> > :-)
>
> If I did, I'd be porting them to FreeBSD ;). I thought this port might
> allow the running of apps with use Linux threads, and the description
> didn't disabuse me of this notion so I thought I'd point it out.
Even without this port, Linux programs using linuxthreads will work fine
under emulation.
--
Doug Rabson Mail: dfr@calcaphon.com
Technical Director, Qube Software Ltd. Phone: +44 20 7431 9995
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Mon May 29 4:58:34 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 6A82B37BBE9; Mon, 29 May 2000 04:58:27 -0700 (PDT)
(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.10.1/8.10.1) with ESMTP id e4TBwNW40282;
Mon, 29 May 2000 13:58:23 +0200
Received: (from markush@localhost)
by mao.acc.umu.se (8.9.3/8.9.3/Debian/GNU) id NAA06598;
Mon, 29 May 2000 13:58:23 +0200
Date: Mon, 29 May 2000 13:58:23 +0200
From: Markus Holmberg <markush@acc.umu.se>
To: freebsd-java@freebsd.org
Cc: freebsd-emulation@freebsd.org,
John Rochester <john.rochester@enetgroup.co.uk>
Subject: readLine() failing in linux-jdk1.2.2 (because of linux emulation?)
Message-ID: <20000529135823.A22186@acc.umu.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3-current-20000511i
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Hello..
I have problems with readLine() in a BufferedReader (in Java) failing
to read input in linux-jdk1.2.2. I searched the freebsd-java and
freebsd-emulation lists for similar problem reports, and found a few
reports regarding the same problem.
Also, John Rochester posted two patches, of which the second (the one
that modifies "linux_file.c") fixes this problem (originally for 3.x,
applied with a little tweaking to 4.0-STABLE May 29th). Here's the
posting:
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=22905+0+archive/2000/freebsd-java/20000220.freebsd-java
Not being able to use readLine() gives linux-jdk1.2.2 a kind of broken
feeling (for something which works great otherwise).
Surely someone else must have tried to get this fixed before?
This patch was apparently never submitted as a PR, so I would be glad to
submit it now to get the Linux emulation fixed, but I have no idea of
what the patch is doing! (Basically removing lots of stuff). So would
someone mind reviewing it and see if it would be a Right Thing(tm) to
get it checked into the FreeBSD CVS?
Best Regards,
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 Mon May 29 5:34:15 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ntua.gr (achilles.noc.ntua.gr [147.102.222.210])
by hub.freebsd.org (Postfix) with ESMTP id E531C37BBD4
for <freebsd-java@FreeBSD.ORG>; Mon, 29 May 2000 05:34:09 -0700 (PDT)
(envelope-from past@netmode.ece.ntua.gr)
Received: from netmode.ece.ntua.gr (dolly.netmode.ece.ntua.gr [147.102.13.10])
by ntua.gr (8.9.3/8.9.3) with ESMTP id PAA29471;
Mon, 29 May 2000 15:33:58 +0300 (EET DST)
Received: by netmode.ece.ntua.gr (Postfix, from userid 410)
id 30BA185C3; Mon, 29 May 2000 15:23:19 +0300 (EET DST)
Date: Mon, 29 May 2000 15:23:18 +0300
From: Panagiotis Astithas <past@netmode.ntua.gr>
To: Greg Lewis <glewis@trc.adelaide.edu.au>
Cc: John Daniels <jmd526@hotmail.com>, freebsd-java@FreeBSD.ORG
Subject: Re: Java IDEs
Message-ID: <20000529152318.A24580@netmode.ece.ntua.gr>
Reply-To: past@netmode.ntua.gr
References: <20000526212811.6683.qmail@hotmail.com> <200005262341.JAA78444@ares.trc.adelaide.edu.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0i
In-Reply-To: <200005262341.JAA78444@ares.trc.adelaide.edu.au>; from glewis@trc.adelaide.edu.au on Sat, May 27, 2000 at 09:11:01AM +0930
X-Organizational-Unit: Network Management and Optimal Design Laboratory
X-Organization: National Technical University of Athens, GREECE
X-Work-Phone: +30-1-772-1-450
X-Work-FAX: +30-1-772-1-452
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
On Sat, May 27, 2000 at 09:11:01AM +0930, Greg Lewis wrote:
> No real comments on which IDEs are best (I've only had some indirect
> experience with VisualCafe, and it wasn't a good experience ;). However,
> I've seen reports on the list recently of both Forte and JBuilder running
> with patchset 8. The only caveat was that you needed to install jpda.jar
> from the Blackdown JDK to get JBuilder running. YMMV.
I have JBuilder Enterprise Edition running, with that small tweak. I don't
use it much though, since I have only 64 Megs of RAM on my main system and
JBuilder needs that much just for breakfast...
About a native FreeBSD port though, I think that only the fact that a
major software firm like Inprise, should support java on FreeBSD, would make
Sun change its priorities on the subject. It may well have more impact to
Sun, than our numerous requests for a port.
-past
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Mon May 29 9:20:14 2000
Delivered-To: freebsd-java@freebsd.org
Received: from mimer.webgiro.com (mimer.webgiro.com [212.209.29.5])
by hub.freebsd.org (Postfix) with ESMTP id A29DF37BC5F
for <freebsd-java@freebsd.org>; Mon, 29 May 2000 09:20:03 -0700 (PDT)
(envelope-from abial@webgiro.com)
Received: by mimer.webgiro.com (Postfix, from userid 66)
id A8DD12DC0A; Mon, 29 May 2000 18:26:32 +0200 (CEST)
Received: by mx.webgiro.com (Postfix, from userid 1001)
id 092DC7817; Mon, 29 May 2000 18:15:32 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
by mx.webgiro.com (Postfix) with ESMTP
id 06F6610E17; Mon, 29 May 2000 18:15:32 +0200 (CEST)
Date: Mon, 29 May 2000 18:15:31 +0200 (CEST)
From: Andrzej Bialecki <abial@webgiro.com>
To: Doug Rabson <dfr@calcaphon.com>
Cc: Greg Lewis <glewis@trc.adelaide.edu.au>, freebsd-java@freebsd.org
Subject: Re: Kernel threads (RE: alphaworks 1.3 linux port)
In-Reply-To: <Pine.BSF.4.21.0005291227510.551-100000@doug02.qubesoft.com>
Message-ID: <Pine.BSF.4.20.0005291813370.20280-100000@mx.webgiro.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
On Mon, 29 May 2000, Doug Rabson wrote:
> On Sun, 28 May 2000, Greg Lewis wrote:
>
> > Andrzej Bialecki wrote:
> > > > > As I wrote about two weeks ago, I tried to get it running on
> > > > > relatively up-to-date 5.0-CURRENT. Alphaworks JVM uses native threads on
> > > > > Linux, which (as far as I understand) are impossible to have right now,
> > > > > either under Linux emulation or otherwise.
> > > >
> > > > /usr/ports/devel/linuxthreads?
> > >
> > > Sure. Have you got the sources for their JVM?
> > >
> > > :-)
> >
> > If I did, I'd be porting them to FreeBSD ;). I thought this port might
> > allow the running of apps with use Linux threads, and the description
> > didn't disabuse me of this notion so I thought I'd point it out.
>
> Even without this port, Linux programs using linuxthreads will work fine
> under emulation.
Hmm... Then either IBM doesn't use them, or they do things a bit too
differently for our emulator... Would you mind taking a look at it, and
make an educated guess what needs to be fixed in order to get it working?
Andrzej Bialecki
// <abial@webgiro.com> WebGiro AB, Sweden (http://www.webgiro.com)
// -------------------------------------------------------------------
// ------ FreeBSD: The Power to Serve. http://www.freebsd.org --------
// --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ----
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Mon May 29 9:47:14 2000
Delivered-To: freebsd-java@freebsd.org
Received: from fling.sanbi.ac.za (fling.sanbi.ac.za [196.38.142.119])
by hub.freebsd.org (Postfix) with ESMTP id 0F37437B639
for <freebsd-java@freebsd.org>; Mon, 29 May 2000 09:47:09 -0700 (PDT)
(envelope-from pvh@egenetics.com)
Received: from pvh (helo=localhost)
by fling.sanbi.ac.za with local-esmtp (Exim 3.13 #2)
id 12wSgy-0008Wg-00
for freebsd-java@freebsd.org; Mon, 29 May 2000 18:47:04 +0200
Date: Mon, 29 May 2000 18:47:04 +0200 (SAST)
From: Peter van Heusden <pvh@egenetics.com>
X-Sender: pvh@fling.sanbi.ac.za
To: freebsd-java@freebsd.org
Subject: Re: OpenJIT 1.1.12, JDK 1.2.2, FreeBSD 4.0-S crash
In-Reply-To: <20000526142743.62A6037BE41@hub.freebsd.org>
Message-ID: <Pine.BSF.4.21.0005291846270.32584-100000@fling.sanbi.ac.za>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
On Fri, 26 May 2000, Robert Swindells wrote:
>
>
> >2) The OpenJIT makefile wants to install in
> >JAVA_HOME/jre/{lib/i386|classes}. After a make world for the Java JDK -
> >the standard 1.2.2 source from Sun's site + patchset 8 for FreeBSD - I end
> >up with a java installation in build/freebsd - there is no jre directory
> >there. So I removed the jre from the installation directories for OpenJIT.
>
> You need to do a "make release-images" to create a tree containing a jre
> directory.
Thanks, after I did that (and installed), I got a working JDK 1.2.2
(working with OpenJIT, that is).
Peter
--
Peter van Heusden pvh@egenetics.com
Electric Genetics
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Mon May 29 10: 3: 0 2000
Delivered-To: freebsd-java@freebsd.org
Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41])
by hub.freebsd.org (Postfix) with ESMTP id 2BD1437BCAC
for <freebsd-java@freebsd.org>; Mon, 29 May 2000 10:02:54 -0700 (PDT)
(envelope-from dfr@calcaphon.com)
Received: from calcaphon.demon.co.uk ([193.237.19.5] helo=bluebottle.qubesoft.com)
by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1)
id 12wSwG-000Pxk-0C; Mon, 29 May 2000 17:02:52 +0000
Received: from doug02.qubesoft.com (doug02.qubesoft.com [192.168.1.4])
by bluebottle.qubesoft.com (8.9.3/8.9.1) with ESMTP id SAA19039;
Mon, 29 May 2000 18:03:44 +0100 (BST)
(envelope-from dfr@calcaphon.com)
Date: Mon, 29 May 2000 18:02:49 +0100 (BST)
From: Doug Rabson <dfr@calcaphon.com>
X-Sender: dfr@doug02.qubesoft.com
To: Andrzej Bialecki <abial@webgiro.com>
Cc: Greg Lewis <glewis@trc.adelaide.edu.au>, freebsd-java@freebsd.org
Subject: Re: Kernel threads (RE: alphaworks 1.3 linux port)
In-Reply-To: <Pine.BSF.4.20.0005291813370.20280-100000@mx.webgiro.com>
Message-ID: <Pine.BSF.4.21.0005291802070.442-100000@doug02.qubesoft.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
On Mon, 29 May 2000, Andrzej Bialecki wrote:
> On Mon, 29 May 2000, Doug Rabson wrote:
>
> > On Sun, 28 May 2000, Greg Lewis wrote:
> >
> > > Andrzej Bialecki wrote:
> > > > > > As I wrote about two weeks ago, I tried to get it running on
> > > > > > relatively up-to-date 5.0-CURRENT. Alphaworks JVM uses native threads on
> > > > > > Linux, which (as far as I understand) are impossible to have right now,
> > > > > > either under Linux emulation or otherwise.
> > > > >
> > > > > /usr/ports/devel/linuxthreads?
> > > >
> > > > Sure. Have you got the sources for their JVM?
> > > >
> > > > :-)
> > >
> > > If I did, I'd be porting them to FreeBSD ;). I thought this port might
> > > allow the running of apps with use Linux threads, and the description
> > > didn't disabuse me of this notion so I thought I'd point it out.
> >
> > Even without this port, Linux programs using linuxthreads will work fine
> > under emulation.
>
> Hmm... Then either IBM doesn't use them, or they do things a bit too
> differently for our emulator... Would you mind taking a look at it, and
> make an educated guess what needs to be fixed in order to get it working?
I don't have time right now to debug this. You might try one of the thread
expers (jasone, deischen).
--
Doug Rabson Mail: dfr@calcaphon.com
Technical Director, Qube Software Ltd. Phone: +44 20 7431 9995
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Mon May 29 11:49:28 2000
Delivered-To: freebsd-java@freebsd.org
Received: from hotmail.com (f155.law8.hotmail.com [216.33.241.155])
by hub.freebsd.org (Postfix) with SMTP id D5D9D37B77E
for <freebsd-java@FreeBSD.ORG>; Mon, 29 May 2000 11:49:25 -0700 (PDT)
(envelope-from jmd526@hotmail.com)
Received: (qmail 67560 invoked by uid 0); 29 May 2000 18:49:25 -0000
Message-ID: <20000529184925.67559.qmail@hotmail.com>
Received: from 209.220.228.2 by www.hotmail.com with HTTP;
Mon, 29 May 2000 11:49:25 PDT
X-Originating-IP: [209.220.228.2]
From: "John Daniels" <jmd526@hotmail.com>
To: past@netmode.ntua.gr, glewis@trc.adelaide.edu.au
Cc: freebsd-java@FreeBSD.ORG
Subject: Re: Java IDEs
Date: Mon, 29 May 2000 14:49:25 EDT
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Hi:
It seems to me that porting JBuilder and porting a JDK are very different.
I offered to see if Inprise would port JBuilder because on they claim that
it is written in pure Java (so it shouldn't be too difficult to port) and
they tout it's multi-platform nature, so an additional platform, which is
currently underserved, should be a positive thing for them.
An "official" port of the JDK, involves licensing and other issues that I
don't have a good grasp of, but seems to be much more complicated than
Inprise porting software that they own. Inprise recently made an official
JKD port on Linux, but they had to team with Sun and they had Blackdown's
port (at Release Candidate level) to work from.
In sum, porting JBuilder does not imply that a JDK would also be ported. I
agree with your reasoning, however, that a JBuilder port could start a
relationship between FreeBSD and Inprise - which could result in a JDK port
in the future, and would send a signal to Sun. *IF* Inprise agreed to port
JBuilder, they may only port the _free_ Foundation edition (at first) since
the Professional and Enterprise editions might be more work (Enterprise, for
example, includes an EJB Application Server). Additionally, I am still not
convinced that a native port of an IDE is necessary or desireable since it
appears that IDE's will work just fine under linux emulation.
I'd like to hear from people who have tried/use various Java IDE's before I
approach my friend at Inprise. Is a native IDE port needed for 1)
performance, 2) added functionality, 3) interoperability?
John
>Panagiotis Astithas <past@netmode.ntua.gr> wrote:
>I have JBuilder Enterprise Edition running, with that small tweak. I
>don't use it much though, since I have only 64 Megs of RAM on my
>main system and JBuilder needs that much just for breakfast...
>
>About a native FreeBSD port though, I think that only the fact that a
>major software firm like Inprise, should support java on FreeBSD,
>would make Sun change its priorities on the subject. It may well have
>more impact to Sun, than our numerous requests for a port.
>
>-past
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Mon May 29 19:35:52 2000
Delivered-To: freebsd-java@freebsd.org
Received: from www.kpi.com.au (www.kpi.com.au [203.39.132.210])
by hub.freebsd.org (Postfix) with ESMTP id DE63A37B50B
for <freebsd-java@freebsd.org>; Mon, 29 May 2000 19:35:45 -0700 (PDT)
(envelope-from shevlandj@kpi.com.au)
Received: from kpi.com.au (ws06.kpi.com.au [203.39.132.219])
by www.kpi.com.au (8.9.3/8.9.3) with ESMTP id MAA42762;
Tue, 30 May 2000 12:35:58 +1000 (EST)
(envelope-from shevlandj@kpi.com.au)
Message-ID: <39332B1B.9DEA1A62@kpi.com.au>
Date: Tue, 30 May 2000 12:44:43 +1000
From: Joe Shevland <shevlandj@kpi.com.au>
Organization: KPI Logistics Pty Ltd
X-Mailer: Mozilla 4.72 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: jBoss <jboss-user@list.working-dogs.com>,
freebsd-java@freebsd.org
Subject: jBoss 2.0 and FreeBSD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Hi,
If anyone out there is interested, I've managed to get the jBoss 2.0 server
running on FreeBSD 3.4-STABLE with the latest port of JDK1.2.2 (patchset 8). For
the freebsd-java list, this URL explains what jBoss is better than I can:
http://www.jboss.org
I can provide instructions for doing this if anyone's keen, however the only
hurdle I had to overcome was to start an X server on the server machine and
change my DISPLAY to be hostname:0.0 instead of the default :0.0 (and this
requirement will be gone soon too when the EJX GUI stuff gets separated out).
The client test app hasn't been run yet, but all the EJB's get deployed fine,
the (InstantDB) database is fine, and AFAICT all the server sockets are behaving
themselves (no JIT yet also, had trouble getting OpenJIT to compile but I've got
a big bunch of email suggestions to go through now).
Regards,
Joe
--
Joe Shevland
Principal Consultant
KPI Logistics Pty Ltd
http://www.kpi.com.au
mailto:shevlandj@kpi.com.au
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Tue May 30 9:16:34 2000
Delivered-To: freebsd-java@freebsd.org
Received: from atlrel1.hp.com (atlrel1.hp.com [156.153.255.210])
by hub.freebsd.org (Postfix) with ESMTP
id A4BC437BC8A; Tue, 30 May 2000 09:16:28 -0700 (PDT)
(envelope-from marcel@cup.hp.com)
Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30])
by atlrel1.hp.com (Postfix) with ESMTP
id AF0FD15154; Tue, 30 May 2000 12:16:27 -0400 (EDT)
Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0.1) id JAA08045; Tue, 30 May 2000 09:16:26 -0700 (PDT)
Message-ID: <3933E95A.B036D054@cup.hp.com>
Date: Tue, 30 May 2000 09:16:26 -0700
From: Marcel Moolenaar <marcel@cup.hp.com>
Organization: Hewlett-Packard
X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386)
X-Accept-Language: en
MIME-Version: 1.0
To: Markus Holmberg <markush@acc.umu.se>
Cc: freebsd-java@FreeBSD.ORG, freebsd-emulation@FreeBSD.ORG,
John Rochester <john.rochester@enetgroup.co.uk>
Subject: Re: readLine() failing in linux-jdk1.2.2 (because of linux emulation?)
References: <20000529135823.A22186@acc.umu.se>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Markus Holmberg wrote:
>
> This patch was apparently never submitted as a PR, so I would be glad to
> submit it now to get the Linux emulation fixed, but I have no idea of
> what the patch is doing! (Basically removing lots of stuff). So would
> someone mind reviewing it and see if it would be a Right Thing(tm) to
> get it checked into the FreeBSD CVS?
I had it under review for inclusion in 4.0-RELEASE. I'm not sure that
removing this code is safe. It may solve the jdk problem, but may
re-introduce other problems (those that apparently were fixed by the
code in the first place).
I still have the patch lying around here somewhere. I'll dig into it
some more once I've got a change.
--
Marcel Moolenaar
mail: marcel@cup.hp.com / marcel@FreeBSD.org
tel: (408) 447-4222
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Tue May 30 11:41:59 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66])
by hub.freebsd.org (Postfix) with ESMTP id 36D5A37BD8B
for <freebsd-java@FreeBSD.ORG>; Tue, 30 May 2000 11:41:57 -0700 (PDT)
(envelope-from nate@yogotech.com)
Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131])
by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id MAA08967;
Tue, 30 May 2000 12:40:51 -0600 (MDT)
(envelope-from nate@nomad.yogotech.com)
Received: (from nate@localhost)
by nomad.yogotech.com (8.8.8/8.8.8) id MAA21203;
Tue, 30 May 2000 12:40:50 -0600 (MDT)
(envelope-from nate)
Date: Tue, 30 May 2000 12:40:50 -0600 (MDT)
Message-Id: <200005301840.MAA21203@nomad.yogotech.com>
From: Nate Williams <nate@yogotech.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Sean Reilly <sreilly@seanreilly.com>
Cc: Nate Williams <nate@yogotech.com>, freebsd-java@FreeBSD.ORG
Subject: Re: problem in 1.1.8
In-Reply-To: <Pine.BSF.4.10.10005220939290.5253-100000@seanreilly.com>
References: <200005191347.HAA02977@nomad.yogotech.com>
<Pine.BSF.4.10.10005220939290.5253-100000@seanreilly.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
> > > It seems like the deadlock is between something in the
> > > X11Graphics.finalize() method in the main thread and the
> > > LightweightDispatcher.dispatchEvent() method in the AWT-EventQueue-0
> > > thread. The thing I don't understand is how the finalize method of
> > > X11Graphics is getting called in the main thread when the nothing in
> > > the stack trace up to that point ever calls it!
> >
> > Is there enough stack space allocated in the system? Is is possible
> > that the system is doing a GC because it's out of space?
>
> I guess that could be the problem. I'm running on a machine with 128MB
> RAM and with the default java memory settings. Unfortunately I haven't
> been able to reproduce the problem since Friday.
I guess that's a good thing. :)
Nate
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Tue May 30 13: 6:44 2000
Delivered-To: freebsd-java@freebsd.org
Received: from smtp.pandora.be (hercules.telenet-ops.be [195.130.132.33])
by hub.freebsd.org (Postfix) with SMTP id 6D56637B75C
for <freebsd-java@freebsd.org>; Tue, 30 May 2000 13:06:34 -0700 (PDT)
(envelope-from christophe.colle@telenet.be)
Received: (qmail 29780 invoked from network); 30 May 2000 20:06:31 -0000
Received: from unknown (HELO zeus.telenet-ops.be) ([195.130.132.40]) (envelope-sender <christophe.colle@telenet.be>)
by hercules.telenet-ops.be (qmail-ldap-1.03) with SMTP
for <freebsd-java@freebsd.org>; 30 May 2000 20:06:31 -0000
Date: Tue, 30 May 2000 22:06:31 +0200 (MET DST)
From: Christophe Colle <christophe.colle@telenet.be>
X-Sender: colle@zeus
To: freebsd-java@freebsd.org
Subject: java_X version "1.1.8" stuck on BufferedReader.readLine
Message-ID: <Pine.SO4.4.05.10005302157330.5672-100000@zeus>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Hi,
I have a problem with jdk 1.1.8 on FreeBSD.. Apparently when doing a
readLine on a BufferedReader-object all my threads hang :-(
Consider the follwing part of java-code:
import java.lang.*;
import java.io.*;
class Clock extends Thread {
private Thread master;
private long timeout;
protected void sleepFor(long timeout) {
master=Thread.currentThread();
this.timeout=timeout;
this.start();
}
protected void clear() {
this.interrupt();
this.stop();
}
public void run() {
System.out.println("you should see mee running, but in jdk1.1.8 you don't see me :-(");
try {
this.sleep(timeout);
//you should see the following message, but you won't with jdb1.1.8 and freebsd
System.out.println("timed out... interrupting master thread");
master.interrupt();
} catch (InterruptedException e) {
System.out.println("I got terminated");
return;
} catch (Exception e) {
e.printStackTrace();
}
}
}
public class test {
void loop() {
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
while (true) {
String str="";
boolean timedout=false;
Clock alarm=new Clock();
try {
alarm.sleepFor(1000);
str=in.readLine();
alarm.clear();
} catch (IOException e) {
if (Thread.interrupted()) {
timedout=true;
System.out.println("interrupt ....");
} else {
e.printStackTrace();
System.exit(99);
}
}
if (timedout == false && str == null)
System.exit(0);
System.out.println("--- "+str);
}
}
static public void main(String args[]) {
new test().loop();
}
}
When I run this on a solaris machine I see the following output (paced
every second):
colle@olympus: java test
you should see mee running, but in jdk1.1.8 you don't see me :-(
timed out... interrupting master thread
interrupt ....
---
you should see mee running, but in jdk1.1.8 you don't see me :-(
timed out... interrupting master thread
interrupt ....
---
you should see mee running, but in jdk1.1.8 you don't see me :-(
timed out... interrupting master thread
interrupt ....
---
When doing the same on a FreeBSD machine:
bash-2.03$ java -version
java_X version "1.1.8"
bash-2.03$
bash-2.03$
bash-2.03$ java test
^Cbash-2.03$
nothing ... it gets stuck :-(
^Cbash-2.03$ uname -a
FreeBSD portable.is.cool 3.4-RELEASE FreeBSD 3.4-RELEASE #2: Sun Feb 621:39:44 CET 2000 root@portable.is.cool:/old/src-cvs/src/sys/compile/PORTABLE i386
What can I do to get this problem solved?
Thanks!
cc
---
you type win, but you lose
The Internet doesn't really need admins that are dumber than
the ones we have already.
----
Christophe Colle
Telenet, Liersesteenweg 4, 2800 Mechelen, Belgium
tel:+32(0)15.333.981
mailto:christophe.colle@telenet.be
http://krtkg1.rug.ac.be/~colle
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Tue May 30 13:56:17 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66])
by hub.freebsd.org (Postfix) with ESMTP id 2BF3137B512
for <freebsd-java@FreeBSD.ORG>; Tue, 30 May 2000 13:56:13 -0700 (PDT)
(envelope-from nate@yogotech.com)
Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131])
by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id OAA10087;
Tue, 30 May 2000 14:56:08 -0600 (MDT)
(envelope-from nate@nomad.yogotech.com)
Received: (from nate@localhost)
by nomad.yogotech.com (8.8.8/8.8.8) id OAA23882;
Tue, 30 May 2000 14:56:07 -0600 (MDT)
(envelope-from nate)
Date: Tue, 30 May 2000 14:56:07 -0600 (MDT)
Message-Id: <200005302056.OAA23882@nomad.yogotech.com>
From: Nate Williams <nate@yogotech.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Christophe Colle <christophe.colle@telenet.be>
Cc: freebsd-java@FreeBSD.ORG
Subject: Re: java_X version "1.1.8" stuck on BufferedReader.readLine
In-Reply-To: <Pine.SO4.4.05.10005302157330.5672-100000@zeus>
References: <Pine.SO4.4.05.10005302157330.5672-100000@zeus>
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
> I have a problem with jdk 1.1.8 on FreeBSD.. Apparently when doing a
> readLine on a BufferedReader-object all my threads hang :-(
Known problem that there is no work-around until we get native-kernel
thread support in FreeBSD/JDK working.
readLine calls read(2), which is a system call that blocks all other
userland threads since only one 'process' can be in the kernel at the
same time.
I don't expect to see a solution to this problem for a while, however,
the Linux JDK1.2.2 *may* work better for you, since we emulate linux
kernel threads pretty well in later versions of FreeBSD.
Nate
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Tue May 30 22:51:45 2000
Delivered-To: freebsd-java@freebsd.org
Received: from hercule.tomrad.ro (hercule.tomrad.ro [193.230.215.9])
by hub.freebsd.org (Postfix) with SMTP id 674E537B5F3
for <freebsd-java@freebsd.org>; Tue, 30 May 2000 22:51:39 -0700 (PDT)
(envelope-from traian@tomrad.ro)
Received: (qmail 3114 invoked from network); 31 May 2000 05:51:34 -0000
Received: from apollo.tomrad.ro (root@193.230.215.2)
by hercule.tomrad.ro with SMTP; 31 May 2000 05:51:34 -0000
Received: from amdk6 (ppp4-ip19-async6.tomrad.ro [193.230.215.19])
by apollo.tomrad.ro (8.9.0/8.9.0) with SMTP id IAA26104
for <freebsd-java@freebsd.org>; Wed, 31 May 2000 08:52:12 +0300
From: "Lazea Liviu" <traian@tomrad.ro>
To: <freebsd-java@freebsd.org>
Subject: SUBSCRIBE
Date: Wed, 31 May 2000 08:47:36 +0300
Message-ID: <NEBBIMIJMLCLNLEBKLKGMEDBCAAA.traian@tomrad.ro>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-2"
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)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: 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 May 31 17: 6:54 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5])
by hub.freebsd.org (Postfix) with ESMTP id B72C937B759
for <freebsd-java@FreeBSD.ORG>; Wed, 31 May 2000 17:06:46 -0700 (PDT)
(envelope-from glewis@ares.trc.adelaide.edu.au)
Received: (from glewis@localhost)
by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id JAA21656;
Thu, 1 Jun 2000 09:36:33 +0930 (CST)
(envelope-from glewis)
From: Greg Lewis <glewis@trc.adelaide.edu.au>
Message-Id: <200006010006.JAA21656@ares.trc.adelaide.edu.au>
Subject: Re: Bug report for patchset 8
In-Reply-To: <200005231128.NAA86747@yavin.franken.de> from Volker Paepcke at
"May 23, 2000 01:28:41 pm"
To: Volker Paepcke <scratchy@VULCAN.franken.de>
Date: Thu, 1 Jun 2000 09:36:33 +0930 (CST)
Cc: freebsd-java@FreeBSD.ORG
X-Mailer: ELM [version 2.4ME+ PL70 (25)]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=ELM959817993-21639-0_
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
--ELM959817993-21639-0_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Volker Paepcke wrote:
> And here comes the bug: all external programm execution doesn't work!
> e.g. compiling with jikes or running cvs commands. The external programm
> terminates but the IDE is waiting forever. I've written a small program
> that reproduces this problem:
>
> import java.io.*;
>
> public class ExecTest
> {
> public static void main(String args[])
> {
> try {
> Process proc = Runtime.getRuntime().exec(new String[] { "date" });
> proc.waitFor();
> } catch (Exception ex) {
> ex.printStackTrace();
> }
> }
> }
>
> the call to waitFor() never returns. With the JDK 1.1.8 and Blackdown's RC4
> the waitFor() call is returning immediatly. I'm running FreeBSD 4.0-Stable.
Hi Volker and all,
Attached is a patch which fixes this problem. It will be in patchset 9.
Thanks again to Volker for the bug report and simple example :).
--
Greg Lewis glewis@trc.adelaide.edu.au
Computing Officer +61 8 8303 5083
Teletraffic Research Centre
--ELM959817993-21639-0_
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: attachment; filename=wait.diff
Content-Description: wait.diff
Content-Transfer-Encoding: 7bit
Index: src/freebsd/native/java/lang/UNIXProcess_md.c
===================================================================
RCS file: /data/java/JDK2/javasrc/src/freebsd/native/java/lang/UNIXProcess_md.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- src/freebsd/native/java/lang/UNIXProcess_md.c 1999/10/11 18:46:30 1.2
+++ src/freebsd/native/java/lang/UNIXProcess_md.c 2000/05/31 15:46:04 1.3
@@ -166,8 +166,9 @@
JNIEXPORT void JNICALL
Java_java_lang_UNIXProcess_run(JNIEnv *env, jobject process)
{
-#ifdef __FreeBSD__ /*** XXX ***/
- char info[256];
+#ifdef __FreeBSD__
+ pid_t pid;
+ int status;
#else
siginfo_t info;
#endif
@@ -188,14 +189,14 @@
/* block this reaper thread until the child process exits */
#ifdef __FreeBSD__
-/* waitpid() is a wrapper, that does the "right thing" already */
- if (waitid(P_ALL, 0, &info, WEXITED) != 0) {
- continue;
- }
+ /* waitpid() is a wrapper, that does the "right thing" already */
+ pid = waitid(P_ALL, 0, &status, WEXITED);
#else
if (waitid(P_ALL, 0, &info, WEXITED) != 0 || info.si_pid == 0) {
continue;
}
+ pid = info.si_pid;
+ status = info.si_status;
#endif
(*env)->MonitorEnter(env, fork_wait_mon);
@@ -205,13 +206,8 @@
"java/lang/UNIXProcess",
"deadChild",
"(II)V",
-#ifdef __FreeBSD__ /*** XXX ***/
- 0,
- 0
-#else
- info.si_pid,
- info.si_status
-#endif
+ pid,
+ status
);
if ((*env)->ExceptionOccurred(env)) {
return;
Index: src/freebsd/hpi/green_threads/src/synch.c
===================================================================
RCS file: /data/java/JDK2/javasrc/src/freebsd/hpi/green_threads/src/synch.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- src/freebsd/hpi/green_threads/src/synch.c 1999/11/03 03:54:58 1.4
+++ src/freebsd/hpi/green_threads/src/synch.c 2000/05/31 15:41:06 1.5
@@ -170,7 +170,7 @@
#ifdef __FreeBSD__
pid_t fork1(void);
-int waitid(int, int, void *, int);
+pid_t waitid(int, int, int *, int);
#endif
/* For java.lang.Process */
@@ -179,17 +179,16 @@
extern int _waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options);
int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options)
#else
-int waitid(int idtype, int id, void *infop, int options)
+pid_t waitid(int idtype, int id, int *status, int options)
#endif
{
sys_mon_t *mon = asyncMon(SYS_ASYNC_MON_CHILD);
#ifdef __FreeBSD__
- int status;
pid_t pid;
sysMonitorEnter(sysThreadSelf(), mon);
do {
- pid = waitpid(-1, &status, WNOHANG);
+ pid = waitpid(-1, status, WNOHANG);
if ((int)pid > 0 && !WIFSTOPPED(status))
break;
sysMonitorWait(sysThreadSelf(), mon, SYS_TIMEOUT_INFINITY);
@@ -202,7 +201,11 @@
}
#endif
sysMonitorExit(sysThreadSelf(), mon);
+#ifdef __FreeBSD__
+ return pid;
+#else
return 0;
+#endif
}
#ifndef __FreeBSD__
--ELM959817993-21639-0_--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Thu Jun 1 6: 0:14 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 D1A2A37B9B9
for <freebsd-java@freebsd.org>; Thu, 1 Jun 2000 06:00:03 -0700 (PDT)
(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.10.1/8.10.1) with ESMTP id e51CxEW37940;
Thu, 1 Jun 2000 14:59:14 +0200
Received: (from markush@localhost)
by mao.acc.umu.se (8.9.3/8.9.3/Debian/GNU) id OAA26251;
Thu, 1 Jun 2000 14:59:14 +0200
Date: Thu, 1 Jun 2000 14:59:14 +0200
From: Markus Holmberg <markush@acc.umu.se>
To: freebsd-java@freebsd.org
Cc: Marcel Moolenaar <marcel@cup.hp.com>,
John Rochester <john.rochester@enetgroup.co.uk>
Subject: [markush@acc.umu.se: i386/18940: Reading from stdin using linux-jdk1.2.2 under Linux emulation fails]
Message-ID: <20000601145914.A24627@acc.umu.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3-current-20000511i
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Just to notify people who experienced the problems with reading from
stdin using linux-jdk-1.2.2:
I have now sent a PR regarding this, just to get it on record.
http://www.freebsd.org/cgi/query-pr.cgi?pr=18940
Regards, Markus.
----- Forwarded message from markush@acc.umu.se -----
From: markush@acc.umu.se
To: FreeBSD-gnats-submit@FreeBSD.ORG
Date: Thu, 1 Jun 2000 14:46:03 +0200 (CEST)
Subject: i386/18940: Reading from stdin using linux-jdk1.2.2 under Linux emulation fails
>Number: 18940
>Category: i386
>Synopsis: Reading from stdin using linux-jdk-1.2.2 under Linux emulation fails
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 01 05:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Markus Holmberg
>Release: FreeBSD 4.0-STABLE i386
>Organization:
n/a
>Environment:
FreeBSD 4.0-STABLE (also tested on 3.4-STABLE)
linux-jdk-1.2.2 (port is submitted as pr, but not processed)
>Description:
Several people on the freebsd-java mailing list have reported problems with
reading from standard input in linux-jdk-1.2.2. The problem is that input does
not seem to be "sent" to the java process running under Linux emulation, which
means that the Java program blocks in the i/o read operation (even though there
is input to be read).
>How-To-Repeat:
Using the Java-snippet below, a dot character should be printed on a line for itself
for each character that has been read in from stdin. This will not happen on a broken
system (a few dots might be output, but after that it's blocked).
(Read.java)
-8<------------------------------------------
import java.io.*;
public class Read {
public static void main(String[] args) {
try {
while (System.in.read() != -1) {
System.out.println(".");
}
} catch (IOException e) {
System.err.println(e);
}
}
}
-8<------------------------------------------
>Fix:
There was a patch (for 3.x) posted to the freebsd-java mailing list some months
ago, but it is unclear why the patch works and if it causes any undesired side
effects (since it removes a lot of code).
Marcel Moolenaar (Linux emulation maintainer) has seen the patch but is not sure
if it's safe to remove the code that the patch wants to remove.
John Rochesters original patch for 3.x (only the patch for linux_file.c is relevant
in the posting):
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=22905+0+archive/2000/freebsd-java/20000220.freebsd-java
Here's the same patch adapted for 4.0-STABLE (May 29th):
--- linux_file.c.orig Mon May 29 13:21:09 2000
+++ linux_file.c Mon May 29 13:26:05 2000
@@ -199,12 +199,6 @@
} */ fcntl_args;
struct linux_flock linux_flock;
struct flock *bsd_flock;
- struct filedesc *fdp;
- struct file *fp;
- struct vnode *vp;
- long pgid;
- struct pgrp *pgrp;
- struct tty *tp;
caddr_t sg;
dev_t dev;
@@ -289,47 +283,9 @@
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 = p->p_fd;
- if ((u_int)args->fd >= fdp->fd_nfiles ||
- (fp = fdp->fd_ofiles[args->fd]) == NULL)
- return EBADF;
- if (fp->f_type == DTYPE_SOCKET) {
- fcntl_args.cmd = args->cmd == LINUX_F_SETOWN ? F_SETOWN : F_GETOWN;
- fcntl_args.arg = args->arg;
- return fcntl(p, &fcntl_args);
- }
- vp = (struct vnode *)fp->f_data;
- dev = vn_todev(vp);
- if (dev == NODEV)
- return EINVAL;
- if (!(devsw(dev)->d_flags & D_TTY))
- return EINVAL;
- tp = dev->si_tty;
- if (!tp)
- return EINVAL;
- if (args->cmd == LINUX_F_GETOWN) {
- p->p_retval[0] = tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PID;
- return 0;
- }
- if ((long)args->arg <= 0) {
- pgid = -(long)args->arg;
- } else {
- struct proc *p1 = pfind((long)args->arg);
- if (p1 == 0)
- return (ESRCH);
- pgid = (long)p1->p_pgrp->pg_id;
- }
- pgrp = pgfind(pgid);
- if (pgrp == NULL || pgrp->pg_session != p->p_session)
- return EPERM;
- tp->t_pgrp = pgrp;
- return 0;
+ fcntl_args.cmd = args->cmd == LINUX_F_SETOWN ? F_SETOWN : F_GETOWN;
+ fcntl_args.arg = args->arg;
+ return fcntl(p, &fcntl_args);
}
return EINVAL;
}
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
----- End forwarded message -----
--
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 Thu Jun 1 10: 7:42 2000
Delivered-To: freebsd-java@freebsd.org
Received: from hotmail.com (f258.law8.hotmail.com [216.33.240.133])
by hub.freebsd.org (Postfix) with SMTP id E6F3637BEFF
for <freebsd-java@freebsd.org>; Thu, 1 Jun 2000 10:07:40 -0700 (PDT)
(envelope-from jmd526@hotmail.com)
Received: (qmail 88336 invoked by uid 0); 1 Jun 2000 17:07:40 -0000
Message-ID: <20000601170740.88335.qmail@hotmail.com>
Received: from 209.220.228.2 by www.hotmail.com with HTTP;
Thu, 01 Jun 2000 10:07:40 PDT
X-Originating-IP: [209.220.228.2]
From: "John Daniels" <jmd526@hotmail.com>
To: freebsd-java@freebsd.org
Subject: installing Tomcat
Date: Thu, 01 Jun 2000 13:07:40 EDT
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Hi:
I want to install tomcat. Can anyone provide a summary of how to do this?
Any gotchas? Tomcat replaces jserv, right? so jserv can not/should not be
installed also - right?
Will I get directions when I download tomcat? - are these straighforward?
Anything else that I need to know?
John
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Thu Jun 1 13:10:45 2000
Delivered-To: freebsd-java@freebsd.org
Received: from web701.mail.yahoo.com (web701.mail.yahoo.com [128.11.23.21])
by hub.freebsd.org (Postfix) with SMTP id D4EAF37BEEF
for <freebsd-java@freebsd.org>; Thu, 1 Jun 2000 13:10:42 -0700 (PDT)
(envelope-from rncarpio@yahoo.com)
Received: (qmail 21619 invoked by uid 60001); 1 Jun 2000 20:10:42 -0000
Message-ID: <20000601201042.21618.qmail@web701.mail.yahoo.com>
Received: from [12.7.140.254] by web701.mail.yahoo.com; Thu, 01 Jun 2000 13:10:42 PDT
Date: Thu, 1 Jun 2000 13:10:42 -0700 (PDT)
From: Ronaldo Carpio <rncarpio@yahoo.com>
Subject: can't remove directories?
To: freebsd-java@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Running 4.0-stable, jdk1.2.2 and patchset 8, I can't remove a directory
with File.delete(). The source seems to call remove(), which should work
on both files and dirs, but man remove says that it's just an alias for
unlink. Am I smoking crack?
Ronnie N. Carpio
rncarpio@yahoo.com
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Thu Jun 1 14:39: 4 2000
Delivered-To: freebsd-java@freebsd.org
Received: from cbl-skelly3.hs.earthlink.net (CBL-skelly3.hs.earthlink.net [209.178.114.61])
by hub.freebsd.org (Postfix) with ESMTP id 072D137B5D7
for <freebsd-java@FreeBSD.ORG>; Thu, 1 Jun 2000 14:39:01 -0700 (PDT)
(envelope-from kelly@ad1440.net)
Received: from uta003594 (uta003594.jpl.nasa.gov [128.149.211.36])
by cbl-skelly3.hs.earthlink.net (8.9.2/8.9.2) with SMTP id OAA08982;
Thu, 1 Jun 2000 14:38:59 -0700 (PDT)
(envelope-from kelly@ad1440.net)
Message-ID: <001501bfcc12$4ab7a450$24d39580@jpl.nasa.gov>
From: "Sean Kelly" <kelly@ad1440.net>
To: "John Daniels" <jmd526@hotmail.com>, <freebsd-java@FreeBSD.ORG>
References: <20000601170740.88335.qmail@hotmail.com>
Subject: Re: installing Tomcat
Date: Thu, 1 Jun 2000 14:42:31 -0700
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
> I want to install tomcat. Can anyone provide a summary of how to do
this?
> Any gotchas? Tomcat replaces jserv, right? so jserv can not/should not
be
> installed also - right?
Yes and no. If you're using Tomcat as a web server in addition to your
servlet engine and JSP processor, then you're all set. It'll work more or
less out of the box.
But if you want Apache to serve your static content, then you'll need to
compile a special mod_jserv.so. Instructions on where to fetch the source
code for this beast are included in the tomcat instructions.
> Will I get directions when I download tomcat? - are these straighforward?
Personally, I think the instructions that accompanied tomcat were terrible.
They come across written by a software engineer who didn't want to write
any documentation, but enjoyed discussing philosophy instead. Blech.
> Anything else that I need to know?
Good luck!
--Sean
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Thu Jun 1 16:43:37 2000
Delivered-To: freebsd-java@freebsd.org
Received: from dnvrpop5.dnvr.uswest.net (dnvrpop5.dnvr.uswest.net [206.196.128.7])
by hub.freebsd.org (Postfix) with SMTP id 89FF337B95F
for <freebsd-java@FreeBSD.ORG>; Thu, 1 Jun 2000 16:43:15 -0700 (PDT)
(envelope-from wolpert@methodsystems.com)
Received: (qmail 6792 invoked by alias); 1 Jun 2000 23:43:12 -0000
Delivered-To: fixup-freebsd-java@FreeBSD.ORG@fixme
Received: (qmail 6772 invoked by uid 0); 1 Jun 2000 23:43:12 -0000
Received: from unknown (HELO osti.methodsystems.com) (63.227.49.195)
by dnvrpop5.dnvr.uswest.net with SMTP; 1 Jun 2000 23:43:12 -0000
Content-Length: 1169
Message-ID: <XFMail.000601174311.wolpert@methodsystems.com>
X-Mailer: XFMail 1.4.0 on FreeBSD
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <001501bfcc12$4ab7a450$24d39580@jpl.nasa.gov>
Date: Thu, 01 Jun 2000 17:43:11 -0600 (MDT)
From: Edward Wolpert <wolpert@methodsystems.com>
To: Sean Kelly <kelly@ad1440.net>
Subject: Re: installing Tomcat
Cc: freebsd-java@FreeBSD.ORG, John Daniels <jmd526@hotmail.com>
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
-----BEGIN PGP SIGNED MESSAGE-----
On 01-Jun-00 Sean Kelly wrote:
> But if you want Apache to serve your static content, then you'll need to
> compile a special mod_jserv.so. Instructions on where to fetch the source
> code for this beast are included in the tomcat instructions.
What I found best, was get the package for apache's jserv from the
ports directory, run that to get mod_jserv.so working. Then, replace
the configuration include statement to point to the tomcat side rather
than the jserv side. Then, it should work fine. (Remember that jserv is
started automatically by apache by default, whereas tomcat isn't.)
Virtually, | "I'm sorry, but Godot isn't
Edward Wolpert <wolpert@methodsystems.com> | here right now. Perhaps if
4eb8 4e75 | you came back tomorrow..."
___________________________________________/ -SB
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQB1AwUBOTb1D62tQW/xJRRFAQEGbAL9HX3uuEwbKmCe3ojtAzhY3WIRXufxZX71
vb6ehXroXOSFVn3wK2vkqwDt0DkNBLd2B5+m+b3zxlepvQmO1q03vS9o47bxq4dL
/7o8I60FkTyPvyc7GbJvZzlUZiBQn90J
=x3UJ
-----END PGP SIGNATURE-----
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Thu Jun 1 18: 7:36 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5])
by hub.freebsd.org (Postfix) with ESMTP id 6B97637B9A7
for <freebsd-java@FreeBSD.ORG>; Thu, 1 Jun 2000 18:07:31 -0700 (PDT)
(envelope-from glewis@ares.trc.adelaide.edu.au)
Received: (from glewis@localhost)
by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id KAA30783;
Fri, 2 Jun 2000 10:37:12 +0930 (CST)
(envelope-from glewis)
From: Greg Lewis <glewis@trc.adelaide.edu.au>
Message-Id: <200006020107.KAA30783@ares.trc.adelaide.edu.au>
Subject: Re: can't remove directories?
In-Reply-To: <20000601201042.21618.qmail@web701.mail.yahoo.com> from Ronaldo
Carpio at "Jun 1, 2000 01:10:42 pm"
To: Ronaldo Carpio <rncarpio@yahoo.com>
Date: Fri, 2 Jun 2000 10:37:12 +0930 (CST)
Cc: freebsd-java@FreeBSD.ORG
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
Ronaldo Carpio wrote:
> Running 4.0-stable, jdk1.2.2 and patchset 8, I can't remove a directory
> with File.delete(). The source seems to call remove(), which should work
> on both files and dirs, but man remove says that it's just an alias for
> unlink. Am I smoking crack?
I can't comment on your crack smoking or lack thereof, but this definitely
looks like a bug ;). Thanks for the report!
From a quick look at the man page for unlink(2) I'll note:
ERRORS
The unlink() succeeds unless:
...
[EPERM] The named file is a directory.
rmdir(2) needs to be used if we're trying to remove a directory.
Assuming thats the case, a (completely untested) patch might be:
--- src/freebsd/native/java/io/UnixFileSystem_md.c~ Tue Apr 11 10:00:56 2000
+++ src/freebsd/native/java/io/UnixFileSystem_md.c Fri Jun 2 10:34:46 2000
@@ -237,7 +237,11 @@
jboolean rv = JNI_FALSE;
WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
+#ifdef __FreeBSD__
+ if (remove(path) == 0 || rmdir(path) == 0) {
+#else
if (remove(path) == 0) {
+#endif
rv = JNI_TRUE;
}
} END_PLATFORM_STRING(env, path);
--
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 Thu Jun 1 19: 1:42 2000
Delivered-To: freebsd-java@freebsd.org
Received: from uno.bcn.net (uno.bcn.net [209.213.0.60])
by hub.freebsd.org (Postfix) with ESMTP id 94BBC37B590
for <freebsd-java@freebsd.org>; Thu, 1 Jun 2000 19:01:40 -0700 (PDT)
(envelope-from rwiater@bcn.net)
Received: from ma-northadams2a-89.nad.adelphia.net (focus.bcn.net [209.213.0.21])
by uno.bcn.net (Postfix) with SMTP id 1706D3109
for <freebsd-java@freebsd.org>; Thu, 1 Jun 2000 21:56:58 -0400 (EDT)
To: freebsd-java@freebsd.org
From: rwiater@bcn.net
Subject: RE:java command not found
Date: Fri, 2 Jun 2000 02:07:14 GMT
X-Mailer: Endymion MailMan Standard Edition v3.0.20
X-MailMan-Sender: Hostname:ma-northadams2a-89.nad.adelphia.net Address:24.49.136.89
X-MailMan-Date: Thu Jun 1 22:07:14 EDT 2000
Message-Id: <20000602015658.1706D3109@uno.bcn.net>
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Dear FreeBSD;
I have just set up java on freeBSD 4.0
I go into the bin part of /usr/local/jdk1.1.8/bin and type java at the command
line
all I get is a "COMMAND NOT FOUND" What
gives
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Thu Jun 1 19: 8:45 2000
Delivered-To: freebsd-java@freebsd.org
Received: from mail.rpi.edu (mail.rpi.edu [128.113.100.7])
by hub.freebsd.org (Postfix) with ESMTP id 7F2FB37B566
for <freebsd-java@FreeBSD.ORG>; Thu, 1 Jun 2000 19:08:39 -0700 (PDT)
(envelope-from rooneg@rpi.edu)
Received: from cortez.sss.rpi.edu (rooneg@cortez.sss.rpi.edu [128.113.113.33])
by mail.rpi.edu (8.9.3/8.9.3) with ESMTP id WAA362476;
Thu, 1 Jun 2000 22:08:36 -0400
Received: from localhost (rooneg@localhost)
by cortez.sss.rpi.edu (8.8.5/8.8.6) with SMTP id WAA155002;
Thu, 1 Jun 2000 22:08:51 -0400
X-Authentication-Warning: cortez.sss.rpi.edu: rooneg owned process doing -bs
Date: Thu, 1 Jun 2000 22:08:51 -0400 (EDT)
From: Garrett Rooney <rooneg@rpi.edu>
X-Sender: rooneg@cortez.sss.rpi.edu
To: rwiater@bcn.net
Cc: freebsd-java@FreeBSD.ORG
Subject: RE:java command not found
In-Reply-To: <20000602015658.1706D3109@uno.bcn.net>
Message-ID: <Pine.A41.3.96.1000601220719.46324A-100000@cortez.sss.rpi.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
On Fri, 2 Jun 2000 rwiater@bcn.net wrote:
> Dear FreeBSD;
>
>
> I have just set up java on freeBSD 4.0
> I go into the bin part of /usr/local/jdk1.1.8/bin and type java at the command
> line
> all I get is a "COMMAND NOT FOUND" What
> gives
did you give it the full path? either ./java if you're in the
/usr/local/jdk1.1.8/bin directory, or /usr/local/jdk1.1.8/bin/java from
somewhere else. when you get tired of that you could add
/usr/local/jdk1.1.8/bin to your $PATH...
-garrett
x----------------------------------------------------------------------x
| rooneg@rpi.edu garrett rooney |
| http://www.rpi.edu/~rooneg unix geek |
|----------------------------------------------------------------------|
| unrequited love is neat because it lasts so much longer - w. t. c. |
x----------------------------------------------------------------------x
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Fri Jun 2 8:21:27 2000
Delivered-To: freebsd-java@freebsd.org
Received: from firewall.ox.com (firewall.ox.com [129.77.1.1])
by hub.freebsd.org (Postfix) with ESMTP id AE36037BC75
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 08:21:16 -0700 (PDT)
(envelope-from rcf@ox.com)
Received: from firewall.ox.com (root@localhost)
by firewall.ox.com with ESMTP id LAA02996
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 11:21:15 -0400 (EDT)
Received: from pur-wk-rfurphy.ny.ox.com (pur-wk-rfurphy.ny.ox.com [129.77.2.133])
by firewall.ox.com with ESMTP id LAA02992
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 11:21:15 -0400 (EDT)
Received: from ox.com (localhost.ny.ox.com [127.0.0.1])
by pur-wk-rfurphy.ny.ox.com (8.9.3/8.9.3) with ESMTP id LAA47970
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 11:21:14 -0400 (EDT)
(envelope-from rcf@ox.com)
Message-ID: <3937D0EA.D9D1E8BE@ox.com>
Date: Fri, 02 Jun 2000 11:21:14 -0400
From: Rob Furphy <rcf@ox.com>
X-Mailer: Mozilla 4.73 [en] (X11; U; FreeBSD 3.4-RELEASE i386)
X-Accept-Language: en
MIME-Version: 1.0
Cc: freebsd-java@FreeBSD.ORG
Subject: Re: can't remove directories?
References: <200006020107.KAA30783@ares.trc.adelaide.edu.au>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Greg,
Your patch works for File.delete().
Here's another problem File.deleteOnExit()
has the same problem...even with the patch applied. I've spent
about 2 hours looking and I can't find a fix. Got to get to work
now so I have to stop.
The problem is that deleteOnExit() deletes files specified
but not directories specified.
Rob F.
Greg Lewis wrote:
> Ronaldo Carpio wrote:
> > Running 4.0-stable, jdk1.2.2 and patchset 8, I can't remove a directory
> > with File.delete(). The source seems to call remove(), which should work
> > on both files and dirs, but man remove says that it's just an alias for
> > unlink. Am I smoking crack?
>
> I can't comment on your crack smoking or lack thereof, but this definitely
> looks like a bug ;). Thanks for the report!
>
> From a quick look at the man page for unlink(2) I'll note:
>
> ERRORS
> The unlink() succeeds unless:
> ...
> [EPERM] The named file is a directory.
>
> rmdir(2) needs to be used if we're trying to remove a directory.
>
> Assuming thats the case, a (completely untested) patch might be:
>
> --- src/freebsd/native/java/io/UnixFileSystem_md.c~ Tue Apr 11 10:00:56 2000
> +++ src/freebsd/native/java/io/UnixFileSystem_md.c Fri Jun 2 10:34:46 2000
> @@ -237,7 +237,11 @@
> jboolean rv = JNI_FALSE;
>
> WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
> +#ifdef __FreeBSD__
> + if (remove(path) == 0 || rmdir(path) == 0) {
> +#else
> if (remove(path) == 0) {
> +#endif
> rv = JNI_TRUE;
> }
> } END_PLATFORM_STRING(env, path);
>
> --
> 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
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Fri Jun 2 8:26:23 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66])
by hub.freebsd.org (Postfix) with ESMTP id 0CCE037BC75
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 08:26:14 -0700 (PDT)
(envelope-from nate@yogotech.com)
Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131])
by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id JAA10210;
Fri, 2 Jun 2000 09:26:11 -0600 (MDT)
(envelope-from nate@nomad.yogotech.com)
Received: (from nate@localhost)
by nomad.yogotech.com (8.8.8/8.8.8) id JAA08470;
Fri, 2 Jun 2000 09:26:07 -0600 (MDT)
(envelope-from nate)
Date: Fri, 2 Jun 2000 09:26:07 -0600 (MDT)
Message-Id: <200006021526.JAA08470@nomad.yogotech.com>
From: Nate Williams <nate@yogotech.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Rob Furphy <rcf@ox.com>
Cc: freebsd-java@FreeBSD.ORG
Subject: Re: can't remove directories?
In-Reply-To: <3937D0EA.D9D1E8BE@ox.com>
References: <200006020107.KAA30783@ares.trc.adelaide.edu.au>
<3937D0EA.D9D1E8BE@ox.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
> Your patch works for File.delete().
>
> Here's another problem File.deleteOnExit()
> has the same problem...even with the patch applied. I've spent
> about 2 hours looking and I can't find a fix. Got to get to work
> now so I have to stop.
These problems were fixed in JDK1.1.8, so you might search through the
patches and see what was done there.
Nate
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Fri Jun 2 8:41: 5 2000
Delivered-To: freebsd-java@freebsd.org
Received: from firewall.ox.com (firewall.ox.com [129.77.1.1])
by hub.freebsd.org (Postfix) with ESMTP id A302A37B781
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 08:40:54 -0700 (PDT)
(envelope-from rcf@ox.com)
Received: from firewall.ox.com (root@localhost)
by firewall.ox.com with ESMTP id LAA04942
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 11:40:52 -0400 (EDT)
Received: from pur-wk-rfurphy.ny.ox.com (pur-wk-rfurphy.ny.ox.com [129.77.2.133])
by firewall.ox.com with ESMTP id LAA04935
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 11:40:51 -0400 (EDT)
Received: from ox.com (localhost.ny.ox.com [127.0.0.1])
by pur-wk-rfurphy.ny.ox.com (8.9.3/8.9.3) with ESMTP id LAA48145;
Fri, 2 Jun 2000 11:40:50 -0400 (EDT)
(envelope-from rcf@ox.com)
Message-ID: <3937D582.66574C40@ox.com>
Date: Fri, 02 Jun 2000 11:40:50 -0400
From: Rob Furphy <rcf@ox.com>
X-Mailer: Mozilla 4.73 [en] (X11; U; FreeBSD 3.4-RELEASE i386)
X-Accept-Language: en
MIME-Version: 1.0
To: Nate Williams <nate@yogotech.com>
Cc: freebsd-java@FreeBSD.ORG
Subject: Re: can't remove directories?
References: <200006020107.KAA30783@ares.trc.adelaide.edu.au>
<3937D0EA.D9D1E8BE@ox.com> <200006021526.JAA08470@nomad.yogotech.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
I'd love this to have been already solved.
File.delete() and File.deleteOnExit() are using two different mechanisms
to perform the delete (I'm almost certain now).
File.deleteOnExit() was introduced in Java 1.2 so this particular
problem is -new- in the jvm code. The call to deleteOnExit
puts your filename(or dir) into a list of things to
be deleted when the JVM exits.
That said, thanks for the encouragement Nate, I appreciate it.
I'll look into this again if/when I have some time.
Rob F.
Nate Williams wrote:
> > Your patch works for File.delete().
> >
> > Here's another problem File.deleteOnExit()
> > has the same problem...even with the patch applied. I've spent
> > about 2 hours looking and I can't find a fix. Got to get to work
> > now so I have to stop.
>
> These problems were fixed in JDK1.1.8, so you might search through the
> patches and see what was done there.
>
> Nate
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Fri Jun 2 8:43: 3 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66])
by hub.freebsd.org (Postfix) with ESMTP id 3FCB537B76F
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 08:43:00 -0700 (PDT)
(envelope-from nate@yogotech.com)
Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131])
by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id JAA10372;
Fri, 2 Jun 2000 09:42:57 -0600 (MDT)
(envelope-from nate@nomad.yogotech.com)
Received: (from nate@localhost)
by nomad.yogotech.com (8.8.8/8.8.8) id JAA08575;
Fri, 2 Jun 2000 09:42:57 -0600 (MDT)
(envelope-from nate)
Date: Fri, 2 Jun 2000 09:42:57 -0600 (MDT)
Message-Id: <200006021542.JAA08575@nomad.yogotech.com>
From: Nate Williams <nate@yogotech.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Rob Furphy <rcf@ox.com>
Cc: Nate Williams <nate@yogotech.com>, freebsd-java@FreeBSD.ORG
Subject: Re: can't remove directories?
In-Reply-To: <3937D582.66574C40@ox.com>
References: <200006020107.KAA30783@ares.trc.adelaide.edu.au>
<3937D0EA.D9D1E8BE@ox.com>
<200006021526.JAA08470@nomad.yogotech.com>
<3937D582.66574C40@ox.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
> I'd love this to have been already solved.
> File.delete() and File.deleteOnExit() are using two different mechanisms
> to perform the delete (I'm almost certain now).
*sigh*
> File.deleteOnExit() was introduced in Java 1.2 so this particular
> problem is -new- in the jvm code. The call to deleteOnExit
> puts your filename(or dir) into a list of things to
> be deleted when the JVM exits.
Ahh, Ok.
> That said, thanks for the encouragement Nate, I appreciate it.
> I'll look into this again if/when I have some time.
Thanks, sorry I can't be more help.....
Nate
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Fri Jun 2 9:30:19 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5])
by hub.freebsd.org (Postfix) with ESMTP id 819A337BA07
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 09:30:13 -0700 (PDT)
(envelope-from glewis@ares.trc.adelaide.edu.au)
Received: (from glewis@localhost)
by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id CAA22648;
Sat, 3 Jun 2000 02:00:05 +0930 (CST)
(envelope-from glewis)
From: Greg Lewis <glewis@trc.adelaide.edu.au>
Message-Id: <200006021630.CAA22648@ares.trc.adelaide.edu.au>
Subject: Re: can't remove directories?
In-Reply-To: <3937D0EA.D9D1E8BE@ox.com> from Rob Furphy at "Jun 2, 2000 11:21:14
am"
To: Rob Furphy <rcf@ox.com>
Date: Sat, 3 Jun 2000 02:00:04 +0930 (CST)
Cc: freebsd-java@FreeBSD.ORG
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
Rob Furphy wrote:
> Your patch works for File.delete().
I've changed it a bit. Added a comment and used unlink rather than remove
to show explicitly the difference and because remove is just an alias for
unlink anyway.
> Here's another problem File.deleteOnExit()
> has the same problem...even with the patch applied. I've spent
> about 2 hours looking and I can't find a fix. Got to get to work
> now so I have to stop.
Yep, that one is different. But I've got a patch for that too now :).
> The problem is that deleteOnExit() deletes files specified
> but not directories specified.
Here is the complete patch. Works for me. You probably only want the
second hunk since the first is the equivalent part of the previous patch.
Possible criticism is that it doubles the entries in the list to delete
when exiting. I guess the counter is that something is a directory when
I initially schedule it for deletion and I change it to a file later (or
vice versa) then the list would have the wrong entry if the list got unlink
or rmdir as appropriate when the list was set up.
I'll commit this fairly soon unless someone points out a huge flaw :)
Index: src/freebsd/native/java/io/UnixFileSystem_md.c
===================================================================
RCS file: /data/java/JDK2/javasrc/src/freebsd/native/java/io/UnixFileSystem_md.c,v
retrieving revision 1.3
diff -u -r1.3 UnixFileSystem_md.c
--- src/freebsd/native/java/io/UnixFileSystem_md.c 2000/04/13 14:05:57 1.3
+++ src/freebsd/native/java/io/UnixFileSystem_md.c 2000/06/02 16:23:50
@@ -237,7 +237,17 @@
jboolean rv = JNI_FALSE;
WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
+#ifdef __FreeBSD__
+ /*
+ * Under FreeBSD remove(3) is simply an alias for unlink(2). This
+ * is not the case on Linux and Solaris where remove() calls unlink()
+ * for files and rmdir() for directories. Duplicate this functionality
+ * here by trying rmdir should unlink fail.
+ */
+ if (unlink(path) == 0 || rmdir(path) == 0) {
+#else
if (remove(path) == 0) {
+#endif
rv = JNI_TRUE;
}
} END_PLATFORM_STRING(env, path);
@@ -250,7 +260,17 @@
jobject file)
{
WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
+#ifdef __FreeBSD__
+ /*
+ * Under FreeBSD remove(3) is simply an alias for unlink(2). This
+ * is not the case on Linux and Solaris where remove() calls unlink()
+ * for files and rmdir() for directories. Duplicate this functionality
+ * here by trying rmdir should unlink fail.
+ deleteOnExit(env, path, unlink);
+ deleteOnExit(env, path, rmdir);
+#else
deleteOnExit(env, path, remove);
+#endif
} END_PLATFORM_STRING(env, path);
return JNI_TRUE;
}
--
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 Fri Jun 2 9:40:53 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5])
by hub.freebsd.org (Postfix) with ESMTP id 3CB8437BA67
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 09:40:49 -0700 (PDT)
(envelope-from glewis@ares.trc.adelaide.edu.au)
Received: (from glewis@localhost)
by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id CAA31260;
Sat, 3 Jun 2000 02:10:39 +0930 (CST)
(envelope-from glewis)
From: Greg Lewis <glewis@trc.adelaide.edu.au>
Message-Id: <200006021640.CAA31260@ares.trc.adelaide.edu.au>
Subject: Re: can't remove directories?
In-Reply-To: <200006021630.CAA22648@ares.trc.adelaide.edu.au> from Greg Lewis
at "Jun 3, 2000 02:00:04 am"
To: Greg Lewis <glewis@trc.adelaide.edu.au>
Date: Sat, 3 Jun 2000 02:10:39 +0930 (CST)
Cc: Rob Furphy <rcf@ox.com>, freebsd-java@FreeBSD.ORG
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
Greg Lewis wrote:
[a buggered up patch. Note to self: No more late night hacking!]
Right, that will teach me to add a comment after I compiled something. The
last patch was missing the closing */ on the second comment. So here is
what the patch should look like, and this one will compile.
Index: src/freebsd/native/java/io/UnixFileSystem_md.c
===================================================================
RCS file: /data/java/JDK2/javasrc/src/freebsd/native/java/io/UnixFileSystem_md.c,v
retrieving revision 1.3
diff -u -r1.3 UnixFileSystem_md.c
--- src/freebsd/native/java/io/UnixFileSystem_md.c 2000/04/13 14:05:57 1.3
+++ src/freebsd/native/java/io/UnixFileSystem_md.c 2000/06/02 16:37:00
@@ -237,7 +237,17 @@
jboolean rv = JNI_FALSE;
WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
+#ifdef __FreeBSD__
+ /*
+ * Under FreeBSD remove(3) is simply an alias for unlink(2). This
+ * is not the case on Linux and Solaris where remove() calls unlink()
+ * for files and rmdir() for directories. Duplicate this functionality
+ * here by trying rmdir should unlink fail.
+ */
+ if (unlink(path) == 0 || rmdir(path) == 0) {
+#else
if (remove(path) == 0) {
+#endif
rv = JNI_TRUE;
}
} END_PLATFORM_STRING(env, path);
@@ -250,7 +260,18 @@
jobject file)
{
WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
+#ifdef __FreeBSD__
+ /*
+ * Under FreeBSD remove(3) is simply an alias for unlink(2). This
+ * is not the case on Linux and Solaris where remove() calls unlink()
+ * for files and rmdir() for directories. Duplicate this functionality
+ * here by trying rmdir should unlink fail.
+ */
+ deleteOnExit(env, path, unlink);
+ deleteOnExit(env, path, rmdir);
+#else
deleteOnExit(env, path, remove);
+#endif
} END_PLATFORM_STRING(env, path);
return JNI_TRUE;
}
--
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 Fri Jun 2 11:28:37 2000
Delivered-To: freebsd-java@freebsd.org
Received: from firewall.ox.com (firewall.ox.com [129.77.1.1])
by hub.freebsd.org (Postfix) with ESMTP id D980837BB04
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 11:28:32 -0700 (PDT)
(envelope-from rcf@ox.com)
Received: from firewall.ox.com (root@localhost)
by firewall.ox.com with ESMTP id OAA20778
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 14:28:31 -0400 (EDT)
Received: from pur-wk-rfurphy.ny.ox.com (pur-wk-rfurphy.ny.ox.com [129.77.2.133])
by firewall.ox.com with ESMTP id OAA20772
for <freebsd-java@FreeBSD.ORG>; Fri, 2 Jun 2000 14:28:30 -0400 (EDT)
Received: from ox.com (localhost.ny.ox.com [127.0.0.1])
by pur-wk-rfurphy.ny.ox.com (8.9.3/8.9.3) with ESMTP id OAA29882;
Fri, 2 Jun 2000 14:28:29 -0400 (EDT)
(envelope-from rcf@ox.com)
Message-ID: <3937FCCD.5223CCF1@ox.com>
Date: Fri, 02 Jun 2000 14:28:29 -0400
From: Rob Furphy <rcf@ox.com>
X-Mailer: Mozilla 4.73 [en] (X11; U; FreeBSD 3.4-RELEASE i386)
X-Accept-Language: en
MIME-Version: 1.0
To: Greg Lewis <glewis@trc.adelaide.edu.au>,
"freebsd-java@FreeBSD.ORG" <freebsd-java@FreeBSD.ORG>
Subject: Re: can't remove directories? (Better fix)
References: <200006021640.CAA31260@ares.trc.adelaide.edu.au>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-java@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org
Ahh...it's very clear now what was going on. The answer was right
in front of me. Good hunting.
I have made changes to your fix. Instead of blindly trying both file
and directory deletes on the specified path, this fix discovers
what the path is(dir or not) and does the appropriate thing.
Not good with diff (and don't want to get this wrong),
so below is the new versions of both functions.
JNIEXPORT jboolean JNICALL
Java_java_io_UnixFileSystem_delete(JNIEnv *env, jobject this,
jobject file) {
jboolean rv = JNI_FALSE;
WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
#ifdef __FreeBSD__
/*
* Under FreeBSD remove(3) is simply an alias for unlink(2). This
* is not the case on Linux and Solaris where remove() calls unlink()
* for files and rmdir() for directories. Duplicate this functionality
* here by identifying if we have a directory or not.
*/
struct stat sb;
if(stat(path, &sb) == 0) {
int fmt = sb.st_mode & S_IFMT;
if(fmt == S_IFDIR) {
if(rmdir(path) == 0) {
rv = JNI_TRUE;
}
} else {
if(unlink(path) == 0) {
rv = JNI_TRUE;
}
}
#else
if(remove(path) == 0) {
#endif
rv = JNI_TRUE;
}
} END_PLATFORM_STRING(env, path);
return rv;
}
JNIEXPORT jboolean JNICALL
Java_java_io_UnixFileSystem_deleteOnExit(JNIEnv *env, jobject this,
jobject file) {
WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
#ifdef __FreeBSD__
/*
* Under FreeBSD remove(3) is simply an alias for unlink(2). This
* is not the case on Linux and Solaris where remove() calls unlink()
* for files and rmdir() for directories. Duplicate this functionality
* here by identifying if we have a directory or not.
*/
struct stat sb;
if(stat(path, &sb) == 0) {
int fmt = sb.st_mode & S_IFMT;
if(fmt == S_IFDIR) {
deleteOnExit(env, path, rmdir);
} else {
deleteOnExit(env, path, unlink);
}
}
#else
deleteOnExit(env, path, remove);
#endif
} END_PLATFORM_STRING(env, path);
return JNI_TRUE;
}
Now can I get back to work, please? *grin*
Rob F
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
From owner-freebsd-java Sat Jun 3 7:56:34 2000
Delivered-To: freebsd-java@freebsd.org
Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5])
by hub.freebsd.org (Postfix) with ESMTP id F1F1F37B5C1
for <freebsd-java@freebsd.org>; Sat, 3 Jun 2000 07:56:02 -0700 (PDT)
(envelope-from glewis@ares.trc.adelaide.edu.au)
Received: (from glewis@localhost)
by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id AAA43786;
Sun, 4 Jun 2000 00:25:50 +0930 (CST)
(envelope-from glewis)
From: Greg Lewis <glewis@trc.adelaide.edu.au>
Message-Id: <200006031455.AAA43786@ares.trc.adelaide.edu.au>
Subject: Re: can't remove directories? (Better fix)
In-Reply-To: <3937FCCD.5223CCF1@ox.com> from Rob Furphy at "Jun 2, 2000 02:28:29
pm"
To: Rob Furphy <rcf@ox.com>
Date: Sun, 4 Jun 2000 00:25:50 +0930 (CST)
Cc: freebsd-java@freebsd.org
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
Rob Furphy wrote:
> I have made changes to your fix. Instead of blindly trying both file
> and directory deletes on the specified path, this fix discovers
> what the path is(dir or not) and does the appropriate thing.
I like that part about it :).
> Not good with diff (and don't want to get this wrong),
> so below is the new versions of both functions.
>
> JNIEXPORT jboolean JNICALL
> Java_java_io_UnixFileSystem_delete(JNIEnv *env, jobject this,
> jobject file) {
> jboolean rv = JNI_FALSE;
>
> WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
> #ifdef __FreeBSD__
> /*
> * Under FreeBSD remove(3) is simply an alias for unlink(2). This
> * is not the case on Linux and Solaris where remove() calls unlink()
> * for files and rmdir() for directories. Duplicate this functionality
> * here by identifying if we have a directory or not.
> */
> struct stat sb;
> if(stat(path, &sb) == 0) {
> int fmt = sb.st_mode & S_IFMT;
>
> if(fmt == S_IFDIR) {
> if(rmdir(path) == 0) {
> rv = JNI_TRUE;
> }
> } else {
> if(unlink(path) == 0) {
> rv = JNI_TRUE;
> }
> }
> #else
> if(remove(path) == 0) {
> #endif
> rv = JNI_TRUE;
> }
> } END_PLATFORM_STRING(env, path);
> return rv;
> }
>
>
> JNIEXPORT jboolean JNICALL
> Java_java_io_UnixFileSystem_deleteOnExit(JNIEnv *env, jobject this,
> jobject file) {
> WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
> #ifdef __FreeBSD__
> /*
> * Under FreeBSD remove(3) is simply an alias for unlink(2). This
> * is not the case on Linux and Solaris where remove() calls unlink()
> * for files and rmdir() for directories. Duplicate this functionality
> * here by identifying if we have a directory or not.
> */
> struct stat sb;
> if(stat(path, &sb) == 0) {
> int fmt = sb.st_mode & S_IFMT;
>
> if(fmt == S_IFDIR) {
> deleteOnExit(env, path, rmdir);
> } else {
> deleteOnExit(env, path, unlink);
> }
> }
> #else
> deleteOnExit(env, path, remove);
> #endif
> } END_PLATFORM_STRING(env, path);
> return JNI_TRUE;
> }
But in this last function is the part that I think creates a problem. To
elaborate on what I sort of mentioned last time with an example: If I
have a File object named foo for the (plain) file "tmp/foo", say, and
I do this:
// Schedule foo for deletion, as this is currently a file, it will schedule
// a call to unlink.
foo.deleteOnExit();
// Delete foo immediately
foo.delete();
// Now recreate foo as a directory
foo.mkdir();
// Now the empty directory /tmp/foo won't get deleted on FreeBSD on exit
// (as unlink will be called) but will on Solaris and Linux.
System.exit(0);
Or thats what will happen unless I'm missing something :). I'd propose a
modification which keeps the identification of whether to use unlink or
remove, but do so at the time when the file is being removed, instead of
when its scheduled to be removed. Patch follows (I tested this one!).
Comments?
Index: src/freebsd/native/java/io/UnixFileSystem_md.c
===================================================================
RCS file: /data/java/JDK2/javasrc/src/freebsd/native/java/io/UnixFileSystem_md.c,v
retrieving revision 1.3
diff -u -r1.3 UnixFileSystem_md.c
--- src/freebsd/native/java/io/UnixFileSystem_md.c 2000/04/13 14:05:57 1.3
+++ src/freebsd/native/java/io/UnixFileSystem_md.c 2000/06/03 14:44:29
@@ -229,7 +229,34 @@
return rv;
}
+#ifdef __FreeBSD__
+/* Prototype */
+int unlink_or_rmdir(const char *);
+/*
+ * Under FreeBSD remove(3) is simply an alias for unlink(2). This
+ * is not the case on Linux and Solaris where remove() calls unlink()
+ * for files and rmdir() for directories. Duplicate this functionality
+ * here by identifying if we have a directory or not and calling the
+ * appropriate function.
+ */
+int
+unlink_or_rmdir(const char *path) {
+ struct stat sb;
+ if (stat(path, &sb) == 0) {
+ int fmt = sb.st_mode & S_IFMT;
+
+ if (fmt == S_IFDIR) {
+ return rmdir(path);
+ } else {
+ return unlink(path);
+ }
+ }
+ return (-1);
+}
+#endif
+
+
JNIEXPORT jboolean JNICALL
Java_java_io_UnixFileSystem_delete(JNIEnv *env, jobject this,
jobject file)
@@ -237,7 +264,11 @@
jboolean rv = JNI_FALSE;
WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
+#ifdef __FreeBSD__
+ if (unlink_or_rmdir(path) == 0) {
+#else
if (remove(path) == 0) {
+#endif
rv = JNI_TRUE;
}
} END_PLATFORM_STRING(env, path);
@@ -250,7 +281,11 @@
jobject file)
{
WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
+#ifdef __FreeBSD__
+ deleteOnExit(env, path, unlink_or_rmdir);
+#else
deleteOnExit(env, path, remove);
+#endif
} END_PLATFORM_STRING(env, path);
return JNI_TRUE;
}
--
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