Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » adapter factory problem while porting to wtp1.0m5
adapter factory problem while porting to wtp1.0m5 [message #120801] Thu, 14 July 2005 10:42 Go to next message
Eclipse UserFriend
hello guys,

i am currently porting the orangevolt xslt plugin to wtp1.0m5.

everything works fine now except that i get an error when my own
structurededitor based xml editor is opening.

then a error messagebox labeled with "there was a problem adding adapter
factories." occures. after pressing ok everything works fine.

my editor overlays the contentoutlineconfiguration using

<extension point = "org.eclipse.ui.editors">
<editor
id = "com.orangevolt.xslt.editor.XMLEditor"
name = "Orangevolt XML Editor"
icon = "icons/xslt-16.gif"
extensions = "xml,xsl,xslt"
default="true"
class = "com.orangevolt.xslt.editor.XMLEditor">
</editor>
</extension>

in the plugin xml.


i debugged deeper into wtp and the problem seems to me a result of a
backward compatibility issue ? :

inside org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil:
/*
* ContentType might have already been checked above, this
* check is here for backwards compatability for those that
* don't specify a content type
*/
if (provider.isFor(structuredModel.getModelHandler())) {
Platform.run(new SafeRunnable(SSEUIMessages.EditorModelUtil_1) {
//$NON-NLS-1$
public void run() {
provider.addAdapterFactories(structuredModel);
}
});
}

afterall here is the stacktrace i got:

java.lang.NoSuchFieldError: LoadingReferencedGrammars
at
org.eclipse.wst.xml.ui.internal.DOMObserver$TimerJob.<init>(DOMObserver.java:133)
at org.eclipse.wst.xml.ui.internal.DOMObserver.<init>(DOMObserver.java:145)
at
org.eclipse.wst.xml.ui.internal.registry.AdapterFactoryProvi derForXML.addContentBasedFactories(AdapterFactoryProviderFor XML.java:77)
at
org.eclipse.wst.xml.ui.internal.registry.AdapterFactoryProvi derForXML.addAdapterFactories(AdapterFactoryProviderForXML.j ava:45)
at
org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil$1.run (EditorModelUtil.java:66)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil.addFa ctoriesTo(EditorModelUtil.java:64)
at
org.eclipse.wst.sse.ui.internal.StructuredTextEditor.doSetIn put(StructuredTextEditor.java:1190)
at
org.eclipse.ui.texteditor.AbstractTextEditor$16.run(Abstract TextEditor.java:2360)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
at
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:624)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:621)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2134)
at
org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:2378)
at
org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:2405)
at
org.eclipse.wst.sse.ui.internal.StructuredTextEditor.init(St ructuredTextEditor.java:1759)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:773)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:572)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:258)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1216)
at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.ja va:944)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.EditorManager.restoreState(EditorMan ager.java:939)
at
org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2535)
at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1819)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.j ava:2566)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1503)
at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1 491)
at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374 )
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1318)
at
org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer.java:183)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:700)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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: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)

the strange thing is that when i disable my xml editor plugin everything
works fine...

can anybody help me out ?

many regards,

