Invalid XML document causes Project Object Model Editor to crash
----------------------------------------------------------------

         Key: MPECLIPSE-91
         URL: http://jira.codehaus.org/browse/MPECLIPSE-91
     Project: maven-eclipse-plugin
        Type: Improvement
    Reporter: Baerrach bonDierne


Eclipse User Message:
Unable to create editor. This message may be due to a bug in the editor, not a 
problem with the file you are trying to edit. First close this error message 
and then use "Open With..." to open the file in a different editor. Reason for 
the failure: Could not obtain Project reader

Error Message:
Unable to create editor ID 
org.mevenide.ui.eclipse.editors.pom.MevenidePomEditor: Could not obtain Project 
reader

Error Message Stack Trace:
org.eclipse.ui.PartInitException: Could not obtain Project reader
at 
org.mevenide.ui.eclipse.editors.pom.MevenidePomEditor.init(MevenidePomEditor.java:411)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:857)


To replicate:
* Open a valid "project.xml" in Project Object Model Editor (prove that the 
editor is still working)
* Close the editor
* Open "project.xml" using the "Text Editor" add an "&" anywhere as the text of 
a tag.  Since this is invalid XML and should have been "&"
* Close the editor
* Try to open "project.xml" in Project Object Model Editor, it will now fail 
with the error above.

To resolve these issues use an XML aware editor like, XMLBuddy and validate the 
XML. It should tell you why it is invalid so you can then fix it.

Bae

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to