Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363583 - Openning the xml under diagrams folder with JPA Diagram Editor results in an error
Summary: Openning the xml under diagrams folder with JPA Diagram Editor results in an ...
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: Diagram Editor (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.2 M7   Edit
Assignee: Petya Sabeva CLA
QA Contact: Stefan Dimov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 08:55 EST by Alexander Silgidjian CLA
Modified: 2012-03-29 10:25 EDT (History)
4 users (show)

See Also:


Attachments
This is the exception when you try to open the xml (6.57 KB, text/plain)
2011-11-11 08:58 EST, Alexander Silgidjian CLA
no flags Details
Once broken, you cannot open the Editor anymore (3.83 KB, text/plain)
2011-11-11 08:58 EST, Alexander Silgidjian CLA
no flags Details
set meaningfull error message (3.81 KB, patch)
2012-03-29 08:10 EDT, Petya Sabeva CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Silgidjian CLA 2011-11-11 08:55:00 EST
Build Identifier: 

I am not sure if it should be possible to open the xml in diagram editor, but even if it is not possible, there should be a better error message. Fox example if I try it with Server Editor, the message is: Could not open the editor: Could not open editor because ggg.xml is not a valid server. Use Open With to open this file with a different editor.

Furthermore doing this, you could not open the Diagram in the normal way anymore - there is a NPE thrown

Reproducible: Always

Steps to Reproduce:
1. Create a JPA 1.0 project
2. Open/Close the diagram in order to create diagrams folder and xml
3. Go to diagrams folder and right click the generated xml. Select Open With -> Other -> JPA Diagram Editor

Result: Could not open the editor: An exception was thrown during initialization
Comment 1 Alexander Silgidjian CLA 2011-11-11 08:58:21 EST
Created attachment 206843 [details]
This is the exception when you try to open the xml
Comment 2 Alexander Silgidjian CLA 2011-11-11 08:58:52 EST
Created attachment 206844 [details]
Once broken, you cannot open the Editor anymore
Comment 3 Petya Sabeva CLA 2012-03-29 08:10:12 EDT
Created attachment 213329 [details]
set meaningfull error message
Comment 4 Petya Sabeva CLA 2012-03-29 08:15:45 EDT
Submitted in HEAD
Comment 5 Petya Sabeva CLA 2012-03-29 08:18:32 EDT
Just a little remark: to open the diagram in a normal way, just select Open With -> XML Editor.