Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL(Class Not Found Exception, but required plugin was installed)
After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL [message #1753991] Mon, 13 February 2017 17:19 Go to next message
Alex Gor is currently offline Alex GorFriend
Messages: 103
Registered: November 2014
Location: Russia
Senior Member
Dear Colleagues,

I've observed one more issue after migrating from xtext 2.10 to xtext 2.11
The scenario is

- The application with IDE for my DSL started via configuration that based on product file
- Open project with file in my DSL
- Try to open editor for a file in DSL

Then observed the exeception : ClassNotFoundException
!ENTRY org.eclipse.e4.ui.workbench 4 0 2017-02-13 20:15:31.157
!MESSAGE Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from bundle '13'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: org/eclipse/xtext/service/AbstractGenericModule

The required class : AbstractGenericModule is located in plugin org.eclipse.xtext. This plugin was installed. The version of plugin is correct 2.11
The plugin is included in product configuration and in dependecies of other plugins.

Run Configuration contains correct version of org.eclipse.xtext plugin.

But in runtime required class not found.

Could you please help me resolve this issue?
Thank you in advance
Alex
Re: After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL [message #1753992 is a reply to message #1753991] Mon, 13 February 2017 17:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 10585
Registered: July 2009
Senior Member
I habe Never Seen anything like this.
Did you throw away existing launch configs and created new ones.
Did you start the product with clean (maybe some caches/eclipse confit stuff is outdated)
Did you start the product with a fresh workspace?

Can you Share a minimal reproducing example ?

[Updated on: Mon, 13 February 2017 17:25]

Report message to a moderator

Re: After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL [message #1753993 is a reply to message #1753992] Mon, 13 February 2017 17:29 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 10585
Registered: July 2009
Senior Member
And it would be interesting to see the root cause for the noclassdeferror
Re: After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL [message #1753995 is a reply to message #1753992] Mon, 13 February 2017 17:36 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 103
Registered: November 2014
Location: Russia
Senior Member
Ok. I try to follow you advises and I'll keep your informed.

To my regret I don't know hot extract minimal reproducing example.
May be I can sent grammar file and you will be able to reproduce, but I am not sure that is the short and correct way.
Some API of my application should be hidden due to business reasons.

P.S.
Seems to me German is you native language ( I habe Smile)
Re: After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL [message #1753997 is a reply to message #1753995] Mon, 13 February 2017 17:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 10585
Registered: July 2009
Senior Member
No I mean just a hello world dsl plus feature plus product plus launch config

One reason could e.g. Be the static log4j thing in abstractgeneericmodule fails
(I don't know how you provide log4j in your product)

Or you did not update to Java 8 everywhere

[Updated on: Mon, 13 February 2017 17:39]

Report message to a moderator

Re: After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL [message #1753999 is a reply to message #1753997] Mon, 13 February 2017 17:52 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 103
Registered: November 2014
Location: Russia
Senior Member
I've created again run configuration. Editor is opened. but I've received minor errors in log
!ENTRY org.eclipse.jface 2 0 2017-02-13 20:44:57.631
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2017-02-13 20:44:57.631
!MESSAGE A conflict occurred for ALT+CTRL+A:
Binding(ALT+CTRL+A,
ParameterizedCommand(Command(oracle.eclipse.tools.common.services.ui.dependency,Show Dependencies,
Show dependencies for the selected item.,
Category(oracle.eclipse.tools.common.services.ui.dependency.category,Dependencies,Dependency Related Commands,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@998021,
[Parameter(oracle.eclipse.tools.common.services.ui.dependency.editor,Editor ID,null,true)],,true),[org.eclipse.core.commands.Parameterization@2f81f769]),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(ALT+CTRL+A,
ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.ShowAnnotationCommand,Show Annotation...,
,
Category(org.eclipse.team.svn.ui.command.category,SVN,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1a0bbd,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Configuration of log4j framework

!ENTRY com.psl.atom.services 1 0 2017-02-13 20:45:00.424
!MESSAGE Start LOG4J service

!ENTRY com.psl.atom.services 1 0 2017-02-13 20:45:00.444
!MESSAGE Start LOG4J service configured
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://857.fwk26391574:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://857.fwk26391574:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

!ENTRY org.eclipse.core.net 4 0 2017-02-13 20:45:03.111
!MESSAGE WinHttp.GetProxyForUrl for pac failed with error 'The URL does not use a recognized protocol
' #12006.

!ENTRY org.eclipse.oomph.setup.ui 2 0 2017-02-13 20:45:22.456
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:352)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:346)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:243)
at org.eclipse.core.internal.jobs.Worker.run(Worker.javlra:55)
Seems to me I've include something redundant in configuration.
I use log4j in my application. It is run when one of low level plugin is started. But I'll double check log4j configuration
Re: After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL [message #1754000 is a reply to message #1753999] Mon, 13 February 2017 17:55 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 10585
Registered: July 2009
Senior Member
But the editor works now?
Re: After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL [message #1754014 is a reply to message #1754000] Mon, 13 February 2017 19:30 Go to previous message
Alex Gor is currently offline Alex GorFriend
Messages: 103
Registered: November 2014
Location: Russia
Senior Member
yes. it works
Previous Topic: complete{TypeName}_{FeatureName} called with parent i.s.o. node itself
Next Topic:Modify error message from IResourceValidator
Goto Forum:
  


Current Time: Mon May 29 07:54:12 GMT 2017

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

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