Java crashes under FreeBSD 4.8-RELEASE

Gabriel - Iulian Dumbrava gabid at edulib.ro
Tue Oct 14 05:40:07 PDT 2003


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 at edulib.ro
Url: www.edulib.ro

----- Original Message -----
From: "Greg Lewis" <glewis at eyesbeyond.com>
To: "Gabriel - Iulian Dumbrava" <gabid at edulib.ro>
Cc: "FreeBSD Java" <freebsd-java at 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 at eyesbeyond.com
> Eyes Beyond                         Web     : http://www.eyesbeyond.com
> Information Technology              FreeBSD : glewis at FreeBSD.org
>
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
>



More information about the freebsd-java mailing list