Home » Modeling » M2T (model-to-text transformation) » [XTEND] Reference to imported model not resolved
[XTEND] Reference to imported model not resolved [message #510041] |
Tue, 26 January 2010 10:29 |
Christoph Messages: 16 Registered: July 2009 |
Junior Member |
|
|
Hi everybody.
We are about to split our big fat meta-model into several meta-models for distinct concerns (services, database, ui) when we came across an issue with xtend files.
To demonstrate, I created two new xtext projects A and B using the xtext wizard, and renamed the model elements (adding suffix A or B, respectively). In DslB.xtext, I additionally import DslA grammar and add the following rule:
import "classpath:/org/xtext/example/DslA.ecore" as a
...
EntityRef:
'entityref' name=ID '{'
'refA' refA=[a::EntityA]
'refB' refB=[EntityB]
'}';
Now, in my xtend files, I am not able to use the refA property. Eclipse shows an error marker, and the message is "Unknown dslB::EntityRef property, variable, type or enumeration literal 'refA'". However, the generated EntityRef.java file has a corresponding getRefA() method. Additionally, the DslB.ecore model has a refA element (which results in an error "java.net.MalformedURLException: unknown protocol: classpath" in the EMF Editor BTW).
In contrast, refB (i.e. a reference to an element in the same grammar) works just fine:
List getAllManyPropertiesA( EntityRef this ):
refA.properties.select(e|e.many);
List getAllManyPropertiesB( EntityRef this ):
refB.properties.select(e|e.many);
What am I doing wrong? Should I rather use Grammar Mixin instead of import? What can I do?
Thanks,
Christoph
|
|
|
Re: [XTEND] Reference to imported model not resolved [message #510165 is a reply to message #510041] |
Tue, 26 January 2010 15:28 |
Sven Efftinge Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Please use a platform:/resource URI.
E.g.
platform:/resource/my.project/src/org/xtext/example/DslA.eco re
The uris are written into the *.ecore file. Neither Xtend nor the
standard EMF editors can handle classpath URIs.
Sven
Christoph schrieb:
> Hi everybody.
>
> We are about to split our big fat meta-model into several meta-models
> for distinct concerns (services, database, ui) when we came across an
> issue with xtend files.
>
> To demonstrate, I created two new xtext projects A and B using the xtext
> wizard, and renamed the model elements (adding suffix A or B,
> respectively). In DslB.xtext, I additionally import DslA grammar and add
> the following rule:
>
>
> import "classpath:/org/xtext/example/DslA.ecore" as a
> ...
> EntityRef:
> 'entityref' name=ID '{'
> 'refA' refA=[a::EntityA]
> 'refB' refB=[EntityB]
> '}';
>
>
> Now, in my xtend files, I am not able to use the refA property. Eclipse
> shows an error marker, and the message is "Unknown dslB::EntityRef
> property, variable, type or enumeration literal 'refA'". However, the
> generated EntityRef.java file has a corresponding getRefA() method.
> Additionally, the DslB.ecore model has a refA element (which results in
> an error "java.net.MalformedURLException: unknown protocol: classpath"
> in the EMF Editor BTW).
>
> In contrast, refB (i.e. a reference to an element in the same grammar)
> works just fine:
>
>
> List getAllManyPropertiesA( EntityRef this ):
> refA.properties.select(e|e.many);
>
> List getAllManyPropertiesB( EntityRef this ):
> refB.properties.select(e|e.many);
>
>
> What am I doing wrong? Should I rather use Grammar Mixin instead of
> import? What can I do?
>
> Thanks,
> Christoph
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
|
|
|
Re: [XTEND] Reference to imported model not resolved [message #510186 is a reply to message #510165] |
Tue, 26 January 2010 16:12 |
Christoph Messages: 16 Registered: July 2009 |
Junior Member |
|
|
Sven, thanks for this tip -- it's working in my simple demo example!
However, when trying the same in my real project, now I'm getting the exception below. The strange thing is, the import is working fine in the Xtext editor, and there is not really any difference between real and demo mwe file and Eclipse projects. What could that be?
Thanks again,
Christoph.
2765 [main] ERROR ternal.core.ast.util.VisitorCreator - java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:5 Cannot resolve reference to '"platform:/resource/com.fja.ipl.dsl.sc/src-gen/com/fja/ipl/dsl/sc/ScDsl.ecore"', XtextLinkingDiagnostic: null:29 Cannot resolve reference to 'ServiceComponent', XtextLinkingDiagnostic: null:42 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:48 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:59 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:60 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:62 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:62 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:93 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:93 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:96 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:108 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:120 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:123 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:128 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:132 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:185 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:282 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:296 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:304 Cannot resolve reference to 'Reference', XtextLinkingDiagnostic: null:316 Cannot resolve reference to 'ExternalReference', XtextLinkingDiagnostic: null:325 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:406 Cannot resolve reference to 'ServiceComponent', XtextLinkingDiagnostic: null:406 Cannot resolve reference to 'PrimitiveType', XtextLinkingDiagnostic: null:411 Cannot resolve reference to 'CharacteristicsItem', TransformationDiagnostic: null:29 Cannot find type for '[sc::ServiceComponent]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:42 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:48 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:59 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:60 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:62 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:62 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:93 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:93 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:96 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:108 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:120 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:123 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:128 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:132 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:185 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:282 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:296 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:304 Cannot find type for '[sc::Reference]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:316 Cannot find type for '[sc::ExternalReference]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:325 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:406 Cannot find type for '[sc::ServiceComponent]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:406 Cannot find type for '[sc::PrimitiveType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:411 Cannot find type for '[sc::CharacteristicsItem]'. (ErrorCode: NoSuchTypeAvailable)]
java.lang.RuntimeException: java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:5 Cannot resolve reference to '"platform:/resource/com.fja.ipl.dsl.sc/src-gen/com/fja/ipl/dsl/sc/ScDsl.ecore"', XtextLinkingDiagnostic: null:29 Cannot resolve reference to 'ServiceComponent', XtextLinkingDiagnostic: null:42 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:48 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:59 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:60 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:62 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:62 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:93 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:93 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:96 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:108 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:120 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:123 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:128 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:132 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:185 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:282 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:296 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:304 Cannot resolve reference to 'Reference', XtextLinkingDiagnostic: null:316 Cannot resolve reference to 'ExternalReference', XtextLinkingDiagnostic: null:325 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:406 Cannot resolve reference to 'ServiceComponent', XtextLinkingDiagnostic: null:406 Cannot resolve reference to 'PrimitiveType', XtextLinkingDiagnostic: null:411 Cannot resolve reference to 'CharacteristicsItem', TransformationDiagnostic: null:29 Cannot find type for '[sc::ServiceComponent]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:42 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:48 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:59 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:60 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:62 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:62 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:93 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:93 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:96 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:108 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:120 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:123 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:128 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:132 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:185 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:282 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:296 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:304 Cannot find type for '[sc::Reference]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:316 Cannot find type for '[sc::ExternalReference]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:325 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:406 Cannot find type for '[sc::ServiceComponent]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:406 Cannot find type for '[sc::PrimitiveType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:411 Cannot find type for '[sc::CharacteristicsItem]'. (ErrorCode: NoSuchTypeAvailable)]
at org.eclipse.emf.mwe.internal.core.ast.util.InjectorSimple.setValue(InjectorSimple.java:35)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitSimpleParamAST(VisitorCreator.java:200)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:49)
at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.createBean(VisitorCreator.java:155)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitComponentAST(VisitorCreator.java:116)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.createBean(VisitorCreator.java:155)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitComponentAST(VisitorCreator.java:116)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.createBean(VisitorCreator.java:155)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitComponentAST(VisitorCreator.java:116)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:72)
at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:51)
at org.eclipse.emf.mwe.core.WorkflowRunner.prepare(WorkflowRunner.java:331)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:289)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner.java:239)
Caused by: java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:5 Cannot resolve reference to '"platform:/resource/com.fja.ipl.dsl.sc/src-gen/com/fja/ipl/dsl/sc/ScDsl.ecore"', XtextLinkingDiagnostic: null:29 Cannot resolve reference to 'ServiceComponent', XtextLinkingDiagnostic: null:42 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:48 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:59 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:60 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:62 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:62 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:93 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:93 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:96 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:108 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:120 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:123 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:128 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:132 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:185 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:282 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:296 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:304 Cannot resolve reference to 'Reference', XtextLinkingDiagnostic: null:316 Cannot resolve reference to 'ExternalReference', XtextLinkingDiagnostic: null:325 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:406 Cannot resolve reference to 'ServiceComponent', XtextLinkingDiagnostic: null:406 Cannot resolve reference to 'PrimitiveType', XtextLinkingDiagnostic: null:411 Cannot resolve reference to 'CharacteristicsItem', TransformationDiagnostic: null:29 Cannot find type for '[sc::ServiceComponent]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:42 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:48 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:59 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:60 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:62 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:62 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:93 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:93 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:96 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:108 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:120 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:123 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:128 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:132 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:185 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:282 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:296 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:304 Cannot find type for '[sc::Reference]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:316 Cannot find type for '[sc::ExternalReference]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:325 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:406 Cannot find type for '[sc::ServiceComponent]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:406 Cannot find type for '[sc::PrimitiveType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:411 Cannot find type for '[sc::CharacteristicsItem]'. (ErrorCode: NoSuchTypeAvailable)]
at org.eclipse.xtext.generator.LanguageConfig.setUri(LanguageConfig.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.eclipse.emf.mwe.internal.core.ast.util.InjectorSimple.setValue(InjectorSimple.java:33)
... 20 more
2781 [main] ERROR ternal.core.ast.util.VisitorCreator - java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
at org.eclipse.emf.mwe.internal.core.ast.util.InjectorSimple.setValue(InjectorSimple.java:35)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitComponentAST(VisitorCreator.java:119)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.createBean(VisitorCreator.java:155)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitComponentAST(VisitorCreator.java:116)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.createBean(VisitorCreator.java:155)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitComponentAST(VisitorCreator.java:116)
at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:72)
at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:51)
at org.eclipse.emf.mwe.core.WorkflowRunner.prepare(WorkflowRunner.java:331)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:289)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner.java:239)
Caused by: java.lang.NullPointerException
at org.eclipse.xtext.GrammarUtil.getName(GrammarUtil.java:51)
at org.eclipse.xtext.generator.LanguageConfig.getFileExtensions(LanguageConfig.java:90)
at org.eclipse.xtext.generator.LanguageConfig.initialize(LanguageConfig.java:100)
at org.eclipse.xtext.generator.Generator.addLanguage(Generator.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.eclipse.emf.mwe.internal.core.ast.util.InjectorSimple.setValue(InjectorSimple.java:33)
... 16 more
2781 [main] ERROR eclipse.emf.mwe.core.WorkflowRunner - [ERROR]: Error creating instance of type 'null' : java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:5 Cannot resolve reference to '"platform:/resource/com.fja.ipl.dsl.sc/src-gen/com/fja/ipl/dsl/sc/ScDsl.ecore"', XtextLinkingDiagnostic: null:29 Cannot resolve reference to 'ServiceComponent', XtextLinkingDiagnostic: null:42 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:48 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:59 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:60 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:62 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:62 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:93 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:93 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:96 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:108 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:120 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:123 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:128 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:132 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:185 Cannot resolve reference to 'ComplexType', XtextLinkingDiagnostic: null:282 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:296 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:304 Cannot resolve reference to 'Reference', XtextLinkingDiagnostic: null:316 Cannot resolve reference to 'ExternalReference', XtextLinkingDiagnostic: null:325 Cannot resolve reference to 'Attribute', XtextLinkingDiagnostic: null:406 Cannot resolve reference to 'ServiceComponent', XtextLinkingDiagnostic: null:406 Cannot resolve reference to 'PrimitiveType', XtextLinkingDiagnostic: null:411 Cannot resolve reference to 'CharacteristicsItem', TransformationDiagnostic: null:29 Cannot find type for '[sc::ServiceComponent]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:42 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:48 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:59 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:60 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:62 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:62 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:93 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:93 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:96 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:108 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:120 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:123 Cannot find type for '[sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:128 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:132 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:185 Cannot find type for ' [sc::ComplexType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:282 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:296 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:304 Cannot find type for '[sc::Reference]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:316 Cannot find type for '[sc::ExternalReference]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:325 Cannot find type for '[sc::Attribute]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:406 Cannot find type for '[sc::ServiceComponent]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:406 Cannot find type for '[sc::PrimitiveType]'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:411 Cannot find type for '[sc::CharacteristicsItem]'. (ErrorCode: NoSuchTypeAvailable)](Element: bean language in D:/Projekte/ipl-product/modelling/dbdsl/com.fja.ipl.dsl.db/src/com/fja/ipl/dsl/db/GenerateDbDsl.mwe:17; Reported by: -UNKNOWN-)
2781 [main] ERROR eclipse.emf.mwe.core.WorkflowRunner - [ERROR]: Error creating instance of type 'org.eclipse.xtext.generator.Generator' : java.lang.NullPointerException(Element: bean component class='org.eclipse.xtext.generator.Generator' in D:/Projekte/ipl-product/modelling/dbdsl/com.fja.ipl.dsl.db/src/com/fja/ipl/dsl/db/GenerateDbDsl.mwe:11; Reported by: -UNKNOWN-)
2781 [main] ERROR eclipse.emf.mwe.core.WorkflowRunner - Workflow interrupted because of configuration errors.
|
|
| |
Goto Forum:
Current Time: Thu Oct 10 11:11:36 GMT 2024
Powered by FUDForum. Page generated in 0.08844 seconds
|