Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: mevenide-eclipse
-
Labels:None
-
Number of attachments :
Description
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
Issue Links
- duplicates
-
MEVENIDE-1
provide user-friendly message when opening invalid poms
-
The only difference is the issue's priority.