Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [Xtext] Xtext conflits with Eclipse ANTLR IDE plugin
[Xtext] Xtext conflits with Eclipse ANTLR IDE plugin [message #684027] Tue, 14 June 2011 21:37 Go to next message
Steven Derrien is currently offline Steven DerrienFriend
Messages: 50
Registered: July 2009
Member
Hi,

I have tried to install ANTLR IDE in my Eclipse environment

http://antlrv3ide.sourceforge.net/

since then I cannot use Xtext anymore, as all my MWE2/XTEXT generator flow end up with the folloing error :

error(10): internal error:
.../fr.irisa.cairn.gecos.s2s4hls.pragmas.xtext/src-gen/fr/irisa/cairn/gecos/s2s4hls/pragmas/parser/antlr/internal/InternalS2S4HSLPragma.g
: java.lang.SecurityException: class "org.antlr.runtime.RecognizerSharedState"'s signer information does not match
signer information of other classes in the same package.

I first uninstalled the ANTLR plugin but it did not solve the problem, then I reinstalled a fresh Eclipse distribution
without the Antlr plugin without more success, then rechecked out from my SVN an older version of my DSL project and it
would still not work.

The only solution I found was to switch to a new workspace and re-checkout my xtext project in this new workspace to
make it work.

Can someone shed some lights on this error, and how to dela with it ?

Thanks a lot,

Steven
Re: [Xtext] Xtext conflits with Eclipse ANTLR IDE plugin [message #684149 is a reply to message #684027] Wed, 15 June 2011 04:58 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7670
Registered: July 2009
Senior Member
Hi Steven

I think this is the same conflict that I've seen after checking out
Xtext plugins as projects with sources.

Xtext, or more likely com.google.inject, cannot co-exist as both
resource and plug-in.

I'd like to know the answer too. It makes debugging harder than it
should be.

Regards

Ed Willink

On 14/06/2011 22:37, Steven Derrien wrote:
> Hi,
>
> I have tried to install ANTLR IDE in my Eclipse environment
>
> http://antlrv3ide.sourceforge.net/
>
> since then I cannot use Xtext anymore, as all my MWE2/XTEXT generator
> flow end up with the folloing error :
>
> error(10): internal error:
> ../fr.irisa.cairn.gecos.s2s4hls.pragmas.xtext/src-gen/fr/irisa/cairn/gecos/s2s4hls/pragmas/parser/antlr/internal/InternalS2S4HSLPragma.g
> : java.lang.SecurityException: class
> "org.antlr.runtime.RecognizerSharedState"'s signer information does
> not match signer information of other classes in the same package.
>
> I first uninstalled the ANTLR plugin but it did not solve the problem,
> then I reinstalled a fresh Eclipse distribution without the Antlr
> plugin without more success, then rechecked out from my SVN an older
> version of my DSL project and it would still not work.
>
> The only solution I found was to switch to a new workspace and
> re-checkout my xtext project in this new workspace to make it work.
>
> Can someone shed some lights on this error, and how to dela with it ?
>
> Thanks a lot,
>
> Steven
>
>
Re: [Xtext] Xtext conflits with Eclipse ANTLR IDE plugin [message #684773 is a reply to message #684027] Thu, 16 June 2011 08:00 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Steven,

Xtext relies heavily on the internals of Antlr. That's why we require a
very specific version of the parser generator / parser runtime (3.2.0).
This bundle is shipped with Eclipse Xtext as a signed bundle. If you
have another antlr version installed and this one will be picked by
accident, chances are that the OSGi environment tries to load a class
from one bundle and another class from the other bundle, both classes
are in the same package but the second on is not signed. It is not
allowed to have signed classes and unsigned classes in the same package.
That's why you see the SecurityException.

You could try to be more explicit with the bundle dependencies. Don't
know whether that will help, though.

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

Am 14.06.11 23:37, schrieb Steven Derrien:
> Hi,
>
> I have tried to install ANTLR IDE in my Eclipse environment
>
> http://antlrv3ide.sourceforge.net/
>
> since then I cannot use Xtext anymore, as all my MWE2/XTEXT generator
> flow end up with the folloing error :
>
> error(10): internal error:
> ../fr.irisa.cairn.gecos.s2s4hls.pragmas.xtext/src-gen/fr/irisa/cairn/gecos/s2s4hls/pragmas/parser/antlr/internal/InternalS2S4HSLPragma.g
> : java.lang.SecurityException: class
> "org.antlr.runtime.RecognizerSharedState"'s signer information does not
> match signer information of other classes in the same package.
>
> I first uninstalled the ANTLR plugin but it did not solve the problem,
> then I reinstalled a fresh Eclipse distribution without the Antlr plugin
> without more success, then rechecked out from my SVN an older version of
> my DSL project and it would still not work.
>
> The only solution I found was to switch to a new workspace and
> re-checkout my xtext project in this new workspace to make it work.
>
> Can someone shed some lights on this error, and how to dela with it ?
>
> Thanks a lot,
>
> Steven
>
>
Re: [Xtext] Xtext conflits with Eclipse ANTLR IDE plugin [message #685597 is a reply to message #684773] Fri, 17 June 2011 20:28 Go to previous message
Steven Derrien is currently offline Steven DerrienFriend
Messages: 50
Registered: July 2009
Member
Thks for the help, I will use separate Eclipse workspace/versions to deal with the issue.

Steven


On 16/06/2011 02:00, Sebastian Zarnekow wrote:
> Hi Steven,
>
> Xtext relies heavily on the internals of Antlr. That's why we require a very specific version of the parser generator /
> parser runtime (3.2.0).
> This bundle is shipped with Eclipse Xtext as a signed bundle. If you have another antlr version installed and this one
> will be picked by accident, chances are that the OSGi environment tries to load a class from one bundle and another
> class from the other bundle, both classes are in the same package but the second on is not signed. It is not allowed to
> have signed classes and unsigned classes in the same package. That's why you see the SecurityException.
>
> You could try to be more explicit with the bundle dependencies. Don't know whether that will help, though.
>
> Regards,
> Sebastian
Previous Topic:A question about Containers
Next Topic:[Xtext2] Xtend RichStrings: Where is «REM»«ENDREM»?
Goto Forum:
  


Current Time: Tue Sep 24 15:11:48 GMT 2024

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

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

Back to the top