Exception in editor

50 views
Skip to first unread message

hdrews

unread,
Mar 1, 2012, 1:20:08 AM3/1/12
to Fornax-Platform
Hello,

I have a fresh installation of Eclipse Indigo SR2, added Xtext, Xpand
and MWE SDK all with version 1.0.1.
Sculptor is at version 2.1.0.3.

When I try to open the Sculptor DSL Editor I get the Excption listet
down.
Any hint how to fix it?

I have used Sculptor 2.1.0 with Indigo SR1 but I had to run an updated
which got Xtext, Xpand an MWE to a version higher than 1.0.1. This
made the DSL Editor also unusable.

Is there any plan to get Sculptor to use the recent version of the
modelling tools?



org.eclipse.xtext.parser.ParseException: java.lang.NoSuchFieldError:
token
at
org.fornax.cartridges.sculptor.dsl.parser.antlr.SculptordslParser.parse(SculptordslParser.java:
35)
at
org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:
57)
at org.eclipse.xtext.parser.AbstractParser.parse(AbstractParser.java:
46)
at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:
146)
at
org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(LazyLinkingResource.java:
63)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:
1511)
at
org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.loadResource(XtextDocumentProvider.java:
120)
at
org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.setDocumentContent(XtextDocumentProvider.java:
103)
at
org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocumentProvider.java:
229)
at
org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:
735)
at
org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createElementInfo(XtextDocumentProvider.java:
131)
at
org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:
400)
at
org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:
4213)
at
org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:
237)
at
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:
1451)
at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:
169)
at
org.eclipse.xtext.ui.editor.XtextEditor.doSetInput(XtextEditor.java:
149)
at org.eclipse.ui.texteditor.AbstractTextEditor
$19.run(AbstractTextEditor.java:3200)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:
464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:
372)
at org.eclipse.jface.window.ApplicationWindow
$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:
756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:
2649)
at
org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:
3218)
at
org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:
3245)
at org.eclipse.xtext.ui.editor.XtextEditor.init(XtextEditor.java:169)
at
org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:
828)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:
647)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:
465)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:
595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:
180)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:
270)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:
65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:
473)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:
1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:
1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:
63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:
225)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:
213)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:
808)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:
707)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:
666)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:
2942)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:
2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:
2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:
2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:
2789)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:
2773)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:
331)
at org.eclipse.ui.actions.OpenWithMenu
$2.handleEvent(OpenWithMenu.java:179)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
123)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
344)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldError:
token
at
org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.parse(AbstractInternalAntlrParser.java:
513)
at
org.fornax.cartridges.sculptor.dsl.parser.antlr.SculptordslParser.parse(SculptordslParser.java:
32)
... 82 more
Caused by: java.lang.NoSuchFieldError: token
at org.eclipse.xtext.parser.antlr.Lexer.nextToken(Lexer.java:48)
at
org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:
95)
at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:238)
at
org.eclipse.xtext.parser.antlr.XtextTokenStream.LT(XtextTokenStream.java:
162)
at
org.eclipse.xtext.parser.antlr.XtextTokenStream.LA(XtextTokenStream.java:
148)
at
org.fornax.cartridges.sculptor.dsl.parser.antlr.internal.InternalSculptordslParser.ruleDslModel(InternalSculptordslParser.java:
140)
at
org.fornax.cartridges.sculptor.dsl.parser.antlr.internal.InternalSculptordslParser.entryRuleDslModel(InternalSculptordslParser.java:
96)
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:597)
at
org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.parse(AbstractInternalAntlrParser.java:
502)
... 83 more

abdellah matout

unread,
Mar 1, 2012, 4:52:29 AM3/1/12
to fornax-...@googlegroups.com
Hello;

* I have got the same Exception, but when I use the Eclipse Helios, it work. try with Ecilpse Helios.

*  to use the recent version of the modelling tools chose " Show only the latest versions of available software." in instal new software.


Regards






--
-----------------------
MATOUT Abdellah

Engineering Student at the National Institute for Posts and Telecommunications (INPT) 
   E-mail:  abdella...@gmail.com
 

Patrik Nordwall

unread,
Mar 2, 2012, 2:05:24 AM3/2/12
to fornax-...@googlegroups.com
I can only say that it works when I have tried with the versions listed in the Sculptor installation page. It's very unfortunate if upgrading to Indigo SR2 breaks things. I'm not sure. Keep on sharing how your setup is to help each other to find a version mix that works.

There is work ongoing for xtext 2.1 migration. You can try it out and see if you can help in development testing to speed up things.

/Patrik

Heinz Drews

unread,
Mar 6, 2012, 12:15:28 AM3/6/12
to fornax-...@googlegroups.com
I have completed the installation test phase 1.

Starting point was Indigo SR1, then I installed Fornax/Sculptor,
everything working,
For my current project I require also JBoss Tools and JBoss SOA Tools,
after installation no problem.

Then I perform 'Check for updates', this offers then Eclipso Indigo
SR2 and the newest versions of MWE, Xpand and Xtext.
Just installing SR2 and deselected the modelling tools keeps
everything in Sculptor still working.

In the earlier update I have not recognized the new versions of the
modelling tools, their update ruins Sculptor.
I assume that the SR2 distribution already as MWE, Xpand and Xtext
bundled but this I will confirm.

Just in case I will use only a copy of the working installation
hopefully avoiding the reinstallation again.
More precise would be re-re-reinstallation :-)

@Patrik
I would like to try the work-in-progress version,are there some
instructions how to use available?

Patrik Nordwall

unread,
Mar 6, 2012, 1:45:50 AM3/6/12
to fornax-...@googlegroups.com
Thanks a lot for sharing this information. I'll add a note in the installation instruction.

To try the xtext 2.1 based plugins you need to checkout the code from the branch and then generate the dsl project from eclipse (mvn generation is probably not in place yet). Then export the plugins and install in Eclipse.

Once it is good enough I will publish a version to the update site.

/Patrik
Reply all
Reply to author
Forward
0 new messages