Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment
problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895227] Thu, 12 July 2012 08:09 Go to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
hi,

when i try to run the mw2e as a workflow i have the following error
  *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
32907 [main] INFO  erator.parser.antlr.AntlrToolFacade  - downloading file from 'http://download.itemis.com/antlr-generator-3.2.0.jar' ...
53985 [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.XtextAntlrUiGeneratorFragment.checkConfiguration(XtextAntlrUiGeneratorFragment.java:58)
	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)
53985 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - Problems running workflow org.xtext.example.mydsl.GenerateMyDsl: 
[ERROR]: 

*ATTENTION*
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-)
[ERROR]:  


i think there is a connectio problem when eclipse is trying to download the ANTLR's parser generator from Itemis website, so i have decided to use the alternative possibility, means use the alternative implementation shipped with Xtext.
by using the generator fragment 'org.eclipse.xtext.generator.parser.packrat.PackratParserFragment' in your mwe2 file instead.

but i dont' know where that fragment is implement , i have tried to modify ithis 2 following file but nothing change:

 fragment = generator.GeneratorFragment {
                    generateMwe = false
                    generateJavaMain = false
                } 

and

 fragment = parser.antlr.XtextAntlrGeneratorFragment {
                //  options = {
                //      backtrack = true
                //  }
                } 


i have also tried another solution , this by downloading the ANTLR's parser generator directly by myself in the itemis website without the help of eclipse , but the problem is , i don't know where to put that jar file downloaded . i have tried to add it in the plugin package or the features package but nothing change .

so i will be very gratefull for any contribution.


king regards,
Frank
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895238 is a reply to message #895227] Thu, 12 July 2012 08:40 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

You can put the jar in your projects root folder.
<your_peoject_loc>/.antlr-generator-3.2.0.jar

Don't forget to rename the jar to .antlr-generator-3.2.0.jar (starts with a dot) Confused

But the better sollution is to install Xtext Antlr Runtime Feature 2.0.0
from http://download.itemis.de/updates/releases/2.0.0



+Dennis Huebner

Get professional support from the Xtext committers at www.typefox.io
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895246 is a reply to message #895238] Thu, 12 July 2012 09:13 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
thanks for solution , but when i'm trying to rename the file as .antlr-generator-3.2.0.jar
i have an error saying :" you must specify the name of your file".
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895250 is a reply to message #895246] Thu, 12 July 2012 09:19 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

Are you using windows? Laughing
Put the file in your projects root as is, than rename it using eclipse itself hit <F2> or "Refactor->Rename" rename to .antlr-generator-3.2.0.jar ... and than install linux or an another unix OS Smile



+Dennis Huebner

Get professional support from the Xtext committers at www.typefox.io
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895302 is a reply to message #895250] Thu, 12 July 2012 12:09 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
yes i am using windows xp
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895304 is a reply to message #895302] Thu, 12 July 2012 12:21 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

poor frank Crying or Very Sad


+Dennis Huebner

Get professional support from the Xtext committers at www.typefox.io
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895311 is a reply to message #895302] Thu, 12 July 2012 12:26 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Did you try to install the antlr feature from
http://download.itemis.de/updates/releases/2.0.0 as Dennis suggested?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 12.07.12 14:09, schrieb frank fotso:
> yes i am using windows xp
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895346 is a reply to message #895311] Thu, 12 July 2012 14:11 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
yes i did it but i still have the same connection problem.
i think may be is th firewall of the company which is reponsible of that .
so i'm looking for other solution which did not nedd any download via eclipse

i have also download the antlr-generator-3.2.0.jar and rename it after putting it in my project root .
but still have the same problem
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895355 is a reply to message #895346] Thu, 12 July 2012 14:34 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
thks for your help,

is oki now.
i have succeed to rename the file using total commander and the mwe2 is executing now after placing the .antlr-generator-3.2.0.jar in my project root

kind regards
frank
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #895357 is a reply to message #895355] Thu, 12 July 2012 14:46 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

That's good.

Here are a couple of links that can be useful for you:
http://www.ubuntu.com/
http://fedoraproject.org/
http://www.linuxmint.com/
Very Happy



