Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354365 - Eclipse hangs when opening an XML file in the XML editor
Summary: Eclipse hangs when opening an XML file in the XML editor
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-08-10 07:59 EDT by Mischa Andriesse CLA
Modified: 2020-02-20 15:01 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mischa Andriesse CLA 2011-08-10 07:59:12 EDT
Build Identifier: 20110615-0604

When trying to open an XML-file in the XML-editor eclipse hangs. According to visualVM a Thread blocks the system. After killing Eclipse and restarting there was the following in what should be the editor window:

org.eclipse.ui.PartInitException: Cannot instantiate input element factory org.jboss.tools.common.core.resources.XModelObjectEditorInputFactory for editor id=org.jboss.tools.hibernate.ui.xml.editor.Hibernate3CompoundEditor name=Player.hbm.xml
	at org.eclipse.ui.internal.EditorReference.getRestoredInput(EditorReference.java:398)
	at org.eclipse.ui.internal.EditorReference.getEditorInput(EditorReference.java:365)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:594)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
	at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1459)
	at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:972)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
	at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1595)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

Reproducible: Always

Steps to Reproduce:
1.Start Eclipse
2. double click an XML-file
3.
Comment 1 Remy Suen CLA 2011-08-10 09:07:56 EDT
(In reply to comment #0)
> When trying to open an XML-file in the XML-editor eclipse hangs. According to
> visualVM a Thread blocks the system.

Please provide information about this thread.
Comment 2 Nitin Dahyabhai CLA 2011-08-10 09:20:52 EDT
As well as the name of the editor you're trying to use.
Comment 3 Thomas Schindl CLA 2011-08-10 09:22:50 EDT
I also had this sometimes and somehow the problem is the WTP. I never tracked it down but I had the feeling that the problem happens if your internet connection is down and your xml references a none locale DTD.

But like Remy said provide more info about the Thread hanging!
Comment 4 Francis Upton IV CLA 2011-08-10 10:49:45 EDT
(In reply to comment #3)
> I also had this sometimes and somehow the problem is the WTP. I never tracked
> it down but I had the feeling that the problem happens if your internet
> connection is down and your xml references a none locale DTD.
This can certainly happen with XML schema based files that reference certain XML schema namespaces, it will go and try to resolve them using the Internet (hitting the W3C site), and sometimes even if the Internet is working, there will be a significant delay accessing the site. I think there is a catalog facility in the XML editing stuff that can be used to point these XML schema files to a local copy.
Comment 5 Nitin Dahyabhai CLA 2011-08-10 11:48:10 EDT
(In reply to comment #4)
> I think there is a catalog
> facility in the XML editing stuff that can be used to point these XML schema
> files to a local copy.

There is, but I don't know if it's used by the org.jboss.tools.hibernate.ui.xml.editor.Hibernate3CompoundEditor from comment 0.
Comment 6 Remy Suen CLA 2011-09-06 14:41:46 EDT
Please feel free to reopen this bug when you get a thread dump from Visual VM when Eclipse has hung.
Comment 7 hossein mahdavipour CLA 2020-02-20 15:01:07 EST
I imported eclipse dl4j getting start example and had the same problem