Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » WTP XML editor bug ?
WTP XML editor bug ? [message #92710] Sun, 17 April 2005 10:36 Go to next message
Eclipse UserFriend
1.create a standard application.xml file
2.open it with Xml Source Page Editor
3.close the editor
4.double click application.xml to open again
5.error occur...

try it.
Re: WTP XML editor bug ? [message #92755 is a reply to message #92710] Mon, 18 April 2005 03:42 Go to previous messageGo to next message
Eclipse UserFriend
On Sun, 17 Apr 2005 16:36:02 +0200, navy <navy@shekou.com> wrote:

> 1.create a standard application.xml file
> 2.open it with Xml Source Page Editor
> 3.close the editor
> 4.double click application.xml to open again
> 5.error occur...
>
> try it.

works fine here...
maybe you could tell us what the actual error is instead of having us
guess ? ,)

/max
Re: WTP XML editor bug ? [message #92816 is a reply to message #92755] Mon, 18 April 2005 04:48 Go to previous messageGo to next message
Eclipse UserFriend
come again: (complete description)
use wtp-eclipse-prereqs-sdk-1.0M3-win32.zip: eclipse-3.1M5a + wtp-1.0M3

1. new a simple project
2. new a file named "application.xml"
3.enter text content as follow:
<?xml version="1.0" encoding="UTF-8"?>

<application xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" version="1.4">
<description></description>
<display-name>newEar</display-name>
<icon>
<small-icon>sss</small-icon>
<large-icon>large</large-icon>
</icon>
<module>
<web>
<web-uri>myweb.war</web-uri>
<context-root>myweb</context-root>
</web>
</module>
<module>
<connector>myrar.rar</connector>
</module>
<module>
<ejb>myrar.rar</ejb>
</module>
</application>

end application.xml.

my xml editor opens file with "Xml Source Page Editor",
4. close the edior.
5. double click application.xml to open again,
6. a error dialog popups with info "Unable to create part:"
if not, repeate 4,5,6.

If delete extension (id=xmlValidator) in
org.eclipse.wst.xml.validation_1.0.0/plugin.xml,
run correctly, error not occur.


----- Original Message -----
From: "Max Rydahl Andersen" <max.andersen@jboss.com>
Newsgroups: eclipse.webtools
Sent: Monday, April 18, 2005 3:42 PM
Subject: Re: WTP XML editor bug ?


> On Sun, 17 Apr 2005 16:36:02 +0200, navy <navy@shekou.com> wrote:
>
>> 1.create a standard application.xml file
>> 2.open it with Xml Source Page Editor
>> 3.close the editor
>> 4.double click application.xml to open again
>> 5.error occur...
>>
>> try it.
>
> works fine here...
> maybe you could tell us what the actual error is instead of having us
> guess ? ,)
>
> /max
Re: WTP XML editor bug ? [message #92831 is a reply to message #92816] Mon, 18 April 2005 04:51 Go to previous messageGo to next message
Eclipse UserFriend
if xml file is so simple as
<a>sss</a>
no error occur

"navy" <navy@shekou.com> д
Re: WTP XML editor bug ? [message #92846 is a reply to message #92816] Mon, 18 April 2005 05:12 Go to previous messageGo to next message
Eclipse UserFriend
StackTrace:

org.eclipse.jface.text.Assert$AssertionFailedException: Assertion failed:
at org.eclipse.jface.text.Assert.isTrue(Assert.java:189)
at org.eclipse.jface.text.Assert.isTrue(Assert.java:174)
at
org.eclipse.jface.text.source.AnnotationModel.connect(Annota tionModel.java:336)
at
org.eclipse.jface.text.source.AnnotationModel.connect(Annota tionModel.java:357)
at
org.eclipse.jface.text.source.SourceViewer.setDocument(Sourc eViewer.java:469)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.se tDocument(ProjectionViewer.java:369)
at
org.eclipse.wst.sse.ui.StructuredTextViewer.setDocument(Stru cturedTextViewer.java:1071)
at
org.eclipse.jface.text.source.SourceViewer.setDocument(Sourc eViewer.java:435)
at
org.eclipse.wst.sse.ui.StructuredTextViewer.setModel(Structu redTextViewer.java:1127)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.initializeSource Viewer(StructuredTextEditor.java:1999)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.createPartContro l(StructuredTextEditor.java:925)
at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:148)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1015)
at org.eclipse.core.runtime.Platform.run(Platform.java:757)
at
org.eclipse.ui.internal.PartPane.doCreateChildControl(PartPa ne.java:144)
at org.eclipse.ui.internal.PartPane.createChildControl(PartPane .java:349)
at org.eclipse.ui.internal.PartPane.createControl(PartPane.java :218)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1043)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1009)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:12 00)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:384)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.openEditor(EditorAr eaHelper.java:281)
at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.ja va:794)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:780)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:903)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:654)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:640)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2312)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2244)
at org.eclipse.ui.internal.WorkbenchPage.access$8(WorkbenchPage .java:2236)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2222)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2217)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:299)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:99)
at
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.java:100)
at
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGroup.java:120)
at
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGroup.java:318)
at
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigator.java:658)
at
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.java:410)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:659)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1015)
at org.eclipse.core.runtime.Platform.run(Platform.java:757)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:657)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:876)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:975)
at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:243)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:238)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:277)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2908)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2541)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1612)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:293)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:102)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:333)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
at org.eclipse.core.launcher.Main.run(Main.java:887)
at org.eclipse.core.launcher.Main.main(Main.java:871)
Re: WTP XML editor bug ? [message #93111 is a reply to message #92846] Tue, 19 April 2005 12:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: robwms63.yahoo.com

Wow, there's a useful use of assertions!

navy wrote:
> StackTrace:
>
> org.eclipse.jface.text.Assert$AssertionFailedException: Assertion
> failed: at org.eclipse.jface.text.Assert.isTrue(Assert.java:189)
> at org.eclipse.jface.text.Assert.isTrue(Assert.java:174)
> at
> org.eclipse.jface.text.source.AnnotationModel.connect(Annota tionModel.java:336)
>
> at
> org.eclipse.jface.text.source.AnnotationModel.connect(Annota tionModel.java:357)
>
> at
> org.eclipse.jface.text.source.SourceViewer.setDocument(Sourc eViewer.java:469)
>
> at
> org.eclipse.jface.text.source.projection.ProjectionViewer.se tDocument(ProjectionViewer.java:369)
>
> at
> org.eclipse.wst.sse.ui.StructuredTextViewer.setDocument(Stru cturedTextViewer.java:1071)
>
> at
> org.eclipse.jface.text.source.SourceViewer.setDocument(Sourc eViewer.java:435)
>
> at
> org.eclipse.wst.sse.ui.StructuredTextViewer.setModel(Structu redTextViewer.java:1127)
>
> at
> org.eclipse.wst.sse.ui.StructuredTextEditor.initializeSource Viewer(StructuredTextEditor.java:1999)
>
> at
> org.eclipse.wst.sse.ui.StructuredTextEditor.createPartContro l(StructuredTextEditor.java:925)
>
> at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:148)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1015)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:757)
> at
> org.eclipse.ui.internal.PartPane.doCreateChildControl(PartPa ne.java:144)
> at
> org.eclipse.ui.internal.PartPane.createChildControl(PartPane .java:349)
> at org.eclipse.ui.internal.PartPane.createControl(PartPane.java :218)
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1043)
>
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1009)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:12 00)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:384)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109 )
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.openEditor(EditorAr eaHelper.java:281)
>
> at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.ja va:794)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:780)
>
> at
> org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:903)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:654)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:640)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2312)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2244)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$8(WorkbenchPage .java:2236)
> at
> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2222)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2217)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:299)
> at
> org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:99)
> at
> org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.java:100)
>
> at
> org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGroup.java:120)
>
> at
> org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGroup.java:318)
>
> at
> org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigator.java:658)
>
> at
> org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.java:410)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:659)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1015)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:757)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:657)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:876)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:975)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:243)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:238)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:277)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2908)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2541)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1612)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:293)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:102)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:333)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:150)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
> at org.eclipse.core.launcher.Main.run(Main.java:887)
> at org.eclipse.core.launcher.Main.main(Main.java:871)
>
>
Re: WTP XML editor bug ? [message #93141 is a reply to message #93111] Tue, 19 April 2005 13:24 Go to previous messageGo to next message
Eclipse UserFriend
On Tue, 19 Apr 2005 09:15:42 -0700, Rob Williams <robwms63@yahoo.com> wrote:

> Wow, there's a useful use of assertions!
>
> navy wrote:
>> StackTrace:
>>
>> org.eclipse.jface.text.Assert$AssertionFailedException: Assertion
>> failed: at org.eclipse.jface.text.Assert.isTrue(Assert.java:189)

Yeah ... one of those that's expected so seldom there's no need to
state reason for it :)
Its actually caused, I think, from threading/synchronization issues. I've
seen this occasionally, but not on a regular basis. If you have
such a reproducable case, a bugzilla would be appreciated with the
stack trace, exact stepts to reproduce, etc. We'll try and see
if its still a problem in our current stream (or ... you could test
for us if you can :)

