You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Baerrach bonDierne (JIRA)" <ji...@codehaus.org> on 2005/05/14 07:33:21 UTC

[jira] Created: (MPECLIPSE-91) Invalid XML document causes Project Object Model Editor to crash

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 "&amp;"
* 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org