NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: 20000718: NetCDF Java Applet Capable? (fwd)


"John R. Cary" wrote:
> 
> Hi John,
> 
> Thanks for the information.  FYI, to use most things
> I do not need to sign the applet, because I have
> added the line,
> 
>   user_pref("signed.applets.codebase_principal_support", true);
> 
> to my netscape preferences file.  (See 
> http://developer.netscape.com/docs/manuals/signedobj/capabilities/index.html.)

I see, so that allows codebases to be unsigned. Can the codebase have
any URL, or is it somehow restricted to be "within the intranet"?

> 
> This allows me to enable application privileges.  It seems that
> NetCDF requires more than just the UniversalFileAccess
> privilege, so I was hoping you might know.

hmmm, I would have thought that all you need is file access. try
catching the exception and calling e.printStackTrace(), that should
narrow it down.

> 
> Are the NetCDF mailing lists archived?

searchable, they dont seem to be browsable:

http://www.unidata.ucar.edu/glimpsedocs/ghnetcdf.html

Im pretty sure you wont see this specific problem in there.

> 
> Thanks again.....John
> 
> On Tue, 18 Jul 2000, John Caron wrote:
> 
> >
> > > >To: support@xxxxxxxxxxxxxxxx
> > > >From: "John R. Cary" <cary@xxxxxxxxxx>
> > > >Subject: NetCDF Java Applet Capable?
> > > >Organization:
> > > >Keywords: 200007181820.e6IIKsT11192
> > >
> > > I have been trying to use the NetCDF package within an applet through
> > > Netscape .4.7 on Windows.  I have enable UniversalFileAccess, but
> > > the code still dies.  My code sample is:
> > >
> > >         try {  // This must be in the same block?
> > >           netscape.security.PrivilegeManager.enablePrivilege(
> > >                 "UniversalFileAccess");
> > >           appendLine("Netscape privileges obtained.");
> > >         }
> > >         catch (NoClassDefFoundError 
> > > ex){appendLine("NoClassDefFoundError");}
> > >         catch (Exception ex){appendLine("Exception");}
> > >         appendLine("Will save to file " + fileName + " in directory " +
> > >                 sliceDir + ".");
> > >         File netCdfFile = new File(sliceDir, fileName);
> > >         appendLine("File '" + fileName + "' created.");
> > >         nc = new NetcdfFile(netCdfFile,
> > >                                 true, // clobber an existing file
> > >                                 true, // prefill variable values
> > >                                 schema // metadata template
> > >         );
> > >         appendLine("NetCDF file '" + fileName + "' created.");
> > >
> > > The code dies upon the call to NetcdfFile.  The error says only
> > > "AppletSecurityException".
> > >
> > > Is Java NetCDF applet capable within Netscape?
> > >
> > > Thanks.....John Cary
> > >
> > > --
> > > cary@xxxxxxxxxx          John R. Cary        www.techxhome.com
> > > Tech-X Corporation                           ph.  (303) 448-0728
> > > 5541 Central Avenue, Suite 135               fax  (303) 448-7756
> > > Boulder, CO 80301                            cell (303) 356-5399
> >
> > Hi John:
> >
> > Im not an expert on this, but I have been investigated applets recently.
> > One thing Im pretty sure of is that you have to sign your applets before
> > they can escape from the applet security sandbox.
> >
> > check out:
> >
> > http://java.sun.com/sfaq/
> > http://java.sun.com/security/signExample12/
> > http://java.sun.com/security/index.html
> >
> > We are currently exploring a new technology called WebStart that looks
> > promising:
> >
> > http://java.sun.com/products/javawebstart/
> >
> 
> --
> cary@xxxxxxxxxx          John R. Cary        www.techxhome.com
> Tech-X Corporation                           ph.  (303) 448-0728
> 5541 Central Avenue, Suite 135               fax  (303) 448-7756
> Boulder, CO 80301                            cell (303) 356-5399


  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: