|
|
Re: [xcore] problem referencing UML classes? [message #896696 is a reply to message #896684] |
Thu, 19 July 2012 12:03 |
Joel Greenyer Messages: 170 Registered: July 2009 |
Senior Member |
|
|
Mmh, this UML genmodel is causing problems all the time... :(
On 19.07.2012 13:32, Ed Merks wrote:
> Joel,
>
> This problem is caused by UML2's GenModel's specialized handling (like a built-in package) for their new (for the Juno release) Types package.:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=382637
>
>
> On 19/07/2012 1:10 PM, Joel Greenyer wrote:
>> Hi,
>> I have a problem referencing UML classes in my XCore model.
>>
>> Consider the following example:
>> -----
>> package org.example.myumlapplication
>>
>> import org.eclipse.uml2.uml.Lifeline
>>
>> class MyClass{
>> refers Lifeline lifeline
>> }
>> -----
>>
>>
>> The import works fine, but when I add the reference, there are two NullPointerExceptions (see below).
>> (I'm using an e4 Modeling Tools installation, i.e., UML is installed as deployed plug-ins)
>> Is there a general problem referencing UML, or am I doing something wrong?
>>
>> Joel
>>
>> 1. An internal error occurred during: "Xtext validation".
>> java.lang.NullPointerException
>> at org.eclipse.emf.ecore.xcore.util.XcoreGenModelBuilder.initializeUsedGenPackages(XcoreGenModelBuilder.java:268)
>> at org.eclipse.emf.ecore.xcore.resource.XcoreModelAssociator.installDerivedState(XcoreModelAssociator.java:82)
>> at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:125)
>> at org.eclipse.xtext.resource.DerivedStateAwareResource.getContents(DerivedStateAwareResource.java:48)
>> at org.eclipse.emf.ecore.util.EcoreUtil.getAllContents(EcoreUtil.java:1121)
>> at org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReferences(LazyLinkingResource.java:97)
>> at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:494)
>> at org.eclipse.xtext.validation.ResourceValidatorImpl.resolveProxies(ResourceValidatorImpl.java:127)
>> at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:62)
>> at org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:79)
>> at org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:1)
>> at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:32)
>> at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:78)
>> at org.eclipse.xtext.ui.editor.validation.ValidationJob.createIssues(ValidationJob.java:75)
>> at org.eclipse.xtext.ui.editor.validation.ValidationJob.run(ValidationJob.java:64)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>
>> 2. An internal error occurred during: "XtextReconcilerJob".
>> java.lang.NullPointerException
>> at org.eclipse.emf.ecore.xcore.util.XcoreGenModelBuilder.initializeUsedGenPackages(XcoreGenModelBuilder.java:268)
>> at org.eclipse.emf.ecore.xcore.resource.XcoreModelAssociator.installDerivedState(XcoreModelAssociator.java:82)
>> at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:125)
>> at org.eclipse.xtext.resource.DerivedStateAwareResource.getContents(DerivedStateAwareResource.java:48)
>> at org.eclipse.emf.ecore.resource.impl.ResourceImpl$4.getChildren(ResourceImpl.java:519)
>> at org.eclipse.emf.common.util.AbstractTreeIterator.hasAnyChildren(AbstractTreeIterator.java:97)
>> at org.eclipse.emf.common.util.AbstractTreeIterator.hasNext(AbstractTreeIterator.java:85)
>> at org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.searchAndHighlightElements(XbaseHighlightingCalculator.java:120)
>> at org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.doProvideHighlightingFor(XbaseHighlightingCalculator.java:115)
>> at org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.provideHighlightingFor(XbaseHighlightingCalculator.java:92)
>> at org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.provideHighlightingFor(MergingHighlightedPositionAcceptor.java:51)
>> at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.reconcilePositions(HighlightingReconciler.java:88)
>> at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.modelChanged(HighlightingReconciler.java:281)
>> at org.eclipse.xtext.ui.editor.model.XtextDocument.notifyModelListeners(XtextDocument.java:118)
>> at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:172)
>> at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:1)
>> at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.modify(AbstractReadWriteAcces.java:50)
>> at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:181)
>> at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:90)
>> at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:44)
>> at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:254)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>
>>
>
|
|
|
Re: [xcore] problem referencing UML classes? [message #896697 is a reply to message #896696] |
Thu, 19 July 2012 12:05 |
Ed Merks Messages: 33136 Registered: July 2009 |
Senior Member |
|
|
Joel,
Yes, it's basically broken in terms of being able to use it with any
other GenModels. :-( Hopefully Kenn can fix it in the maintenance stream.
On 19/07/2012 2:03 PM, Joel Greenyer wrote:
> Mmh, this UML genmodel is causing problems all the time... :(
>
> On 19.07.2012 13:32, Ed Merks wrote:
>> Joel,
>>
>> This problem is caused by UML2's GenModel's specialized handling
>> (like a built-in package) for their new (for the Juno release) Types
>> package.:
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=382637
>>
>>
>> On 19/07/2012 1:10 PM, Joel Greenyer wrote:
>>> Hi,
>>> I have a problem referencing UML classes in my XCore model.
>>>
>>> Consider the following example:
>>> -----
>>> package org.example.myumlapplication
>>>
>>> import org.eclipse.uml2.uml.Lifeline
>>>
>>> class MyClass{
>>> refers Lifeline lifeline
>>> }
>>> -----
>>>
>>>
>>> The import works fine, but when I add the reference, there are two
>>> NullPointerExceptions (see below).
>>> (I'm using an e4 Modeling Tools installation, i.e., UML is installed
>>> as deployed plug-ins)
>>> Is there a general problem referencing UML, or am I doing something
>>> wrong?
>>>
>>> Joel
>>>
>>> 1. An internal error occurred during: "Xtext validation".
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.emf.ecore.xcore.util.XcoreGenModelBuilder.initializeUsedGenPackages(XcoreGenModelBuilder.java:268)
>>> at
>>> org.eclipse.emf.ecore.xcore.resource.XcoreModelAssociator.installDerivedState(XcoreModelAssociator.java:82)
>>> at
>>> org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:125)
>>> at
>>> org.eclipse.xtext.resource.DerivedStateAwareResource.getContents(DerivedStateAwareResource.java:48)
>>> at
>>> org.eclipse.emf.ecore.util.EcoreUtil.getAllContents(EcoreUtil.java:1121)
>>>
>>> at
>>> org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReferences(LazyLinkingResource.java:97)
>>> at
>>> org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:494)
>>> at
>>> org.eclipse.xtext.validation.ResourceValidatorImpl.resolveProxies(ResourceValidatorImpl.java:127)
>>> at
>>> org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:62)
>>> at
>>> org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:79)
>>> at
>>> org.eclipse.xtext.ui.editor.validation.ValidationJob$1.exec(ValidationJob.java:1)
>>> at
>>> org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:32)
>>> at
>>> org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:78)
>>> at
>>> org.eclipse.xtext.ui.editor.validation.ValidationJob.createIssues(ValidationJob.java:75)
>>> at
>>> org.eclipse.xtext.ui.editor.validation.ValidationJob.run(ValidationJob.java:64)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>>
>>> 2. An internal error occurred during: "XtextReconcilerJob".
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.emf.ecore.xcore.util.XcoreGenModelBuilder.initializeUsedGenPackages(XcoreGenModelBuilder.java:268)
>>> at
>>> org.eclipse.emf.ecore.xcore.resource.XcoreModelAssociator.installDerivedState(XcoreModelAssociator.java:82)
>>> at
>>> org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:125)
>>> at
>>> org.eclipse.xtext.resource.DerivedStateAwareResource.getContents(DerivedStateAwareResource.java:48)
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl$4.getChildren(ResourceImpl.java:519)
>>> at
>>> org.eclipse.emf.common.util.AbstractTreeIterator.hasAnyChildren(AbstractTreeIterator.java:97)
>>> at
>>> org.eclipse.emf.common.util.AbstractTreeIterator.hasNext(AbstractTreeIterator.java:85)
>>> at
>>> org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.searchAndHighlightElements(XbaseHighlightingCalculator.java:120)
>>> at
>>> org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.doProvideHighlightingFor(XbaseHighlightingCalculator.java:115)
>>> at
>>> org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.provideHighlightingFor(XbaseHighlightingCalculator.java:92)
>>> at
>>> org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.provideHighlightingFor(MergingHighlightedPositionAcceptor.java:51)
>>> at
>>> org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.reconcilePositions(HighlightingReconciler.java:88)
>>> at
>>> org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.modelChanged(HighlightingReconciler.java:281)
>>> at
>>> org.eclipse.xtext.ui.editor.model.XtextDocument.notifyModelListeners(XtextDocument.java:118)
>>> at
>>> org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:172)
>>> at
>>> org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:1)
>>> at
>>> org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.modify(AbstractReadWriteAcces.java:50)
>>> at
>>> org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:181)
>>> at
>>> org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:90)
>>> at
>>> org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:44)
>>> at
>>> org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:254)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>>
>>>
>>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.01381 seconds