Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » issue with OCLInEcore Editor - NPE on gendoc documentation with null value
issue with OCLInEcore Editor - NPE on gendoc documentation with null value [message #1552693] Thu, 08 January 2015 09:03 Go to next message
Vlad Gheorghe is currently offline Vlad GheorgheFriend
Messages: 127
Registered: May 2011
Senior Member
Hello,

I have found an issue in OCLInEcore editor - OCL Examples and Editors 3.4.0.v20131102-1304 org.eclipse.ocl.examples.feature.group Eclipse Modeling Project.

If the ecore file contains the following fragment :
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation"/>
</eAnnotaitons>

the editor fails to open with a NPE.
java.lang.NullPointerException
at org.eclipse.ocl.examples.xtext.essentialocl.serializer.EssentialOCLHiddenTokenSequencer.emitComments(EssentialOCLHiddenTokenSequencer.java:51)
at org.eclipse.ocl.examples.xtext.essentialocl.serializer.EssentialOCLHiddenTokenSequencer.enterAssignedParserRuleCall(EssentialOCLHiddenTokenSequencer.java:71)
at org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer.enterAssignedParserRuleCall(AbstractSyntacticSequencer.java:318)
at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptEObjectRuleCall(SequenceFeeder.java:298)
...

It was impossible to diagnose from the error log alone.
I had to do bisection on the history of the ecore file to find it..

@Ed W. - are you aware of this ? Is it still present in the current version ?

Best regards
Vlad Gheorghe


Re: issue with OCLInEcore Editor - NPE on gendoc documentation with null value [message #1553295 is a reply to message #1552693] Thu, 08 January 2015 16:15 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5422
Registered: July 2009
Senior Member
Hi

Yes still in the current version (once you correct </eAnnotaitons> to
</eAnnotations>).

https://bugs.eclipse.org/bugs/show_bug.cgi?id=457043 raised.

The easy workaround is to add value="" or even something more meaningful.

Regards

Ed Willink


On 08/01/2015 09:03, Vlad Gheorghe wrote:
> Hello,
>
> I have found an issue in OCLInEcore editor - OCL Examples and Editors
> 3.4.0.v20131102-1304 org.eclipse.ocl.examples.feature.group
> Eclipse Modeling Project.
>
> If the ecore file contains the following fragment :
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation"/>
> </eAnnotaitons>
>
> the editor fails to open with a NPE.
> java.lang.NullPointerException
> at
> org.eclipse.ocl.examples.xtext.essentialocl.serializer.EssentialOCLHiddenTokenSequencer.emitComments(EssentialOCLHiddenTokenSequencer.java:51)
>
> at
> org.eclipse.ocl.examples.xtext.essentialocl.serializer.EssentialOCLHiddenTokenSequencer.enterAssignedParserRuleCall(EssentialOCLHiddenTokenSequencer.java:71)
>
> at
> org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer.enterAssignedParserRuleCall(AbstractSyntacticSequencer.java:318)
>
> at
> org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptEObjectRuleCall(SequenceFeeder.java:298)
>
> ..
>
> It was impossible to diagnose from the error log alone.
> I had to do bisection on the history of the ecore file to find it..
>
> @Ed W. - are you aware of this ? Is it still present in the current
> version ?
>
> Best regards
> Vlad Gheorghe
>
>
>
Previous Topic:Bug in exists and forall operation
Next Topic:Extending CompleteOCL
Goto Forum:
  


Current Time: Tue Oct 17 17:17:18 GMT 2017

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

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