Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2003 15:39:27 +0300
From:      "Gabriel - Iulian Dumbrava" <gabid@edulib.ro>
To:        "Greg Lewis" <glewis@eyesbeyond.com>
Cc:        FreeBSD Java <freebsd-java@freebsd.org>
Subject:   Re: Java crashes under FreeBSD 4.8-RELEASE
Message-ID:  <00aa01c39250$37704750$180e9cd9@edulib.ro>
References:  <04fe01c39190$b13d2b40$180e9cd9@edulib.ro> <20031013210910.GD92032@misty.eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.<init>(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" <glewis@eyesbeyond.com>
To: "Gabriel - Iulian Dumbrava" <gabid@edulib.ro>
Cc: "FreeBSD Java" <freebsd-java@freebsd.org>
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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00aa01c39250$37704750$180e9cd9>