Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354884 - BIRT-enabled eclipse throws null pointer exception when trying to parse a valid, non-BIRT XML
Summary: BIRT-enabled eclipse throws null pointer exception when trying to parse a val...
Status: VERIFIED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 4.4.1   Edit
Assignee: Zhiqiang Qian CLA
QA Contact: H N CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 15:47 EDT by Jerry Ford CLA
Modified: 2014-09-17 17:06 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry Ford CLA 2011-08-16 15:47:06 EDT
Build Identifier:  M20100211-1343

Install Eclipse without BIRT.  Read and write to an XML file consisting of the following...

<?xml version="1.0" encoding="ISO-8859-1"?>
<ncc:library xmlns:ncc="http://www.redseal.net/SCHEMAS/ncc/V1"
             name="ModelIssue" prefix="MI" version="2010031501">
</ncc:library>

Eclipse works fine.

Install BIRT-enabled Eclipse, attempt to open the same XML file. BIRT throws a null pointer exception...
 org.eclipse.birt.report.model.parser.ModuleParserHandler.endDocument(ModuleParserHandler.javae: 287)

If I remove the "ncc:" namespace designation from the <library> element so that the XML looks like this...

<?xml version="1.0" encoding="ISO-8859-1"?>
<library xmlns:ncc="http://www.redseal.net/SCHEMAS/ncc/V1"
             name="ModelIssue" prefix="MI" version="2010031501">
</library>

...BIRT/Eclipse displays a warning that "the report file of version 2010031501 does not exist" then opens the file anyway.

This occurs regardless of which perspective I'm using (Report Design, or Java), and it continues to happen after I uninstall the BIRT package.  It also happens in Helios and Indigo versions of Eclipse.

Bottom line---I am unable  to use Eclipse to edit my XML after installing BIRT.  I need to keep two versions of Eclipse---one for BIRT report work and one that has never been tainted by BIRT for editing XML.


Reproducible: Always

Steps to Reproduce:
1.Install BIRT.
2.Open the XML file.
3.
Comment 1 Zhiqiang Qian CLA 2014-07-28 17:54:01 EDT
Mark as fixed. See commit 5ebab97f34384b4fa68e24e9a33e939f9dd7f597
Comment 2 H N CLA 2014-09-17 17:06:14 EDT
Opening XML file with "ncc" namespace in "Report Design" perspective does not see the error.

Verified in BIRT 4.4.1 build v20140916-1320.