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: 6574851
Votes 0
Synopsis (repo) NPE in URLRepository for non-existant repository_metadata.xml file
Category java:module
Reported Against
Release Fixed 7(b99)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 28-JUN-2007
Description
When a URLRepository is constructed but no repository_metadata.xml file is available at the specified URL, an NPE is thrown. For example "java -repository http://java.sun.com/ -module x"

Exception in thread "main" java.lang.NullPointerException
        at sun.module.repository.ModuleInfoXMLReader.read(ModuleInfoXMLReader.java:112)
        at sun.module.repository.URLRepository.initialize(URLRepository.java:290)
        at sun.module.ModuleLauncher.getModuleDefinition(ModuleLauncher.java:258)
        at sun.module.ModuleLauncher.loadModuleClass(ModuleLauncher.java:93)
Posted Date : 2007-06-28 00:49:23.0
Work Around
N/A
Evaluation
Root cause is access of an uninitialized variable in a finally clause.
Posted Date : 2007-06-28 16:57:54.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang