This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 276494 - Cannot include module with Tigerstripe 0.4.6
Summary: Cannot include module with Tigerstripe 0.4.6
Status: CLOSED INVALID
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 09:26 EDT by Marc FLAUW CLA
Modified: 2011-11-23 10:48 EST (History)
2 users (show)

See Also:


Attachments
TIP Model1 zip file (88.19 KB, application/x-zip-compressed)
2009-05-15 09:26 EDT, Marc FLAUW CLA
no flags Details
TIP Model2 zip (25.45 KB, application/x-zip-compressed)
2009-05-15 09:26 EDT, Marc FLAUW CLA
no flags Details
Tigerstrip log when building the module (26.68 KB, application/octet-stream)
2009-05-15 09:27 EDT, Marc FLAUW CLA
no flags Details
Tigerstripe log when trying to use the modele (81.59 KB, application/octet-stream)
2009-05-15 09:27 EDT, Marc FLAUW CLA
no flags Details
manually fixed module (25.45 KB, application/zip)
2009-05-15 17:34 EDT, Eric Dillon CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc FLAUW CLA 2009-05-15 09:26:15 EDT
Created attachment 135978 [details]
TIP Model1 zip file

Hello,

I have an error with Tigerstripe 0.4.6. I am aligned with the latest release using Eclipse update tool. 

From my project TIP_Test_Model1, I create a module tip_test_module.zip.  The Tigerstripe log associated with this step is Tigerstripe_building_module.log
Now I copy this module to my project TIP_Test_Model2. I open my Tigerstripe.xml and add this module as a dependency. It does not appear in the box.  If now, I change my Tigerstripe.xml file (like modifying the description), then the tip_test_module appear, but with an icon showing a question mark. 

If now, I try to save the Tigerstripe.xml file, I received a “Save Failed”, with a detail of “Save Failed
java.lang.NullPointerException”. Tigerstripe.log corresponding to this try. I have to say do not save changes. 

This is a blocking problem as I can no longer use module.

Best regards,

Marc
Comment 1 Marc FLAUW CLA 2009-05-15 09:26:50 EDT
Created attachment 135980 [details]
TIP Model2 zip
Comment 2 Marc FLAUW CLA 2009-05-15 09:27:22 EDT
Created attachment 135982 [details]
Tigerstrip log when building the module
Comment 3 Marc FLAUW CLA 2009-05-15 09:27:45 EDT
Created attachment 135983 [details]
Tigerstripe log when trying to use the modele
Comment 4 Eric Dillon CLA 2009-05-15 16:38:21 EDT
Hi Marc,

I tried adding the "test_zip_module.zip" as a dependency. It appears that an exception is not correctly reported as you do that (it is not logged in the Error Log).

However, thru debug, I was able to catch it. It is an InvalidModuleException.
Digging a bit deeper, I found that the module content (stored in a file called ts-module.xml inside the module .zip file) has XML illegal Characters.

These come from the original class: org.tmforum.tip.cbe.test.TestProblem. The comment on the "category" field has 2 illegal XML characters:  and  around the words "What Category" 

I will try and edit the module directly to confirm this is the only problem, but you might want to edit the original class and fix that?

Comment 5 Eric Dillon CLA 2009-05-15 17:34:14 EDT
I found more of these:
- responsibleParty
- reason

- impactPatterns

I've attached the module that I cleaned up by hand.
Comment 6 Eric Dillon CLA 2009-05-15 17:34:45 EDT
Created attachment 136082 [details]
manually fixed module
Comment 7 Eric Dillon CLA 2009-05-15 17:35:58 EDT
Downgrading priority. It seems there is a workaround. 

The solution is on filtering the bad characters maybe?
Comment 8 Marc FLAUW CLA 2009-05-18 05:14:52 EDT
I fixed the initial project with the recommendations of Eric and the bug disappears. 
I will be pushing the cleanup of those characters to Richard when he will be back. 
Meanwhile, it would be good to have at least a cleaner message. At best when building the module would be good. 
Comment 9 Navid Mehregani CLA 2011-11-23 10:48:31 EST
Please reopen if this is still an issue