Openwings Home
Introduction
Search
In the News
Frequently Asked Questions
Registration
Open Forum
Openwings Tutorial
Bug Database
Openwings API
Download
Expert Teams
Process Management Office
Projects
Links
Terms of Use
Comment on this bug

03990:

InstallService throws NullPointerException if ICDPolicy.xml not loaded

Category: Install
Status: Closed

Severity: HIGH
Reported against release: 0.8
Fixed in release: 0.8.2 (Beta Refresh 2)

PROBLEM:

When installing a jar file, the Openwings shell reports
"Install Service threw a NullPointerException".

Stack trace / debugging output coming soon...

ANALYSIS:

The installer is experiencing a problem loading the 
InstallableComponentDescriptorPolicy from the xml file in the Jar file.

The installer creates a Jar URL to read the xml file directly out of 
the installable Jar file. The XML parser (xerces) appears to not be 
reading the entire file when a Jar URL is used.

Doing a Google search on the usenet newsgroups, it appears that other 
xerces users have experienced this problem - see the posting at the URL 
below (and the associated thread):

http://groups.google.com/groups?hl=en&selm=861yyh4qwk.fsf%40ste-
software.co.uk

This led us to the following bug report in the Java Developers 
Connection (free login required to view):

http://developer.java.sun.com/developer/bugParade/bugs/4200501.html

Basically, there is an intermittent issue with reading from input 
streams that come from Jar entries. It does not appear that the bug 
will be fixed in Java 1.4.

The solution is to modify InstallerImpl to extract
the xml and xsd policy files out of the Jar file to a temp directory, 
load the policy, and delete the temp files.

back to top

home | vision | search | in the news | faq | registration | open forum | tutorial | bug database
 API | download | expert teams | process management office | projects | links | terms of use

© Copyright 2001-2006 General Dynamics C4 Systems. All rights reserved.