facebook

editing external XML files

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #234977 Reply

    jebrick
    Member

    I’ve had a problem for several releases now of external XML files not being saved after editing. The editor and validator will work but the changes do not save. Is this a bug or hidden feature?

    thanks,

    #235009 Reply

    Riyad Kalla
    Member

    Please clarify what you mean by external XML files. How are you opening them? They exist outside of the project? Are they inside of any project? When you save them, do you get any exceptions in your log file? (workspace dir\.metadata\.log) and can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #235125 Reply

    jebrick
    Member

    @support-rkalla wrote:

    Please clarify what you mean by external XML files. How are you opening them? They exist outside of the project? Are they inside of any project? When you save them, do you get any exceptions in your log file? (workspace dir\.metadata\.log) and can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    Eclipse 3.1.
    MyEclipse 4.0m3
    Linux RedHat 9

    XML files outside the project.

    Opening with File->Open file

    Here is an error from the log when I’m editing the XML file

    java.lang.NullPointerException
    at org.eclipse.jface.text.reconciler.AbstractReconciler$Listener.documentChanged(AbstractReconciler.java:236)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument._fireDocumentChanged(BasicStructuredDocument.java:264)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:948)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:1694)
    at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:952)
    at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5787)
    at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6625)
    at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2592)
    at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5098)
    at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5124)
    at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4857)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1045)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1030)
    at org.eclipse.swt.widgets.Widget.sendIMKeyEvent(Widget.java:1107)
    at org.eclipse.swt.widgets.Control.gtk_commit(Control.java:1851)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1355)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:3442)
    at org.eclipse.swt.internal.gtk.OS._gtk_im_context_filter_keypress(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_im_context_filter_keypress(OS.java:4327)
    at org.eclipse.swt.widgets.Control.filterKey(Control.java:1428)
    at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:1957)
    at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:560)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1365)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:3442)
    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:4777)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1067)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1158)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2570)
    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)

    another error from earlier session that I got a lot while savign the XML file
    !MESSAGE Unable to access archive /sec/eclipse/plugins/org.eclipse.jdt.source_3.0.0/src/org.junit_3.8.1/junitsrc.zip
    !STACK 0
    java.util.zip.ZipException: No such file or directory
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.zip.ZipFile.<init>(ZipFile.java:72)
    at org.eclipse.debug.internal.core.sourcelookup.SourceLookupUtils.getZipFile(SourceLookupUtils.java:67)
    at org.eclipse.debug.core.sourcelookup.containers.ExternalArchiveSourceContainer.getArchive(ExternalArchiveSourceContainer.java:193)
    at org.eclipse.debug.core.sourcelookup.containers.ExternalArchiveSourceContainer.findSourceElements(ExternalArchiveSourceContainer.java:79)
    at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.findSourceElements(CompositeSourceContainer.java:78)
    at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.findSourceElements(CompositeSourceContainer.java:45)
    at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupParticipant.findSourceElements(AbstractSourceLookupParticipant.java:67)
    at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:126)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:461)
    at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:711)
    at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:138)
    at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools.java:658)
    at org.eclipse.jdt.internal.debug.ui.JavaDebugOptionsManager.getProblem(JavaDebugOptionsManager.java:592)
    at org.eclipse.jdt.internal.debug.ui.JavaDebugOptionsManager.getProblem(JavaDebugOptionsManager.java:564)
    at org.eclipse.jdt.internal.debug.ui.JavaDebugOptionsManager.breakpointHit(JavaDebugOptionsManager.java:526)
    at org.eclipse.jdt.internal.debug.core.JDIDebugPlugin$HitNotifier.run(JDIDebugPlugin.java:495)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at org.eclipse.jdt.internal.debug.core.JDIDebugPlugin$HitNotifier.notifyHit(JDIDebugPlugin.java:513)
    at org.eclipse.jdt.internal.debug.core.JDIDebugPlugin.fireBreakpointHit(JDIDebugPlugin.java:309)
    at org.eclipse.jdt.internal.debug.core.model.JDIThread.handleSuspendForBreakpoint(JDIThread.java:965)
    at org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint.suspend(JavaBreakpoint.java:322)
    at org.eclipse.jdt.internal.debug.core.breakpoints.JavaExceptionBreakpoint.handleBreakpointEvent(JavaExceptionBreakpoint.java:291)
    at org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint.handleEvent(JavaBreakpoint.java:258)
    at org.eclipse.jdt.internal.debug.core.EventDispatcher.dispatch(EventDispatcher.java:140)
    at org.eclipse.jdt.internal.debug.core.EventDispatcher.run(EventDispatcher.java:232)
    at java.lang.Thread.run(Thread.java:534)

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: editing external XML files

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