Thanks,
Re: WTP XML editor bug ? [message #93157 is a reply to message #93141] Tue, 19 April 2005 13:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amywu.us.DELETEME.ibm.com

The assertion error looks exactly like the one mentioned in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=87017

which should have been fixed by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=87333

You might want to try downloading a later build, or wait till M4 and see
if this bug still occurs.

-amy
Re: WTP XML editor bug ? [message #93262 is a reply to message #92816] Tue, 19 April 2005 21:24 Go to previous messageGo to next message
Eclipse UserFriend
The probability is almost 100% here...
Have you tried it by exactly following my steps?

"navy" <navy@shekou.com> д
Re: WTP XML editor bug ? [message #93395 is a reply to message #93262] Wed, 20 April 2005 12:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amywu.us.DELETEME.ibm.com

Okay, I tried your scenario on WTP-I20040420 and I could not get the
assert error. And just to be sure the problem existed before, I tried the
scenario on WTP 1.0 M3 and after opening and close the file a few times, I
was able to get the error.

So it looks like your problem has been fixed :)

-amy
Re: WTP XML editor bug ? [message #93423 is a reply to message #93157] Wed, 20 April 2005 13:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: laurentd75_no.spam.yahoo.fr

Hi Amy,

> The assertion error looks exactly like the one mentioned in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=87017

> which should have been fixed by
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=87333

> You might want to try downloading a later build, or wait till M4 and see
> if this bug still occurs.


The bug reported in this thread effectively resembles the one you mention
and that is being addressed by M4.

I also suspect this bug is the same one I experienced with Web-app
descriptor editing, and which I filed as #88957.
(see https://bugs.eclipse.org/bugs/show_bug.cgi?id=88957)

As soon as M4 is out (couple of days !!) I will try if this addresses my
issue and close the bug I reported with cross-reference to #87017 and
#87333

In any case, thanks for the info

Laurent
Re: WTP XML editor bug ? [message #94061 is a reply to message #93395] Thu, 21 April 2005 21:14 Go to previous message
Eclipse UserFriend
Thanks!

"amy" <amywu@us.DELETEME.ibm.com>
??????:4f83d7833299d862ca3878909df3476a$1@www.eclipse.org...
> Okay, I tried your scenario on WTP-I20040420 and I could not get the
> assert error. And just to be sure the problem existed before, I tried the
> scenario on WTP 1.0 M3 and after opening and close the file a few times, I
> was able to get the error.
>
> So it looks like your problem has been fixed :)
>
> -amy
>
Previous Topic:Does anyone know .......
Next Topic:Backport of WTP for Eclipse 3.0.2
Goto Forum:
  


Current Time: Sat Jun 07 09:14:32 EDT 2025

Powered by FUDForum. Page generated in 0.04771 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top