lars
Re: adapter factory problem while porting to wtp1.0m5 [message #120813 is a reply to message #120801] Thu, 14 July 2005 12:06 Go to previous messageGo to next message
Eclipse UserFriend
just as a sidenode:

using latest i-build (wtp-sdk-I20050711) it works.

lars gersmann wrote:
> hello guys,
>
> i am currently porting the orangevolt xslt plugin to wtp1.0m5.
>
> everything works fine now except that i get an error when my own
> structurededitor based xml editor is opening.
>
> then a error messagebox labeled with "there was a problem adding adapter
> factories." occures. after pressing ok everything works fine.
>
> my editor overlays the contentoutlineconfiguration using
>
> <extension point = "org.eclipse.ui.editors">
> <editor
> id = "com.orangevolt.xslt.editor.XMLEditor"
> name = "Orangevolt XML Editor"
> icon = "icons/xslt-16.gif"
> extensions = "xml,xsl,xslt"
> default="true"
> class = "com.orangevolt.xslt.editor.XMLEditor">
> </editor>
> </extension>
>
> in the plugin xml.
>
>
> i debugged deeper into wtp and the problem seems to me a result of a
> backward compatibility issue ? :
>
> inside org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil:
> /*
> * ContentType might have already been checked above, this
> * check is here for backwards compatability for those that
> * don't specify a content type
> */
> if (provider.isFor(structuredModel.getModelHandler())) {
> Platform.run(new
> SafeRunnable(SSEUIMessages.EditorModelUtil_1) { //$NON-NLS-1$
> public void run() {
>
> provider.addAdapterFactories(structuredModel);
> }
> });
> }
>
> afterall here is the stacktrace i got:
>
> java.lang.NoSuchFieldError: LoadingReferencedGrammars
> at
> org.eclipse.wst.xml.ui.internal.DOMObserver$TimerJob.<init>(DOMObserver.java:133)
>
> at
> org.eclipse.wst.xml.ui.internal.DOMObserver.<init>(DOMObserver.java:145)
> at
> org.eclipse.wst.xml.ui.internal.registry.AdapterFactoryProvi derForXML.addContentBasedFactories(AdapterFactoryProviderFor XML.java:77)
>
> at
> org.eclipse.wst.xml.ui.internal.registry.AdapterFactoryProvi derForXML.addAdapterFactories(AdapterFactoryProviderForXML.j ava:45)
>
> at
> org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil$1.run (EditorModelUtil.java:66)
>
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
> at
> org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil.addFa ctoriesTo(EditorModelUtil.java:64)
>
> at
> org.eclipse.wst.sse.ui.internal.StructuredTextEditor.doSetIn put(StructuredTextEditor.java:1190)
>
> at
> org.eclipse.ui.texteditor.AbstractTextEditor$16.run(Abstract TextEditor.java:2360)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
> at
> org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:624)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:621)
> at
> org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2134)
> at
> org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:2378)
>
> at
> org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:2405)
>
> at
> org.eclipse.wst.sse.ui.internal.StructuredTextEditor.init(St ructuredTextEditor.java:1759)
>
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:773)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:572)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:258)
>
> at
> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1216)
>
> at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.ja va:944)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
> at
> org.eclipse.ui.internal.EditorManager.restoreState(EditorMan ager.java:939)
> at
> org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2535)
> at
> org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1819)
>
> at
> org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.j ava:2566)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1503)
> at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1 491)
> at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374 )
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1318)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer.java:183)
>
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:700)
>
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>
> 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: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)
>
> the strange thing is that when i disable my xml editor plugin everything
> works fine...
>
> can anybody help me out ?
>
> many regards,
>
> lars
Re: adapter factory problem while porting to wtp1.0m5 [message #120818 is a reply to message #120801] Thu, 14 July 2005 12:14 Go to previous messageGo to next message
Eclipse UserFriend
oooops - was a "halloo till you're out of the wood" :-(

in current i-build (wtp-sdk-I20050711) the bug is always alive - but the
behaviour changed :

when i use my extended xml editor everything works fine until i edit an
xml file with applied schema. in this case everytime the autocompletion
was activated (ctrl-space) the error dialog comes up.

any suggestions ?

many regards,

lars


lars gersmann wrote:
> hello guys,
>
> i am currently porting the orangevolt xslt plugin to wtp1.0m5.
>
> everything works fine now except that i get an error when my own
> structurededitor based xml editor is opening.
>
> then a error messagebox labeled with "there was a problem adding adapter
> factories." occures. after pressing ok everything works fine.
>
> my editor overlays the contentoutlineconfiguration using
>
> <extension point = "org.eclipse.ui.editors">
> <editor
> id = "com.orangevolt.xslt.editor.XMLEditor"
> name = "Orangevolt XML Editor"
> icon = "icons/xslt-16.gif"
> extensions = "xml,xsl,xslt"
> default="true"
> class = "com.orangevolt.xslt.editor.XMLEditor">
> </editor>
> </extension>
>
> in the plugin xml.
>
>
> i debugged deeper into wtp and the problem seems to me a result of a
> backward compatibility issue ? :
>
> inside org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil:
> /*
> * ContentType might have already been checked above, this
> * check is here for backwards compatability for those that
> * don't specify a content type
> */
> if (provider.isFor(structuredModel.getModelHandler())) {
> Platform.run(new
> SafeRunnable(SSEUIMessages.EditorModelUtil_1) { //$NON-NLS-1$
> public void run() {
>
> provider.addAdapterFactories(structuredModel);
> }
> });
> }
>
> afterall here is the stacktrace i got:
>
> java.lang.NoSuchFieldError: LoadingReferencedGrammars
> at
> org.eclipse.wst.xml.ui.internal.DOMObserver$TimerJob.<init>(DOMObserver.java:133)
>
> at
> org.eclipse.wst.xml.ui.internal.DOMObserver.<init>(DOMObserver.java:145)
> at
> org.eclipse.wst.xml.ui.internal.registry.AdapterFactoryProvi derForXML.addContentBasedFactories(AdapterFactoryProviderFor XML.java:77)
>
> at
> org.eclipse.wst.xml.ui.internal.registry.AdapterFactoryProvi derForXML.addAdapterFactories(AdapterFactoryProviderForXML.j ava:45)
>
> at
> org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil$1.run (EditorModelUtil.java:66)
>
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
> at
> org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil.addFa ctoriesTo(EditorModelUtil.java:64)
>
> at
> org.eclipse.wst.sse.ui.internal.StructuredTextEditor.doSetIn put(StructuredTextEditor.java:1190)
>
> at
> org.eclipse.ui.texteditor.AbstractTextEditor$16.run(Abstract TextEditor.java:2360)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
> at
> org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:624)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:621)
> at
> org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2134)
> at
> org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:2378)
>
> at
> org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:2405)
>
> at
> org.eclipse.wst.sse.ui.internal.StructuredTextEditor.init(St ructuredTextEditor.java:1759)
>
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:773)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:572)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:258)
>
> at
> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1216)
>
> at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.ja va:944)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
> at
> org.eclipse.ui.internal.EditorManager.restoreState(EditorMan ager.java:939)
> at
> org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2535)
> at
> org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1819)
>
> at
> org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.j ava:2566)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1503)
> at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1 491)
> at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374 )
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1318)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer.java:183)
>
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:700)
>
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>
> 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: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)
>
> the strange thing is that when i disable my xml editor plugin everything
> works fine...
>
> can anybody help me out ?
>
> many regards,
>
> lars
Re: adapter factory problem while porting to wtp1.0m5 [message #120840 is a reply to message #120818] Thu, 14 July 2005 12:24 Go to previous message
Eclipse UserFriend
ooops again - my fault:

forget my last mail - the error is fixed in wtp-sdk-I20050711.

the error described by myself was a result of my error prone self
written uri resolver.

sorry,

lars

lars gersmann wrote:
> oooops - was a "halloo till you're out of the wood" :-(
>
> in current i-build (wtp-sdk-I20050711) the bug is always alive - but the
> behaviour changed :
>
> when i use my extended xml editor everything works fine until i edit an
> xml file with applied schema. in this case everytime the autocompletion
> was activated (ctrl-space) the error dialog comes up.
>
> any suggestions ?
>
> many regards,
>
> lars
>
>
> lars gersmann wrote:
>
>> hello guys,
>>
>> i am currently porting the orangevolt xslt plugin to wtp1.0m5.
>>
>> everything works fine now except that i get an error when my own
>> structurededitor based xml editor is opening.
>>
>> then a error messagebox labeled with "there was a problem adding
>> adapter factories." occures. after pressing ok everything works fine.
>>
>> my editor overlays the contentoutlineconfiguration using
>>
>> <extension point = "org.eclipse.ui.editors">
>> <editor
>> id = "com.orangevolt.xslt.editor.XMLEditor"
>> name = "Orangevolt XML Editor"
>> icon = "icons/xslt-16.gif"
>> extensions = "xml,xsl,xslt"
>> default="true"
>> class = "com.orangevolt.xslt.editor.XMLEditor">
>> </editor>
>> </extension>
>>
>> in the plugin xml.
>>
>>
>> i debugged deeper into wtp and the problem seems to me a result of a
>> backward compatibility issue ? :
>>
>> inside org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil:
>> /*
>> * ContentType might have already been checked above,
>> this
>> * check is here for backwards compatability for those
>> that
>> * don't specify a content type
>> */
>> if (provider.isFor(structuredModel.getModelHandler())) {
>> Platform.run(new
>> SafeRunnable(SSEUIMessages.EditorModelUtil_1) { //$NON-NLS-1$
>> public void run() {
>>
>> provider.addAdapterFactories(structuredModel);
>> }
>> });
>> }
>>
>> afterall here is the stacktrace i got:
>>
>> java.lang.NoSuchFieldError: LoadingReferencedGrammars
>> at
>> org.eclipse.wst.xml.ui.internal.DOMObserver$TimerJob.<init>(DOMObserver.java:133)
>>
>> at
>> org.eclipse.wst.xml.ui.internal.DOMObserver.<init>(DOMObserver.java:145)
>> at
>> org.eclipse.wst.xml.ui.internal.registry.AdapterFactoryProvi derForXML.addContentBasedFactories(AdapterFactoryProviderFor XML.java:77)
>>
>> at
>> org.eclipse.wst.xml.ui.internal.registry.AdapterFactoryProvi derForXML.addAdapterFactories(AdapterFactoryProviderForXML.j ava:45)
>>
>> at
>> org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil$1.run (EditorModelUtil.java:66)
>>
>> at
>> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
>>
>> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
>> at
>> org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil.addFa ctoriesTo(EditorModelUtil.java:64)
>>
>> at
>> org.eclipse.wst.sse.ui.internal.StructuredTextEditor.doSetIn put(StructuredTextEditor.java:1190)
>>
>> at
>> org.eclipse.ui.texteditor.AbstractTextEditor$16.run(Abstract TextEditor.java:2360)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
>> at
>> org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:624)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
>> at
>> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:621)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2134)
>> at
>> org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:2378)
>>
>> at
>> org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:2405)
>>
>> at
>> org.eclipse.wst.sse.ui.internal.StructuredTextEditor.init(St ructuredTextEditor.java:1759)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:773)
>> at
>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:572)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
>>
>> at
>> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:258)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1216)
>>
>> at
>> org.eclipse.ui.internal.EditorManager$5.run(EditorManager.ja va:944)
>> at
>> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
>>
>> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
>> at
>> org.eclipse.ui.internal.EditorManager.restoreState(EditorMan ager.java:939)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2535)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1819)
>>
>> at
>> org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.j ava:2566)
>> at
>> org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1503)
>> at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1 491)
>> at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374 )
>> at
>> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
>>
>> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
>> at
>> org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1318)
>> at
>> org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer.java:183)
>>
>> at
>> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:700)
>>
>> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
>> at
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>>
>> 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: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)
>>
>> the strange thing is that when i disable my xml editor plugin
>> everything works fine...
>>
>> can anybody help me out ?
>>
>> many regards,
>>
>> lars
Previous Topic:hooking up xml outline view to custom xml contentType
Next Topic:JSP Editor and custom defined tags
Goto Forum:
  


Current Time: Wed May 07 08:53:58 EDT 2025

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

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

Back to the top