facebook

Opening spring xml files on 4.1 M2

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #243368 Reply

    Hani Naguib
    Member

    MyEclipse is unable to open my spring context files.
    I get this error message:
    Unable to create editor ID com.genuitec.eclipse.springframework.springconfigeditor: An unexpected exception was thrown.
    Trace:
    ——-
    java.lang.NullPointerException
    at com.genuitec.eclipse.springframework.editor.StructuredTextViewerConfigurationSpring.getContentAssistant(StructuredTextViewerConfigurationSpring.java:30)
    at com.ibm.sse.editor.StructuredTextViewer.configure(StructuredTextViewer.java:271)
    at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2517)
    at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
    at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:314)
    at com.ibm.sse.editor.StructuredTextEditor.createPartControl(StructuredTextEditor.java:880)
    at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:155)
    at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:132)
    at com.ibm.xmleditor.internal.XMLMultiPageEditorPart.addSourcePage(XMLMultiPageEditorPart.java:161)
    at com.ibm.xmleditor.internal.XMLMultiPageEditorPart.createPages(XMLMultiPageEditorPart.java:217)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
    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:391)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
    at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
    at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
    at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:758)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:665)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:628)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2360)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
    at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:279)
    at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:271)
    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:178)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    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:324)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    —–

    It also happens with the MyEclipse XML Editor.
    Error message:
    Unable to create editor ID org.xmen.ui.text.XMLTextEditor: An unexpected exception was thrown.
    Trace:
    ——-
    java.lang.NullPointerException
    at com.genuitec.eclipse.springframework.editor.StructuredTextViewerConfigurationSpring.getContentAssistant(StructuredTextViewerConfigurationSpring.java:30)
    at com.ibm.sse.editor.StructuredTextViewer.configure(StructuredTextViewer.java:271)
    at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2517)
    at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
    at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:314)
    at com.ibm.sse.editor.StructuredTextEditor.createPartControl(StructuredTextEditor.java:880)
    at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:155)
    at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:132)
    at com.ibm.xmleditor.internal.XMLMultiPageEditorPart.addSourcePage(XMLMultiPageEditorPart.java:161)
    at com.ibm.xmleditor.internal.XMLMultiPageEditorPart.createPages(XMLMultiPageEditorPart.java:217)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
    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:391)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
    at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
    at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
    at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:758)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:665)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:628)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2360)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
    at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:279)
    at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:271)
    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:178)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    at org.eclipse.jface.window.Window.open(Window.java:787)
    at org.eclipse.pde.internal.runtime.logview.EventDetailsDialog.open(EventDetailsDialog.java:152)
    at org.eclipse.pde.internal.runtime.logview.EventDetailsDialogAction.run(EventDetailsDialogAction.java:91)
    at org.eclipse.pde.internal.runtime.logview.LogView$12.doubleClick(LogView.java:336)
    at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:720)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
    at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:718)
    at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:950)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1057)
    at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:219)
    at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:216)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:275)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    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:324)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    ——-

    Session Data:
    eclipse.buildId=M20050929-0840
    java.version=1.4.2_09
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86

    Myeclipse version 4.1 M2

    #243373 Reply

    Brian Fernandes
    Moderator

    This looks like an installation issue.

    Is this a fresh install of 4.1M2 or did you install it over a previous version? Do you have any other plugins installed?

    Can you try adding -clean to your command line arguments just once and see if it clears things up for you?

    Best,
    Brian.

    #243376 Reply

    Hani Naguib
    Member

    Hi, yes this was a bland new installation of Eclipse and MyEclipse.
    The other plugins I have are
    – CheckStyle
    – TestNG
    – Perforce
    – Easy Explore

    How do I add -clean to command line options. Is it enough to type
    c:> eclipse -clean

    If so it did not fix the problem. When I get some time I will try to install
    it again on an eclipse with no other plugins 🙁

    Thanks,
    Hani

    #243408 Reply

    Brian Fernandes
    Moderator

    Hani,

    Yes, that -clean switch specification is fine, as long as it is being sent to eclipse.exe and not a batch file which is invoking eclipse indirectly (and probably not passing the arguments along)

    A few further questions. Just confirming: All the bean files that you attempt to open throw the above exceptions?
    Can you open normal XML files? What about opening bean files with the XML editor, right click on the bean file and choose Open With > MyEclipse XML Editor?

    If you have the time, you could try creating a dummy spring project ina new workspace, in case this issue is due to a corrupted workspace. Use File > Switch Workspace to specify a new workspace location, you can use the same command to switch back to your original workspace later.

    Can you open up your plugins folder and see if there are any plugins named *.wst.*? There is a chance that some of your other plugins installed a version of WTP that is conflicting with MyEclipse.

    Thank you for your patience,
    Best,
    Brian.

    #243419 Reply

    Hani Naguib
    Member

    @Support-Brian wrote:

    A few further questions. Just confirming: All the bean files that you attempt to open throw the above exceptions?
    Can you open normal XML files? What about opening bean files with the XML editor, right click on the bean file and choose Open With > MyEclipse XML Editor?

    Yes the problem seems to occur only on Spring files.
    I did try opening them as you mentioned with MyEclipseXML Editor, that is what my
    second stack trace (above) is.

    @Support-Brian wrote:

    If you have the time, you could try creating a dummy spring project ina new workspace, in case this issue is due to a corrupted workspace. Use File > Switch Workspace to specify a new workspace location, you can use the same command to switch back to your original workspace later.

    Seems to work in a new workspace! Any ideas as to what could be corrupting my
    original workspace? It consists of 6 projects all of which reside in a directory that
    is outside the workspace ( I import existing projects ). Also all the projects are under
    version control (Perforce) which marks all files as read-only until I open them for Edit.
    Could it be that you need to modify the .project file during the import and that fails causing
    problems?

    @Support-Brian wrote:

    Can you open up your plugins folder and see if there are any plugins named *.wst.*? There is a chance that some of your other plugins installed a version of WTP that is conflicting with MyEclipse.

    The only place where I see anything called wst is inside MyEclipse/eclipse/plugin. All my plugins are installed under eclipse/plugins and there I can not find any mention of wst.

    #243421 Reply

    Hani Naguib
    Member

    Just another note.
    I created a new workspace and then imported one of my projects (that contains the spring files).
    It also failed to open them with the same error mentioned above. This project is used to store
    common files, below is what its .project file looks like

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <projectDescription>
    <name>etc</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
    </buildSpec>
    <natures>
    </natures>
    </projectDescription>

    The spring file I tried to open looks like this:

    <!DOCTYPE beans PUBLIC “-//SPRING//DTD BEAN//EN” “http://www.springframework.org/dtd/spring-beans.dtd”&gt;
    <beans>

    <bean id=”placeholderConfig” class=”org.springframework.beans.factory.config.PropertyPlaceholderConfigurer”>
    <property name=”locations”>
    <list>
    <value>datasource.properties</value>
    </list>
    </property>
    </bean>

    <bean id=”PublisherProperties” class=”com.qualcomm.uione.publisher.domain.PublisherProperties”>
    <property name=”publisherRootServerPort” value=”8900″/>
    </bean>

    </beans>

    #243423 Reply

    Brian Fernandes
    Moderator

    Hani,

    Thank you for all that detail – I was able to replicate the issue, it’s because your base project is not a java project. I should have realized earlier from the stack traces, sorry for the delay.

    This is a bug, and we’ll make sure it’s fixed in our next release. In the meanwhile, is it possible for you to convert your “common files” holding project to a java project?

    Sorry for the inconvenience caused, and thank you for your patience,
    Best,
    Brian.

    #243427 Reply

    Hani Naguib
    Member

    @Support-Brian wrote:

    Hani,

    Thank you for all that detail – I was able to replicate the issue, it’s because your base project is not a java project. I should have realized earlier from the stack traces, sorry for the delay.

    This is a bug, and we’ll make sure it’s fixed in our next release. In the meanwhile, is it possible for you to convert your “common files” holding project to a java project?

    Sorry for the inconvenience caused, and thank you for your patience,
    Best,
    Brian.

    Good news. Thanks for all the help, I will do that.

    Hani

    #251922 Reply

    mike.ring
    Member

    Has this bug been fixed yet? I’m getting basically the same stack trace
    Info:
    – This was a fresh install of Eclipse/MyEclipse done about 2 weeks ago. Version 4.11 of MyEclipse
    – I have no other plugins installed
    – I have started eclipse with the -clean switch, and that didn’t fix the problem
    – I can create a new project in a fresh workspace, and it works just fine
    – My XML editor works fine, but the spring editor doesn’t
    – My procedure for creating projects is to create a Java project, add linked folders to point to already-created source and web files, then add web capabilities, then add spring capabilities. So my projects are definetly Java projects.

    Any suggestions?

    #251979 Reply

    Brian Fernandes
    Moderator

    Mike,

    Yes, this has one has been fixed a long time ago. You’re sure you see exactly the same stack trace?

    Also, the XML files you’re trying to open, are they actually present in your project or are they linked or present in linked folders?

    Best,
    Brian.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Opening spring xml files on 4.1 M2

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