From owner-freebsd-java@FreeBSD.ORG Mon Apr 14 11:06:52 2008 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9765C10656D0 for ; Mon, 14 Apr 2008 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 86AF48FC34 for ; Mon, 14 Apr 2008 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3EB6qwf072287 for ; Mon, 14 Apr 2008 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3EB6pje072283 for freebsd-java@FreeBSD.org; Mon, 14 Apr 2008 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Apr 2008 11:06:51 GMT Message-Id: <200804141106.m3EB6pje072283@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 11:06:52 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/60083 java java/jdk14 - Unsafe use of getaddrinfo in jvm 1.4.2-p5 o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/110912 java Java krb5 client leaks UDP connections o java/112595 java Java appletviewer frequently hangs (kse_release loop) o ports/113467 java Multiple "missing return value" errors building JDK on o java/114644 java tomcat goes out of PermSpace, jvm crashes o java/118496 java Eclipse packages do not work with 6.3-RC1/amd64 o java/118956 java eclipse and netbeans break on diablo-jdk15 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o ports/121420 java java/jdk16: Java applet fails to find class under fire o java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con o java/122513 java native JDKs unbuildable with Linux ones 12 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires o java/97461 java Diablo JDK does not report Update level in a format su o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/115279 java [UPDATE] java/java3d to 1.5.1 o java/115773 java [request] java.nio channel selectors should use kqueue o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 o java/119063 java An unexpected error has been detected by Java Runtime o java/119654 java jdk 1.6: java.awt.SplashScreen#getSplashScreen throws o java/120146 java netbeans 6.0 crash on amd64 a ports/120959 java java/sablevm-classpath did not build/install from port o ports/121416 java java/jdk15 can't build if BIN environment variable is 15 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Apr 14 13:31:25 2008 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DEFB10657C0; Mon, 14 Apr 2008 13:31:25 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id EE2928FC0C; Mon, 14 Apr 2008 13:31:24 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.2/8.14.1) with ESMTP id m3EDVNWo041053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Apr 2008 09:31:23 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.2/8.14.1/Submit) id m3EDVNHM041052; Mon, 14 Apr 2008 09:31:23 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: Kim =?iso-8859-1?q?H=F8jgaard-Hansen?= Date: Mon, 14 Apr 2008 09:31:22 -0400 User-Agent: KMail/1.9.9 References: <20080414120018.E732B106567F@hub.freebsd.org> In-Reply-To: <20080414120018.E732B106567F@hub.freebsd.org> X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: ports@FreeBSD.org, java@FreeBSD.org Subject: Re: error building java/jdk15 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 13:31:25 -0000 On =D0=CF=CE=C5=C4=A6=CC=CF=CB 14 =CB=D7=A6=D4=C5=CE=D8 2008, freebsd-ports= =2Drequest@freebsd.org wrote: > I'm trying to install openoffice.org-2, and it needs jdk15 which gives > this error for me: > /usr/local/linux-sun-jdk1.4.2/bin/jar tf=20 > ../../tools/crypto/jgss/jgss_kerberos.jar sun/security/jgss/spi [...] > /usr/ports/java/jdk15/work/control/build/bsd-i586/lib -target 1.5=20 [...] > javac: invalid target release: 1.5 [...] It is trying to build JDK-1.5 using 1.4.2 and failing. I would've recommend= ed=20 installing linux-sun-jdk15, but that will not work any more either: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D122513 You have to use diablo-jdk15 to build native JDK ports... -mi From owner-freebsd-java@FreeBSD.ORG Mon Apr 14 13:57:29 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0649106566B for ; Mon, 14 Apr 2008 13:57:29 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) by mx1.freebsd.org (Postfix) with ESMTP id 953588FC13 for ; Mon, 14 Apr 2008 13:57:29 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from 64.3.1.253.ptr.us.xo.net ([64.3.1.253]:60299 helo=LROSENMAN) by thebighonker.lerctr.org with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JlOve-000MLG-V7 for freebsd-java@freebsd.org; Mon, 14 Apr 2008 08:41:09 -0500 From: "Larry Rosenman" To: Date: Mon, 14 Apr 2008 08:40:52 -0500 Message-ID: <006c01c89e35$2e45a2b0$8ad0e810$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcieNSgmnrky/9L1SUOVMtCNmY+Cyg== Content-Language: en-us X-Spam-Score: -2.5 (--) X-LERCTR-Spam-Score: -2.5 (--) X-Spam-Report: SpamScore (-2.5/5.0) ALL_TRUSTED=-1.8, BAYES_00=-2.599, TVD_RCVD_IP=1.931 X-LERCTR-Spam-Report: SpamScore (-2.5/5.0) ALL_TRUSTED=-1.8, BAYES_00=-2.599, TVD_RCVD_IP=1.931 DomainKey-Status: no signature Subject: Production use of JDK15? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 13:57:29 -0000 Greetings, I'm in the process of getting ready to move a production Software As A Service application between data centers. It currently runs on Red Hat EL4, but I much prefer FreeBSD. Does anyone have any experience with how stable the jdk15 ports are in a production environment? Any gotchas? Thanks! -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893 From owner-freebsd-java@FreeBSD.ORG Mon Apr 14 14:59:00 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AE6E1065672 for ; Mon, 14 Apr 2008 14:59:00 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) by mx1.freebsd.org (Postfix) with ESMTP id 19EB48FC14 for ; Mon, 14 Apr 2008 14:59:00 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org ([192.147.25.65]:59684) by thebighonker.lerctr.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JlQ93-000Muy-MS; Mon, 14 Apr 2008 09:58:59 -0500 Date: Mon, 14 Apr 2008 09:58:55 -0500 (CDT) From: Larry Rosenman To: Albert Shih In-Reply-To: <20080414144754.GC17133@io.chezmoi.fr> Message-ID: <20080414095759.V88071@thebighonker.lerctr.org> References: <006c01c89e35$2e45a2b0$8ad0e810$@org> <20080414144754.GC17133@io.chezmoi.fr> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="1807946873-372311745-1208185135=:88071" X-Spam-Score: -4.4 (----) X-LERCTR-Spam-Score: -4.4 (----) X-Spam-Report: SpamScore (-4.4/5.0) ALL_TRUSTED=-1.8,BAYES_00=-2.599 X-LERCTR-Spam-Report: SpamScore (-4.4/5.0) ALL_TRUSTED=-1.8,BAYES_00=-2.599 DomainKey-Status: no signature Cc: freebsd-java@freebsd.org Subject: Re: Production use of JDK15? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 14:59:00 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1807946873-372311745-1208185135=:88071 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 14 Apr 2008, Albert Shih wrote: > Le 14/04/2008 à 08:40:52-0500, Larry Rosenman a écrit >> Greetings, >> I'm in the process of getting ready to move a production Software As A >> Service application between data centers. It currently runs on Red Hat EL4, >> but I much prefer FreeBSD. Does anyone have any experience with how stable >> the jdk15 ports are in a production environment? Any gotchas? > > What's you mean by jdk15 in production ? Maybe you mean Tomcat ? Or > a special software run under java ? If it's so what's you need to known is > if your software is stable with jdk15 on FreeBSD. > > I'm using jdk15 with FreeBSD 6.x and 7.x to run tomcat and don't have any > trouble. But that's just the tomcat, that's not mean if you using tomcat > with your webapp you don't going to have some problems. We use Jetty as the AppServer, and the rest is pure Java. I see a Jetty port, so that's about all I need other than the JDK. Any other issues? > > Regards. > -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893 --1807946873-372311745-1208185135=:88071-- From owner-freebsd-java@FreeBSD.ORG Mon Apr 14 15:02:19 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15487106564A for ; Mon, 14 Apr 2008 15:02:19 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from blade2-ext.obspm.fr (blade2-ext.obspm.fr [145.238.186.8]) by mx1.freebsd.org (Postfix) with ESMTP id 881308FC2B for ; Mon, 14 Apr 2008 15:02:18 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from io.chezmoi.fr (rubicon.obspm.fr [145.238.193.3]) by blade2-ext.obspm.fr (8.13.8/8.13.8/SIO Observatoire de Paris - 15/11/07) with ESMTP id m3EEm0uX009403 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 14 Apr 2008 16:48:02 +0200 Date: Mon, 14 Apr 2008 16:47:54 +0200 From: Albert Shih To: Larry Rosenman Message-ID: <20080414144754.GC17133@io.chezmoi.fr> References: <006c01c89e35$2e45a2b0$8ad0e810$@org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <006c01c89e35$2e45a2b0$8ad0e810$@org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (blade2-ext.obspm.fr [145.238.186.20]); Mon, 14 Apr 2008 16:48:02 +0200 (CEST) X-Virus-Scanned: ClamAV 0.92.1/6759/Mon Apr 14 14:56:05 2008 on blade2-ext.obspm.fr X-Virus-Status: Clean Cc: freebsd-java@freebsd.org Subject: Re: Production use of JDK15? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Albert.Shih@obspm.fr List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 15:02:19 -0000 Le 14/04/2008 à 08:40:52-0500, Larry Rosenman a écrit > Greetings, > I'm in the process of getting ready to move a production Software As A > Service application between data centers. It currently runs on Red Hat EL4, > but I much prefer FreeBSD. Does anyone have any experience with how stable > the jdk15 ports are in a production environment? Any gotchas? What's you mean by jdk15 in production ? Maybe you mean Tomcat ? Or a special software run under java ? If it's so what's you need to known is if your software is stable with jdk15 on FreeBSD. I'm using jdk15 with FreeBSD 6.x and 7.x to run tomcat and don't have any trouble. But that's just the tomcat, that's not mean if you using tomcat with your webapp you don't going to have some problems. Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Heure local/Local time: Lun 14 avr 2008 16:44:57 CEST From owner-freebsd-java@FreeBSD.ORG Tue Apr 15 10:38:26 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 520771065671 for ; Tue, 15 Apr 2008 10:38:26 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from blade2-ext.obspm.fr (blade2-ext.obspm.fr [145.238.186.8]) by mx1.freebsd.org (Postfix) with ESMTP id DE78A8FC1C for ; Tue, 15 Apr 2008 10:38:25 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from io.chezmoi.fr (rubicon.obspm.fr [145.238.193.3]) by blade2-ext.obspm.fr (8.13.8/8.13.8/SIO Observatoire de Paris - 15/11/07) with ESMTP id m3FAcKZ9008004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 Apr 2008 12:38:21 +0200 Date: Tue, 15 Apr 2008 12:38:12 +0200 From: Albert Shih To: Larry Rosenman Message-ID: <20080415103812.GF20431@io.chezmoi.fr> References: <006c01c89e35$2e45a2b0$8ad0e810$@org> <20080414144754.GC17133@io.chezmoi.fr> <20080414095759.V88071@thebighonker.lerctr.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080414095759.V88071@thebighonker.lerctr.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (blade2-ext.obspm.fr [145.238.186.20]); Tue, 15 Apr 2008 12:38:21 +0200 (CEST) X-Virus-Scanned: ClamAV 0.92.1/6780/Tue Apr 15 11:47:04 2008 on blade2-ext.obspm.fr X-Virus-Status: Clean Cc: Albert Shih , freebsd-java@freebsd.org Subject: Re: Production use of JDK15? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Albert.Shih@obspm.fr List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2008 10:38:26 -0000 Le 14/04/2008 à 09:58:55-0500, Larry Rosenman a écrit > On Mon, 14 Apr 2008, Albert Shih wrote: > >> Le 14/04/2008 à 08:40:52-0500, Larry Rosenman a écrit >>> Greetings, >>> I'm in the process of getting ready to move a production Software As A >>> Service application between data centers. It currently runs on Red Hat EL4, >>> but I much prefer FreeBSD. Does anyone have any experience with how stable >>> the jdk15 ports are in a production environment? Any gotchas? >> >> What's you mean by jdk15 in production ? Maybe you mean Tomcat ? Or >> a special software run under java ? If it's so what's you need to known is >> if your software is stable with jdk15 on FreeBSD. >> >> I'm using jdk15 with FreeBSD 6.x and 7.x to run tomcat and don't have any >> trouble. But that's just the tomcat, that's not mean if you using tomcat >> with your webapp you don't going to have some problems. > We use Jetty as the AppServer, and the rest is pure Java. > > I see a Jetty port, so that's about all I need other than the JDK. > Sorry I don't known this application. Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Heure local/Local time: Mar 15 avr 2008 12:37:37 CEST From owner-freebsd-java@FreeBSD.ORG Wed Apr 16 17:59:15 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F9B9106564A for ; Wed, 16 Apr 2008 17:59:15 +0000 (UTC) (envelope-from calinv@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 181158FC1B for ; Wed, 16 Apr 2008 17:59:14 +0000 (UTC) (envelope-from calinv@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so2546664wfa.7 for ; Wed, 16 Apr 2008 10:59:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=gUv0X7Xp+97WiE/flV3K4fG+pCT/tk6SpEnqBC2YkIQ=; b=tGXRDtrOx8kpflJxt8IVOIlywD7j8DadP/nQMSfDCjtdi7tLoRnmAN/X0ZMszwgdM3AZ/4R3fmFF+wY0fmhtABbGLMVaxPNFBtACLaLzgrXu8yJh4QGogfc05sa4II81mMp4CXou0kY4ROs5lVZ7qxqijOFH3cMKGegDG+FmYpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=cwrjgA0+NzO76jrVwzJshPqsDfzFpXshP7NEGeJVDDa/Mok8HOvZworLeywMXfWgOJbtg41kAIYPOKYAgXHwpjj8pNeyr0NaXrTkdKYKs6NLvO4CUWq1OU+YDwPAgqAgSN8LQ06Hc6xL2Km6sGryubnXrXjoRBFm/R1ManS5kuM= Received: by 10.143.166.10 with SMTP id t10mr68514wfo.264.1208367269535; Wed, 16 Apr 2008 10:34:29 -0700 (PDT) Received: by 10.142.238.21 with HTTP; Wed, 16 Apr 2008 10:34:29 -0700 (PDT) Message-ID: Date: Wed, 16 Apr 2008 20:34:29 +0300 From: "Calin Vaida" To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: java close problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2008 17:59:15 -0000 Hi guys, I am not sure if this is the proper list to write but I decided to write here because my problem involve FreeBSD and Java. So, I am working on a project that involves networking between a client and a server and I have a problem with close operations. My problem is that the close on the server side is not called even if the call should be executed. Because of that I have a lot of connections hanging up into CLOSE_WAIT state. For a better understanding of my problem I have replicate the communication part between client and server into 2 small classes and run it on multiple platforms. I am writing to you guys because I was running with success the following test program on Linux and Windows boxes but it fails on FreeBSD box (FreeBSD www1.testing.com 6.2-RELEASE FreeBSD 6.2-RELEASE). Client.java *import java.io.*; import java.net.*; import java.nio.*; class Client{ private Socket socket; private ByteBuffer bb=ByteBuffer.wrap(new byte[]{7,8,9}); private ByteBuffer rez=ByteBuffer.allocate(1024); public void connect(){ int n=1; for(int i=0;i"+j); } } catch (IOException e) { e.printStackTrace(); } closeSocket(); } } private void createSocket(){ SocketAddress sa=new InetSocketAddress("127.0.0.1",9999); socket = new Socket(); try { socket.connect(sa,1000); socket.setSoTimeout(1000); } catch (IOException e) { e.printStackTrace(); } System.out.println("Created Socket"); } private void closeSocket(){ try { socket.close(); } catch (IOException e) { e.printStackTrace(); } System.out.println("Closed Socket"); } public static void main(String args[]){ new Client().connect(); } } Server.java import java.io.*; import java.util.*; import java.net.*; import java.nio.*; import java.nio.channels.*; class Server{ private Selector selector; public void listen() throws IOException { ServerSocketChannel serverChannel = ServerSocketChannel.open(); ServerSocket serverSocket =serverChannel.socket(); selector= Selector.open(); serverSocket.bind(new InetSocketAddress("localhost",9999)); serverChannel.configureBlocking(false); serverChannel.register(selector, SelectionKey.OP_ACCEPT); while(true){ int n=selector.select(100); if(n==0){ continue; } Iterator it=selector.selectedKeys().iterator(); while(it.hasNext()){ final SelectionKey key=(SelectionKey) it.next(); System.out.println("Key:"+key.isReadable()); if(key.isAcceptable()){ ServerSocketChannel ssc=(ServerSocketChannel) key.channel(); SocketChannel sc=ssc.accept(); sc.configureBlocking(false); Socket s=sc.socket(); sc.register(selector,SelectionKey.OP_READ); } if(key.isReadable()){ key.interestOps (key.interestOps() & (~SelectionKey.OP_READ)); Runnable r=new Runnable(){ public void run() { System.out.println("Run thread "+key.toString()); try { readChannel(key); } catch (IOException e) { System.out.println("CAnnot read from channel"); e.printStackTrace(); try { key.channel().close(); } catch (IOException e1) { e1.printStackTrace(); } key.selector().wakeup(); } } private void readChannel(SelectionKey key) throws IOException { SocketChannel sc=(SocketChannel) key.channel(); ByteBuffer bb=ByteBuffer.allocate(1024); ByteBuffer rez=ByteBuffer.allocate(1024); int count; int total=0; while((count=sc.read(bb))>0){ System.out.println("Read---"+count); bb.flip(); rez.put(bb.array(),0,count); bb.clear(); total+=count; } System.out.println("Server: Read total of:"+total+" count "+count); if(total>0){ rez.flip(); System.out.println("Here in printing on server"); for(int i:rez.array()){ if(i!=0) System.out.println("Ri->"+i); } byte a[]={3,4,5}; try{ sc.write(ByteBuffer.wrap(a)); System.out.println("After writing"); }catch(IOException e){ System.out.println("CANNOT SEND BACK response"); } } if(count<0){ sc.close(); //<<<<<< NEVER ENTER HERE <<<< System.out.println("----------Closing socket---------"); return; } System.out.println("Wake up selector"); int interest=key.interestOps() | SelectionKey.OP_READ; key.interestOps(interest); System.out.println("End key:"+key.isReadable()); key.selector().wakeup(); } }; new Thread(r).start(); }else{ key.interestOps(key.interestOps() &(~SelectionKey.OP_WRITE)); System.out.println("GET HERE!!!!!-------"+key.isWritable()+" "+key.isAcceptable()+" "+key.isReadable()); } it.remove(); } } } public static void main(String args[]){ try { new Server().listen(); } catch (IOException e) { e.printStackTrace(); } } } *Okay, it is a little bit longer but the main idea is as following. 1.The server is waiting for requests. 2.Client send some bytes and try to read response from server ----> 3. Server selector activate for read and read request into a separate thread 5.Client read response and after 1 second of inactivity get a read timeout. <----- 4. Server write some bytes to the client 6.Client close the socket -----> 7.Server selector activate for read and read -1 from socket and in this situation close the socket. The problem appear on point 7. This point is never executed on FreeBSD and is executed on all the other platform where I have tried. My JVM is: *java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01) Java HotSpot(TM) Server VM (build diablo-1.5.0_07-b01, mixed mode)* I have also tried with linux-sun-jdk and the result is the same. *java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode)* If anyone had some experience with this kind of problem please let me know I would be very appreciated any help that I can get. Thanks a lot and best regards Calin From owner-freebsd-java@FreeBSD.ORG Sat Apr 19 07:29:44 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAD26106566B for ; Sat, 19 Apr 2008 07:29:44 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.freebsd.org (Postfix) with ESMTP id 6F01E8FC15 for ; Sat, 19 Apr 2008 07:29:44 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m3J7TTUj012481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 19 Apr 2008 17:29:29 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m3J7TScZ020999; Sat, 19 Apr 2008 17:29:28 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m3J7TShw020998; Sat, 19 Apr 2008 17:29:28 +1000 (EST) (envelope-from peter) Date: Sat, 19 Apr 2008 17:29:28 +1000 From: Peter Jeremy To: Greg Lewis Message-ID: <20080419072928.GJ73016@server.vk2pj.dyndns.org> References: <20080316223054.GA46447@server.vk2pj.dyndns.org> <20080317133144.GA4473@misty.eyesbeyond.com> <20080318061525.GQ44676@server.vk2pj.dyndns.org> <20080319060004.GB19887@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i6vqABX3nJKXLk01" Content-Disposition: inline In-Reply-To: <20080319060004.GB19887@misty.eyesbeyond.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-java@freebsd.org Subject: Re: jdk15/javaws on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2008 07:29:44 -0000 --i6vqABX3nJKXLk01 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 18, 2008 at 11:00:04PM -0700, Greg Lewis wrote: >> I've tried building a simple test using: >> cc -O2 -fno-strict-aliasing -pipe -march=3Dnocona -DDMEM foo.c -o foo >> and the code is compiled correctly (actually, the generated code is >> basically identical except it correctly uses 64-bit moves). I'm still >> investigating what has gone wrong. > >Saw your later posting about it being the prototype for sysGetjarLib. Sorry for the delay in following up. I've written some patches that seem to mostly fix javaws on amd64 (at least for me). I've posted them in ports/122904. When I try using our management GUI app at work, javaws is still using a nonsense pathname component when locally caching the files but the pathname is consistent so the caching does work. I need to investigate this further at work. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --i6vqABX3nJKXLk01 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgJn1gACgkQ/opHv/APuIfYwQCdG/XmstvUp4LUCWJtqqO5crNL KbgAnjJ5G+LYwZRHLyRobC2ADPyfaaws =VuXH -----END PGP SIGNATURE----- --i6vqABX3nJKXLk01--