Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » SemanticSequencerNfaProvider
icon5.gif  SemanticSequencerNfaProvider [message #1402464] Thu, 17 July 2014 03:25 Go to next message
Elhamlaoui Mahmoud is currently offline Elhamlaoui MahmoudFriend
Messages: 268
Registered: March 2010
Senior Member
Hi everyone,
could someone explain to me what this class is used for. Because i dont know why i get the following error.
 java.lang.NullPointerException
	at org.eclipse.xtext.serializer.analysis.SemanticSequencerNfaProvider$SemStateFactory.create(SemanticSequencerNfaProvider.java:150)
	at org.eclipse.xtext.serializer.analysis.SemanticSequencerNfaProvider$SemStateFactory.create(SemanticSequencerNfaProvider.java:1)
	at org.eclipse.xtext.util.formallang.NfaUtil.create(NfaUtil.java:238)
	at org.eclipse.xtext.serializer.analysis.SemanticSequencerNfaProvider.getNFA(SemanticSequencerNfaProvider.java:205)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.createSequence(BacktrackingSemanticSequencer.java:413)
	at com.irit.maco.hms.m2c.serializer.AbstractM2CDSLSemanticSequencer.sequence_Similarity_Impl(AbstractM2CDSLSemanticSequencer.java:358)
	at com.irit.maco.hms.m2c.serializer.AbstractM2CDSLSemanticSequencer.createSequence(AbstractM2CDSLSemanticSequencer.java:151)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptEObjectRuleCall(SequenceFeeder.java:299)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptRuleCall(SequenceFeeder.java:325)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.accept(SequenceFeeder.java:222)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.accept(BacktrackingSemanticSequencer.java:403)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.createSequence(BacktrackingSemanticSequencer.java:441)
	at com.irit.maco.hms.m2c.serializer.AbstractM2CDSLSemanticSequencer.sequence_Correspondence(AbstractM2CDSLSemanticSequencer.java:204)
	at com.irit.maco.hms.m2c.serializer.AbstractM2CDSLSemanticSequencer.createSequence(AbstractM2CDSLSemanticSequencer.java:58)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptEObjectRuleCall(SequenceFeeder.java:299)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptRuleCall(SequenceFeeder.java:325)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.accept(SequenceFeeder.java:239)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.accept(BacktrackingSemanticSequencer.java:396)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.createSequence(BacktrackingSemanticSequencer.java:441)
	at com.irit.maco.hms.m2c.serializer.AbstractM2CDSLSemanticSequencer.sequence_CorrespondenceModel(AbstractM2CDSLSemanticSequencer.java:195)
	at com.irit.maco.hms.m2c.serializer.AbstractM2CDSLSemanticSequencer.createSequence(AbstractM2CDSLSemanticSequencer.java:64)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptEObjectRuleCall(SequenceFeeder.java:299)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptRuleCall(SequenceFeeder.java:325)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.accept(SequenceFeeder.java:239)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.accept(BacktrackingSemanticSequencer.java:396)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.createSequence(BacktrackingSemanticSequencer.java:441)
	at com.irit.maco.hms.m2c.serializer.AbstractM2CDSLSemanticSequencer.sequence_Packages(AbstractM2CDSLSemanticSequencer.java:305)
	at com.irit.maco.hms.m2c.serializer.AbstractM2CDSLSemanticSequencer.createSequence(AbstractM2CDSLSemanticSequencer.java:125)
	at org.eclipse.xtext.serializer.impl.Serializer.serialize(Serializer.java:85)


Thanks
Re: SemanticSequencerNfaProvider [message #1402856 is a reply to message #1402464] Thu, 17 July 2014 20:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13264
Registered: July 2009
Senior Member
hi i dont know what this is about but it looks like a bug to me

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: SemanticSequencerNfaProvider [message #1404370 is a reply to message #1402856] Thu, 31 July 2014 15:19 Go to previous message
Elhamlaoui Mahmoud is currently offline Elhamlaoui MahmoudFriend
Messages: 268
Registered: March 2010
Senior Member
Hi Christian,
I think i have found the problem. but i dont konw if its is a bug or something i did wong in my grammar
The problem is that in that my grammar i have :
Correspondence returns Correspondence:
'Correspondence'	name=EString
//...
'basedOn' gathersR=Relationship;
Relationship returns Relationship:
	 Generalization//|...
;

In my model Generalization inherits from Relationship which is an abstract metaclass. When i try to parse my model the exception is raised from this class AbstractXXXSemanticSequencer. More specifically in this case
case MMCPackage.GENERALIZATION:
if(context == grammarAccess.getGeneralizationRule() ||
context == grammarAccess.getRelationshipRule()) {
sequence_Generalization(context, (Generalization) semanticObject); 
return; 

In fact the context variable points to a relationship (org.eclipse.xtext.impl.ParserRuleImpl@45a2e0ec (name: Relationship)) which is not normal as it must contains a Generalization ( org.eclipse.xtext.impl.ParserRuleImpl@2e104393 (name: Generalization)

Any ideas?
Thanks in advance
Previous Topic:ANTLR development?
Next Topic:XText Cross References with loops
Goto Forum:
  


Current Time: Mon Dec 09 14:07:47 GMT 2019

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

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

Back to the top