Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6405099
Votes 0
Synopsis Compiler crashes when javac encounters /usr/jdk/packges/lib/ext with no 777 permissions
Category java:compiler
Reported Against b77
Release Fixed mustang(b85)
State 10-Fix Delivered, Verified, bug
Priority: 2-High
Related Bugs 6395269 , 6465207
Submit Date 28-MAR-2006
Description
--------------------------------------
Platform        : sparc (Solaris 10), linux ( customer  AS 3.0, SuSE 9.1)
JDK             : 1.6.0-b77
Nature		: Compiler Crash
----------------------------------------

The compiler crash can be experienced when the /usr/jdk/packges/lib/ext does not have the necessary directory permissions.

The system root has a directory structure /usr/jdk/packages/lib/ext and with the following directory permissions say
jlab213:root% ls -l /usr/jdk/packages/lib
drwx--x--x   3 root     root         512 Mar 28 17:05 ext

jlab213:~/src/extloader% cat Test1.java
public class Test1 {
        public static void main(String []args) {
                System.out.println(System.getProperty("java.ext.dirs"));
        }
}

jlab213:~/src/extloader 84 % javac Test1.java
An exception has occurred in the compiler (1.6.0-beta2). Please file a bug at th
e Java Developer Connection (http://java.sun.com/webapps/bugreport)  after check
ing the Bug Parade for duplicates. Include your program and the following diagno
stic in your report.  Thank you.
java.lang.NullPointerException
        at com.sun.tools.javac.util.Paths$Path.addDirectory(Paths.java:183)
        at com.sun.tools.javac.util.Paths$Path.addDirectories(Paths.java:168)
        at com.sun.tools.javac.util.Paths.computeBootClassPath(Paths.java:275)
        at com.sun.tools.javac.util.Paths.lazy(Paths.java:83)
        at com.sun.tools.javac.util.Paths.bootClassPath(Paths.java:97)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.initProcess
orIterator(JavacProcessingEnvironment.java:162)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.<init>(Java
cProcessingEnvironment.java:111)
        at com.sun.tools.javac.main.JavaCompiler.initProcessAnnotations(JavaComp
iler.java:772)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:627)
        at com.sun.tools.javac.main.Main.compile(Main.java:766)
        at com.sun.tools.javac.main.Main.compile(Main.java:691)
        at com.sun.tools.javac.main.Main.compile(Main.java:680)
        at com.sun.tools.javac.Main.compile(Main.java:70)
        at com.sun.tools.javac.Main.main(Main.java:55)
Posted Date : 2006-03-28 12:13:27.0
Work Around
N/A
Evaluation
dir.listFiles() can return null if an IO error occurs
Posted Date : 2006-05-02 05:17:50.0

Doesn't conflict with JSR 199.
Posted Date : 2006-05-02 10:50:17.0

This was caused by 6395269.
Posted Date : 2006-05-02 10:54:57.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang