facebook

Which editor do I used to edit web.xml?

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #261626 Reply

    Mork
    Participant

    Hello,

    When I try to use the “MyEclpse xml editor” — in MyEclipse 5.1 and 5.0, for editing a web.xml file, I get the following error stack below.

    The only editor that seems to work to edit web.xml is the plain vanilla text editor (which doesn’t close tags or show any colors, etc.).

    Any ideas what’s going on?

    Thanks in advance.

    – M

    java.lang.NullPointerException
    at org.eclipse.wst.sse.ui.StructuredTextEditor.update(StructuredTextEditor.java:3055)
    at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.addSourcePage(XMLMultiPageEditorPart.java:338)
    at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.createPages(XMLMultiPageEditorPart.java:505)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276)
    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:2595)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
    at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:288)
    at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:280)
    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:184)
    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:149)
    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(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    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)

    #261638

    Riyad Kalla
    Member

    Hmm, you are choosing the right editor. Can you go to your MyEclipse menu, click it, then down to Installation Summary, then Installation Details and paste that here for me?

    #261657

    Mork
    Participant

    Sure, here ya go.

    I just installed 5.1 this morning (as well as Java 5 release 09), but I had this same XML editor problem before.

    Look forward to your reply.

    Thanks R.

    — M

    *** Date:
    Monday, November 13, 2006 10:39:34 AM EST

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_09

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.1
    Build id: M20060921-0945

    Eclipse Platform

    Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
    Build id: M20060629-1905

    Eclipse RCP

    Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
    Build id: M20060921-0945

    Eclipse Plug-in Development Environment

    Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
    Build id: M20060921-0945

    Eclipse Project SDK

    Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
    Build id: M20060921-0945

    Eclipse Graphical Editing Framework

    Version: 3.2.1.v20060921
    Build id: 20060921-1617

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Program Files\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    9f4_9c
    -vm
    C:\Program Files\Java\jdk1.5.0_09\bin\javaw.exe

    #261670

    Riyad Kalla
    Member

    Your setup looks perfect as usual… I did notice that your startup arguments look a bit shy… did you use the all-in-one installer from us to install MyEclipse or is this a custom install with a custom shortcut and eclipse.ini file?

    Let’s try adding -clean to your command line startup and see if this is just a stale plugin cache issue.

    #261676

    Mork
    Participant

    I used the update feature within MyEclipse. I tried the -clean option, but it didn’t work.

    The resulting message is an unsupported content type and have the following context:

    java.lang.NullPointerException
    at org.eclipse.wst.sse.ui.StructuredTextEditor.update(StructuredTextEditor.java:3055)
    at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.addSourcePage(XMLMultiPageEditorPart.java:338)
    at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.createPages(XMLMultiPageEditorPart.java:505)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276)
    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:2595)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
    at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:288)
    at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:280)
    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:184)
    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:149)
    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(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    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)

    #261680

    Riyad Kalla
    Member

    Mork,
    If you go to File > Switch Workspace, and then give it some new dir name like C:\tempworkspace, and hit OK to restart. Does the XML editor work correctly then? I’m wondering if this is a workspace corruption issue, or if we have a problem with doing upgrades as opposed to full installs from 5.0.1 to 5.1

    #261696

    Mork
    Participant

    If I switch workspace and then open the newly created web.xml file, I still get the same error.

    Recall that I mentioned that this problem existed *before* I upgraded this morning to MyE 5.1. I don’t recall exactly when it started happening.

    I can send you the (MyEclipse-created) web.xml if you want to test it there. Just give me an email address.

    FWIW, I do have XML Buddy Pro installed on my machine. It opens the web.xml file fine.

    Perhaps there’s a conflict there?

    Not sure.

    Look forward to any updates.

    Thanks!!!

    — M

    #261704

    Riyad Kalla
    Member

    Mork,
    That’s the problem, XML Buddy. There are also known issues with XML Buddy and our Struts config and Faces config editors as well.

    Out of curiosity, what features in XML Buddy weren’t you finding in MyEclipse?

    #261748

    Mork
    Participant

    As I recall, XML Buddy had some good converters like DTD->XML and XML->Schema. Those were the ones I needed.

    Thanks for your help on this.

    — M

    P.S. BTW do any of the MyE graphical editors (JSP, for example) let you resize controls on the screen after you place them there yet? (Needed improvement if not there already <s>)

    #261771

    Riyad Kalla
    Member

    Mork,
    Resizing isn’t support yet because of the unofficial application of it. For example, some controls have size params based on character width (like input text boxes) while others have no concept of a size (like a Button). The only consistent way to resize a control is to apply a CSS style to it, and even then it’s not 100% accurate all the time.

    I would point out that this is an enhancement request though, and I believe the way we plan to handle it is to tackle first the components that support sizing (text controls) and go from there.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Which editor do I used to edit web.xml?

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