+Dennis Huebner

Get professional support from the Xtext committers at www.typefox.io
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #896197 is a reply to message #895357] Tue, 17 July 2012 14:30 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
thks for the link Dennis i will look at it.

but i'm using windows and i have already solved the problem , by renaming the download antlr as you proposed.
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #896199 is a reply to message #896197] Tue, 17 July 2012 14:35 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
i have a question,
is it possible to generate or to have a XML or XMI file from the editor file i have created. means for example after creating my grammar . i have created a file test2.eep with the extension eep as you see , and now i want to have the or generate and XML or XMI file corresponding to that test2.eep file.

thks in advance
Best regards ,
Frank
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #896438 is a reply to message #896199] Wed, 18 July 2012 11:59 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
This question has been answered a lot of times in this forum:
Roughly: Load the resource -> Create an XMI/XML resource -> copy the
contents -> save the XMI/XML resource.

For more information, use the search facility.

Am 17.07.12 16:36, schrieb frank fotso:
> i have a question,
> is it possible to generate or to have a XML or XMI file from the editor
> file i have created. means for example after creating my grammar . i
> have created a file test2.eep with the extension eep as you see , and
> now i want to have the or generate and XML or XMI file corresponding to
> that test2.eep file.
>
> thks in advance
> Best regards ,
> Frank


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #896493 is a reply to message #896438] Wed, 18 July 2012 14:09 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
thks jan,

but i have find a way to load the resources and i didn't see it , may i was looking in a wrong place. Can you please explain to me step by step how to generate an xml file from the xtext editor file you have created.

thks in advance,

Best regards ,
Frank
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #896639 is a reply to message #896493] Thu, 19 July 2012 08:42 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
As I said, use the search facility on this forum. 'XMI' will get you a
lot of useful information.

Am 18.07.12 16:09, schrieb frank fotso:
> thks jan,
>
> but i have find a way to load the resources and i didn't see it , may i
> was looking in a wrong place. Can you please explain to me step by step
> how to generate an xml file from the xtext editor file you have created.
>
> thks in advance,
>
> Best regards ,
> Frank


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #1711680 is a reply to message #895227] Mon, 19 October 2015 09:03 Go to previous messageGo to next message
Peter Welz is currently offline Peter WelzFriend
Messages: 1
Registered: October 2015
Junior Member
I have since yesterday, the same problem as Frank in 2012. (It seems that the site itemis.de is down) Where can I download the file antlr-generator-3.2.0.jar yet? Do you have another place to download the file?
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #1712114 is a reply to message #1711680] Wed, 21 October 2015 11:36 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
On 19.10.15 16:41, Peter Welz wrote:
> I have since yesterday, the same problem as Frank in 2012. (It seems
> that the site itemis.de is down) Where can I download the file
> antlr-generator-3.2.0.jar yet? Do you have another place to download the
> file?

Could you please confirm that itemis.de is available again?

Best,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Find help at http://xtext.itemis.com or xtext(@)itemis.com
Blog: zarnekow.blogspot.com
Twitter: @szarnekow
Google+: https://www.google.com/+SebastianZarnekow
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #1741467 is a reply to message #895227] Thu, 25 August 2016 12:08 Go to previous messageGo to next message
Hema Hems is currently offline Hema HemsFriend
Messages: 1
Registered: August 2016
Junior Member
Hi,

when trying to run the GenerateMyDsl.mwe2->Run As->MWE2 Workflow, i get the attached error.
I am using Windows. I downloaded .antlr-generator-3.2.0 manually. placed it in the folder org.xtext.example.mydsl. Still i get the same error.
Can someone help me with the resolution. I am new to Xtext.

Regards,
Hems
Re: problem with my org.eclipse.xtext.generator.parser.packrat.PackratParserFragment [message #1741507 is a reply to message #1741467] Thu, 25 August 2016 14:36 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
is the file named .antlr-generator-3.2.0-patch.jar and placed in the root of the project?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Terminal rule operators in DataType rules
Next Topic:ProposalProvider in IDEA
Goto Forum:
  


Current Time: Thu Mar 28 14:23:10 GMT 2024

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

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

Back to the top