facebook

‘unsupported content type’ when editing xml files

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #253103 Reply

    sleyzerzon
    Participant

    Hi,

    I’ve been getting the following message when opening Spring application context xml file:

    Unsupported content type in editor. To associate file extention with supported content type, please see <link>content type preference page<link>.

    I’m wondering what needs to be done to disable this message, perhaps some extra configuration?

    Thank you in advance.
    Simeon

    #253167 Reply

    Riyad Kalla
    Member

    Simeon,
    Did you install another plugin that took over the .xml file associations? Try right clicking on the file and going to “Open With” then selecting “MyEclipse Spring Config Editor”

    #253681 Reply

    sleyzerzon
    Participant

    Riyad,
    I followed your suggestion: right click|Open With|MyEclipse Spring Config Editor, and the same message appears:

    “Unsupported Content Type in Editor. To associate file extension with a supported content type, please see <link>Content Types Preference Page”<link>”.
    It there anything I need to configure on this preference page?

    Moreover, when clicking on a *.jsp file in my web project, I’m having the same window pop up as above along with the error:
    “Unable to create this part due to an internal error. Reasons for the failure: an unexpected exception was thrown.” This happens on every .jsp file.

    Could you help, please?
    Thank you,
    Simeon

    #253683 Reply

    sleyzerzon
    Participant

    Some additional info that may be helpful:

    The same error happens when clicking on any html files as well.
    Here is the stack trace that it gives:

    
     java.lang.NullPointerException
        at com.genuitec.eclipse.webdesigner.htmleditor.HTMLMultiPageEditorPart.setActivePage(HTMLMultiPageEditorPart.java:1296)
        at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:279)
        at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
        at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
        at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2588)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2521)
        at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2513)
        at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2498)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2493)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2478)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:275)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
        at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:190)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:267)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:243)
        at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:306)
        at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:651)
        at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.runtime.Platform.run(Platform.java:843)
        at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
        at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815)
        at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069)
        at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168)
        at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
        at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
        at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
        at org.eclipse.core.launcher.Main.run(Main.java:977)
        at org.eclipse.core.launcher.Main.main(Main.java:952)
    
    

    I’m running ME 5.0M1 on top of Eclipse 3.2RC5.

    Thank you for your help,
    Simeon

    #253686 Reply

    Riyad Kalla
    Member

    Ahh, I didn’t realize you were running the milestone build. Try and install Eclipse 3.2M7 into a new directory, then go to Help > Software Updates > Manage Config, add an extension and point it at your MyEclipse dir. When asked to restart hit NO, then close MyEclipse. Edit your shortcut and add -clean to the command line argument, then restart. See if it works then.

    (BTW I cannot reproduce this locally, so some setup is getting messed up)

    #253687 Reply

    sleyzerzon
    Participant

    I just tested the same files in the previous setup – ME 4.0 against Eclipse 3.1 – everything runs fine. Is this a known bug, or am I not doing anything correctly?

    Simeon

    #253688 Reply

    sleyzerzon
    Participant

    Riyad,
    Unfortunately, I can’t obtain the Eclipse SDK here, as they block Eclipse site, so I’d need to do it overnight.
    Is there anything (some config dump, etc.) that I could provide you in the meantime to reproduce this behavior and maybe suggest a quick fix?
    It really prevents me from doing any web development… 🙁
    Thanks,
    Simeon

    #253690 Reply

    Riyad Kalla
    Member

    It’s hard to say, we started testing on the Eclipse 3.2 platform internally with M6 and with M7, so we know those work. I just tried a sprinig project locally and obviously HTML editing works (or we would have held back the Milestone 1 release).

    If it’s working on our stable release, can you work with that just today until the download of M7 is done? One thing you *could* try is to create a new workspace, File > Swithc Workspace > C:\tempworkspace, hit OK. Now create a WEb project and add Spring caps. See if JSP editing and Spring works. If it still doesn’t, I really think this is an install issue. If it does work, then it’s possible things are just strange in the old workspace and you can import your old settings and projects into the new one.

    #253696 Reply

    sleyzerzon
    Participant

    ok, I tried creating a new web project in a test workspace. Project creates fine, but still getting the same error once trying to create a jsp page. Here’s the stack:

    
    java.lang.NullPointerException
        at com.genuitec.eclipse.webdesigner2.toolbar.EmbeddedToolfolderManager.createPaletteRoot(EmbeddedToolfolderManager.java:277)
        at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.getPaletteViewProvider(HTMLMultiPageEditorPart.java:467)
        at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createDesignerControls(HTMLMultiPageEditorPart.java:498)
        at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createDesignPage(HTMLMultiPageEditorPart.java:488)
        at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:258)
        at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:275)
        at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
        at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
        at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
        at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
        at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
        at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
        at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
        at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
        at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
        at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
        at org.eclipse.ui.internal.PartStack.add(PartStack.java:455)
        at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
        at org.eclipse.ui.internal.PartStack.add(PartStack.java:441)
        at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
        at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
        at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
        at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
        at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:819)
        at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:718)
        at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:679)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2586)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2521)
        at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2513)
        at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2498)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2493)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2470)
        at com.genuitec.eclipse.core.util.EditorUtil.openEditor(EditorUtil.java:81)
        at com.genuitec.eclipse.core.util.EditorUtil.openEditor(EditorUtil.java:74)
        at com.aston.WizardPage$1.run(WizardPage.java:251)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
        at org.eclipse.core.launcher.Main.run(Main.java:977)
        at org.eclipse.core.launcher.Main.main(Main.java:952)
    
     
    

    Regards,
    Simeon

    #253698 Reply

    Riyad Kalla
    Member

    This looks like a platform/API break issue. Gvie it a try again on RC7 when you get a chance (sorry I can’t provide more help).

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: ‘unsupported content type’ when editing xml files

You must be logged in to post in the forum log in