[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #HUC-838359]: using netcdfAll-4.2.jar with webstart

> Full Name: Tami Toto
> Email Address: address@hidden
> Organization: Brookhaven National Laboratory
> Package Version:
> Operating System:
> Hardware:
> Description of problem: Hi,
> I am developing a JAVA webstart app and am trying to avoid having to sign all 
> of the .jars.  To that end, I had to switch to using javax.jnlp file i/o 
> instead of regular java.io.  It works great except that when I actually go to 
> read a netcdf file, I get the following error:
> Loading file ...
> Exception in thread "AWT-EventQueue-0" java.security.AccessControlException: 
> access denied (java.io.FilePermission SWACR_CW1_MODE_03_.nc read)
> at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
> at java.security.AccessController.checkPermission(AccessController.java:546)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:206)
> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:101)
> at ucar.unidata.io.RandomAccessFile.<init>(RandomAccessFile.java:267)
> at ucar.nc2.NetcdfFile.getRaf(NetcdfFile.java:520)
> at ucar.nc2.NetcdfFile.open(NetcdfFile.java:391)
> at ucar.nc2.NetcdfFile.open(NetcdfFile.java:364)
> at ucar.nc2.NetcdfFile.open(NetcdfFile.java:351)
> It looks like this is because ucar.unidata.io uses java.io?  


How do people generally get around this?  By signing their .jars?

yes - certificates are cheap.


Ticket Details
Ticket ID: HUC-838359
Department: Support netCDF Java
Priority: Normal
Status: Open

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.