Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
This works fantastic when running as an application, but generates a security exception (at least under Windows, Sun JDK 1.5) when the resulting VisADCanvasJ3D calls:
System.getProperty("textureWidthMax")in its makeConfig() method. The exception is a PropertyAccess exception; evidently applets are not allowed access to that particular property.
The solution is simple: simply add a try / catch around this statement. The code already handles the case where getProperty returns null, so catching the resulting exception is all that is required. After that, the applet runs great in the browser!
Unfortunately, this method requires modifying the VisAD code. If this changes makes it (soon) into an official release, that would be great. Otherwise, I would be open to suggestions that don't require modifying the VisAD source code. (Deriving a sub-class of VisADCanvas3D didn't seem like a plausible solution, since the makeConfig() method is declared private, and thus I can't override it.)
JR Schmidt
visad
archives: