Hello,
I'm new to oAW, and I'm hoping someone can help me with a problem I'm having. When generating some uml, I had some struggles. What am I doing wrong?
I get the following error when running the transformation
11.05.2010 10:52:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
11.05.2010 10:52:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.2, Build v200908120417
11.05.2010 10:52:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
11.05.2010 10:52:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
11.05.2010 10:52:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow: D:/EigeneDaten/workspace_oaw/workspace2/testdoku-transformer/src/workflow/generateUML_2.mwe
11.05.2010 10:52:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
11.05.2010 10:52:34 org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator createBean
SCHWERWIEGEND: 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.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.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.emf.ecore.impl.EPackageRegistryImpl$Delegator.put(EPackageRegistryImpl.java:316)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl$Delegator.put(EPackageRegistryImpl.java:1)
at org.eclipse.xtend.typesystem.uml2.Setup.setStandardUML2Setup(Setup.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.emf.mwe.internal.core.ast.util.InjectorSimple.setValue(InjectorSimple.java:33)
... 16 more
11.05.2010 10:52:34 org.eclipse.emf.mwe.utils.StandaloneSetup setPlatformUri
INFO: Registering platform uri 'D:\EigeneDaten\workspace_oaw\workspace2'
11.05.2010 10:52:34 org.eclipse.xtend.typesystem.xsd.XSDMetaModel addSchemaFile
INFO: Loading XSDSchema from 'metamodel/TESTDoku.xsd'
11.05.2010 10:52:35 org.eclipse.xtend.typesystem.xsd.builder.OawXSDEcoreBuilder initEPackage
INFO: Creating EPackage 'testDoku' from XSDSchema 'file:/.../bin/metamodel/TESTDoku.xsd' (http://www.test.de/testdoku)
11.05.2010 10:52:35 org.eclipse.xtend.typesystem.xsd.builder.OawXSDEcoreBuilder resolveNameConflict
WARNUNG: Name Conflict: Created EAttribute 'rootTable1', EReference 'rootTable' is in the way. Container:/EPackage'testDoku'/EClass'TLockObject'
11.05.2010 10:52:35 org.eclipse.xtend.typesystem.xsd.XSDMetaModel registerNewPackages
INFO: Registering EPackage 'testDoku' (http://www.test.de/testdoku) globally.
11.05.2010 10:52:35 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SCHWERWIEGEND: [ERROR]: Error creating instance of type 'org.eclipse.xtend.typesystem.uml2.Setup' : java.lang.NullPointerException(Element: bean bean class='org.eclipse.xtend.typesystem.uml2.Setup' in D:/EigeneDaten/workspace_oaw/workspace2/testdoku-transformer/src/workflow/generateUML_2.mwe:3; Reported by: -UNKNOWN-)
11.05.2010 10:52:35 org.eclipse.emf.mwe.core.WorkflowRunner prepare
SCHWERWIEGEND: Workflow interrupted because of configuration errors.
My generator looks like this
<bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true"/>
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
<!--<registerGeneratedEPackage value="org.eclipse.uml2.uml.UMLPackage"/>-->
<platformUri value=".."/>
</bean>
<component class="org.eclipse.xtend.typesystem.xsd.XMLReader">
<modelSlot value="modelInTEST"/>
<uri value="${oaw.dokumodel}"/>
<metaModel id="testDoku"
class="org.eclipse.xtend.typesystem.xsd.XSDMetaModel">
<schemaFile value="metamodel/TESTDoku.xsd" />
<registerPackagesGlobally value="true" />
</metaModel>
</component>
<component class="org.eclipse.xtend.XtendComponent">
<metaModel id="mm.emf" class="org.eclipse.xtend.typesystem.emf.EmfMetaModel">
<metaModelPackage value="org.eclipse.emf.ecore.EcorePackage"/>
</metaModel>
<metaModel id="mm.UML2" class="org.eclipse.xtend.typesystem.uml2.UML2MetaModel"/>
<metaModel idRef="testDoku">
</metaModel>
<globalVarDef name="nsUriPrefix" value="'http://www.test.com/testdoku'"/>
<invoke value="template::ecore2uml::transformiere(modelInTEST)"/>
<outputSlot value="uml2Model"/>
</component>
<!-- Ausgabe des Modells-->
<component id="uml2Writer" class="org.eclipse.xtend.typesystem.uml2.UML2Writer">
<inputSlot value="uml2Model"/>
<destinationFolder value="${oaw.destFolder}"/>
<outPath value="${oaw.outPath}"/>
</component>
My manifest.MF is as follows
Manifest-Version: 1.0
.
.
.
org.eclipse.emf.mwe.utils;bundle-version="0.7.2",
org.eclipse.emf.mwe.core;bundle-version="0.7.2",
org.eclipse.emf.common;bundle-version="2.5.0",
org.eclipse.emf.ecore.xmi;bundle-version="2.5.0",
org.eclipse.emf.ecore;bundle-version="2.5.0",
org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.2",
org.eclipse.xtend.typesystem.emf;bundle-version="0.7.2",
org.eclipse.xtend.util.stdlib;bundle-version="0.7.2",
org.eclipse.xtend;bundle-version="2.5.0",
org.eclipse.uml2.uml; bundel-version="3.0.0",
org.eclipse.jface.text;bundle-version="3.5.0",
org.antlr.runtime;bundle-version="3.0.0",
com.ibm.icu;bundle-version="4.0.1",
org.eclipse.core.runtime;bundle-version="3.5.0",
org.eclipse.jdt.core;bundle-version="3.5.0
.
.
.