Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328908 - Should show better error message if no or an unknown document type is declared
Summary: Should show better error message if no or an unknown document type is declared
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-28 04:10 EDT by Chris Wilson CLA
Modified: 2011-11-09 17:42 EST (History)
1 user (show)

See Also:


Attachments
XML file that VEX can't open (9.77 KB, application/octet-stream)
2010-10-28 04:10 EDT, Chris Wilson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Wilson CLA 2010-10-28 04:10:47 EDT
Created attachment 181913 [details]
XML file that VEX can't open

Version 0.5.0.201008261158

!ENTRY org.eclipse.wst.xml.vex.ui 4 0 2010-10-28 09:54:59.632
!MESSAGE Unexpected error opening simple.jrctx. Please report a bug to the component wtp.inc.vex at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Incubator
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.xml.vex.core.internal.dom.DOMDocumentReader.read(DOMDocumentReader.java:39)
	at org.eclipse.wst.xml.vex.ui.internal.editor.VexEditor.loadInput(VexEditor.java:347)
	at org.eclipse.wst.xml.vex.ui.internal.editor.VexEditor.createPartControl(VexEditor.java:483)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:286)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2857)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)
	at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:344)
	at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent(OpenWithMenu.java:228)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Comment 1 Florian Thienel CLA 2010-10-28 05:16:09 EDT
(In reply to comment #0)
Do you have a plug-in installed or in your workspace which provides the DTD? (see http://wiki.eclipse.org/Vex/UserGuide#Vex_Plug-in_Project:_Configure_your_own_XML_format)

Vex can only open files if their DTD is configured, either by an installed plug-in that extends the extension point 'org.eclipse.wst.xml.vex.ui.doctypes', or by a Vex plug-in project in your workspace. The plug-ins 'org.eclipse.wst.xml.vex.dita' and 'org.eclipse.wst.xml.vex.doctbook' are examples for plug-ins that provide the configuration for a document type.
Comment 2 Chris Wilson CLA 2010-10-28 05:39:37 EDT
I guess I don't have any plugin for this file type and don't have time to write one. It told me to file a bug report so that's what I did. It seems like a less than helpful way for VEX to fail.
Comment 3 Florian Thienel CLA 2010-11-05 14:37:34 EDT
If a document is opened in Vex that has no document type declared or uses an unknown document type, Vex should display a special error message which describes this problem and gives a hint on possible solutions to the underlying problem:

1. add a doctype declaration to the document
2. configure the document type e.g. by creating a Vex Plug-in in your workspace
Comment 4 Florian Thienel CLA 2011-11-09 17:38:02 EST
Moved to Mylyn Docs Vex.
Comment 5 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn