From owner-freebsd-java@FreeBSD.ORG Tue Oct 14 05:40:07 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA63516A4B3 for ; Tue, 14 Oct 2003 05:40:07 -0700 (PDT) Received: from arthur.edulib.ro (ns.edulib.ro [217.156.14.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DD6B43FDD for ; Tue, 14 Oct 2003 05:40:01 -0700 (PDT) (envelope-from gabid@edulib.ro) Received: from osiris (xmas.edulib.ro [217.156.14.24]) by arthur.edulib.ro (8.12.10/8.12.10) with SMTP id h9ECdRDo018146; Tue, 14 Oct 2003 15:39:27 +0300 Message-ID: <00aa01c39250$37704750$180e9cd9@edulib.ro> From: "Gabriel - Iulian Dumbrava" To: "Greg Lewis" References: <04fe01c39190$b13d2b40$180e9cd9@edulib.ro> <20031013210910.GD92032@misty.eyesbeyond.com> Date: Tue, 14 Oct 2003 15:39:27 +0300 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 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-RAVMilter-Version: 8.3.3(snapshot 20020312) (arthur) cc: FreeBSD Java Subject: Re: Java crashes under FreeBSD 4.8-RELEASE X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2003 12:40:07 -0000 Hello and thanks for your answer. Here is some more info: We are using the JAAS mechanism. The jaas.config file which we are refreshing at some defined moments seems to cause the mentioned exception: java.lang.SecurityException: java.net.MalformedURLException: no protocol:jaas.config at com.sun.security.auth.login.ConfigFile.refresh(ConfigFile.java:261) at com.edulib.ice.core.ICESession.(ICESession.java:337) at com.edulib.ice.core.ICESessionsManager.openSession(ICESessionsManager.java:2 20) at com.edulib.ice.core.ICESessionsManager.run(ICESessionsManager.java:284) The code in charge is the following: Configuration configFile = javax.security.auth.login.Configuration.getConfiguration(); configFile.refresh(); The code is executed in a synchronized block, the monitor being a static variable from our application. On Sun's JDK 1.3.1 and 1.4.x on Windows, Linux and Solaris it works with no problems. But on FreeBSD 4.8-RELEASE after some time of execution the code triggers the above exception and thereafter it keeps throwing it everytime the code executes. It is like something static is set in there. Note that the exception is similar to the case when the jaas.config file (specified using -Djava.security.auth.login.config==jaas.config parameter for the JVM) is not found by the JVM. And of course if the jaas.config file cannot be found, thereafter every login to our application fails so our application fails ;-( and the workaround is to restart it. Thanks again, -- Gabriel - Iulian Dumbrava Network Administrator EduLib Soft, srl Craiova, Romania Tel: + 40 251 413496 Fax: + 40 251 418935 Email: gabriel.dumbrava@edulib.ro Url: www.edulib.ro ----- Original Message ----- From: "Greg Lewis" To: "Gabriel - Iulian Dumbrava" Cc: "FreeBSD Java" Sent: Tuesday, October 14, 2003 12:09 AM Subject: Re: Java crashes under FreeBSD 4.8-RELEASE > On Mon, Oct 13, 2003 at 04:48:32PM +0300, Gabriel - Iulian Dumbrava wrote: > > I am having a problem with JDK 1.3.1 downloaded from FreeBSD Foundation. > > > > The system on which the JVM is installed is a "FreeBSD 4.8-RELEASE" > > > > The error I get is: > > Exception while refreshing policy file: java.lang.SecurityException: > > java.net.MalformedURLException: no protocol: jaas.config > > > > It seems like the JVM is not able to read that file, or smth like that. If I > > restart the services, it works again. Everything looks ok for a period of > > time, and then the same error appears. > > > > Do you have any ideas? > > Could you please provide more information? What exactly is being run to > cause the exception? You mention "services" but don't expand on what you > mean by this. > > -- > Greg Lewis Email : glewis@eyesbeyond.com > Eyes Beyond Web : http://www.eyesbeyond.com > Information Technology FreeBSD : glewis@FreeBSD.org > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" >