JDK-6785424 : SecurityException locating physical fonts on Windows Terminal Server
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6,6u11
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2008-12-16
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u14Fixed 7 b54Fixed
Related Reports
Duplicate :  
Description
The following program will throw an exception on some configurations :
specifically terminal servers such as Citrix where the results of
GetWindowsDirectory() and GetSystemDirectory() point to different drives

import java.awt.*;
import java.awt.image.*;

public class SF {
    private boolean ranTest;

    public static void main(String[] args) {
       System.setSecurityManager(new SecurityManager());
       Font f = new Font("Verdana", Font.PLAIN, 12);
       BufferedImage bi= new BufferedImage(1,1,1);
       Graphics2D g = bi.createGraphics();
       g.setFont(f);
       System.out.println(g.getFontMetrics());
    }
}

Comments
EVALUATION There is a missing doPrivileged
16-12-2008