Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » OCl and Xtext(implement the OCLinEcore)
OCl and Xtext [message #882908] Thu, 07 June 2012 13:00 Go to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
hi,


i have readed the help document of eclipse concerning ocl and xtext .
now , i want to apply the OCLinEcore tutorial.
i have installed the ocl plugin and when i go to my Ecore model on src-gen and when i click on it and try to open it with OclInEcore editor i have this error :

Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml.

can somebody knows why i ge this error?
Re: OCl and Xtext [message #882930 is a reply to message #882908] Thu, 07 June 2012 13:36 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6874
Registered: July 2009
Senior Member
Hi

If you are using a Helios or Indigo release or service release it should
be ok.

If you are using a Juno pre-release make sure that you are using OCL and
Xtext of the same vintage.

Regards

Ed Willink


On 07/06/2012 14:00, frank fotso wrote:
> hi,
>
>
> i have readed the help document of eclipse concerning ocl and xtext .
> now , i want to apply the OCLinEcore tutorial.
> i have installed the ocl plugin and when i go to my Ecore model on
> src-gen and when i click on it and try to open it with OclInEcore
> editor i have this error :
>
> Could not open the editor: The editor class could not be instantiated.
> This usually indicates a missing no-arg constructor or that the
> editor's class name was mistyped in plugin.xml.
>
> can somebody knows why i ge this error?
Re: OCl and Xtext [message #882937 is a reply to message #882930] Thu, 07 June 2012 13:54 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
i use indigo release ,
but i still have the same error whatever i try, did you know how to fix it?
Re: OCl and Xtext [message #882960 is a reply to message #882937] Thu, 07 June 2012 14:29 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6874
Registered: July 2009
Senior Member
Hi

You'll have to share some OCL and Xtext plugin ids with us.

Xtext is quite lenient about running a variety of versions on different
platforms.

OCL was very strict, but is a bit more generous in Juno.

I'm fairly certain you have an unwise plugin combination.

Regards

Ed Wilink

On 07/06/2012 14:54, frank fotso wrote:
> i use indigo release , but i still have the same error whatever i
> try, did you know how to fix it?
Re: OCl and Xtext [message #883269 is a reply to message #882960] Fri, 08 June 2012 07:20 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
Hi ,

i'm using version 3.1.2.v2012020206-0606 for OCL
and version 2.2.1.v201112130541 for xtext
can you tell me if the version are working together and if it is not the case which version of ocl plugin working with xtext i was supposed to install?
Re: OCl and Xtext [message #883290 is a reply to message #883269] Fri, 08 June 2012 08:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6874
Registered: July 2009
Senior Member
Hi

OCL 3.1.2 is an Indigo maintenance release.

Xtext 2.1.* is the Indigo release.

Xtext 2.2 and 2.3 will run on Indigo, but they are not Indigo releases.
It looks as if Xtext has a binary compatibility problem.

For Juno there is OCL 4.0 and Xtext 2.3, both of which will run on Indigo.

Regards

Ed Willink


On 08/06/2012 08:20, frank fotso wrote:
> Hi ,
>
> i'm using version 3.1.2.v2012020206-0606 for OCL
> and version 2.2.1.v201112130541 for xtext
> can you tell me if the version are working together and if it is not
> the case which version of ocl plugin working with xtext i was
> supposed to install?
Re: OCl and Xtext [message #883296 is a reply to message #883290] Fri, 08 June 2012 08:23 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6874
Registered: July 2009
Senior Member
HI

Sorry; I'm forgetting the excitement already.

OCL provided a 3.1.2a build specifically to fix this problem. See
http://www.eclipse.org/modeling/mdt/downloads/?project=ocl. Since the
problem does not affect Indigo users, it was not appropriate to rerun
the final Indigo SR2 build.

Ultimately the problem is that Google moved a package from
google.collect to google.guava and the consequent schizophrenia cures
have been taking time to ripple down the dependency chains. Xtext 2.2
allow switched and so is not strictly Indigo compatible.

Regards

Ed Willink


On 08/06/2012 09:09, Ed Willink wrote:
> Hi
>
> OCL 3.1.2 is an Indigo maintenance release.
>
> Xtext 2.1.* is the Indigo release.
>
> Xtext 2.2 and 2.3 will run on Indigo, but they are not Indigo
> releases. It looks as if Xtext has a binary compatibility problem.
>
> For Juno there is OCL 4.0 and Xtext 2.3, both of which will run on
> Indigo.
>
> Regards
>
> Ed Willink
>
>
> On 08/06/2012 08:20, frank fotso wrote:
>> Hi ,
>>
>> i'm using version 3.1.2.v2012020206-0606 for OCL
>> and version 2.2.1.v201112130541 for xtext
>> can you tell me if the version are working together and if it is not
>> the case which version of ocl plugin working with xtext i was
>> supposed to install?
>
Re: OCl and Xtext [message #883322 is a reply to message #882960] Fri, 08 June 2012 09:38 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
thks ,
then if i well understood the best way to fix and prevent problems is to use juno?

now i have downloaded juno and installed it and all the neccesary plugin , now when i run my .mwe2 file as a wrkflow , i have the following error:
 It is highly recommended to use ANTLR's parser generator (get it from 'http://xtext.itemis.com/'). 
As an alternative to ANTLR you could also use the alternative implementation shipped with Xtext.
To do so use the generator fragment 'org.eclipse.xtext.generator.parser.packrat.PackratParserFragment' in your mwe2 file instead.(Element: -UNKNOWN-; Reported by: -UNKNOWN-)
java.lang.RuntimeException: Problems running workflow org.xtext.example.GenerateProject2: 
[ERROR]:  
Re: OCl and Xtext [message #883326 is a reply to message #883322] Fri, 08 June 2012 09:42 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6874
Registered: July 2009
Senior Member
Hio

No. My first message said use Juno.

My second message said OCL 3.1.2a was there for esxactly your problem.

Your specific error is a failure to follow the console download
instructions you need precisely "y" then "<Enter>".

Regards

Ed Willink

On 08/06/2012 10:38, frank fotso wrote:
> thks ,
> then if i well understood the best way to fix and prevent problems is
> to use juno?
>
> now i have downloaded juno and installed it and all the neccesary
> plugin , now when i run my .mwe2 file as a wrkflow , i have the
> following error:
> It is highly recommended to use ANTLR's parser generator (get it from
> 'http://xtext.itemis.com/'). As an alternative to ANTLR you could also
> use the alternative implementation shipped with Xtext.
> To do so use the generator fragment
> 'org.eclipse.xtext.generator.parser.packrat.PackratParserFragment' in
> your mwe2 file instead.(Element: -UNKNOWN-; Reported by: -UNKNOWN-)
> java.lang.RuntimeException: Problems running workflow
> org.xtext.example.GenerateProject2: [ERROR]:
Re: OCl and Xtext [message #883372 is a reply to message #883326] Fri, 08 June 2012 11:49 Go to previous message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
i did as you said , but i still have the same sentence repeating itself :
 *ATTENTION*
It is recommended to use the ANTLR 3 parser generator (BSD licence - http://www.antlr.org/license.html).
Do you agree to download it (size 1MB) from 'http://download.itemis.com/antlr-generator-3.2.0.jar'? (type 'y' or 'n' and hit enter)"y"

*ATTENTION*
It is recommended to use the ANTLR 3 parser generator (BSD licence - http://www.antlr.org/license.html).
Do you agree to download it (size 1MB) from 'http://download.itemis.com/antlr-generator-3.2.0.jar'? (type 'y' or 'n' and hit enter)19546 [main] INFO  erator.parser.antlr.AntlrToolFacade  - downloading file from 'http://download.itemis.com/antlr-generator-3.2.0.jar' ...
40671 [main] ERROR erator.parser.antlr.AntlrToolFacade  - Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(Unknown Source)
	at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
	at java.net.PlainSocketImpl.connect(Unknown Source)
	at java.net.SocksSocketImpl.connect(Unknown Source)
	at java.net.Socket.connect(Unknown Source)
	at java.net.Socket.connect(Unknown Source)
	at sun.net.NetworkClient.doConnect(Unknown Source)
	at sun.net.www.http.HttpClient.openServer(Unknown Source)
	at sun.net.www.http.HttpClient.openServer(Unknown Source)
	at sun.net.www.http.HttpClient.<init>(Unknown Source)
	at sun.net.www.http.HttpClient.New(Unknown Source)
	at sun.net.www.http.HttpClient.New(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at java.net.URL.openStream(Unknown Source)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.download(AntlrToolFacade.java:92)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.getToolClass(AntlrToolFacade.java:51)
	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.isWorkable(AntlrToolFacade.java:141)
	at org.eclipse.xtext.generator.parser.antlr.AbstractAntlrGeneratorFragment.checkConfiguration(AbstractAntlrGeneratorFragment.java:43)
	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment.checkConfiguration(XtextAntlrGeneratorFragment.java:54)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.checkConfiguration(CompositeGeneratorFragment.java:252)
	at org.eclipse.xtext.generator.LanguageConfig.checkConfiguration(LanguageConfig.java:118)
	at org.eclipse.xtext.generator.Generator.checkConfigurationInternal(Generator.java:105)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2.checkConfiguration(AbstractWorkflowComponent2.java:21)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.preInvoke(Mwe2Bridge.java:65)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.preInvoke(AbstractWorkflowComponent.java:197)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.preInvoke(AbstractCompositeWorkflowComponent.java:29)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:18)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)

*ATTENTION*
It is recommended to use the ANTLR 3 parser generator (BSD licence - http://www.antlr.org/license.html).
Do you agree to download it (size 1MB) from 'http://download.itemis.com/antlr-generator-3.2.0.jar'? (type 'y' or 'n' and hit enter)
*ATTENTION*
It is recommended to use the ANTLR 3 parser generator (BSD licence - http://www.antlr.org/license.html).
Do you agree to download it (size 1MB) from 'http://download.itemis.com/antlr-generator-3.2.0.jar'? (type 'y' or 'n' and hit enter)
*ATTENTION*
It is recommended to use the ANTLR 3 parser generator (BSD licence - http://www.antlr.org/license.html).
Do you agree to download it (size 1MB) from 'http://download.itemis.com/antlr-generator-3.2.0.jar'? (type 'y' or 'n' and hit enter)
*ATTENTION*
It is recommended to use the ANTLR 3 parser generator (BSD licence - http://www.antlr.org/license.html).
Do you agree to download it (size 1MB) from 'http://download.itemis.com/antlr-generator-3.2.0.jar'? (type 'y' or 'n' and hit enter)'y'
 

may be is a connection problem , but i don't think so because i'm in the company and the connection rate is good
Previous Topic:Who to get the content of a Multiline-Comment?
Next Topic:.mwe2 of xtext in juno
Goto Forum:
  


Current Time: Tue Oct 20 07:36:18 GMT 2020

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

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

Back to the top