Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » first time problem running workflow (mwe 0.7.0)
first time problem running workflow (mwe 0.7.0) [message #137734] |
Tue, 30 June 2009 16:02 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Hi
I originally posted to the tmf newsgroup but I suspect I should have
posted here? I have been experimenting further and this post is updated
I have created a GMF editor based on multiple linked ecore files and
my GMF editor creates a shared EMF-GMF editor domain in a single file.
I have set up an action to call a workflow from my GMF UI and it appears
to be configured correctly but doesn't actually produce anything. (ie
it's called from java using WorkFlowRunner().... The intention is to
call the workflow on my editor's model files which will be in their own
project directory.
As part of my testing I'm manually testing by running the workflow from
the project explorer (right click run as MWE). I have set up a runtime
config but when I run I get no errors and no output. I get a message
'terminated' on top of the console window.
I am also seeing a lot of messages
"Could not acquire children from extension:
com.xx.dsl.yyy.diagram.resourceContent" in the error log but these don't
seem to timed with my test runs so I'm not sure if they are related.
this is my workflow is as follows (running on OS X 10.5.7)
<?xml version="1.0"?>
<workflow>
<property name="workspace_loc" value="./" />
<property name="eclipse_home" value="../" />
<property name="model"
value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
<property name="src-gen" value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
<property name="out" value="out" />
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
<platformUri value="../" />
<RegisterEcoreFile
value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
<RegisterEcoreFile
value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
</bean>
<component class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
<component class="org.eclipse.emf.mwe.utils.Reader">
<modelSlot value="model"/>
<uri value="${model}"/>
<firstElementOnly value="false" />
</component>
<component class="org.eclipse.xpand2.Generator">
<metaModel id="mm"
class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
<expand value="Demo::Main FOR model" />
<outlet path="${src-gen}"/>
</component>
</workflow>
My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
I have put a copy set of my model ecore files in com.xx.yy.ui/model/
(contract.ecore etc) and I have put a test copy of the GMF editor model
output default2.ngoss in /templates
(once I get this running manually I'll be using a call from java)
When I run the workflow it gets as far as and stops
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow:
/Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
setPlatformUri
INFO: Registering platform uri '/Users/steveorobec/DSL/eclipseRc4/workspace'
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
addRegisterEcoreFile
INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
'..//com.bt.kalashnikov.ui/model/ngoss.ecore'
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
addRegisterEcoreFile
INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
'..//com.xx.yyy.ui/model/contract.ecore'
I have the following dependencies in my manifest (belt & braces)
>
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.ui,
org.eclipse.emf.codegen,
org.eclipse.ui.ide,
org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
org.eclipse.xpand;bundle-version="0.7.0",
org.eclipse.xtend;bundle-version="0.7.0",
org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
org.eclipse.xtend.check.ui;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
org.eclipse.xtend.ui;bundle-version="0.7.0",
org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>
I have looked at the OAW docs, source etc plus the Eclipse GMF book,
tried various combinations of the above but am stuck. Any idea what I'm
doing wrong please?
regards
Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #137759 is a reply to message #137734] |
Tue, 30 June 2009 16:37 |
Sven Efftinge Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Hi Bill,
sorry, I've no idea why the workflow terminates silently.
It seems that for some yet unkown reason the exception is not printed on
the console.
Did you try the debug mode (don't forget to flag the "Java Debug"
checkbox in the run configuration) in order to find out where, when and
why it terminates?
Sorry, I couldn't help more.
Sven
Bill Hinge schrieb:
> Hi
>
> I originally posted to the tmf newsgroup but I suspect I should have
> posted here? I have been experimenting further and this post is updated
>
> I have created a GMF editor based on multiple linked ecore files and
> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>
> I have set up an action to call a workflow from my GMF UI and it appears
> to be configured correctly but doesn't actually produce anything. (ie
> it's called from java using WorkFlowRunner().... The intention is to
> call the workflow on my editor's model files which will be in their own
> project directory.
>
> As part of my testing I'm manually testing by running the workflow from
> the project explorer (right click run as MWE). I have set up a runtime
> config but when I run I get no errors and no output. I get a message
> 'terminated' on top of the console window.
>
> I am also seeing a lot of messages
> "Could not acquire children from extension:
> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these don't
> seem to timed with my test runs so I'm not sure if they are related.
>
> this is my workflow is as follows (running on OS X 10.5.7)
>
> <?xml version="1.0"?>
> <workflow>
> <property name="workspace_loc" value="./" />
> <property name="eclipse_home" value="../" />
> <property name="model"
> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
> <property name="src-gen"
> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
> <property name="out" value="out" />
>
> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
> <platformUri value="../" />
> <RegisterEcoreFile
> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
> <RegisterEcoreFile
> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
> </bean>
>
> <component class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>
> <component class="org.eclipse.emf.mwe.utils.Reader">
> <modelSlot value="model"/>
> <uri value="${model}"/>
> <firstElementOnly value="false" />
> </component>
>
> <component class="org.eclipse.xpand2.Generator">
> <metaModel id="mm"
> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
> <expand value="Demo::Main FOR model" />
> <outlet path="${src-gen}"/>
> </component>
>
>
> </workflow>
>
>
> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>
> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
> (contract.ecore etc) and I have put a test copy of the GMF editor model
> output default2.ngoss in /templates
>
> (once I get this running manually I'll be using a call from java)
>
>
> When I run the workflow it gets as far as and stops
>
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: (c) 2005-2009 openarchitectureware.org and contributors
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: running workflow:
> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
> setPlatformUri
> INFO: Registering platform uri
> '/Users/steveorobec/DSL/eclipseRc4/workspace'
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
> addRegisterEcoreFile
> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
> addRegisterEcoreFile
> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
> '..//com.xx.yyy.ui/model/contract.ecore'
>
>
>
>
>
> I have the following dependencies in my manifest (belt & braces)
> >
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.core.resources,
> org.eclipse.ui,
> org.eclipse.emf.codegen,
> org.eclipse.ui.ide,
> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
> org.eclipse.xpand;bundle-version="0.7.0",
> org.eclipse.xtend;bundle-version="0.7.0",
> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
> org.eclipse.xtend.ui;bundle-version="0.7.0",
> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
> >
>
>
>
> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
> tried various combinations of the above but am stuck. Any idea what I'm
> doing wrong please?
>
> regards
> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #137788 is a reply to message #137759] |
Tue, 30 June 2009 16:58 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Hi Sven
I just tried this, must have had some fat fingered gremlins before cause
it kept crashing
works now...
I get a classloader error -- source not found
} finally {
if (isChildmost) {
childmostCaller.remove();
if ((c != null) && name.startsWith("org.apache.") &&
( name.startsWith("org.apache.crimson.") ||
name.startsWith("org.apache.xalan.") ||
name.startsWith("org.apache.xml.") ||
name.startsWith("org.apache.xpath.") ) ) {
AccessController.doPrivileged(new PrivilegedAction() {
public Object run()
{ return System.setProperty("apple.lang.DisableCompatibilityClasspath ",
"true");
}});
}
}
// MacOSX Change END
}
}
and ...
// Compiled from Launcher.java (version 1.5 : 49.0, super bit)
public class sun.misc.Launcher {
// Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
private static java.net.URLStreamHandlerFactory factory;
// Field descriptor #74 Lsun/misc/Launcher;
private static sun.misc.Launcher launcher;
// Field descriptor #76 Ljava/lang/ClassLoader;
private java.lang.ClassLoader loader;
// Field descriptor #78 Ljava/net/URLStreamHandler;
private static java.net.URLStreamHandler fileHandler;
// Method descriptor #80 ()Lsun/misc/Launcher;
// Stack: 1, Locals: 0
public static sun.misc.Launcher getLauncher();
0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
3 areturn
Line numbers:
[pc: 0, line: 42]
// Method descriptor #84 ()V
// Stack: 4, Locals: 5
public Launcher();
0 aload_0 [this]
1 invokespecial java.lang.Object() [5]
4 invokestatic
sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
sun.misc.Launcher$ExtClassLoader [6]
7 astore_1
8 goto 22
11 astore_2
12 new java.lang.InternalError [8]
15 dup
16 ldc <String "Could not create extension class loader"> [9]
18 invokespecial java.lang.InternalError(java.lang.String) [10]
21 athrow
22 aload_0 [this]
23 aload_1
24 invokestatic
sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
: java.lang.ClassLoader [11]
27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
30 goto 44
33 astore_2
34 new java.lang.InternalError [8]
37 dup
38 ldc <String "Could not create application class loader"> [13]
40 invokespecial java.lang.InternalError(java.lang.String) [10]
43 athrow
44 invokestatic java.lang.Thread.currentThread() :
java.lang.Thread [14]
47 aload_0 [this]
48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
51 invokevirtual
java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void [15]
54 ldc <String "java.security.manager"> [16]
56 invokestatic java.lang.System.getProperty(java.lang.String) :
java.lang.String [17]
59 astore_2
60 aload_2
61 ifnull 168
64 aconst_null
65 astore_3
66 ldc <String ""> [18]
68 aload_2
69 invokevirtual java.lang.String.equals(java.lang.Object) :
boolean [19]
72 ifne 84
75 ldc <String "default"> [20]
77 aload_2
78 invokevirtual java.lang.String.equals(java.lang.Object) :
boolean [19]
81 ifeq 95
84 new java.lang.SecurityManager [21]
87 dup
88 invokespecial java.lang.SecurityManager() [22]
91 astore_3
92 goto 130
95 aload_0 [this]
96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
99 aload_2
100 invokevirtual
java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class [23]
103 invokevirtual java.lang.Class.newInstance() : java.lang.Object
[24]
106 checkcast java.lang.SecurityManager [21]
109 astore_3
110 goto 130
113 astore 4
115 goto 130
118 astore 4
120 goto 130
123 astore 4
125 goto 130
128 astore 4
130 aload_3
131 ifnull 141
134 aload_3
135 invokestatic
java.lang.System.setSecurityManager(java.lang.SecurityManage r) : void [29]
138 goto 168
141 new java.lang.InternalError [8]
144 dup
145 new java.lang.StringBuilder [30]
148 dup
149 invokespecial java.lang.StringBuilder() [31]
152 ldc <String "Could not create SecurityManager: "> [32]
154 invokevirtual java.lang.StringBuilder.append(java.lang.String)
: java.lang.StringBuilder [33]
157 aload_2
158 invokevirtual java.lang.StringBuilder.append(java.lang.String)
: java.lang.StringBuilder [33]
161 invokevirtual java.lang.StringBuilder.toString() :
java.lang.String [34]
164 invokespecial java.lang.InternalError(java.lang.String) [10]
167 athrow
168 return
Exception Table:
[pc: 4, pc: 8] -> 11 when : java.io.IOException
[pc: 22, pc: 30] -> 33 when : java.io.IOException
[pc: 95, pc: 110] -> 113 when : java.lang.IllegalAccessException
[pc: 95, pc: 110] -> 118 when : java.lang.InstantiationException
[pc: 95, pc: 110] -> 123 when : java.lang.ClassNotFoundException
[pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
Line numbers:
[pc: 0, line: 47]
[pc: 4, line: 51]
[pc: 8, line: 55]
[pc: 11, line: 52]
[pc: 12, line: 53]
[pc: 22, line: 59]
[pc: 30, line: 63]
[pc: 33, line: 60]
[pc: 34, line: 61]
[pc: 44, line: 66]
[pc: 54, line: 69]
[pc: 60, line: 70]
[pc: 64, line: 71]
[pc: 66, line: 72]
[pc: 84, line: 73]
[pc: 95, line: 76]
[pc: 110, line: 81]
[pc: 113, line: 77]
[pc: 115, line: 81]
[pc: 118, line: 78]
[pc: 120, line: 81]
[pc: 123, line: 79]
[pc: 125, line: 81]
[pc: 128, line: 80]
[pc: 130, line: 83]
[pc: 134, line: 84]
[pc: 141, line: 86]
[pc: 168, line: 90]
// Method descriptor #86 ()Ljava/lang/ClassLoader;
// Stack: 1, Locals: 1
public java.lang.ClassLoader getClassLoader();
0 aload_0 [this]
1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
4 areturn
Line numbers:
[pc: 0, line: 96]
// Method descriptor #88 ()Lsun/misc/URLClassPath;
// Stack: 4, Locals: 3
public static sun.misc.URLClassPath getBootstrapClassPath();
0 new sun.security.action.GetPropertyAction [35]
3 dup
4 ldc <String "sun.boot.class.path"> [36]
6 invokespecial
sun.security.action.GetPropertyAction(java.lang.String) [37]
9 invokestatic
java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
: java.lang.Object [38]
12 checkcast java.lang.String [39]
15 astore_0
16 aload_0
17 ifnull 43
20 aload_0
21 astore_2
22 new sun.misc.Launcher$1 [40]
25 dup
26 aload_2
27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
30 invokestatic
java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
: java.lang.Object [38]
33 checkcast java.net.URL[] [42]
36 checkcast java.net.URL[] [42]
39 astore_1
40 goto 48
43 iconst_0
44 anewarray java.net.URL [43]
47 astore_1
48 new sun.misc.URLClassPath [44]
51 dup
52 aload_1
53 getstatic sun.misc.Launcher.factory :
java.net.URLStreamHandlerFactory [3]
56 invokespecial sun.misc.URLClassPath(java.net.URL[],
java.net.URLStreamHandlerFactory) [45]
59 areturn
Line numbers:
[pc: 0, line: 319]
[pc: 16, line: 321]
[pc: 20, line: 322]
[pc: 22, line: 323]
[pc: 40, line: 330]
[pc: 43, line: 331]
[pc: 48, line: 333]
// Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
// Stack: 4, Locals: 3
private static java.net.URL[] pathToURLs(java.io.File[] arg0);
0 aload_0 [arg0]
1 arraylength
2 anewarray java.net.URL [43]
5 astore_1
6 iconst_0
7 istore_2
8 iload_2
9 aload_0 [arg0]
10 arraylength
11 if_icmpge 29
14 aload_1
15 iload_2
16 aload_0 [arg0]
17 iload_2
18 aaload
19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
java.net.URL [46]
22 aastore
23 iinc 2 1
26 goto 8
29 aload_1
30 areturn
Line numbers:
[pc: 0, line: 337]
[pc: 6, line: 338]
[pc: 14, line: 339]
[pc: 23, line: 338]
[pc: 29, line: 345]
// Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
// Stack: 7, Locals: 7
private static java.io.File[] getClassPath(java.lang.String arg0);
0 aload_0 [arg0]
1 ifnull 197
4 iconst_0
5 istore_2
6 iconst_1
7 istore_3
8 iconst_0
9 istore 4
11 iconst_0
12 istore 5
14 aload_0 [arg0]
15 getstatic java.io.File.pathSeparator : java.lang.String [47]
18 iload 5
20 invokevirtual java.lang.String.indexOf(java.lang.String, int)
: int [48]
23 dup
24 istore 4
26 iconst_m1
27 if_icmpeq 42
30 iinc 3 1
33 iload 4
35 iconst_1
36 iadd
37 istore 5
39 goto 14
42 iload_3
43 anewarray java.io.File [49]
46 astore_1
47 iconst_0
48 dup
49 istore 4
51 istore 5
53 aload_0 [arg0]
54 getstatic java.io.File.pathSeparator : java.lang.String [47]
57 iload 5
59 invokevirtual java.lang.String.indexOf(java.lang.String, int)
: int [48]
62 dup
63 istore 4
65 iconst_m1
66 if_icmpeq 125
69 iload 4
71 iload 5
73 isub
74 ifle 101
77 aload_1
78 iload_2
79 iinc 2 1
82 new java.io.File [49]
85 dup
86 aload_0 [arg0]
87 iload 5
89 iload 4
91 invokevirtual java.lang.String.substring(int, int) :
java.lang.String [50]
94 invokespecial java.io.File(java.lang.String) [51]
97 aastore
98 goto 116
101 aload_1
102 iload_2
103 iinc 2 1
106 new java.io.File [49]
109 dup
110 ldc <String "."> [52]
112 invokespecial java.io.File(java.lang.String) [51]
115 aastore
116 iload 4
118 iconst_1
119 iadd
120 istore 5
122 goto 53
125 iload 5
127 aload_0 [arg0]
128 invokevirtual java.lang.String.length() : int [53]
131 if_icmpge 156
134 aload_1
135 iload_2
136 iinc 2 1
139 new java.io.File [49]
142 dup
143 aload_0 [arg0]
144 iload 5
146 invokevirtual java.lang.String.substring(int) :
java.lang.String [54]
149 invokespecial java.io.File(java.lang.String) [51]
152 aastore
153 goto 171
156 aload_1
157 iload_2
158 iinc 2 1
161 new java.io.File [49]
164 dup
165 ldc <String "."> [52]
167 invokespecial java.io.File(java.lang.String) [51]
170 aastore
171 iload_2
172 iload_3
173 if_icmpeq 194
176 iload_2
177 anewarray java.io.File [49]
180 astore 6
182 aload_1
183 iconst_0
184 aload 6
186 iconst_0
187 iload_2
188 invokestatic java.lang.System.arraycopy(java.lang.Object, int,
java.lang.Object, int, int) : void [55]
191 aload 6
193 astore_1
194 goto 202
197 iconst_0
198 anewarray java.io.File [49]
201 astore_1
202 aload_1
203 areturn
Line numbers:
[pc: 0, line: 350]
[pc: 4, line: 351]
[pc: 8, line: 352]
[pc: 14, line: 354]
[pc: 30, line: 355]
[pc: 33, line: 356]
[pc: 42, line: 358]
[pc: 47, line: 359]
[pc: 53, line: 361]
[pc: 69, line: 362]
[pc: 77, line: 363]
[pc: 101, line: 366]
[pc: 116, line: 368]
[pc: 125, line: 371]
[pc: 134, line: 372]
[pc: 156, line: 374]
[pc: 171, line: 377]
[pc: 176, line: 378]
[pc: 182, line: 379]
[pc: 191, line: 380]
[pc: 194, line: 382]
[pc: 197, line: 383]
[pc: 202, line: 389]
// Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
// Stack: 2, Locals: 2
static java.net.URL getFileURL(java.io.File arg0);
0 aload_0 [arg0]
1 invokevirtual java.io.File.getCanonicalFile() : java.io.File [56]
4 astore_0 [arg0]
5 goto 9
8 astore_1
9 aload_0 [arg0]
10 invokestatic
sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL [57]
13 areturn
14 astore_1
15 new java.lang.InternalError [8]
18 dup
19 invokespecial java.lang.InternalError() [59]
22 athrow
Exception Table:
[pc: 0, pc: 5] -> 8 when : java.io.IOException
[pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
Line numbers:
[pc: 0, line: 396]
[pc: 5, line: 397]
[pc: 9, line: 400]
[pc: 14, line: 401]
[pc: 15, line: 403]
// Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
// Stack: 1, Locals: 0
static synthetic java.net.URLStreamHandlerFactory access$100();
0 getstatic sun.misc.Launcher.factory :
java.net.URLStreamHandlerFactory [3]
3 areturn
Line numbers:
[pc: 0, line: 37]
// Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
// Stack: 1, Locals: 1
static synthetic java.io.File[] access$200(java.lang.String arg0);
0 aload_0 [arg0]
1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String) :
java.io.File[] [2]
4 areturn
Line numbers:
[pc: 0, line: 37]
// Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
// Stack: 1, Locals: 1
static synthetic java.net.URL[] access$300(java.io.File[] arg0);
0 aload_0 [arg0]
1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
java.net.URL[] [1]
4 areturn
Line numbers:
[pc: 0, line: 37]
// Method descriptor #84 ()V
// Stack: 3, Locals: 0
static {};
0 new sun.misc.Launcher$Factory [60]
3 dup
4 aconst_null
5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
8 putstatic sun.misc.Launcher.factory :
java.net.URLStreamHandlerFactory [3]
11 new sun.misc.Launcher [62]
14 dup
15 invokespecial sun.misc.Launcher() [63]
18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
21 return
Line numbers:
[pc: 0, line: 38]
[pc: 11, line: 39]
Inner classes:
[inner class info: #60 sun/misc/Launcher$Factory, outer class info:
#62 sun/misc/Launcher
inner name: #65 Factory, accessflags: 10 private static],
[inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
class info: #62 sun/misc/Launcher
inner name: #68 AppClassLoader, accessflags: 8 static],
[inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
class info: #62 sun/misc/Launcher
inner name: #70 ExtClassLoader, accessflags: 8 static],
[inner class info: #40 sun/misc/Launcher$1, outer class info: #0
inner name: #0, accessflags: 8 static]
regards
Steve
Sven Efftinge wrote:
> Hi Bill,
>
> sorry, I've no idea why the workflow terminates silently.
> It seems that for some yet unkown reason the exception is not printed on
> the console.
> Did you try the debug mode (don't forget to flag the "Java Debug"
> checkbox in the run configuration) in order to find out where, when and
> why it terminates?
>
> Sorry, I couldn't help more.
>
> Sven
>
> Bill Hinge schrieb:
>> Hi
>>
>> I originally posted to the tmf newsgroup but I suspect I should have
>> posted here? I have been experimenting further and this post is updated
>>
>> I have created a GMF editor based on multiple linked ecore files and
>> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>>
>> I have set up an action to call a workflow from my GMF UI and it appears
>> to be configured correctly but doesn't actually produce anything. (ie
>> it's called from java using WorkFlowRunner().... The intention is to
>> call the workflow on my editor's model files which will be in their own
>> project directory.
>>
>> As part of my testing I'm manually testing by running the workflow from
>> the project explorer (right click run as MWE). I have set up a runtime
>> config but when I run I get no errors and no output. I get a message
>> 'terminated' on top of the console window.
>>
>> I am also seeing a lot of messages
>> "Could not acquire children from extension:
>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>> don't seem to timed with my test runs so I'm not sure if they are
>> related.
>>
>> this is my workflow is as follows (running on OS X 10.5.7)
>>
>> <?xml version="1.0"?>
>> <workflow>
>> <property name="workspace_loc" value="./" />
>> <property name="eclipse_home" value="../" />
>> <property name="model"
>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>> <property name="src-gen"
>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>> <property name="out" value="out" />
>>
>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>> <platformUri value="../" />
>> <RegisterEcoreFile
>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>> <RegisterEcoreFile
>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>> </bean>
>> <component class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>
>> <component class="org.eclipse.emf.mwe.utils.Reader">
>> <modelSlot value="model"/>
>> <uri value="${model}"/>
>> <firstElementOnly value="false" />
>> </component>
>>
>> <component class="org.eclipse.xpand2.Generator">
>> <metaModel id="mm"
>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>> <expand value="Demo::Main FOR model" />
>> <outlet path="${src-gen}"/>
>> </component>
>>
>> </workflow>
>>
>>
>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>
>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>> (contract.ecore etc) and I have put a test copy of the GMF editor model
>> output default2.ngoss in /templates
>>
>> (once I get this running manually I'll be using a call from java)
>>
>>
>> When I run the workflow it gets as far as and stops
>>
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO:
>> ------------------------------------------------------------ --------------------------
>>
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO:
>> ------------------------------------------------------------ --------------------------
>>
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO: running workflow:
>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO:
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>> setPlatformUri
>> INFO: Registering platform uri
>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>> addRegisterEcoreFile
>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>> addRegisterEcoreFile
>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
>> '..//com.xx.yyy.ui/model/contract.ecore'
>>
>>
>>
>>
>>
>> I have the following dependencies in my manifest (belt & braces)
>> >
>> Require-Bundle: org.eclipse.core.runtime,
>> org.eclipse.core.resources,
>> org.eclipse.ui,
>> org.eclipse.emf.codegen,
>> org.eclipse.ui.ide,
>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>> org.eclipse.xpand;bundle-version="0.7.0",
>> org.eclipse.xtend;bundle-version="0.7.0",
>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>> >
>>
>>
>>
>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>> tried various combinations of the above but am stuck. Any idea what I'm
>> doing wrong please?
>>
>> regards
>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #137807 is a reply to message #137788] |
Tue, 30 June 2009 19:05 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Sven
Seems to be some issue with org.antlr.runtime.CharStream not found?
if I add to my dependencies I now get
SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
'TestModel' is not legal.
( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
4, 105)
Should I be using a different Reader/Generator?
(This is a single file GMF-EMF editor)
regards
Steve
Bill Hinge wrote:
> Hi Sven
>
>
> I just tried this, must have had some fat fingered gremlins before cause
> it kept crashing
>
> works now...
>
> I get a classloader error -- source not found
>
>
> } finally {
> if (isChildmost) {
> childmostCaller.remove();
>
> if ((c != null) && name.startsWith("org.apache.") &&
> ( name.startsWith("org.apache.crimson.") ||
> name.startsWith("org.apache.xalan.") ||
> name.startsWith("org.apache.xml.") ||
> name.startsWith("org.apache.xpath.") ) ) {
> AccessController.doPrivileged(new PrivilegedAction() {
> public Object run() {
> return System.setProperty("apple.lang.DisableCompatibilityClasspath ",
> "true");
> }});
> }
> }
> // MacOSX Change END
> }
> }
>
>
>
> and ...
>
>
>
> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
> public class sun.misc.Launcher {
>
> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
> private static java.net.URLStreamHandlerFactory factory;
>
> // Field descriptor #74 Lsun/misc/Launcher;
> private static sun.misc.Launcher launcher;
>
> // Field descriptor #76 Ljava/lang/ClassLoader;
> private java.lang.ClassLoader loader;
>
> // Field descriptor #78 Ljava/net/URLStreamHandler;
> private static java.net.URLStreamHandler fileHandler;
>
> // Method descriptor #80 ()Lsun/misc/Launcher;
> // Stack: 1, Locals: 0
> public static sun.misc.Launcher getLauncher();
> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
> 3 areturn
> Line numbers:
> [pc: 0, line: 42]
>
> // Method descriptor #84 ()V
> // Stack: 4, Locals: 5
> public Launcher();
> 0 aload_0 [this]
> 1 invokespecial java.lang.Object() [5]
> 4 invokestatic
> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
> sun.misc.Launcher$ExtClassLoader [6]
> 7 astore_1
> 8 goto 22
> 11 astore_2
> 12 new java.lang.InternalError [8]
> 15 dup
> 16 ldc <String "Could not create extension class loader"> [9]
> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
> 21 athrow
> 22 aload_0 [this]
> 23 aload_1
> 24 invokestatic
> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
> : java.lang.ClassLoader [11]
> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
> 30 goto 44
> 33 astore_2
> 34 new java.lang.InternalError [8]
> 37 dup
> 38 ldc <String "Could not create application class loader"> [13]
> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
> 43 athrow
> 44 invokestatic java.lang.Thread.currentThread() :
> java.lang.Thread [14]
> 47 aload_0 [this]
> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
> 51 invokevirtual
> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void [15]
> 54 ldc <String "java.security.manager"> [16]
> 56 invokestatic java.lang.System.getProperty(java.lang.String) :
> java.lang.String [17]
> 59 astore_2
> 60 aload_2
> 61 ifnull 168
> 64 aconst_null
> 65 astore_3
> 66 ldc <String ""> [18]
> 68 aload_2
> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
> boolean [19]
> 72 ifne 84
> 75 ldc <String "default"> [20]
> 77 aload_2
> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
> boolean [19]
> 81 ifeq 95
> 84 new java.lang.SecurityManager [21]
> 87 dup
> 88 invokespecial java.lang.SecurityManager() [22]
> 91 astore_3
> 92 goto 130
> 95 aload_0 [this]
> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
> 99 aload_2
> 100 invokevirtual java.lang.ClassLoader.loadClass(java.lang.String)
> : java.lang.Class [23]
> 103 invokevirtual java.lang.Class.newInstance() : java.lang.Object
> [24]
> 106 checkcast java.lang.SecurityManager [21]
> 109 astore_3
> 110 goto 130
> 113 astore 4
> 115 goto 130
> 118 astore 4
> 120 goto 130
> 123 astore 4
> 125 goto 130
> 128 astore 4
> 130 aload_3
> 131 ifnull 141
> 134 aload_3
> 135 invokestatic
> java.lang.System.setSecurityManager(java.lang.SecurityManage r) : void [29]
> 138 goto 168
> 141 new java.lang.InternalError [8]
> 144 dup
> 145 new java.lang.StringBuilder [30]
> 148 dup
> 149 invokespecial java.lang.StringBuilder() [31]
> 152 ldc <String "Could not create SecurityManager: "> [32]
> 154 invokevirtual java.lang.StringBuilder.append(java.lang.String)
> : java.lang.StringBuilder [33]
> 157 aload_2
> 158 invokevirtual java.lang.StringBuilder.append(java.lang.String)
> : java.lang.StringBuilder [33]
> 161 invokevirtual java.lang.StringBuilder.toString() :
> java.lang.String [34]
> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
> 167 athrow
> 168 return
> Exception Table:
> [pc: 4, pc: 8] -> 11 when : java.io.IOException
> [pc: 22, pc: 30] -> 33 when : java.io.IOException
> [pc: 95, pc: 110] -> 113 when : java.lang.IllegalAccessException
> [pc: 95, pc: 110] -> 118 when : java.lang.InstantiationException
> [pc: 95, pc: 110] -> 123 when : java.lang.ClassNotFoundException
> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
> Line numbers:
> [pc: 0, line: 47]
> [pc: 4, line: 51]
> [pc: 8, line: 55]
> [pc: 11, line: 52]
> [pc: 12, line: 53]
> [pc: 22, line: 59]
> [pc: 30, line: 63]
> [pc: 33, line: 60]
> [pc: 34, line: 61]
> [pc: 44, line: 66]
> [pc: 54, line: 69]
> [pc: 60, line: 70]
> [pc: 64, line: 71]
> [pc: 66, line: 72]
> [pc: 84, line: 73]
> [pc: 95, line: 76]
> [pc: 110, line: 81]
> [pc: 113, line: 77]
> [pc: 115, line: 81]
> [pc: 118, line: 78]
> [pc: 120, line: 81]
> [pc: 123, line: 79]
> [pc: 125, line: 81]
> [pc: 128, line: 80]
> [pc: 130, line: 83]
> [pc: 134, line: 84]
> [pc: 141, line: 86]
> [pc: 168, line: 90]
>
> // Method descriptor #86 ()Ljava/lang/ClassLoader;
> // Stack: 1, Locals: 1
> public java.lang.ClassLoader getClassLoader();
> 0 aload_0 [this]
> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
> 4 areturn
> Line numbers:
> [pc: 0, line: 96]
>
> // Method descriptor #88 ()Lsun/misc/URLClassPath;
> // Stack: 4, Locals: 3
> public static sun.misc.URLClassPath getBootstrapClassPath();
> 0 new sun.security.action.GetPropertyAction [35]
> 3 dup
> 4 ldc <String "sun.boot.class.path"> [36]
> 6 invokespecial
> sun.security.action.GetPropertyAction(java.lang.String) [37]
> 9 invokestatic
> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
> : java.lang.Object [38]
> 12 checkcast java.lang.String [39]
> 15 astore_0
> 16 aload_0
> 17 ifnull 43
> 20 aload_0
> 21 astore_2
> 22 new sun.misc.Launcher$1 [40]
> 25 dup
> 26 aload_2
> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
> 30 invokestatic
> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
> : java.lang.Object [38]
> 33 checkcast java.net.URL[] [42]
> 36 checkcast java.net.URL[] [42]
> 39 astore_1
> 40 goto 48
> 43 iconst_0
> 44 anewarray java.net.URL [43]
> 47 astore_1
> 48 new sun.misc.URLClassPath [44]
> 51 dup
> 52 aload_1
> 53 getstatic sun.misc.Launcher.factory :
> java.net.URLStreamHandlerFactory [3]
> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
> java.net.URLStreamHandlerFactory) [45]
> 59 areturn
> Line numbers:
> [pc: 0, line: 319]
> [pc: 16, line: 321]
> [pc: 20, line: 322]
> [pc: 22, line: 323]
> [pc: 40, line: 330]
> [pc: 43, line: 331]
> [pc: 48, line: 333]
>
> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
> // Stack: 4, Locals: 3
> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
> 0 aload_0 [arg0]
> 1 arraylength
> 2 anewarray java.net.URL [43]
> 5 astore_1
> 6 iconst_0
> 7 istore_2
> 8 iload_2
> 9 aload_0 [arg0]
> 10 arraylength
> 11 if_icmpge 29
> 14 aload_1
> 15 iload_2
> 16 aload_0 [arg0]
> 17 iload_2
> 18 aaload
> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
> java.net.URL [46]
> 22 aastore
> 23 iinc 2 1
> 26 goto 8
> 29 aload_1
> 30 areturn
> Line numbers:
> [pc: 0, line: 337]
> [pc: 6, line: 338]
> [pc: 14, line: 339]
> [pc: 23, line: 338]
> [pc: 29, line: 345]
>
> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
> // Stack: 7, Locals: 7
> private static java.io.File[] getClassPath(java.lang.String arg0);
> 0 aload_0 [arg0]
> 1 ifnull 197
> 4 iconst_0
> 5 istore_2
> 6 iconst_1
> 7 istore_3
> 8 iconst_0
> 9 istore 4
> 11 iconst_0
> 12 istore 5
> 14 aload_0 [arg0]
> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
> 18 iload 5
> 20 invokevirtual java.lang.String.indexOf(java.lang.String, int) :
> int [48]
> 23 dup
> 24 istore 4
> 26 iconst_m1
> 27 if_icmpeq 42
> 30 iinc 3 1
> 33 iload 4
> 35 iconst_1
> 36 iadd
> 37 istore 5
> 39 goto 14
> 42 iload_3
> 43 anewarray java.io.File [49]
> 46 astore_1
> 47 iconst_0
> 48 dup
> 49 istore 4
> 51 istore 5
> 53 aload_0 [arg0]
> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
> 57 iload 5
> 59 invokevirtual java.lang.String.indexOf(java.lang.String, int) :
> int [48]
> 62 dup
> 63 istore 4
> 65 iconst_m1
> 66 if_icmpeq 125
> 69 iload 4
> 71 iload 5
> 73 isub
> 74 ifle 101
> 77 aload_1
> 78 iload_2
> 79 iinc 2 1
> 82 new java.io.File [49]
> 85 dup
> 86 aload_0 [arg0]
> 87 iload 5
> 89 iload 4
> 91 invokevirtual java.lang.String.substring(int, int) :
> java.lang.String [50]
> 94 invokespecial java.io.File(java.lang.String) [51]
> 97 aastore
> 98 goto 116
> 101 aload_1
> 102 iload_2
> 103 iinc 2 1
> 106 new java.io.File [49]
> 109 dup
> 110 ldc <String "."> [52]
> 112 invokespecial java.io.File(java.lang.String) [51]
> 115 aastore
> 116 iload 4
> 118 iconst_1
> 119 iadd
> 120 istore 5
> 122 goto 53
> 125 iload 5
> 127 aload_0 [arg0]
> 128 invokevirtual java.lang.String.length() : int [53]
> 131 if_icmpge 156
> 134 aload_1
> 135 iload_2
> 136 iinc 2 1
> 139 new java.io.File [49]
> 142 dup
> 143 aload_0 [arg0]
> 144 iload 5
> 146 invokevirtual java.lang.String.substring(int) :
> java.lang.String [54]
> 149 invokespecial java.io.File(java.lang.String) [51]
> 152 aastore
> 153 goto 171
> 156 aload_1
> 157 iload_2
> 158 iinc 2 1
> 161 new java.io.File [49]
> 164 dup
> 165 ldc <String "."> [52]
> 167 invokespecial java.io.File(java.lang.String) [51]
> 170 aastore
> 171 iload_2
> 172 iload_3
> 173 if_icmpeq 194
> 176 iload_2
> 177 anewarray java.io.File [49]
> 180 astore 6
> 182 aload_1
> 183 iconst_0
> 184 aload 6
> 186 iconst_0
> 187 iload_2
> 188 invokestatic java.lang.System.arraycopy(java.lang.Object, int,
> java.lang.Object, int, int) : void [55]
> 191 aload 6
> 193 astore_1
> 194 goto 202
> 197 iconst_0
> 198 anewarray java.io.File [49]
> 201 astore_1
> 202 aload_1
> 203 areturn
> Line numbers:
> [pc: 0, line: 350]
> [pc: 4, line: 351]
> [pc: 8, line: 352]
> [pc: 14, line: 354]
> [pc: 30, line: 355]
> [pc: 33, line: 356]
> [pc: 42, line: 358]
> [pc: 47, line: 359]
> [pc: 53, line: 361]
> [pc: 69, line: 362]
> [pc: 77, line: 363]
> [pc: 101, line: 366]
> [pc: 116, line: 368]
> [pc: 125, line: 371]
> [pc: 134, line: 372]
> [pc: 156, line: 374]
> [pc: 171, line: 377]
> [pc: 176, line: 378]
> [pc: 182, line: 379]
> [pc: 191, line: 380]
> [pc: 194, line: 382]
> [pc: 197, line: 383]
> [pc: 202, line: 389]
>
> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
> // Stack: 2, Locals: 2
> static java.net.URL getFileURL(java.io.File arg0);
> 0 aload_0 [arg0]
> 1 invokevirtual java.io.File.getCanonicalFile() : java.io.File [56]
> 4 astore_0 [arg0]
> 5 goto 9
> 8 astore_1
> 9 aload_0 [arg0]
> 10 invokestatic
> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL [57]
> 13 areturn
> 14 astore_1
> 15 new java.lang.InternalError [8]
> 18 dup
> 19 invokespecial java.lang.InternalError() [59]
> 22 athrow
> Exception Table:
> [pc: 0, pc: 5] -> 8 when : java.io.IOException
> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
> Line numbers:
> [pc: 0, line: 396]
> [pc: 5, line: 397]
> [pc: 9, line: 400]
> [pc: 14, line: 401]
> [pc: 15, line: 403]
>
> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
> // Stack: 1, Locals: 0
> static synthetic java.net.URLStreamHandlerFactory access$100();
> 0 getstatic sun.misc.Launcher.factory :
> java.net.URLStreamHandlerFactory [3]
> 3 areturn
> Line numbers:
> [pc: 0, line: 37]
>
> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
> // Stack: 1, Locals: 1
> static synthetic java.io.File[] access$200(java.lang.String arg0);
> 0 aload_0 [arg0]
> 1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String) :
> java.io.File[] [2]
> 4 areturn
> Line numbers:
> [pc: 0, line: 37]
>
> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
> // Stack: 1, Locals: 1
> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
> 0 aload_0 [arg0]
> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
> java.net.URL[] [1]
> 4 areturn
> Line numbers:
> [pc: 0, line: 37]
>
> // Method descriptor #84 ()V
> // Stack: 3, Locals: 0
> static {};
> 0 new sun.misc.Launcher$Factory [60]
> 3 dup
> 4 aconst_null
> 5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
> 8 putstatic sun.misc.Launcher.factory :
> java.net.URLStreamHandlerFactory [3]
> 11 new sun.misc.Launcher [62]
> 14 dup
> 15 invokespecial sun.misc.Launcher() [63]
> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
> 21 return
> Line numbers:
> [pc: 0, line: 38]
> [pc: 11, line: 39]
>
> Inner classes:
> [inner class info: #60 sun/misc/Launcher$Factory, outer class info:
> #62 sun/misc/Launcher
> inner name: #65 Factory, accessflags: 10 private static],
> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer class
> info: #62 sun/misc/Launcher
> inner name: #68 AppClassLoader, accessflags: 8 static],
> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer class
> info: #62 sun/misc/Launcher
> inner name: #70 ExtClassLoader, accessflags: 8 static],
> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
> inner name: #0, accessflags: 8 static]
>
> regards
> Steve
>
>
> Sven Efftinge wrote:
>> Hi Bill,
>>
>> sorry, I've no idea why the workflow terminates silently.
>> It seems that for some yet unkown reason the exception is not printed
>> on the console.
>> Did you try the debug mode (don't forget to flag the "Java Debug"
>> checkbox in the run configuration) in order to find out where, when
>> and why it terminates?
>>
>> Sorry, I couldn't help more.
>>
>> Sven
>>
>> Bill Hinge schrieb:
>>> Hi
>>>
>>> I originally posted to the tmf newsgroup but I suspect I should have
>>> posted here? I have been experimenting further and this post is updated
>>>
>>> I have created a GMF editor based on multiple linked ecore files and
>>> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>>>
>>> I have set up an action to call a workflow from my GMF UI and it appears
>>> to be configured correctly but doesn't actually produce anything. (ie
>>> it's called from java using WorkFlowRunner().... The intention is to
>>> call the workflow on my editor's model files which will be in their own
>>> project directory.
>>>
>>> As part of my testing I'm manually testing by running the workflow from
>>> the project explorer (right click run as MWE). I have set up a runtime
>>> config but when I run I get no errors and no output. I get a message
>>> 'terminated' on top of the console window.
>>>
>>> I am also seeing a lot of messages
>>> "Could not acquire children from extension:
>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>>> don't seem to timed with my test runs so I'm not sure if they are
>>> related.
>>>
>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>
>>> <?xml version="1.0"?>
>>> <workflow>
>>> <property name="workspace_loc" value="./" />
>>> <property name="eclipse_home" value="../" />
>>> <property name="model"
>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>> <property name="src-gen"
>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>> <property name="out" value="out" />
>>>
>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>> <platformUri value="../" />
>>> <RegisterEcoreFile
>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>> <RegisterEcoreFile
>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>> </bean>
>>> <component class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>
>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>> <modelSlot value="model"/>
>>> <uri value="${model}"/>
>>> <firstElementOnly value="false" />
>>> </component>
>>>
>>> <component class="org.eclipse.xpand2.Generator">
>>> <metaModel id="mm"
>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>> <expand value="Demo::Main FOR model" />
>>> <outlet path="${src-gen}"/>
>>> </component>
>>> </workflow>
>>>
>>>
>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>
>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>> (contract.ecore etc) and I have put a test copy of the GMF editor model
>>> output default2.ngoss in /templates
>>>
>>> (once I get this running manually I'll be using a call from java)
>>>
>>>
>>> When I run the workflow it gets as far as and stops
>>>
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO:
>>> ------------------------------------------------------------ --------------------------
>>>
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO:
>>> ------------------------------------------------------------ --------------------------
>>>
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO: running workflow:
>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO:
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>> setPlatformUri
>>> INFO: Registering platform uri
>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>> addRegisterEcoreFile
>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>> addRegisterEcoreFile
>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
>>> '..//com.xx.yyy.ui/model/contract.ecore'
>>>
>>>
>>>
>>>
>>>
>>> I have the following dependencies in my manifest (belt & braces)
>>> >
>>> Require-Bundle: org.eclipse.core.runtime,
>>> org.eclipse.core.resources,
>>> org.eclipse.ui,
>>> org.eclipse.emf.codegen,
>>> org.eclipse.ui.ide,
>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>> org.eclipse.xpand;bundle-version="0.7.0",
>>> org.eclipse.xtend;bundle-version="0.7.0",
>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>> >
>>>
>>>
>>>
>>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>>> tried various combinations of the above but am stuck. Any idea what I'm
>>> doing wrong please?
>>>
>>> regards
>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #137824 is a reply to message #137807] |
Tue, 30 June 2009 19:40 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
To clarify, TestModel referred to below is a string value defined by my
ecore files as a legal String, it was created by my GMF-EMF editor so I
would be surprised if it weren't legal. Hence my question as to what
Reader I should use?
Anyhow, made some progress I'm now failing on the Reader
steve
Bill Hinge wrote:
> Sven
>
> Seems to be some issue with org.antlr.runtime.CharStream not found?
>
> if I add to my dependencies I now get
>
> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
> 'TestModel' is not legal.
> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
> 4, 105)
>
>
> Should I be using a different Reader/Generator?
> (This is a single file GMF-EMF editor)
>
>
> regards
> Steve
>
>
> Bill Hinge wrote:
>> Hi Sven
>>
>>
>> I just tried this, must have had some fat fingered gremlins before cause
>> it kept crashing
>>
>> works now...
>>
>> I get a classloader error -- source not found
>>
>>
>> } finally {
>> if (isChildmost) {
>> childmostCaller.remove();
>>
>> if ((c != null) && name.startsWith("org.apache.") &&
>> ( name.startsWith("org.apache.crimson.") ||
>> name.startsWith("org.apache.xalan.") ||
>> name.startsWith("org.apache.xml.") ||
>> name.startsWith("org.apache.xpath.") ) ) {
>> AccessController.doPrivileged(new
>> PrivilegedAction() {
>> public Object run()
>> { return
>> System.setProperty("apple.lang.DisableCompatibilityClasspath ", "true");
>> }});
>> }
>> }
>> // MacOSX Change END
>> }
>> }
>>
>>
>>
>> and ...
>>
>>
>>
>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>> public class sun.misc.Launcher {
>>
>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>> private static java.net.URLStreamHandlerFactory factory;
>>
>> // Field descriptor #74 Lsun/misc/Launcher;
>> private static sun.misc.Launcher launcher;
>>
>> // Field descriptor #76 Ljava/lang/ClassLoader;
>> private java.lang.ClassLoader loader;
>>
>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>> private static java.net.URLStreamHandler fileHandler;
>>
>> // Method descriptor #80 ()Lsun/misc/Launcher;
>> // Stack: 1, Locals: 0
>> public static sun.misc.Launcher getLauncher();
>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>> 3 areturn
>> Line numbers:
>> [pc: 0, line: 42]
>>
>> // Method descriptor #84 ()V
>> // Stack: 4, Locals: 5
>> public Launcher();
>> 0 aload_0 [this]
>> 1 invokespecial java.lang.Object() [5]
>> 4 invokestatic
>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>> sun.misc.Launcher$ExtClassLoader [6]
>> 7 astore_1
>> 8 goto 22
>> 11 astore_2
>> 12 new java.lang.InternalError [8]
>> 15 dup
>> 16 ldc <String "Could not create extension class loader"> [9]
>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>> 21 athrow
>> 22 aload_0 [this]
>> 23 aload_1
>> 24 invokestatic
>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>> : java.lang.ClassLoader [11]
>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>> 30 goto 44
>> 33 astore_2
>> 34 new java.lang.InternalError [8]
>> 37 dup
>> 38 ldc <String "Could not create application class loader"> [13]
>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>> 43 athrow
>> 44 invokestatic java.lang.Thread.currentThread() :
>> java.lang.Thread [14]
>> 47 aload_0 [this]
>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>> 51 invokevirtual
>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void [15]
>> 54 ldc <String "java.security.manager"> [16]
>> 56 invokestatic java.lang.System.getProperty(java.lang.String) :
>> java.lang.String [17]
>> 59 astore_2
>> 60 aload_2
>> 61 ifnull 168
>> 64 aconst_null
>> 65 astore_3
>> 66 ldc <String ""> [18]
>> 68 aload_2
>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>> boolean [19]
>> 72 ifne 84
>> 75 ldc <String "default"> [20]
>> 77 aload_2
>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>> boolean [19]
>> 81 ifeq 95
>> 84 new java.lang.SecurityManager [21]
>> 87 dup
>> 88 invokespecial java.lang.SecurityManager() [22]
>> 91 astore_3
>> 92 goto 130
>> 95 aload_0 [this]
>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>> 99 aload_2
>> 100 invokevirtual
>> java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class [23]
>> 103 invokevirtual java.lang.Class.newInstance() :
>> java.lang.Object [24]
>> 106 checkcast java.lang.SecurityManager [21]
>> 109 astore_3
>> 110 goto 130
>> 113 astore 4
>> 115 goto 130
>> 118 astore 4
>> 120 goto 130
>> 123 astore 4
>> 125 goto 130
>> 128 astore 4
>> 130 aload_3
>> 131 ifnull 141
>> 134 aload_3
>> 135 invokestatic
>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) : void
>> [29]
>> 138 goto 168
>> 141 new java.lang.InternalError [8]
>> 144 dup
>> 145 new java.lang.StringBuilder [30]
>> 148 dup
>> 149 invokespecial java.lang.StringBuilder() [31]
>> 152 ldc <String "Could not create SecurityManager: "> [32]
>> 154 invokevirtual
>> java.lang.StringBuilder.append(java.lang.String) :
>> java.lang.StringBuilder [33]
>> 157 aload_2
>> 158 invokevirtual
>> java.lang.StringBuilder.append(java.lang.String) :
>> java.lang.StringBuilder [33]
>> 161 invokevirtual java.lang.StringBuilder.toString() :
>> java.lang.String [34]
>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>> 167 athrow
>> 168 return
>> Exception Table:
>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>> [pc: 95, pc: 110] -> 113 when : java.lang.IllegalAccessException
>> [pc: 95, pc: 110] -> 118 when : java.lang.InstantiationException
>> [pc: 95, pc: 110] -> 123 when : java.lang.ClassNotFoundException
>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>> Line numbers:
>> [pc: 0, line: 47]
>> [pc: 4, line: 51]
>> [pc: 8, line: 55]
>> [pc: 11, line: 52]
>> [pc: 12, line: 53]
>> [pc: 22, line: 59]
>> [pc: 30, line: 63]
>> [pc: 33, line: 60]
>> [pc: 34, line: 61]
>> [pc: 44, line: 66]
>> [pc: 54, line: 69]
>> [pc: 60, line: 70]
>> [pc: 64, line: 71]
>> [pc: 66, line: 72]
>> [pc: 84, line: 73]
>> [pc: 95, line: 76]
>> [pc: 110, line: 81]
>> [pc: 113, line: 77]
>> [pc: 115, line: 81]
>> [pc: 118, line: 78]
>> [pc: 120, line: 81]
>> [pc: 123, line: 79]
>> [pc: 125, line: 81]
>> [pc: 128, line: 80]
>> [pc: 130, line: 83]
>> [pc: 134, line: 84]
>> [pc: 141, line: 86]
>> [pc: 168, line: 90]
>>
>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>> // Stack: 1, Locals: 1
>> public java.lang.ClassLoader getClassLoader();
>> 0 aload_0 [this]
>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>> 4 areturn
>> Line numbers:
>> [pc: 0, line: 96]
>>
>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>> // Stack: 4, Locals: 3
>> public static sun.misc.URLClassPath getBootstrapClassPath();
>> 0 new sun.security.action.GetPropertyAction [35]
>> 3 dup
>> 4 ldc <String "sun.boot.class.path"> [36]
>> 6 invokespecial
>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>> 9 invokestatic
>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>> : java.lang.Object [38]
>> 12 checkcast java.lang.String [39]
>> 15 astore_0
>> 16 aload_0
>> 17 ifnull 43
>> 20 aload_0
>> 21 astore_2
>> 22 new sun.misc.Launcher$1 [40]
>> 25 dup
>> 26 aload_2
>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>> 30 invokestatic
>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>> : java.lang.Object [38]
>> 33 checkcast java.net.URL[] [42]
>> 36 checkcast java.net.URL[] [42]
>> 39 astore_1
>> 40 goto 48
>> 43 iconst_0
>> 44 anewarray java.net.URL [43]
>> 47 astore_1
>> 48 new sun.misc.URLClassPath [44]
>> 51 dup
>> 52 aload_1
>> 53 getstatic sun.misc.Launcher.factory :
>> java.net.URLStreamHandlerFactory [3]
>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>> java.net.URLStreamHandlerFactory) [45]
>> 59 areturn
>> Line numbers:
>> [pc: 0, line: 319]
>> [pc: 16, line: 321]
>> [pc: 20, line: 322]
>> [pc: 22, line: 323]
>> [pc: 40, line: 330]
>> [pc: 43, line: 331]
>> [pc: 48, line: 333]
>>
>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>> // Stack: 4, Locals: 3
>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>> 0 aload_0 [arg0]
>> 1 arraylength
>> 2 anewarray java.net.URL [43]
>> 5 astore_1
>> 6 iconst_0
>> 7 istore_2
>> 8 iload_2
>> 9 aload_0 [arg0]
>> 10 arraylength
>> 11 if_icmpge 29
>> 14 aload_1
>> 15 iload_2
>> 16 aload_0 [arg0]
>> 17 iload_2
>> 18 aaload
>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>> java.net.URL [46]
>> 22 aastore
>> 23 iinc 2 1
>> 26 goto 8
>> 29 aload_1
>> 30 areturn
>> Line numbers:
>> [pc: 0, line: 337]
>> [pc: 6, line: 338]
>> [pc: 14, line: 339]
>> [pc: 23, line: 338]
>> [pc: 29, line: 345]
>>
>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>> // Stack: 7, Locals: 7
>> private static java.io.File[] getClassPath(java.lang.String arg0);
>> 0 aload_0 [arg0]
>> 1 ifnull 197
>> 4 iconst_0
>> 5 istore_2
>> 6 iconst_1
>> 7 istore_3
>> 8 iconst_0
>> 9 istore 4
>> 11 iconst_0
>> 12 istore 5
>> 14 aload_0 [arg0]
>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>> 18 iload 5
>> 20 invokevirtual java.lang.String.indexOf(java.lang.String, int)
>> : int [48]
>> 23 dup
>> 24 istore 4
>> 26 iconst_m1
>> 27 if_icmpeq 42
>> 30 iinc 3 1
>> 33 iload 4
>> 35 iconst_1
>> 36 iadd
>> 37 istore 5
>> 39 goto 14
>> 42 iload_3
>> 43 anewarray java.io.File [49]
>> 46 astore_1
>> 47 iconst_0
>> 48 dup
>> 49 istore 4
>> 51 istore 5
>> 53 aload_0 [arg0]
>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>> 57 iload 5
>> 59 invokevirtual java.lang.String.indexOf(java.lang.String, int)
>> : int [48]
>> 62 dup
>> 63 istore 4
>> 65 iconst_m1
>> 66 if_icmpeq 125
>> 69 iload 4
>> 71 iload 5
>> 73 isub
>> 74 ifle 101
>> 77 aload_1
>> 78 iload_2
>> 79 iinc 2 1
>> 82 new java.io.File [49]
>> 85 dup
>> 86 aload_0 [arg0]
>> 87 iload 5
>> 89 iload 4
>> 91 invokevirtual java.lang.String.substring(int, int) :
>> java.lang.String [50]
>> 94 invokespecial java.io.File(java.lang.String) [51]
>> 97 aastore
>> 98 goto 116
>> 101 aload_1
>> 102 iload_2
>> 103 iinc 2 1
>> 106 new java.io.File [49]
>> 109 dup
>> 110 ldc <String "."> [52]
>> 112 invokespecial java.io.File(java.lang.String) [51]
>> 115 aastore
>> 116 iload 4
>> 118 iconst_1
>> 119 iadd
>> 120 istore 5
>> 122 goto 53
>> 125 iload 5
>> 127 aload_0 [arg0]
>> 128 invokevirtual java.lang.String.length() : int [53]
>> 131 if_icmpge 156
>> 134 aload_1
>> 135 iload_2
>> 136 iinc 2 1
>> 139 new java.io.File [49]
>> 142 dup
>> 143 aload_0 [arg0]
>> 144 iload 5
>> 146 invokevirtual java.lang.String.substring(int) :
>> java.lang.String [54]
>> 149 invokespecial java.io.File(java.lang.String) [51]
>> 152 aastore
>> 153 goto 171
>> 156 aload_1
>> 157 iload_2
>> 158 iinc 2 1
>> 161 new java.io.File [49]
>> 164 dup
>> 165 ldc <String "."> [52]
>> 167 invokespecial java.io.File(java.lang.String) [51]
>> 170 aastore
>> 171 iload_2
>> 172 iload_3
>> 173 if_icmpeq 194
>> 176 iload_2
>> 177 anewarray java.io.File [49]
>> 180 astore 6
>> 182 aload_1
>> 183 iconst_0
>> 184 aload 6
>> 186 iconst_0
>> 187 iload_2
>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>> int, java.lang.Object, int, int) : void [55]
>> 191 aload 6
>> 193 astore_1
>> 194 goto 202
>> 197 iconst_0
>> 198 anewarray java.io.File [49]
>> 201 astore_1
>> 202 aload_1
>> 203 areturn
>> Line numbers:
>> [pc: 0, line: 350]
>> [pc: 4, line: 351]
>> [pc: 8, line: 352]
>> [pc: 14, line: 354]
>> [pc: 30, line: 355]
>> [pc: 33, line: 356]
>> [pc: 42, line: 358]
>> [pc: 47, line: 359]
>> [pc: 53, line: 361]
>> [pc: 69, line: 362]
>> [pc: 77, line: 363]
>> [pc: 101, line: 366]
>> [pc: 116, line: 368]
>> [pc: 125, line: 371]
>> [pc: 134, line: 372]
>> [pc: 156, line: 374]
>> [pc: 171, line: 377]
>> [pc: 176, line: 378]
>> [pc: 182, line: 379]
>> [pc: 191, line: 380]
>> [pc: 194, line: 382]
>> [pc: 197, line: 383]
>> [pc: 202, line: 389]
>>
>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>> // Stack: 2, Locals: 2
>> static java.net.URL getFileURL(java.io.File arg0);
>> 0 aload_0 [arg0]
>> 1 invokevirtual java.io.File.getCanonicalFile() : java.io.File [56]
>> 4 astore_0 [arg0]
>> 5 goto 9
>> 8 astore_1
>> 9 aload_0 [arg0]
>> 10 invokestatic
>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL [57]
>> 13 areturn
>> 14 astore_1
>> 15 new java.lang.InternalError [8]
>> 18 dup
>> 19 invokespecial java.lang.InternalError() [59]
>> 22 athrow
>> Exception Table:
>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>> Line numbers:
>> [pc: 0, line: 396]
>> [pc: 5, line: 397]
>> [pc: 9, line: 400]
>> [pc: 14, line: 401]
>> [pc: 15, line: 403]
>>
>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>> // Stack: 1, Locals: 0
>> static synthetic java.net.URLStreamHandlerFactory access$100();
>> 0 getstatic sun.misc.Launcher.factory :
>> java.net.URLStreamHandlerFactory [3]
>> 3 areturn
>> Line numbers:
>> [pc: 0, line: 37]
>>
>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>> // Stack: 1, Locals: 1
>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>> 0 aload_0 [arg0]
>> 1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String) :
>> java.io.File[] [2]
>> 4 areturn
>> Line numbers:
>> [pc: 0, line: 37]
>>
>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>> // Stack: 1, Locals: 1
>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>> 0 aload_0 [arg0]
>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>> java.net.URL[] [1]
>> 4 areturn
>> Line numbers:
>> [pc: 0, line: 37]
>>
>> // Method descriptor #84 ()V
>> // Stack: 3, Locals: 0
>> static {};
>> 0 new sun.misc.Launcher$Factory [60]
>> 3 dup
>> 4 aconst_null
>> 5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
>> 8 putstatic sun.misc.Launcher.factory :
>> java.net.URLStreamHandlerFactory [3]
>> 11 new sun.misc.Launcher [62]
>> 14 dup
>> 15 invokespecial sun.misc.Launcher() [63]
>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>> 21 return
>> Line numbers:
>> [pc: 0, line: 38]
>> [pc: 11, line: 39]
>>
>> Inner classes:
>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>> info: #62 sun/misc/Launcher
>> inner name: #65 Factory, accessflags: 10 private static],
>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>> class info: #62 sun/misc/Launcher
>> inner name: #68 AppClassLoader, accessflags: 8 static],
>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>> class info: #62 sun/misc/Launcher
>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>> inner name: #0, accessflags: 8 static]
>>
>> regards
>> Steve
>>
>>
>> Sven Efftinge wrote:
>>> Hi Bill,
>>>
>>> sorry, I've no idea why the workflow terminates silently.
>>> It seems that for some yet unkown reason the exception is not printed
>>> on the console.
>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>> checkbox in the run configuration) in order to find out where, when
>>> and why it terminates?
>>>
>>> Sorry, I couldn't help more.
>>>
>>> Sven
>>>
>>> Bill Hinge schrieb:
>>>> Hi
>>>>
>>>> I originally posted to the tmf newsgroup but I suspect I should have
>>>> posted here? I have been experimenting further and this post is updated
>>>>
>>>> I have created a GMF editor based on multiple linked ecore files and
>>>> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>>>>
>>>> I have set up an action to call a workflow from my GMF UI and it
>>>> appears
>>>> to be configured correctly but doesn't actually produce anything. (ie
>>>> it's called from java using WorkFlowRunner().... The intention is to
>>>> call the workflow on my editor's model files which will be in their own
>>>> project directory.
>>>>
>>>> As part of my testing I'm manually testing by running the workflow from
>>>> the project explorer (right click run as MWE). I have set up a runtime
>>>> config but when I run I get no errors and no output. I get a message
>>>> 'terminated' on top of the console window.
>>>>
>>>> I am also seeing a lot of messages
>>>> "Could not acquire children from extension:
>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>>>> don't seem to timed with my test runs so I'm not sure if they are
>>>> related.
>>>>
>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>
>>>> <?xml version="1.0"?>
>>>> <workflow>
>>>> <property name="workspace_loc" value="./" />
>>>> <property name="eclipse_home" value="../" />
>>>> <property name="model"
>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>> <property name="src-gen"
>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>> <property name="out" value="out" />
>>>>
>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>> <platformUri value="../" />
>>>> <RegisterEcoreFile
>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>> <RegisterEcoreFile
>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>> </bean>
>>>> <component
>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>
>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>> <modelSlot value="model"/>
>>>> <uri value="${model}"/>
>>>> <firstElementOnly value="false" />
>>>> </component>
>>>>
>>>> <component class="org.eclipse.xpand2.Generator">
>>>> <metaModel id="mm"
>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>> <expand value="Demo::Main FOR model" />
>>>> <outlet path="${src-gen}"/>
>>>> </component>
>>>> </workflow>
>>>>
>>>>
>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>
>>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>>> (contract.ecore etc) and I have put a test copy of the GMF editor model
>>>> output default2.ngoss in /templates
>>>>
>>>> (once I get this running manually I'll be using a call from java)
>>>>
>>>>
>>>> When I run the workflow it gets as far as and stops
>>>>
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO:
>>>> ------------------------------------------------------------ --------------------------
>>>>
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO:
>>>> ------------------------------------------------------------ --------------------------
>>>>
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO: running workflow:
>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO:
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>> setPlatformUri
>>>> INFO: Registering platform uri
>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>> addRegisterEcoreFile
>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>> addRegisterEcoreFile
>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
>>>> '..//com.xx.yyy.ui/model/contract.ecore'
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I have the following dependencies in my manifest (belt & braces)
>>>> >
>>>> Require-Bundle: org.eclipse.core.runtime,
>>>> org.eclipse.core.resources,
>>>> org.eclipse.ui,
>>>> org.eclipse.emf.codegen,
>>>> org.eclipse.ui.ide,
>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>> >
>>>>
>>>>
>>>>
>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>>>> tried various combinations of the above but am stuck. Any idea what I'm
>>>> doing wrong please?
>>>>
>>>> regards
>>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #137842 is a reply to message #137824] |
Tue, 30 June 2009 20:51 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Sorry to answer my own post, hopefully someone may find it useful in
future!
The reason for the error below was that I was was linking by reference
to uml.ecore and ecore.ecore and some attributes were badly set as uml
definition of string as opposed to ecore string. A quick edit of the
attribute type in the local ecore fixed that problem as a workaround.
There were some other later issues with other namespaces not being found
so I just added them via multiple calls of RegisterEcoreFile.
However, since this is a mixed model and diagram file containing both
model and GMF diagram info the workflow is now looking for
Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation' not
found
as this is referenced in the gmf output file default2.ngoss
Haven't worked out this one yet , any hints?
steve
Bill Hinge wrote:
> To clarify, TestModel referred to below is a string value defined by my
> ecore files as a legal String, it was created by my GMF-EMF editor so I
> would be surprised if it weren't legal. Hence my question as to what
> Reader I should use?
>
> Anyhow, made some progress I'm now failing on the Reader
>
> steve
>
> Bill Hinge wrote:
>> Sven
>>
>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>
>> if I add to my dependencies I now get
>>
>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>> 'TestModel' is not legal.
>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>> 4, 105)
>>
>>
>> Should I be using a different Reader/Generator?
>> (This is a single file GMF-EMF editor)
>>
>>
>> regards
>> Steve
>>
>>
>> Bill Hinge wrote:
>>> Hi Sven
>>>
>>>
>>> I just tried this, must have had some fat fingered gremlins before cause
>>> it kept crashing
>>>
>>> works now...
>>>
>>> I get a classloader error -- source not found
>>>
>>>
>>> } finally {
>>> if (isChildmost) {
>>> childmostCaller.remove();
>>>
>>> if ((c != null) && name.startsWith("org.apache.") &&
>>> ( name.startsWith("org.apache.crimson.") ||
>>> name.startsWith("org.apache.xalan.") ||
>>> name.startsWith("org.apache.xml.") ||
>>> name.startsWith("org.apache.xpath.") ) ) {
>>> AccessController.doPrivileged(new
>>> PrivilegedAction() {
>>> public Object
>>> run() { return
>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ", "true");
>>> }});
>>> }
>>> }
>>> // MacOSX Change END
>>> }
>>> }
>>>
>>>
>>>
>>> and ...
>>>
>>>
>>>
>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>> public class sun.misc.Launcher {
>>>
>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>> private static java.net.URLStreamHandlerFactory factory;
>>>
>>> // Field descriptor #74 Lsun/misc/Launcher;
>>> private static sun.misc.Launcher launcher;
>>>
>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>> private java.lang.ClassLoader loader;
>>>
>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>> private static java.net.URLStreamHandler fileHandler;
>>>
>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>> // Stack: 1, Locals: 0
>>> public static sun.misc.Launcher getLauncher();
>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>> 3 areturn
>>> Line numbers:
>>> [pc: 0, line: 42]
>>>
>>> // Method descriptor #84 ()V
>>> // Stack: 4, Locals: 5
>>> public Launcher();
>>> 0 aload_0 [this]
>>> 1 invokespecial java.lang.Object() [5]
>>> 4 invokestatic
>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>> sun.misc.Launcher$ExtClassLoader [6]
>>> 7 astore_1
>>> 8 goto 22
>>> 11 astore_2
>>> 12 new java.lang.InternalError [8]
>>> 15 dup
>>> 16 ldc <String "Could not create extension class loader"> [9]
>>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>>> 21 athrow
>>> 22 aload_0 [this]
>>> 23 aload_1
>>> 24 invokestatic
>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>> : java.lang.ClassLoader [11]
>>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>> 30 goto 44
>>> 33 astore_2
>>> 34 new java.lang.InternalError [8]
>>> 37 dup
>>> 38 ldc <String "Could not create application class loader"> [13]
>>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>>> 43 athrow
>>> 44 invokestatic java.lang.Thread.currentThread() :
>>> java.lang.Thread [14]
>>> 47 aload_0 [this]
>>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>> 51 invokevirtual
>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void
>>> [15]
>>> 54 ldc <String "java.security.manager"> [16]
>>> 56 invokestatic java.lang.System.getProperty(java.lang.String)
>>> : java.lang.String [17]
>>> 59 astore_2
>>> 60 aload_2
>>> 61 ifnull 168
>>> 64 aconst_null
>>> 65 astore_3
>>> 66 ldc <String ""> [18]
>>> 68 aload_2
>>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>>> boolean [19]
>>> 72 ifne 84
>>> 75 ldc <String "default"> [20]
>>> 77 aload_2
>>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>>> boolean [19]
>>> 81 ifeq 95
>>> 84 new java.lang.SecurityManager [21]
>>> 87 dup
>>> 88 invokespecial java.lang.SecurityManager() [22]
>>> 91 astore_3
>>> 92 goto 130
>>> 95 aload_0 [this]
>>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>> 99 aload_2
>>> 100 invokevirtual
>>> java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class [23]
>>> 103 invokevirtual java.lang.Class.newInstance() :
>>> java.lang.Object [24]
>>> 106 checkcast java.lang.SecurityManager [21]
>>> 109 astore_3
>>> 110 goto 130
>>> 113 astore 4
>>> 115 goto 130
>>> 118 astore 4
>>> 120 goto 130
>>> 123 astore 4
>>> 125 goto 130
>>> 128 astore 4
>>> 130 aload_3
>>> 131 ifnull 141
>>> 134 aload_3
>>> 135 invokestatic
>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) : void
>>> [29]
>>> 138 goto 168
>>> 141 new java.lang.InternalError [8]
>>> 144 dup
>>> 145 new java.lang.StringBuilder [30]
>>> 148 dup
>>> 149 invokespecial java.lang.StringBuilder() [31]
>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>> 154 invokevirtual
>>> java.lang.StringBuilder.append(java.lang.String) :
>>> java.lang.StringBuilder [33]
>>> 157 aload_2
>>> 158 invokevirtual
>>> java.lang.StringBuilder.append(java.lang.String) :
>>> java.lang.StringBuilder [33]
>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>> java.lang.String [34]
>>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>>> 167 athrow
>>> 168 return
>>> Exception Table:
>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>> [pc: 95, pc: 110] -> 113 when : java.lang.IllegalAccessException
>>> [pc: 95, pc: 110] -> 118 when : java.lang.InstantiationException
>>> [pc: 95, pc: 110] -> 123 when : java.lang.ClassNotFoundException
>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>> Line numbers:
>>> [pc: 0, line: 47]
>>> [pc: 4, line: 51]
>>> [pc: 8, line: 55]
>>> [pc: 11, line: 52]
>>> [pc: 12, line: 53]
>>> [pc: 22, line: 59]
>>> [pc: 30, line: 63]
>>> [pc: 33, line: 60]
>>> [pc: 34, line: 61]
>>> [pc: 44, line: 66]
>>> [pc: 54, line: 69]
>>> [pc: 60, line: 70]
>>> [pc: 64, line: 71]
>>> [pc: 66, line: 72]
>>> [pc: 84, line: 73]
>>> [pc: 95, line: 76]
>>> [pc: 110, line: 81]
>>> [pc: 113, line: 77]
>>> [pc: 115, line: 81]
>>> [pc: 118, line: 78]
>>> [pc: 120, line: 81]
>>> [pc: 123, line: 79]
>>> [pc: 125, line: 81]
>>> [pc: 128, line: 80]
>>> [pc: 130, line: 83]
>>> [pc: 134, line: 84]
>>> [pc: 141, line: 86]
>>> [pc: 168, line: 90]
>>>
>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>> // Stack: 1, Locals: 1
>>> public java.lang.ClassLoader getClassLoader();
>>> 0 aload_0 [this]
>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>> 4 areturn
>>> Line numbers:
>>> [pc: 0, line: 96]
>>>
>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>> // Stack: 4, Locals: 3
>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>> 0 new sun.security.action.GetPropertyAction [35]
>>> 3 dup
>>> 4 ldc <String "sun.boot.class.path"> [36]
>>> 6 invokespecial
>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>> 9 invokestatic
>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>> : java.lang.Object [38]
>>> 12 checkcast java.lang.String [39]
>>> 15 astore_0
>>> 16 aload_0
>>> 17 ifnull 43
>>> 20 aload_0
>>> 21 astore_2
>>> 22 new sun.misc.Launcher$1 [40]
>>> 25 dup
>>> 26 aload_2
>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>> 30 invokestatic
>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>> : java.lang.Object [38]
>>> 33 checkcast java.net.URL[] [42]
>>> 36 checkcast java.net.URL[] [42]
>>> 39 astore_1
>>> 40 goto 48
>>> 43 iconst_0
>>> 44 anewarray java.net.URL [43]
>>> 47 astore_1
>>> 48 new sun.misc.URLClassPath [44]
>>> 51 dup
>>> 52 aload_1
>>> 53 getstatic sun.misc.Launcher.factory :
>>> java.net.URLStreamHandlerFactory [3]
>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>> java.net.URLStreamHandlerFactory) [45]
>>> 59 areturn
>>> Line numbers:
>>> [pc: 0, line: 319]
>>> [pc: 16, line: 321]
>>> [pc: 20, line: 322]
>>> [pc: 22, line: 323]
>>> [pc: 40, line: 330]
>>> [pc: 43, line: 331]
>>> [pc: 48, line: 333]
>>>
>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>> // Stack: 4, Locals: 3
>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>> 0 aload_0 [arg0]
>>> 1 arraylength
>>> 2 anewarray java.net.URL [43]
>>> 5 astore_1
>>> 6 iconst_0
>>> 7 istore_2
>>> 8 iload_2
>>> 9 aload_0 [arg0]
>>> 10 arraylength
>>> 11 if_icmpge 29
>>> 14 aload_1
>>> 15 iload_2
>>> 16 aload_0 [arg0]
>>> 17 iload_2
>>> 18 aaload
>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>> java.net.URL [46]
>>> 22 aastore
>>> 23 iinc 2 1
>>> 26 goto 8
>>> 29 aload_1
>>> 30 areturn
>>> Line numbers:
>>> [pc: 0, line: 337]
>>> [pc: 6, line: 338]
>>> [pc: 14, line: 339]
>>> [pc: 23, line: 338]
>>> [pc: 29, line: 345]
>>>
>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>> // Stack: 7, Locals: 7
>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>> 0 aload_0 [arg0]
>>> 1 ifnull 197
>>> 4 iconst_0
>>> 5 istore_2
>>> 6 iconst_1
>>> 7 istore_3
>>> 8 iconst_0
>>> 9 istore 4
>>> 11 iconst_0
>>> 12 istore 5
>>> 14 aload_0 [arg0]
>>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>> 18 iload 5
>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>> int) : int [48]
>>> 23 dup
>>> 24 istore 4
>>> 26 iconst_m1
>>> 27 if_icmpeq 42
>>> 30 iinc 3 1
>>> 33 iload 4
>>> 35 iconst_1
>>> 36 iadd
>>> 37 istore 5
>>> 39 goto 14
>>> 42 iload_3
>>> 43 anewarray java.io.File [49]
>>> 46 astore_1
>>> 47 iconst_0
>>> 48 dup
>>> 49 istore 4
>>> 51 istore 5
>>> 53 aload_0 [arg0]
>>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>> 57 iload 5
>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>> int) : int [48]
>>> 62 dup
>>> 63 istore 4
>>> 65 iconst_m1
>>> 66 if_icmpeq 125
>>> 69 iload 4
>>> 71 iload 5
>>> 73 isub
>>> 74 ifle 101
>>> 77 aload_1
>>> 78 iload_2
>>> 79 iinc 2 1
>>> 82 new java.io.File [49]
>>> 85 dup
>>> 86 aload_0 [arg0]
>>> 87 iload 5
>>> 89 iload 4
>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>> java.lang.String [50]
>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>> 97 aastore
>>> 98 goto 116
>>> 101 aload_1
>>> 102 iload_2
>>> 103 iinc 2 1
>>> 106 new java.io.File [49]
>>> 109 dup
>>> 110 ldc <String "."> [52]
>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>> 115 aastore
>>> 116 iload 4
>>> 118 iconst_1
>>> 119 iadd
>>> 120 istore 5
>>> 122 goto 53
>>> 125 iload 5
>>> 127 aload_0 [arg0]
>>> 128 invokevirtual java.lang.String.length() : int [53]
>>> 131 if_icmpge 156
>>> 134 aload_1
>>> 135 iload_2
>>> 136 iinc 2 1
>>> 139 new java.io.File [49]
>>> 142 dup
>>> 143 aload_0 [arg0]
>>> 144 iload 5
>>> 146 invokevirtual java.lang.String.substring(int) :
>>> java.lang.String [54]
>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>> 152 aastore
>>> 153 goto 171
>>> 156 aload_1
>>> 157 iload_2
>>> 158 iinc 2 1
>>> 161 new java.io.File [49]
>>> 164 dup
>>> 165 ldc <String "."> [52]
>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>> 170 aastore
>>> 171 iload_2
>>> 172 iload_3
>>> 173 if_icmpeq 194
>>> 176 iload_2
>>> 177 anewarray java.io.File [49]
>>> 180 astore 6
>>> 182 aload_1
>>> 183 iconst_0
>>> 184 aload 6
>>> 186 iconst_0
>>> 187 iload_2
>>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>>> int, java.lang.Object, int, int) : void [55]
>>> 191 aload 6
>>> 193 astore_1
>>> 194 goto 202
>>> 197 iconst_0
>>> 198 anewarray java.io.File [49]
>>> 201 astore_1
>>> 202 aload_1
>>> 203 areturn
>>> Line numbers:
>>> [pc: 0, line: 350]
>>> [pc: 4, line: 351]
>>> [pc: 8, line: 352]
>>> [pc: 14, line: 354]
>>> [pc: 30, line: 355]
>>> [pc: 33, line: 356]
>>> [pc: 42, line: 358]
>>> [pc: 47, line: 359]
>>> [pc: 53, line: 361]
>>> [pc: 69, line: 362]
>>> [pc: 77, line: 363]
>>> [pc: 101, line: 366]
>>> [pc: 116, line: 368]
>>> [pc: 125, line: 371]
>>> [pc: 134, line: 372]
>>> [pc: 156, line: 374]
>>> [pc: 171, line: 377]
>>> [pc: 176, line: 378]
>>> [pc: 182, line: 379]
>>> [pc: 191, line: 380]
>>> [pc: 194, line: 382]
>>> [pc: 197, line: 383]
>>> [pc: 202, line: 389]
>>>
>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>> // Stack: 2, Locals: 2
>>> static java.net.URL getFileURL(java.io.File arg0);
>>> 0 aload_0 [arg0]
>>> 1 invokevirtual java.io.File.getCanonicalFile() : java.io.File
>>> [56]
>>> 4 astore_0 [arg0]
>>> 5 goto 9
>>> 8 astore_1
>>> 9 aload_0 [arg0]
>>> 10 invokestatic
>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL [57]
>>> 13 areturn
>>> 14 astore_1
>>> 15 new java.lang.InternalError [8]
>>> 18 dup
>>> 19 invokespecial java.lang.InternalError() [59]
>>> 22 athrow
>>> Exception Table:
>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>> Line numbers:
>>> [pc: 0, line: 396]
>>> [pc: 5, line: 397]
>>> [pc: 9, line: 400]
>>> [pc: 14, line: 401]
>>> [pc: 15, line: 403]
>>>
>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>> // Stack: 1, Locals: 0
>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>> 0 getstatic sun.misc.Launcher.factory :
>>> java.net.URLStreamHandlerFactory [3]
>>> 3 areturn
>>> Line numbers:
>>> [pc: 0, line: 37]
>>>
>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>> // Stack: 1, Locals: 1
>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>> 0 aload_0 [arg0]
>>> 1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String)
>>> : java.io.File[] [2]
>>> 4 areturn
>>> Line numbers:
>>> [pc: 0, line: 37]
>>>
>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>> // Stack: 1, Locals: 1
>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>> 0 aload_0 [arg0]
>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>>> java.net.URL[] [1]
>>> 4 areturn
>>> Line numbers:
>>> [pc: 0, line: 37]
>>>
>>> // Method descriptor #84 ()V
>>> // Stack: 3, Locals: 0
>>> static {};
>>> 0 new sun.misc.Launcher$Factory [60]
>>> 3 dup
>>> 4 aconst_null
>>> 5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1)
>>> [61]
>>> 8 putstatic sun.misc.Launcher.factory :
>>> java.net.URLStreamHandlerFactory [3]
>>> 11 new sun.misc.Launcher [62]
>>> 14 dup
>>> 15 invokespecial sun.misc.Launcher() [63]
>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>> 21 return
>>> Line numbers:
>>> [pc: 0, line: 38]
>>> [pc: 11, line: 39]
>>>
>>> Inner classes:
>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>> info: #62 sun/misc/Launcher
>>> inner name: #65 Factory, accessflags: 10 private static],
>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>>> class info: #62 sun/misc/Launcher
>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>>> class info: #62 sun/misc/Launcher
>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>> inner name: #0, accessflags: 8 static]
>>>
>>> regards
>>> Steve
>>>
>>>
>>> Sven Efftinge wrote:
>>>> Hi Bill,
>>>>
>>>> sorry, I've no idea why the workflow terminates silently.
>>>> It seems that for some yet unkown reason the exception is not
>>>> printed on the console.
>>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>>> checkbox in the run configuration) in order to find out where, when
>>>> and why it terminates?
>>>>
>>>> Sorry, I couldn't help more.
>>>>
>>>> Sven
>>>>
>>>> Bill Hinge schrieb:
>>>>> Hi
>>>>>
>>>>> I originally posted to the tmf newsgroup but I suspect I should have
>>>>> posted here? I have been experimenting further and this post is
>>>>> updated
>>>>>
>>>>> I have created a GMF editor based on multiple linked ecore files and
>>>>> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>>>>>
>>>>> I have set up an action to call a workflow from my GMF UI and it
>>>>> appears
>>>>> to be configured correctly but doesn't actually produce anything. (ie
>>>>> it's called from java using WorkFlowRunner().... The intention is to
>>>>> call the workflow on my editor's model files which will be in their
>>>>> own
>>>>> project directory.
>>>>>
>>>>> As part of my testing I'm manually testing by running the workflow
>>>>> from
>>>>> the project explorer (right click run as MWE). I have set up a runtime
>>>>> config but when I run I get no errors and no output. I get a message
>>>>> 'terminated' on top of the console window.
>>>>>
>>>>> I am also seeing a lot of messages
>>>>> "Could not acquire children from extension:
>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>>>>> don't seem to timed with my test runs so I'm not sure if they are
>>>>> related.
>>>>>
>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>
>>>>> <?xml version="1.0"?>
>>>>> <workflow>
>>>>> <property name="workspace_loc" value="./" />
>>>>> <property name="eclipse_home" value="../" />
>>>>> <property name="model"
>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>> <property name="src-gen"
>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>> <property name="out" value="out" />
>>>>>
>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>> <platformUri value="../" />
>>>>> <RegisterEcoreFile
>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>> <RegisterEcoreFile
>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>> </bean>
>>>>> <component
>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>
>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>> <modelSlot value="model"/>
>>>>> <uri value="${model}"/>
>>>>> <firstElementOnly value="false" />
>>>>> </component>
>>>>>
>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>> <metaModel id="mm"
>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>> <expand value="Demo::Main FOR model" />
>>>>> <outlet path="${src-gen}"/>
>>>>> </component>
>>>>> </workflow>
>>>>>
>>>>>
>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>
>>>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>>>> (contract.ecore etc) and I have put a test copy of the GMF editor
>>>>> model
>>>>> output default2.ngoss in /templates
>>>>>
>>>>> (once I get this running manually I'll be using a call from java)
>>>>>
>>>>>
>>>>> When I run the workflow it gets as far as and stops
>>>>>
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO:
>>>>> ------------------------------------------------------------ --------------------------
>>>>>
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO:
>>>>> ------------------------------------------------------------ --------------------------
>>>>>
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO: running workflow:
>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO:
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>> setPlatformUri
>>>>> INFO: Registering platform uri
>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>> addRegisterEcoreFile
>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>> addRegisterEcoreFile
>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>> >
>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>> org.eclipse.core.resources,
>>>>> org.eclipse.ui,
>>>>> org.eclipse.emf.codegen,
>>>>> org.eclipse.ui.ide,
>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>>>>> tried various combinations of the above but am stuck. Any idea what
>>>>> I'm
>>>>> doing wrong please?
>>>>>
>>>>> regards
>>>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #137856 is a reply to message #137842] |
Wed, 01 July 2009 00:19 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
For now I have cheated and copied notation.ecore to my local directory
and put a reference to it
<RegisterEcoreFile
value="${eclipse_home}/com.xx.yyy.ui/model/notation.ecore"/ >
obviously not very elegant but it works, the following didn't though
<uriMap
from="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
to=" platform:/plugin/org.eclipse.gmf.runtime.notation.notation.e core "/>
Bill Hinge wrote:
> Sorry to answer my own post, hopefully someone may find it useful in
> future!
>
> The reason for the error below was that I was was linking by reference
> to uml.ecore and ecore.ecore and some attributes were badly set as uml
> definition of string as opposed to ecore string. A quick edit of the
> attribute type in the local ecore fixed that problem as a workaround.
>
>
> There were some other later issues with other namespaces not being found
> so I just added them via multiple calls of RegisterEcoreFile.
>
>
> However, since this is a mixed model and diagram file containing both
> model and GMF diagram info the workflow is now looking for
>
> Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation' not
> found
>
> as this is referenced in the gmf output file default2.ngoss
>
> Haven't worked out this one yet , any hints?
>
> steve
>
> Bill Hinge wrote:
>> To clarify, TestModel referred to below is a string value defined by my
>> ecore files as a legal String, it was created by my GMF-EMF editor so I
>> would be surprised if it weren't legal. Hence my question as to what
>> Reader I should use?
>>
>> Anyhow, made some progress I'm now failing on the Reader
>>
>> steve
>>
>> Bill Hinge wrote:
>>> Sven
>>>
>>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>>
>>> if I add to my dependencies I now get
>>>
>>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>>> 'TestModel' is not legal.
>>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>>> 4, 105)
>>>
>>>
>>> Should I be using a different Reader/Generator?
>>> (This is a single file GMF-EMF editor)
>>>
>>>
>>> regards
>>> Steve
>>>
>>>
>>> Bill Hinge wrote:
>>>> Hi Sven
>>>>
>>>>
>>>> I just tried this, must have had some fat fingered gremlins before
>>>> cause
>>>> it kept crashing
>>>>
>>>> works now...
>>>>
>>>> I get a classloader error -- source not found
>>>>
>>>>
>>>> } finally {
>>>> if (isChildmost) {
>>>> childmostCaller.remove();
>>>>
>>>> if ((c != null) && name.startsWith("org.apache.") &&
>>>> ( name.startsWith("org.apache.crimson.") ||
>>>> name.startsWith("org.apache.xalan.") ||
>>>> name.startsWith("org.apache.xml.") ||
>>>> name.startsWith("org.apache.xpath.") ) ) {
>>>> AccessController.doPrivileged(new
>>>> PrivilegedAction() {
>>>> public Object
>>>> run() { return
>>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ", "true");
>>>> }});
>>>> }
>>>> }
>>>> // MacOSX Change END
>>>> }
>>>> }
>>>>
>>>>
>>>>
>>>> and ...
>>>>
>>>>
>>>>
>>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>>> public class sun.misc.Launcher {
>>>>
>>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>>> private static java.net.URLStreamHandlerFactory factory;
>>>>
>>>> // Field descriptor #74 Lsun/misc/Launcher;
>>>> private static sun.misc.Launcher launcher;
>>>>
>>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>>> private java.lang.ClassLoader loader;
>>>>
>>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>>> private static java.net.URLStreamHandler fileHandler;
>>>>
>>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>>> // Stack: 1, Locals: 0
>>>> public static sun.misc.Launcher getLauncher();
>>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>> 3 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 42]
>>>>
>>>> // Method descriptor #84 ()V
>>>> // Stack: 4, Locals: 5
>>>> public Launcher();
>>>> 0 aload_0 [this]
>>>> 1 invokespecial java.lang.Object() [5]
>>>> 4 invokestatic
>>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>>> sun.misc.Launcher$ExtClassLoader [6]
>>>> 7 astore_1
>>>> 8 goto 22
>>>> 11 astore_2
>>>> 12 new java.lang.InternalError [8]
>>>> 15 dup
>>>> 16 ldc <String "Could not create extension class loader"> [9]
>>>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>> 21 athrow
>>>> 22 aload_0 [this]
>>>> 23 aload_1
>>>> 24 invokestatic
>>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>>> : java.lang.ClassLoader [11]
>>>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>> 30 goto 44
>>>> 33 astore_2
>>>> 34 new java.lang.InternalError [8]
>>>> 37 dup
>>>> 38 ldc <String "Could not create application class loader"> [13]
>>>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>> 43 athrow
>>>> 44 invokestatic java.lang.Thread.currentThread() :
>>>> java.lang.Thread [14]
>>>> 47 aload_0 [this]
>>>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>> 51 invokevirtual
>>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void
>>>> [15]
>>>> 54 ldc <String "java.security.manager"> [16]
>>>> 56 invokestatic java.lang.System.getProperty(java.lang.String)
>>>> : java.lang.String [17]
>>>> 59 astore_2
>>>> 60 aload_2
>>>> 61 ifnull 168
>>>> 64 aconst_null
>>>> 65 astore_3
>>>> 66 ldc <String ""> [18]
>>>> 68 aload_2
>>>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>> boolean [19]
>>>> 72 ifne 84
>>>> 75 ldc <String "default"> [20]
>>>> 77 aload_2
>>>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>> boolean [19]
>>>> 81 ifeq 95
>>>> 84 new java.lang.SecurityManager [21]
>>>> 87 dup
>>>> 88 invokespecial java.lang.SecurityManager() [22]
>>>> 91 astore_3
>>>> 92 goto 130
>>>> 95 aload_0 [this]
>>>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>> 99 aload_2
>>>> 100 invokevirtual
>>>> java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class
>>>> [23]
>>>> 103 invokevirtual java.lang.Class.newInstance() :
>>>> java.lang.Object [24]
>>>> 106 checkcast java.lang.SecurityManager [21]
>>>> 109 astore_3
>>>> 110 goto 130
>>>> 113 astore 4
>>>> 115 goto 130
>>>> 118 astore 4
>>>> 120 goto 130
>>>> 123 astore 4
>>>> 125 goto 130
>>>> 128 astore 4
>>>> 130 aload_3
>>>> 131 ifnull 141
>>>> 134 aload_3
>>>> 135 invokestatic
>>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) :
>>>> void [29]
>>>> 138 goto 168
>>>> 141 new java.lang.InternalError [8]
>>>> 144 dup
>>>> 145 new java.lang.StringBuilder [30]
>>>> 148 dup
>>>> 149 invokespecial java.lang.StringBuilder() [31]
>>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>>> 154 invokevirtual
>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>> java.lang.StringBuilder [33]
>>>> 157 aload_2
>>>> 158 invokevirtual
>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>> java.lang.StringBuilder [33]
>>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>>> java.lang.String [34]
>>>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>> 167 athrow
>>>> 168 return
>>>> Exception Table:
>>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>>> [pc: 95, pc: 110] -> 113 when :
>>>> java.lang.IllegalAccessException
>>>> [pc: 95, pc: 110] -> 118 when :
>>>> java.lang.InstantiationException
>>>> [pc: 95, pc: 110] -> 123 when :
>>>> java.lang.ClassNotFoundException
>>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>>> Line numbers:
>>>> [pc: 0, line: 47]
>>>> [pc: 4, line: 51]
>>>> [pc: 8, line: 55]
>>>> [pc: 11, line: 52]
>>>> [pc: 12, line: 53]
>>>> [pc: 22, line: 59]
>>>> [pc: 30, line: 63]
>>>> [pc: 33, line: 60]
>>>> [pc: 34, line: 61]
>>>> [pc: 44, line: 66]
>>>> [pc: 54, line: 69]
>>>> [pc: 60, line: 70]
>>>> [pc: 64, line: 71]
>>>> [pc: 66, line: 72]
>>>> [pc: 84, line: 73]
>>>> [pc: 95, line: 76]
>>>> [pc: 110, line: 81]
>>>> [pc: 113, line: 77]
>>>> [pc: 115, line: 81]
>>>> [pc: 118, line: 78]
>>>> [pc: 120, line: 81]
>>>> [pc: 123, line: 79]
>>>> [pc: 125, line: 81]
>>>> [pc: 128, line: 80]
>>>> [pc: 130, line: 83]
>>>> [pc: 134, line: 84]
>>>> [pc: 141, line: 86]
>>>> [pc: 168, line: 90]
>>>>
>>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>>> // Stack: 1, Locals: 1
>>>> public java.lang.ClassLoader getClassLoader();
>>>> 0 aload_0 [this]
>>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>> 4 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 96]
>>>>
>>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>>> // Stack: 4, Locals: 3
>>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>>> 0 new sun.security.action.GetPropertyAction [35]
>>>> 3 dup
>>>> 4 ldc <String "sun.boot.class.path"> [36]
>>>> 6 invokespecial
>>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>>> 9 invokestatic
>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>> : java.lang.Object [38]
>>>> 12 checkcast java.lang.String [39]
>>>> 15 astore_0
>>>> 16 aload_0
>>>> 17 ifnull 43
>>>> 20 aload_0
>>>> 21 astore_2
>>>> 22 new sun.misc.Launcher$1 [40]
>>>> 25 dup
>>>> 26 aload_2
>>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>>> 30 invokestatic
>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>> : java.lang.Object [38]
>>>> 33 checkcast java.net.URL[] [42]
>>>> 36 checkcast java.net.URL[] [42]
>>>> 39 astore_1
>>>> 40 goto 48
>>>> 43 iconst_0
>>>> 44 anewarray java.net.URL [43]
>>>> 47 astore_1
>>>> 48 new sun.misc.URLClassPath [44]
>>>> 51 dup
>>>> 52 aload_1
>>>> 53 getstatic sun.misc.Launcher.factory :
>>>> java.net.URLStreamHandlerFactory [3]
>>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>>> java.net.URLStreamHandlerFactory) [45]
>>>> 59 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 319]
>>>> [pc: 16, line: 321]
>>>> [pc: 20, line: 322]
>>>> [pc: 22, line: 323]
>>>> [pc: 40, line: 330]
>>>> [pc: 43, line: 331]
>>>> [pc: 48, line: 333]
>>>>
>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>> // Stack: 4, Locals: 3
>>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 arraylength
>>>> 2 anewarray java.net.URL [43]
>>>> 5 astore_1
>>>> 6 iconst_0
>>>> 7 istore_2
>>>> 8 iload_2
>>>> 9 aload_0 [arg0]
>>>> 10 arraylength
>>>> 11 if_icmpge 29
>>>> 14 aload_1
>>>> 15 iload_2
>>>> 16 aload_0 [arg0]
>>>> 17 iload_2
>>>> 18 aaload
>>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>>> java.net.URL [46]
>>>> 22 aastore
>>>> 23 iinc 2 1
>>>> 26 goto 8
>>>> 29 aload_1
>>>> 30 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 337]
>>>> [pc: 6, line: 338]
>>>> [pc: 14, line: 339]
>>>> [pc: 23, line: 338]
>>>> [pc: 29, line: 345]
>>>>
>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>> // Stack: 7, Locals: 7
>>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 ifnull 197
>>>> 4 iconst_0
>>>> 5 istore_2
>>>> 6 iconst_1
>>>> 7 istore_3
>>>> 8 iconst_0
>>>> 9 istore 4
>>>> 11 iconst_0
>>>> 12 istore 5
>>>> 14 aload_0 [arg0]
>>>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>> 18 iload 5
>>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>> int) : int [48]
>>>> 23 dup
>>>> 24 istore 4
>>>> 26 iconst_m1
>>>> 27 if_icmpeq 42
>>>> 30 iinc 3 1
>>>> 33 iload 4
>>>> 35 iconst_1
>>>> 36 iadd
>>>> 37 istore 5
>>>> 39 goto 14
>>>> 42 iload_3
>>>> 43 anewarray java.io.File [49]
>>>> 46 astore_1
>>>> 47 iconst_0
>>>> 48 dup
>>>> 49 istore 4
>>>> 51 istore 5
>>>> 53 aload_0 [arg0]
>>>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>> 57 iload 5
>>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>> int) : int [48]
>>>> 62 dup
>>>> 63 istore 4
>>>> 65 iconst_m1
>>>> 66 if_icmpeq 125
>>>> 69 iload 4
>>>> 71 iload 5
>>>> 73 isub
>>>> 74 ifle 101
>>>> 77 aload_1
>>>> 78 iload_2
>>>> 79 iinc 2 1
>>>> 82 new java.io.File [49]
>>>> 85 dup
>>>> 86 aload_0 [arg0]
>>>> 87 iload 5
>>>> 89 iload 4
>>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>>> java.lang.String [50]
>>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>>> 97 aastore
>>>> 98 goto 116
>>>> 101 aload_1
>>>> 102 iload_2
>>>> 103 iinc 2 1
>>>> 106 new java.io.File [49]
>>>> 109 dup
>>>> 110 ldc <String "."> [52]
>>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>>> 115 aastore
>>>> 116 iload 4
>>>> 118 iconst_1
>>>> 119 iadd
>>>> 120 istore 5
>>>> 122 goto 53
>>>> 125 iload 5
>>>> 127 aload_0 [arg0]
>>>> 128 invokevirtual java.lang.String.length() : int [53]
>>>> 131 if_icmpge 156
>>>> 134 aload_1
>>>> 135 iload_2
>>>> 136 iinc 2 1
>>>> 139 new java.io.File [49]
>>>> 142 dup
>>>> 143 aload_0 [arg0]
>>>> 144 iload 5
>>>> 146 invokevirtual java.lang.String.substring(int) :
>>>> java.lang.String [54]
>>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>>> 152 aastore
>>>> 153 goto 171
>>>> 156 aload_1
>>>> 157 iload_2
>>>> 158 iinc 2 1
>>>> 161 new java.io.File [49]
>>>> 164 dup
>>>> 165 ldc <String "."> [52]
>>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>>> 170 aastore
>>>> 171 iload_2
>>>> 172 iload_3
>>>> 173 if_icmpeq 194
>>>> 176 iload_2
>>>> 177 anewarray java.io.File [49]
>>>> 180 astore 6
>>>> 182 aload_1
>>>> 183 iconst_0
>>>> 184 aload 6
>>>> 186 iconst_0
>>>> 187 iload_2
>>>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>>>> int, java.lang.Object, int, int) : void [55]
>>>> 191 aload 6
>>>> 193 astore_1
>>>> 194 goto 202
>>>> 197 iconst_0
>>>> 198 anewarray java.io.File [49]
>>>> 201 astore_1
>>>> 202 aload_1
>>>> 203 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 350]
>>>> [pc: 4, line: 351]
>>>> [pc: 8, line: 352]
>>>> [pc: 14, line: 354]
>>>> [pc: 30, line: 355]
>>>> [pc: 33, line: 356]
>>>> [pc: 42, line: 358]
>>>> [pc: 47, line: 359]
>>>> [pc: 53, line: 361]
>>>> [pc: 69, line: 362]
>>>> [pc: 77, line: 363]
>>>> [pc: 101, line: 366]
>>>> [pc: 116, line: 368]
>>>> [pc: 125, line: 371]
>>>> [pc: 134, line: 372]
>>>> [pc: 156, line: 374]
>>>> [pc: 171, line: 377]
>>>> [pc: 176, line: 378]
>>>> [pc: 182, line: 379]
>>>> [pc: 191, line: 380]
>>>> [pc: 194, line: 382]
>>>> [pc: 197, line: 383]
>>>> [pc: 202, line: 389]
>>>>
>>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>>> // Stack: 2, Locals: 2
>>>> static java.net.URL getFileURL(java.io.File arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 invokevirtual java.io.File.getCanonicalFile() : java.io.File
>>>> [56]
>>>> 4 astore_0 [arg0]
>>>> 5 goto 9
>>>> 8 astore_1
>>>> 9 aload_0 [arg0]
>>>> 10 invokestatic
>>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL
>>>> [57]
>>>> 13 areturn
>>>> 14 astore_1
>>>> 15 new java.lang.InternalError [8]
>>>> 18 dup
>>>> 19 invokespecial java.lang.InternalError() [59]
>>>> 22 athrow
>>>> Exception Table:
>>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>>> Line numbers:
>>>> [pc: 0, line: 396]
>>>> [pc: 5, line: 397]
>>>> [pc: 9, line: 400]
>>>> [pc: 14, line: 401]
>>>> [pc: 15, line: 403]
>>>>
>>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>>> // Stack: 1, Locals: 0
>>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>>> 0 getstatic sun.misc.Launcher.factory :
>>>> java.net.URLStreamHandlerFactory [3]
>>>> 3 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 37]
>>>>
>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>> // Stack: 1, Locals: 1
>>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String)
>>>> : java.io.File[] [2]
>>>> 4 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 37]
>>>>
>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>> // Stack: 1, Locals: 1
>>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>>>> java.net.URL[] [1]
>>>> 4 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 37]
>>>>
>>>> // Method descriptor #84 ()V
>>>> // Stack: 3, Locals: 0
>>>> static {};
>>>> 0 new sun.misc.Launcher$Factory [60]
>>>> 3 dup
>>>> 4 aconst_null
>>>> 5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1)
>>>> [61]
>>>> 8 putstatic sun.misc.Launcher.factory :
>>>> java.net.URLStreamHandlerFactory [3]
>>>> 11 new sun.misc.Launcher [62]
>>>> 14 dup
>>>> 15 invokespecial sun.misc.Launcher() [63]
>>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>> 21 return
>>>> Line numbers:
>>>> [pc: 0, line: 38]
>>>> [pc: 11, line: 39]
>>>>
>>>> Inner classes:
>>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>>> info: #62 sun/misc/Launcher
>>>> inner name: #65 Factory, accessflags: 10 private static],
>>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>>>> class info: #62 sun/misc/Launcher
>>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>>>> class info: #62 sun/misc/Launcher
>>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>>> inner name: #0, accessflags: 8 static]
>>>>
>>>> regards
>>>> Steve
>>>>
>>>>
>>>> Sven Efftinge wrote:
>>>>> Hi Bill,
>>>>>
>>>>> sorry, I've no idea why the workflow terminates silently.
>>>>> It seems that for some yet unkown reason the exception is not
>>>>> printed on the console.
>>>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>>>> checkbox in the run configuration) in order to find out where, when
>>>>> and why it terminates?
>>>>>
>>>>> Sorry, I couldn't help more.
>>>>>
>>>>> Sven
>>>>>
>>>>> Bill Hinge schrieb:
>>>>>> Hi
>>>>>>
>>>>>> I originally posted to the tmf newsgroup but I suspect I should have
>>>>>> posted here? I have been experimenting further and this post is
>>>>>> updated
>>>>>>
>>>>>> I have created a GMF editor based on multiple linked ecore files and
>>>>>> my GMF editor creates a shared EMF-GMF editor domain in a single
>>>>>> file.
>>>>>>
>>>>>> I have set up an action to call a workflow from my GMF UI and it
>>>>>> appears
>>>>>> to be configured correctly but doesn't actually produce anything. (ie
>>>>>> it's called from java using WorkFlowRunner().... The intention is to
>>>>>> call the workflow on my editor's model files which will be in
>>>>>> their own
>>>>>> project directory.
>>>>>>
>>>>>> As part of my testing I'm manually testing by running the workflow
>>>>>> from
>>>>>> the project explorer (right click run as MWE). I have set up a
>>>>>> runtime
>>>>>> config but when I run I get no errors and no output. I get a message
>>>>>> 'terminated' on top of the console window.
>>>>>>
>>>>>> I am also seeing a lot of messages
>>>>>> "Could not acquire children from extension:
>>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>>>>>> don't seem to timed with my test runs so I'm not sure if they are
>>>>>> related.
>>>>>>
>>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>>
>>>>>> <?xml version="1.0"?>
>>>>>> <workflow>
>>>>>> <property name="workspace_loc" value="./" />
>>>>>> <property name="eclipse_home" value="../" />
>>>>>> <property name="model"
>>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>>> <property name="src-gen"
>>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>> <property name="out" value="out" />
>>>>>>
>>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>>> <platformUri value="../" />
>>>>>> <RegisterEcoreFile
>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>>> <RegisterEcoreFile
>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>>> </bean>
>>>>>> <component
>>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>
>>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>>> <modelSlot value="model"/>
>>>>>> <uri value="${model}"/>
>>>>>> <firstElementOnly value="false" />
>>>>>> </component>
>>>>>>
>>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>>> <metaModel id="mm"
>>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>>> <expand value="Demo::Main FOR model" />
>>>>>> <outlet path="${src-gen}"/>
>>>>>> </component>
>>>>>> </workflow>
>>>>>>
>>>>>>
>>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>>
>>>>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>>>>> (contract.ecore etc) and I have put a test copy of the GMF editor
>>>>>> model
>>>>>> output default2.ngoss in /templates
>>>>>>
>>>>>> (once I get this running manually I'll be using a call from java)
>>>>>>
>>>>>>
>>>>>> When I run the workflow it gets as far as and stops
>>>>>>
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO:
>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO:
>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO: running workflow:
>>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>>
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO:
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>> setPlatformUri
>>>>>> INFO: Registering platform uri
>>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>> addRegisterEcoreFile
>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>>>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>> addRegisterEcoreFile
>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>>> >
>>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>>> org.eclipse.core.resources,
>>>>>> org.eclipse.ui,
>>>>>> org.eclipse.emf.codegen,
>>>>>> org.eclipse.ui.ide,
>>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>>>>>> tried various combinations of the above but am stuck. Any idea
>>>>>> what I'm
>>>>>> doing wrong please?
>>>>>>
>>>>>> regards
>>>>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #137882 is a reply to message #137856] |
Wed, 01 July 2009 16:22 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
I originally posted this to m2t as I thought it was an Xpand problem
I'm struggling through some workflow & xpand2 issues and I've got as far
as the generator part.
I have set up my gmf model in $model etc for my Reader and it is being
read but I'm getting a fatal error at the generator.
My xpand template is quite simple at this stage
«IMPORT ngoss»
«IMPORT contract»
«IMPORT sla»
«DEFINE ngoss FOR contract::Contract»
«ENDDEFINE»
Note, even though I used code completion I'm getting those red error
marks on my IMPORT's
Here is part of my workflow
<component class="org.eclipse.emf.mwe.utils.Reader">
<firstElementOnly value="false" />
<modelSlot value="model"/>
<uri value="${model}"/>
</component>
<component class="org.eclipse.xpand2.Generator" id="generate">
<metaModel id="mm"
class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
<fileEncoding value="UTF-8"/>
<expand value="Demos::ngoss FOR model" />
<outlet path="${src-gen}"/>
</component>
Note it doesn't seem to matter if I use templates::Demos or not!
Jul 1, 2009 3:17:40 PM
org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent
invokeInternal
SEVERE: Error in Component generate of type org.eclipse.xpand2.Generator:
EvaluationException : No Definition
'templates::NewTemplateFile::ngoss for List' found!
[23,50] on line 1 'EXPAND templates::NewTemplateFile::ngoss FOR model'
Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner
executeWorkflow
SEVERE: Workflow interrupted. Reason: No Definition
'templates::NewTemplateFile::ngoss for List' found!
Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No Definition 'templates::NewTemplateFile::ngoss for
List' found!(Element: EXPAND templates::NewTemplateFile::ngoss FOR
model; Reported by: Generator(generate)
IF I use the following template (done via code completion)
«IMPORT ngoss»
«IMPORT contract»
«IMPORT sla»
«DEFINE Main FOR NGOSS»
«FILE author + ".ngoss_out"»
«EXPAND bs FOREACH this.businessServices»
«ENDFILE»
«ENDDEFINE»
«DEFINE bs FOR Contract»
«Title»
«ENDDEFINE»
I get the following error
SEVERE: mismatched input ''http://www.xx.com/2008/ngoss'' expecting
Identifier on line 1
org.eclipse.internal.xtend.xtend.parser.ParseException: mismatched input
''http://www.bt.com/2008/ngoss'' expecting Identifier on line 1
at
org.eclipse.internal.xpand2.parser.XpandParseFacade$3.handle Error(XpandParseFacade.java:77)
at
org.eclipse.internal.xpand2.parser.XpandParseFacade$2.report Error(XpandParseFacade.java:66)
at
org.eclipse.internal.xpand2.parser.XpandParser.identifier(Xp andParser.java:4326)
at
org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .identifier(XpandLocationAddingParser.java:184)
at
org.eclipse.internal.xpand2.parser.XpandParser.simpleType(Xp andParser.java:4251)
at
org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .simpleType(XpandLocationAddingParser.java:274)
at
org.eclipse.internal.xpand2.parser.XpandParser.anImport(Xpan dParser.java:368)
at
org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .anImport(XpandLocationAddingParser.java:79)
at
org.eclipse.internal.xpand2.parser.XpandParser.template(Xpan dParser.java:170)
at
org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .template(XpandLocationAddingParser.java:289)
at
org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:44)
at
org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:31)
at
org.eclipse.xpand2.XpandExecutionContextImpl$1.parse(XpandEx ecutionContextImpl.java:92)
at
org.eclipse.xtend.expression.ResourceManagerDefaultImpl.load Resource(ResourceManagerDefaultImpl.java:70)
at
org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:193)
at
org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:186)
at
org.eclipse.xpand2.XpandExecutionContextImpl.findDefinition( XpandExecutionContextImpl.java:145)
at
org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefini tion(ExpandStatement.java:174)
at
org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInte rnal(ExpandStatement.java:167)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java: 334)
at
org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent.invokeInternal(AbstractExpressionsUsingWorkflowCo mponent.java:191)
at
org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invok e(AbstractWorkflowComponent.java:118)
at
org.eclipse.emf.mwe.core.container.CompositeComponent.intern alInvoke(CompositeComponent.java:101)
at
org.eclipse.emf.mwe.core.container.CompositeComponent.invoke (CompositeComponent.java:86)
at
org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(Work flowRunner.java:412)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.j ava:292)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner. java:239)
Jul 1, 2009 4:29:04 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: mismatched input ''http://www.xx.com/2008/ngoss''
expecting Identifier on line 1(Element: EXPAND Demo::ngoss FOR model;
Reported by: Generator(NgossGenerate): generating 'Demo::ngoss FOR
model' => ..//com.xx.yyy.ui/src-gen)
regards
Steve
Bill Hinge wrote:
> For now I have cheated and copied notation.ecore to my local directory
> and put a reference to it
>
> <RegisterEcoreFile
> value="${eclipse_home}/com.xx.yyy.ui/model/notation.ecore"/ >
>
> obviously not very elegant but it works, the following didn't though
>
> <uriMap
> from="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
>
> to=" platform:/plugin/org.eclipse.gmf.runtime.notation.notation.e core "/>
>
>
> Bill Hinge wrote:
>> Sorry to answer my own post, hopefully someone may find it useful in
>> future!
>>
>> The reason for the error below was that I was was linking by reference
>> to uml.ecore and ecore.ecore and some attributes were badly set as uml
>> definition of string as opposed to ecore string. A quick edit of the
>> attribute type in the local ecore fixed that problem as a workaround.
>>
>>
>> There were some other later issues with other namespaces not being found
>> so I just added them via multiple calls of RegisterEcoreFile.
>>
>>
>> However, since this is a mixed model and diagram file containing both
>> model and GMF diagram info the workflow is now looking for
>>
>> Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation'
>> not found
>>
>> as this is referenced in the gmf output file default2.ngoss
>>
>> Haven't worked out this one yet , any hints?
>>
>> steve
>>
>> Bill Hinge wrote:
>>> To clarify, TestModel referred to below is a string value defined by my
>>> ecore files as a legal String, it was created by my GMF-EMF editor so I
>>> would be surprised if it weren't legal. Hence my question as to what
>>> Reader I should use?
>>>
>>> Anyhow, made some progress I'm now failing on the Reader
>>>
>>> steve
>>>
>>> Bill Hinge wrote:
>>>> Sven
>>>>
>>>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>>>
>>>> if I add to my dependencies I now get
>>>>
>>>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>>>> 'TestModel' is not legal.
>>>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>>>> 4, 105)
>>>>
>>>>
>>>> Should I be using a different Reader/Generator?
>>>> (This is a single file GMF-EMF editor)
>>>>
>>>>
>>>> regards
>>>> Steve
>>>>
>>>>
>>>> Bill Hinge wrote:
>>>>> Hi Sven
>>>>>
>>>>>
>>>>> I just tried this, must have had some fat fingered gremlins before
>>>>> cause
>>>>> it kept crashing
>>>>>
>>>>> works now...
>>>>>
>>>>> I get a classloader error -- source not found
>>>>>
>>>>>
>>>>> } finally {
>>>>> if (isChildmost) {
>>>>> childmostCaller.remove();
>>>>>
>>>>> if ((c != null) && name.startsWith("org.apache.") &&
>>>>> ( name.startsWith("org.apache.crimson.") ||
>>>>> name.startsWith("org.apache.xalan.") ||
>>>>> name.startsWith("org.apache.xml.") ||
>>>>> name.startsWith("org.apache.xpath.") ) ) {
>>>>> AccessController.doPrivileged(new
>>>>> PrivilegedAction() {
>>>>> public Object
>>>>> run() { return
>>>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ",
>>>>> "true");
>>>>> }});
>>>>> }
>>>>> }
>>>>> // MacOSX Change END
>>>>> }
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>> and ...
>>>>>
>>>>>
>>>>>
>>>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>>>> public class sun.misc.Launcher {
>>>>>
>>>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>>>> private static java.net.URLStreamHandlerFactory factory;
>>>>>
>>>>> // Field descriptor #74 Lsun/misc/Launcher;
>>>>> private static sun.misc.Launcher launcher;
>>>>>
>>>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>>>> private java.lang.ClassLoader loader;
>>>>>
>>>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>>>> private static java.net.URLStreamHandler fileHandler;
>>>>>
>>>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>>>> // Stack: 1, Locals: 0
>>>>> public static sun.misc.Launcher getLauncher();
>>>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>> 3 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 42]
>>>>>
>>>>> // Method descriptor #84 ()V
>>>>> // Stack: 4, Locals: 5
>>>>> public Launcher();
>>>>> 0 aload_0 [this]
>>>>> 1 invokespecial java.lang.Object() [5]
>>>>> 4 invokestatic
>>>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>>>> sun.misc.Launcher$ExtClassLoader [6]
>>>>> 7 astore_1
>>>>> 8 goto 22
>>>>> 11 astore_2
>>>>> 12 new java.lang.InternalError [8]
>>>>> 15 dup
>>>>> 16 ldc <String "Could not create extension class loader"> [9]
>>>>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>> 21 athrow
>>>>> 22 aload_0 [this]
>>>>> 23 aload_1
>>>>> 24 invokestatic
>>>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>>>> : java.lang.ClassLoader [11]
>>>>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>> [12]
>>>>> 30 goto 44
>>>>> 33 astore_2
>>>>> 34 new java.lang.InternalError [8]
>>>>> 37 dup
>>>>> 38 ldc <String "Could not create application class loader"> [13]
>>>>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>> 43 athrow
>>>>> 44 invokestatic java.lang.Thread.currentThread() :
>>>>> java.lang.Thread [14]
>>>>> 47 aload_0 [this]
>>>>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>> [12]
>>>>> 51 invokevirtual
>>>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) :
>>>>> void [15]
>>>>> 54 ldc <String "java.security.manager"> [16]
>>>>> 56 invokestatic
>>>>> java.lang.System.getProperty(java.lang.String) : java.lang.String [17]
>>>>> 59 astore_2
>>>>> 60 aload_2
>>>>> 61 ifnull 168
>>>>> 64 aconst_null
>>>>> 65 astore_3
>>>>> 66 ldc <String ""> [18]
>>>>> 68 aload_2
>>>>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>>> boolean [19]
>>>>> 72 ifne 84
>>>>> 75 ldc <String "default"> [20]
>>>>> 77 aload_2
>>>>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>>> boolean [19]
>>>>> 81 ifeq 95
>>>>> 84 new java.lang.SecurityManager [21]
>>>>> 87 dup
>>>>> 88 invokespecial java.lang.SecurityManager() [22]
>>>>> 91 astore_3
>>>>> 92 goto 130
>>>>> 95 aload_0 [this]
>>>>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>> [12]
>>>>> 99 aload_2
>>>>> 100 invokevirtual
>>>>> java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class
>>>>> [23]
>>>>> 103 invokevirtual java.lang.Class.newInstance() :
>>>>> java.lang.Object [24]
>>>>> 106 checkcast java.lang.SecurityManager [21]
>>>>> 109 astore_3
>>>>> 110 goto 130
>>>>> 113 astore 4
>>>>> 115 goto 130
>>>>> 118 astore 4
>>>>> 120 goto 130
>>>>> 123 astore 4
>>>>> 125 goto 130
>>>>> 128 astore 4
>>>>> 130 aload_3
>>>>> 131 ifnull 141
>>>>> 134 aload_3
>>>>> 135 invokestatic
>>>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) :
>>>>> void [29]
>>>>> 138 goto 168
>>>>> 141 new java.lang.InternalError [8]
>>>>> 144 dup
>>>>> 145 new java.lang.StringBuilder [30]
>>>>> 148 dup
>>>>> 149 invokespecial java.lang.StringBuilder() [31]
>>>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>>>> 154 invokevirtual
>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>> java.lang.StringBuilder [33]
>>>>> 157 aload_2
>>>>> 158 invokevirtual
>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>> java.lang.StringBuilder [33]
>>>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>>>> java.lang.String [34]
>>>>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>> 167 athrow
>>>>> 168 return
>>>>> Exception Table:
>>>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>>>> [pc: 95, pc: 110] -> 113 when :
>>>>> java.lang.IllegalAccessException
>>>>> [pc: 95, pc: 110] -> 118 when :
>>>>> java.lang.InstantiationException
>>>>> [pc: 95, pc: 110] -> 123 when :
>>>>> java.lang.ClassNotFoundException
>>>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>>>> Line numbers:
>>>>> [pc: 0, line: 47]
>>>>> [pc: 4, line: 51]
>>>>> [pc: 8, line: 55]
>>>>> [pc: 11, line: 52]
>>>>> [pc: 12, line: 53]
>>>>> [pc: 22, line: 59]
>>>>> [pc: 30, line: 63]
>>>>> [pc: 33, line: 60]
>>>>> [pc: 34, line: 61]
>>>>> [pc: 44, line: 66]
>>>>> [pc: 54, line: 69]
>>>>> [pc: 60, line: 70]
>>>>> [pc: 64, line: 71]
>>>>> [pc: 66, line: 72]
>>>>> [pc: 84, line: 73]
>>>>> [pc: 95, line: 76]
>>>>> [pc: 110, line: 81]
>>>>> [pc: 113, line: 77]
>>>>> [pc: 115, line: 81]
>>>>> [pc: 118, line: 78]
>>>>> [pc: 120, line: 81]
>>>>> [pc: 123, line: 79]
>>>>> [pc: 125, line: 81]
>>>>> [pc: 128, line: 80]
>>>>> [pc: 130, line: 83]
>>>>> [pc: 134, line: 84]
>>>>> [pc: 141, line: 86]
>>>>> [pc: 168, line: 90]
>>>>>
>>>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>>>> // Stack: 1, Locals: 1
>>>>> public java.lang.ClassLoader getClassLoader();
>>>>> 0 aload_0 [this]
>>>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>>> 4 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 96]
>>>>>
>>>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>>>> // Stack: 4, Locals: 3
>>>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>>>> 0 new sun.security.action.GetPropertyAction [35]
>>>>> 3 dup
>>>>> 4 ldc <String "sun.boot.class.path"> [36]
>>>>> 6 invokespecial
>>>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>>>> 9 invokestatic
>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>> : java.lang.Object [38]
>>>>> 12 checkcast java.lang.String [39]
>>>>> 15 astore_0
>>>>> 16 aload_0
>>>>> 17 ifnull 43
>>>>> 20 aload_0
>>>>> 21 astore_2
>>>>> 22 new sun.misc.Launcher$1 [40]
>>>>> 25 dup
>>>>> 26 aload_2
>>>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>>>> 30 invokestatic
>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>> : java.lang.Object [38]
>>>>> 33 checkcast java.net.URL[] [42]
>>>>> 36 checkcast java.net.URL[] [42]
>>>>> 39 astore_1
>>>>> 40 goto 48
>>>>> 43 iconst_0
>>>>> 44 anewarray java.net.URL [43]
>>>>> 47 astore_1
>>>>> 48 new sun.misc.URLClassPath [44]
>>>>> 51 dup
>>>>> 52 aload_1
>>>>> 53 getstatic sun.misc.Launcher.factory :
>>>>> java.net.URLStreamHandlerFactory [3]
>>>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>>>> java.net.URLStreamHandlerFactory) [45]
>>>>> 59 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 319]
>>>>> [pc: 16, line: 321]
>>>>> [pc: 20, line: 322]
>>>>> [pc: 22, line: 323]
>>>>> [pc: 40, line: 330]
>>>>> [pc: 43, line: 331]
>>>>> [pc: 48, line: 333]
>>>>>
>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>> // Stack: 4, Locals: 3
>>>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 arraylength
>>>>> 2 anewarray java.net.URL [43]
>>>>> 5 astore_1
>>>>> 6 iconst_0
>>>>> 7 istore_2
>>>>> 8 iload_2
>>>>> 9 aload_0 [arg0]
>>>>> 10 arraylength
>>>>> 11 if_icmpge 29
>>>>> 14 aload_1
>>>>> 15 iload_2
>>>>> 16 aload_0 [arg0]
>>>>> 17 iload_2
>>>>> 18 aaload
>>>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>>>> java.net.URL [46]
>>>>> 22 aastore
>>>>> 23 iinc 2 1
>>>>> 26 goto 8
>>>>> 29 aload_1
>>>>> 30 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 337]
>>>>> [pc: 6, line: 338]
>>>>> [pc: 14, line: 339]
>>>>> [pc: 23, line: 338]
>>>>> [pc: 29, line: 345]
>>>>>
>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>> // Stack: 7, Locals: 7
>>>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 ifnull 197
>>>>> 4 iconst_0
>>>>> 5 istore_2
>>>>> 6 iconst_1
>>>>> 7 istore_3
>>>>> 8 iconst_0
>>>>> 9 istore 4
>>>>> 11 iconst_0
>>>>> 12 istore 5
>>>>> 14 aload_0 [arg0]
>>>>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>>> 18 iload 5
>>>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>> int) : int [48]
>>>>> 23 dup
>>>>> 24 istore 4
>>>>> 26 iconst_m1
>>>>> 27 if_icmpeq 42
>>>>> 30 iinc 3 1
>>>>> 33 iload 4
>>>>> 35 iconst_1
>>>>> 36 iadd
>>>>> 37 istore 5
>>>>> 39 goto 14
>>>>> 42 iload_3
>>>>> 43 anewarray java.io.File [49]
>>>>> 46 astore_1
>>>>> 47 iconst_0
>>>>> 48 dup
>>>>> 49 istore 4
>>>>> 51 istore 5
>>>>> 53 aload_0 [arg0]
>>>>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>>> 57 iload 5
>>>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>> int) : int [48]
>>>>> 62 dup
>>>>> 63 istore 4
>>>>> 65 iconst_m1
>>>>> 66 if_icmpeq 125
>>>>> 69 iload 4
>>>>> 71 iload 5
>>>>> 73 isub
>>>>> 74 ifle 101
>>>>> 77 aload_1
>>>>> 78 iload_2
>>>>> 79 iinc 2 1
>>>>> 82 new java.io.File [49]
>>>>> 85 dup
>>>>> 86 aload_0 [arg0]
>>>>> 87 iload 5
>>>>> 89 iload 4
>>>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>>>> java.lang.String [50]
>>>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>>>> 97 aastore
>>>>> 98 goto 116
>>>>> 101 aload_1
>>>>> 102 iload_2
>>>>> 103 iinc 2 1
>>>>> 106 new java.io.File [49]
>>>>> 109 dup
>>>>> 110 ldc <String "."> [52]
>>>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>>>> 115 aastore
>>>>> 116 iload 4
>>>>> 118 iconst_1
>>>>> 119 iadd
>>>>> 120 istore 5
>>>>> 122 goto 53
>>>>> 125 iload 5
>>>>> 127 aload_0 [arg0]
>>>>> 128 invokevirtual java.lang.String.length() : int [53]
>>>>> 131 if_icmpge 156
>>>>> 134 aload_1
>>>>> 135 iload_2
>>>>> 136 iinc 2 1
>>>>> 139 new java.io.File [49]
>>>>> 142 dup
>>>>> 143 aload_0 [arg0]
>>>>> 144 iload 5
>>>>> 146 invokevirtual java.lang.String.substring(int) :
>>>>> java.lang.String [54]
>>>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>>>> 152 aastore
>>>>> 153 goto 171
>>>>> 156 aload_1
>>>>> 157 iload_2
>>>>> 158 iinc 2 1
>>>>> 161 new java.io.File [49]
>>>>> 164 dup
>>>>> 165 ldc <String "."> [52]
>>>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>>>> 170 aastore
>>>>> 171 iload_2
>>>>> 172 iload_3
>>>>> 173 if_icmpeq 194
>>>>> 176 iload_2
>>>>> 177 anewarray java.io.File [49]
>>>>> 180 astore 6
>>>>> 182 aload_1
>>>>> 183 iconst_0
>>>>> 184 aload 6
>>>>> 186 iconst_0
>>>>> 187 iload_2
>>>>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>>>>> int, java.lang.Object, int, int) : void [55]
>>>>> 191 aload 6
>>>>> 193 astore_1
>>>>> 194 goto 202
>>>>> 197 iconst_0
>>>>> 198 anewarray java.io.File [49]
>>>>> 201 astore_1
>>>>> 202 aload_1
>>>>> 203 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 350]
>>>>> [pc: 4, line: 351]
>>>>> [pc: 8, line: 352]
>>>>> [pc: 14, line: 354]
>>>>> [pc: 30, line: 355]
>>>>> [pc: 33, line: 356]
>>>>> [pc: 42, line: 358]
>>>>> [pc: 47, line: 359]
>>>>> [pc: 53, line: 361]
>>>>> [pc: 69, line: 362]
>>>>> [pc: 77, line: 363]
>>>>> [pc: 101, line: 366]
>>>>> [pc: 116, line: 368]
>>>>> [pc: 125, line: 371]
>>>>> [pc: 134, line: 372]
>>>>> [pc: 156, line: 374]
>>>>> [pc: 171, line: 377]
>>>>> [pc: 176, line: 378]
>>>>> [pc: 182, line: 379]
>>>>> [pc: 191, line: 380]
>>>>> [pc: 194, line: 382]
>>>>> [pc: 197, line: 383]
>>>>> [pc: 202, line: 389]
>>>>>
>>>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>>>> // Stack: 2, Locals: 2
>>>>> static java.net.URL getFileURL(java.io.File arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 invokevirtual java.io.File.getCanonicalFile() :
>>>>> java.io.File [56]
>>>>> 4 astore_0 [arg0]
>>>>> 5 goto 9
>>>>> 8 astore_1
>>>>> 9 aload_0 [arg0]
>>>>> 10 invokestatic
>>>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL
>>>>> [57]
>>>>> 13 areturn
>>>>> 14 astore_1
>>>>> 15 new java.lang.InternalError [8]
>>>>> 18 dup
>>>>> 19 invokespecial java.lang.InternalError() [59]
>>>>> 22 athrow
>>>>> Exception Table:
>>>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>>>> Line numbers:
>>>>> [pc: 0, line: 396]
>>>>> [pc: 5, line: 397]
>>>>> [pc: 9, line: 400]
>>>>> [pc: 14, line: 401]
>>>>> [pc: 15, line: 403]
>>>>>
>>>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>>>> // Stack: 1, Locals: 0
>>>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>>>> 0 getstatic sun.misc.Launcher.factory :
>>>>> java.net.URLStreamHandlerFactory [3]
>>>>> 3 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 37]
>>>>>
>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>> // Stack: 1, Locals: 1
>>>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 invokestatic
>>>>> sun.misc.Launcher.getClassPath(java.lang.String) : java.io.File[] [2]
>>>>> 4 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 37]
>>>>>
>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>> // Stack: 1, Locals: 1
>>>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>>>>> java.net.URL[] [1]
>>>>> 4 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 37]
>>>>>
>>>>> // Method descriptor #84 ()V
>>>>> // Stack: 3, Locals: 0
>>>>> static {};
>>>>> 0 new sun.misc.Launcher$Factory [60]
>>>>> 3 dup
>>>>> 4 aconst_null
>>>>> 5 invokespecial
>>>>> sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
>>>>> 8 putstatic sun.misc.Launcher.factory :
>>>>> java.net.URLStreamHandlerFactory [3]
>>>>> 11 new sun.misc.Launcher [62]
>>>>> 14 dup
>>>>> 15 invokespecial sun.misc.Launcher() [63]
>>>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>> 21 return
>>>>> Line numbers:
>>>>> [pc: 0, line: 38]
>>>>> [pc: 11, line: 39]
>>>>>
>>>>> Inner classes:
>>>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>>>> info: #62 sun/misc/Launcher
>>>>> inner name: #65 Factory, accessflags: 10 private static],
>>>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>>>>> class info: #62 sun/misc/Launcher
>>>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>>>>> class info: #62 sun/misc/Launcher
>>>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>>>> inner name: #0, accessflags: 8 static]
>>>>>
>>>>> regards
>>>>> Steve
>>>>>
>>>>>
>>>>> Sven Efftinge wrote:
>>>>>> Hi Bill,
>>>>>>
>>>>>> sorry, I've no idea why the workflow terminates silently.
>>>>>> It seems that for some yet unkown reason the exception is not
>>>>>> printed on the console.
>>>>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>>>>> checkbox in the run configuration) in order to find out where,
>>>>>> when and why it terminates?
>>>>>>
>>>>>> Sorry, I couldn't help more.
>>>>>>
>>>>>> Sven
>>>>>>
>>>>>> Bill Hinge schrieb:
>>>>>>> Hi
>>>>>>>
>>>>>>> I originally posted to the tmf newsgroup but I suspect I should have
>>>>>>> posted here? I have been experimenting further and this post is
>>>>>>> updated
>>>>>>>
>>>>>>> I have created a GMF editor based on multiple linked ecore files and
>>>>>>> my GMF editor creates a shared EMF-GMF editor domain in a single
>>>>>>> file.
>>>>>>>
>>>>>>> I have set up an action to call a workflow from my GMF UI and it
>>>>>>> appears
>>>>>>> to be configured correctly but doesn't actually produce anything.
>>>>>>> (ie
>>>>>>> it's called from java using WorkFlowRunner().... The intention is to
>>>>>>> call the workflow on my editor's model files which will be in
>>>>>>> their own
>>>>>>> project directory.
>>>>>>>
>>>>>>> As part of my testing I'm manually testing by running the
>>>>>>> workflow from
>>>>>>> the project explorer (right click run as MWE). I have set up a
>>>>>>> runtime
>>>>>>> config but when I run I get no errors and no output. I get a message
>>>>>>> 'terminated' on top of the console window.
>>>>>>>
>>>>>>> I am also seeing a lot of messages
>>>>>>> "Could not acquire children from extension:
>>>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but
>>>>>>> these don't seem to timed with my test runs so I'm not sure if
>>>>>>> they are related.
>>>>>>>
>>>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>>>
>>>>>>> <?xml version="1.0"?>
>>>>>>> <workflow>
>>>>>>> <property name="workspace_loc" value="./" />
>>>>>>> <property name="eclipse_home" value="../" />
>>>>>>> <property name="model"
>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>>>> <property name="src-gen"
>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>> <property name="out" value="out" />
>>>>>>>
>>>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>>>> <platformUri value="../" />
>>>>>>> <RegisterEcoreFile
>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>>>> <RegisterEcoreFile
>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>>>> </bean>
>>>>>>> <component
>>>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>
>>>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>>>> <modelSlot value="model"/>
>>>>>>> <uri value="${model}"/>
>>>>>>> <firstElementOnly value="false" />
>>>>>>> </component>
>>>>>>>
>>>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>>>> <metaModel id="mm"
>>>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>>>> <expand value="Demo::Main FOR model" />
>>>>>>> <outlet path="${src-gen}"/>
>>>>>>> </component>
>>>>>>> </workflow>
>>>>>>>
>>>>>>>
>>>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>>>
>>>>>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>>>>>> (contract.ecore etc) and I have put a test copy of the GMF editor
>>>>>>> model
>>>>>>> output default2.ngoss in /templates
>>>>>>>
>>>>>>> (once I get this running manually I'll be using a call from java)
>>>>>>>
>>>>>>>
>>>>>>> When I run the workflow it gets as far as and stops
>>>>>>>
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO:
>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO:
>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO: running workflow:
>>>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>>>
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO:
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>>> setPlatformUri
>>>>>>> INFO: Registering platform uri
>>>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>>> addRegisterEcoreFile
>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>>>>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>>> addRegisterEcoreFile
>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>>>> >
>>>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>>>> org.eclipse.core.resources,
>>>>>>> org.eclipse.ui,
>>>>>>> org.eclipse.emf.codegen,
>>>>>>> org.eclipse.ui.ide,
>>>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF
>>>>>>> book,
>>>>>>> tried various combinations of the above but am stuck. Any idea
>>>>>>> what I'm
>>>>>>> doing wrong please?
>>>>>>>
>>>>>>> regards
>>>>>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #137900 is a reply to message #137882] |
Wed, 01 July 2009 22:55 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Working now, got the answer on m2t group
(message Re: problem running xpand generator )
Would be nice if there were a way to reference ecore's
from referenced plugin's eg uml.ecore, notation.ecore
regards
Steve
Bill Hinge wrote:
> I originally posted this to m2t as I thought it was an Xpand problem
>
> I'm struggling through some workflow & xpand2 issues and I've got as far
> as the generator part.
>
> I have set up my gmf model in $model etc for my Reader and it is being
> read but I'm getting a fatal error at the generator.
>
> My xpand template is quite simple at this stage
>
> «IMPORT ngoss»
> «IMPORT contract»
> «IMPORT sla»
>
>
> «DEFINE ngoss FOR contract::Contract»
> «ENDDEFINE»
>
>
> Note, even though I used code completion I'm getting those red error
> marks on my IMPORT's
>
> Here is part of my workflow
>
>
> <component class="org.eclipse.emf.mwe.utils.Reader">
> <firstElementOnly value="false" />
> <modelSlot value="model"/>
> <uri value="${model}"/>
>
> </component>
>
> <component class="org.eclipse.xpand2.Generator" id="generate">
> <metaModel id="mm"
> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
> <fileEncoding value="UTF-8"/>
> <expand value="Demos::ngoss FOR model" />
> <outlet path="${src-gen}"/>
> </component>
>
> Note it doesn't seem to matter if I use templates::Demos or not!
>
> Jul 1, 2009 3:17:40 PM
> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent
> invokeInternal
> SEVERE: Error in Component generate of type org.eclipse.xpand2.Generator:
> EvaluationException : No Definition
> 'templates::NewTemplateFile::ngoss for List' found!
> [23,50] on line 1 'EXPAND templates::NewTemplateFile::ngoss FOR model'
>
> Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner
> executeWorkflow
> SEVERE: Workflow interrupted. Reason: No Definition
> 'templates::NewTemplateFile::ngoss for List' found!
> Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: No Definition 'templates::NewTemplateFile::ngoss for
> List' found!(Element: EXPAND templates::NewTemplateFile::ngoss FOR
> model; Reported by: Generator(generate)
>
>
>
> IF I use the following template (done via code completion)
>
> «IMPORT ngoss»
> «IMPORT contract»
> «IMPORT sla»
>
>
> «DEFINE Main FOR NGOSS»
>
> «FILE author + ".ngoss_out"»
> «EXPAND bs FOREACH this.businessServices»
>
> «ENDFILE»
>
>
> «ENDDEFINE»
>
> «DEFINE bs FOR Contract»
>
> «Title»
> «ENDDEFINE»
>
> I get the following error
>
> SEVERE: mismatched input ''http://www.xx.com/2008/ngoss'' expecting
> Identifier on line 1
> org.eclipse.internal.xtend.xtend.parser.ParseException: mismatched input
> ''http://www.bt.com/2008/ngoss'' expecting Identifier on line 1
> at
> org.eclipse.internal.xpand2.parser.XpandParseFacade$3.handle Error(XpandParseFacade.java:77)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParseFacade$2.report Error(XpandParseFacade.java:66)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParser.identifier(Xp andParser.java:4326)
>
> at
> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .identifier(XpandLocationAddingParser.java:184)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParser.simpleType(Xp andParser.java:4251)
>
> at
> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .simpleType(XpandLocationAddingParser.java:274)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParser.anImport(Xpan dParser.java:368)
>
> at
> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .anImport(XpandLocationAddingParser.java:79)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParser.template(Xpan dParser.java:170)
>
> at
> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .template(XpandLocationAddingParser.java:289)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:44)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:31)
>
> at
> org.eclipse.xpand2.XpandExecutionContextImpl$1.parse(XpandEx ecutionContextImpl.java:92)
>
> at
> org.eclipse.xtend.expression.ResourceManagerDefaultImpl.load Resource(ResourceManagerDefaultImpl.java:70)
>
> at
> org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:193)
>
> at
> org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:186)
>
> at
> org.eclipse.xpand2.XpandExecutionContextImpl.findDefinition( XpandExecutionContextImpl.java:145)
>
> at
> org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefini tion(ExpandStatement.java:174)
>
> at
> org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInte rnal(ExpandStatement.java:167)
>
> at
> org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
> at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java: 334)
> at
> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent.invokeInternal(AbstractExpressionsUsingWorkflowCo mponent.java:191)
>
> at
> org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invok e(AbstractWorkflowComponent.java:118)
>
> at
> org.eclipse.emf.mwe.core.container.CompositeComponent.intern alInvoke(CompositeComponent.java:101)
>
> at
> org.eclipse.emf.mwe.core.container.CompositeComponent.invoke (CompositeComponent.java:86)
>
> at
> org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(Work flowRunner.java:412)
>
> at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.j ava:292)
> at
> org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner. java:239)
> Jul 1, 2009 4:29:04 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: mismatched input ''http://www.xx.com/2008/ngoss''
> expecting Identifier on line 1(Element: EXPAND Demo::ngoss FOR model;
> Reported by: Generator(NgossGenerate): generating 'Demo::ngoss FOR
> model' => ..//com.xx.yyy.ui/src-gen)
>
>
> regards
> Steve
>
>
>
>
>
> Bill Hinge wrote:
>> For now I have cheated and copied notation.ecore to my local directory
>> and put a reference to it
>>
>> <RegisterEcoreFile
>> value="${eclipse_home}/com.xx.yyy.ui/model/notation.ecore"/ >
>>
>> obviously not very elegant but it works, the following didn't though
>>
>> <uriMap
>> from="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
>>
>> to=" platform:/plugin/org.eclipse.gmf.runtime.notation.notation.e core "/>
>>
>>
>> Bill Hinge wrote:
>>> Sorry to answer my own post, hopefully someone may find it useful in
>>> future!
>>>
>>> The reason for the error below was that I was was linking by reference
>>> to uml.ecore and ecore.ecore and some attributes were badly set as uml
>>> definition of string as opposed to ecore string. A quick edit of the
>>> attribute type in the local ecore fixed that problem as a workaround.
>>>
>>>
>>> There were some other later issues with other namespaces not being found
>>> so I just added them via multiple calls of RegisterEcoreFile.
>>>
>>>
>>> However, since this is a mixed model and diagram file containing both
>>> model and GMF diagram info the workflow is now looking for
>>>
>>> Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation'
>>> not found
>>>
>>> as this is referenced in the gmf output file default2.ngoss
>>>
>>> Haven't worked out this one yet , any hints?
>>>
>>> steve
>>>
>>> Bill Hinge wrote:
>>>> To clarify, TestModel referred to below is a string value defined by my
>>>> ecore files as a legal String, it was created by my GMF-EMF editor so I
>>>> would be surprised if it weren't legal. Hence my question as to what
>>>> Reader I should use?
>>>>
>>>> Anyhow, made some progress I'm now failing on the Reader
>>>>
>>>> steve
>>>>
>>>> Bill Hinge wrote:
>>>>> Sven
>>>>>
>>>>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>>>>
>>>>> if I add to my dependencies I now get
>>>>>
>>>>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>>>>> 'TestModel' is not legal.
>>>>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>>>>> 4, 105)
>>>>>
>>>>>
>>>>> Should I be using a different Reader/Generator?
>>>>> (This is a single file GMF-EMF editor)
>>>>>
>>>>>
>>>>> regards
>>>>> Steve
>>>>>
>>>>>
>>>>> Bill Hinge wrote:
>>>>>> Hi Sven
>>>>>>
>>>>>>
>>>>>> I just tried this, must have had some fat fingered gremlins before
>>>>>> cause
>>>>>> it kept crashing
>>>>>>
>>>>>> works now...
>>>>>>
>>>>>> I get a classloader error -- source not found
>>>>>>
>>>>>>
>>>>>> } finally {
>>>>>> if (isChildmost) {
>>>>>> childmostCaller.remove();
>>>>>>
>>>>>> if ((c != null) && name.startsWith("org.apache.") &&
>>>>>> ( name.startsWith("org.apache.crimson.") ||
>>>>>> name.startsWith("org.apache.xalan.") ||
>>>>>> name.startsWith("org.apache.xml.") ||
>>>>>> name.startsWith("org.apache.xpath.") ) ) {
>>>>>> AccessController.doPrivileged(new
>>>>>> PrivilegedAction() {
>>>>>> public Object
>>>>>> run() { return
>>>>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ",
>>>>>> "true");
>>>>>> }});
>>>>>> }
>>>>>> }
>>>>>> // MacOSX Change END
>>>>>> }
>>>>>> }
>>>>>>
>>>>>>
>>>>>>
>>>>>> and ...
>>>>>>
>>>>>>
>>>>>>
>>>>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>>>>> public class sun.misc.Launcher {
>>>>>>
>>>>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>>>>> private static java.net.URLStreamHandlerFactory factory;
>>>>>>
>>>>>> // Field descriptor #74 Lsun/misc/Launcher;
>>>>>> private static sun.misc.Launcher launcher;
>>>>>>
>>>>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>>>>> private java.lang.ClassLoader loader;
>>>>>>
>>>>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>>>>> private static java.net.URLStreamHandler fileHandler;
>>>>>>
>>>>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>>>>> // Stack: 1, Locals: 0
>>>>>> public static sun.misc.Launcher getLauncher();
>>>>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>>> 3 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 42]
>>>>>>
>>>>>> // Method descriptor #84 ()V
>>>>>> // Stack: 4, Locals: 5
>>>>>> public Launcher();
>>>>>> 0 aload_0 [this]
>>>>>> 1 invokespecial java.lang.Object() [5]
>>>>>> 4 invokestatic
>>>>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>>>>> sun.misc.Launcher$ExtClassLoader [6]
>>>>>> 7 astore_1
>>>>>> 8 goto 22
>>>>>> 11 astore_2
>>>>>> 12 new java.lang.InternalError [8]
>>>>>> 15 dup
>>>>>> 16 ldc <String "Could not create extension class loader"> [9]
>>>>>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>>> 21 athrow
>>>>>> 22 aload_0 [this]
>>>>>> 23 aload_1
>>>>>> 24 invokestatic
>>>>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>>>>> : java.lang.ClassLoader [11]
>>>>>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>>> [12]
>>>>>> 30 goto 44
>>>>>> 33 astore_2
>>>>>> 34 new java.lang.InternalError [8]
>>>>>> 37 dup
>>>>>> 38 ldc <String "Could not create application class loader">
>>>>>> [13]
>>>>>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>>> 43 athrow
>>>>>> 44 invokestatic java.lang.Thread.currentThread() :
>>>>>> java.lang.Thread [14]
>>>>>> 47 aload_0 [this]
>>>>>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>>> [12]
>>>>>> 51 invokevirtual
>>>>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) :
>>>>>> void [15]
>>>>>> 54 ldc <String "java.security.manager"> [16]
>>>>>> 56 invokestatic
>>>>>> java.lang.System.getProperty(java.lang.String) : java.lang.String
>>>>>> [17]
>>>>>> 59 astore_2
>>>>>> 60 aload_2
>>>>>> 61 ifnull 168
>>>>>> 64 aconst_null
>>>>>> 65 astore_3
>>>>>> 66 ldc <String ""> [18]
>>>>>> 68 aload_2
>>>>>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>>>> boolean [19]
>>>>>> 72 ifne 84
>>>>>> 75 ldc <String "default"> [20]
>>>>>> 77 aload_2
>>>>>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>>>> boolean [19]
>>>>>> 81 ifeq 95
>>>>>> 84 new java.lang.SecurityManager [21]
>>>>>> 87 dup
>>>>>> 88 invokespecial java.lang.SecurityManager() [22]
>>>>>> 91 astore_3
>>>>>> 92 goto 130
>>>>>> 95 aload_0 [this]
>>>>>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>>> [12]
>>>>>> 99 aload_2
>>>>>> 100 invokevirtual
>>>>>> java.lang.ClassLoader.loadClass(java.lang.String) :
>>>>>> java.lang.Class [23]
>>>>>> 103 invokevirtual java.lang.Class.newInstance() :
>>>>>> java.lang.Object [24]
>>>>>> 106 checkcast java.lang.SecurityManager [21]
>>>>>> 109 astore_3
>>>>>> 110 goto 130
>>>>>> 113 astore 4
>>>>>> 115 goto 130
>>>>>> 118 astore 4
>>>>>> 120 goto 130
>>>>>> 123 astore 4
>>>>>> 125 goto 130
>>>>>> 128 astore 4
>>>>>> 130 aload_3
>>>>>> 131 ifnull 141
>>>>>> 134 aload_3
>>>>>> 135 invokestatic
>>>>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) :
>>>>>> void [29]
>>>>>> 138 goto 168
>>>>>> 141 new java.lang.InternalError [8]
>>>>>> 144 dup
>>>>>> 145 new java.lang.StringBuilder [30]
>>>>>> 148 dup
>>>>>> 149 invokespecial java.lang.StringBuilder() [31]
>>>>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>>>>> 154 invokevirtual
>>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>>> java.lang.StringBuilder [33]
>>>>>> 157 aload_2
>>>>>> 158 invokevirtual
>>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>>> java.lang.StringBuilder [33]
>>>>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>>>>> java.lang.String [34]
>>>>>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>>> 167 athrow
>>>>>> 168 return
>>>>>> Exception Table:
>>>>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>>>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>>>>> [pc: 95, pc: 110] -> 113 when :
>>>>>> java.lang.IllegalAccessException
>>>>>> [pc: 95, pc: 110] -> 118 when :
>>>>>> java.lang.InstantiationException
>>>>>> [pc: 95, pc: 110] -> 123 when :
>>>>>> java.lang.ClassNotFoundException
>>>>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 47]
>>>>>> [pc: 4, line: 51]
>>>>>> [pc: 8, line: 55]
>>>>>> [pc: 11, line: 52]
>>>>>> [pc: 12, line: 53]
>>>>>> [pc: 22, line: 59]
>>>>>> [pc: 30, line: 63]
>>>>>> [pc: 33, line: 60]
>>>>>> [pc: 34, line: 61]
>>>>>> [pc: 44, line: 66]
>>>>>> [pc: 54, line: 69]
>>>>>> [pc: 60, line: 70]
>>>>>> [pc: 64, line: 71]
>>>>>> [pc: 66, line: 72]
>>>>>> [pc: 84, line: 73]
>>>>>> [pc: 95, line: 76]
>>>>>> [pc: 110, line: 81]
>>>>>> [pc: 113, line: 77]
>>>>>> [pc: 115, line: 81]
>>>>>> [pc: 118, line: 78]
>>>>>> [pc: 120, line: 81]
>>>>>> [pc: 123, line: 79]
>>>>>> [pc: 125, line: 81]
>>>>>> [pc: 128, line: 80]
>>>>>> [pc: 130, line: 83]
>>>>>> [pc: 134, line: 84]
>>>>>> [pc: 141, line: 86]
>>>>>> [pc: 168, line: 90]
>>>>>>
>>>>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>>>>> // Stack: 1, Locals: 1
>>>>>> public java.lang.ClassLoader getClassLoader();
>>>>>> 0 aload_0 [this]
>>>>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>>>> 4 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 96]
>>>>>>
>>>>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>>>>> // Stack: 4, Locals: 3
>>>>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>>>>> 0 new sun.security.action.GetPropertyAction [35]
>>>>>> 3 dup
>>>>>> 4 ldc <String "sun.boot.class.path"> [36]
>>>>>> 6 invokespecial
>>>>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>>>>> 9 invokestatic
>>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>>> : java.lang.Object [38]
>>>>>> 12 checkcast java.lang.String [39]
>>>>>> 15 astore_0
>>>>>> 16 aload_0
>>>>>> 17 ifnull 43
>>>>>> 20 aload_0
>>>>>> 21 astore_2
>>>>>> 22 new sun.misc.Launcher$1 [40]
>>>>>> 25 dup
>>>>>> 26 aload_2
>>>>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>>>>> 30 invokestatic
>>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>>> : java.lang.Object [38]
>>>>>> 33 checkcast java.net.URL[] [42]
>>>>>> 36 checkcast java.net.URL[] [42]
>>>>>> 39 astore_1
>>>>>> 40 goto 48
>>>>>> 43 iconst_0
>>>>>> 44 anewarray java.net.URL [43]
>>>>>> 47 astore_1
>>>>>> 48 new sun.misc.URLClassPath [44]
>>>>>> 51 dup
>>>>>> 52 aload_1
>>>>>> 53 getstatic sun.misc.Launcher.factory :
>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>>>>> java.net.URLStreamHandlerFactory) [45]
>>>>>> 59 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 319]
>>>>>> [pc: 16, line: 321]
>>>>>> [pc: 20, line: 322]
>>>>>> [pc: 22, line: 323]
>>>>>> [pc: 40, line: 330]
>>>>>> [pc: 43, line: 331]
>>>>>> [pc: 48, line: 333]
>>>>>>
>>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>>> // Stack: 4, Locals: 3
>>>>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 arraylength
>>>>>> 2 anewarray java.net.URL [43]
>>>>>> 5 astore_1
>>>>>> 6 iconst_0
>>>>>> 7 istore_2
>>>>>> 8 iload_2
>>>>>> 9 aload_0 [arg0]
>>>>>> 10 arraylength
>>>>>> 11 if_icmpge 29
>>>>>> 14 aload_1
>>>>>> 15 iload_2
>>>>>> 16 aload_0 [arg0]
>>>>>> 17 iload_2
>>>>>> 18 aaload
>>>>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>>>>> java.net.URL [46]
>>>>>> 22 aastore
>>>>>> 23 iinc 2 1
>>>>>> 26 goto 8
>>>>>> 29 aload_1
>>>>>> 30 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 337]
>>>>>> [pc: 6, line: 338]
>>>>>> [pc: 14, line: 339]
>>>>>> [pc: 23, line: 338]
>>>>>> [pc: 29, line: 345]
>>>>>>
>>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>>> // Stack: 7, Locals: 7
>>>>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 ifnull 197
>>>>>> 4 iconst_0
>>>>>> 5 istore_2
>>>>>> 6 iconst_1
>>>>>> 7 istore_3
>>>>>> 8 iconst_0
>>>>>> 9 istore 4
>>>>>> 11 iconst_0
>>>>>> 12 istore 5
>>>>>> 14 aload_0 [arg0]
>>>>>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>>>> 18 iload 5
>>>>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>>> int) : int [48]
>>>>>> 23 dup
>>>>>> 24 istore 4
>>>>>> 26 iconst_m1
>>>>>> 27 if_icmpeq 42
>>>>>> 30 iinc 3 1
>>>>>> 33 iload 4
>>>>>> 35 iconst_1
>>>>>> 36 iadd
>>>>>> 37 istore 5
>>>>>> 39 goto 14
>>>>>> 42 iload_3
>>>>>> 43 anewarray java.io.File [49]
>>>>>> 46 astore_1
>>>>>> 47 iconst_0
>>>>>> 48 dup
>>>>>> 49 istore 4
>>>>>> 51 istore 5
>>>>>> 53 aload_0 [arg0]
>>>>>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>>>> 57 iload 5
>>>>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>>> int) : int [48]
>>>>>> 62 dup
>>>>>> 63 istore 4
>>>>>> 65 iconst_m1
>>>>>> 66 if_icmpeq 125
>>>>>> 69 iload 4
>>>>>> 71 iload 5
>>>>>> 73 isub
>>>>>> 74 ifle 101
>>>>>> 77 aload_1
>>>>>> 78 iload_2
>>>>>> 79 iinc 2 1
>>>>>> 82 new java.io.File [49]
>>>>>> 85 dup
>>>>>> 86 aload_0 [arg0]
>>>>>> 87 iload 5
>>>>>> 89 iload 4
>>>>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>>>>> java.lang.String [50]
>>>>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>>>>> 97 aastore
>>>>>> 98 goto 116
>>>>>> 101 aload_1
>>>>>> 102 iload_2
>>>>>> 103 iinc 2 1
>>>>>> 106 new java.io.File [49]
>>>>>> 109 dup
>>>>>> 110 ldc <String "."> [52]
>>>>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>>>>> 115 aastore
>>>>>> 116 iload 4
>>>>>> 118 iconst_1
>>>>>> 119 iadd
>>>>>> 120 istore 5
>>>>>> 122 goto 53
>>>>>> 125 iload 5
>>>>>> 127 aload_0 [arg0]
>>>>>> 128 invokevirtual java.lang.String.length() : int [53]
>>>>>> 131 if_icmpge 156
>>>>>> 134 aload_1
>>>>>> 135 iload_2
>>>>>> 136 iinc 2 1
>>>>>> 139 new java.io.File [49]
>>>>>> 142 dup
>>>>>> 143 aload_0 [arg0]
>>>>>> 144 iload 5
>>>>>> 146 invokevirtual java.lang.String.substring(int) :
>>>>>> java.lang.String [54]
>>>>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>>>>> 152 aastore
>>>>>> 153 goto 171
>>>>>> 156 aload_1
>>>>>> 157 iload_2
>>>>>> 158 iinc 2 1
>>>>>> 161 new java.io.File [49]
>>>>>> 164 dup
>>>>>> 165 ldc <String "."> [52]
>>>>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>>>>> 170 aastore
>>>>>> 171 iload_2
>>>>>> 172 iload_3
>>>>>> 173 if_icmpeq 194
>>>>>> 176 iload_2
>>>>>> 177 anewarray java.io.File [49]
>>>>>> 180 astore 6
>>>>>> 182 aload_1
>>>>>> 183 iconst_0
>>>>>> 184 aload 6
>>>>>> 186 iconst_0
>>>>>> 187 iload_2
>>>>>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>>>>>> int, java.lang.Object, int, int) : void [55]
>>>>>> 191 aload 6
>>>>>> 193 astore_1
>>>>>> 194 goto 202
>>>>>> 197 iconst_0
>>>>>> 198 anewarray java.io.File [49]
>>>>>> 201 astore_1
>>>>>> 202 aload_1
>>>>>> 203 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 350]
>>>>>> [pc: 4, line: 351]
>>>>>> [pc: 8, line: 352]
>>>>>> [pc: 14, line: 354]
>>>>>> [pc: 30, line: 355]
>>>>>> [pc: 33, line: 356]
>>>>>> [pc: 42, line: 358]
>>>>>> [pc: 47, line: 359]
>>>>>> [pc: 53, line: 361]
>>>>>> [pc: 69, line: 362]
>>>>>> [pc: 77, line: 363]
>>>>>> [pc: 101, line: 366]
>>>>>> [pc: 116, line: 368]
>>>>>> [pc: 125, line: 371]
>>>>>> [pc: 134, line: 372]
>>>>>> [pc: 156, line: 374]
>>>>>> [pc: 171, line: 377]
>>>>>> [pc: 176, line: 378]
>>>>>> [pc: 182, line: 379]
>>>>>> [pc: 191, line: 380]
>>>>>> [pc: 194, line: 382]
>>>>>> [pc: 197, line: 383]
>>>>>> [pc: 202, line: 389]
>>>>>>
>>>>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>>>>> // Stack: 2, Locals: 2
>>>>>> static java.net.URL getFileURL(java.io.File arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 invokevirtual java.io.File.getCanonicalFile() :
>>>>>> java.io.File [56]
>>>>>> 4 astore_0 [arg0]
>>>>>> 5 goto 9
>>>>>> 8 astore_1
>>>>>> 9 aload_0 [arg0]
>>>>>> 10 invokestatic
>>>>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) :
>>>>>> java.net.URL [57]
>>>>>> 13 areturn
>>>>>> 14 astore_1
>>>>>> 15 new java.lang.InternalError [8]
>>>>>> 18 dup
>>>>>> 19 invokespecial java.lang.InternalError() [59]
>>>>>> 22 athrow
>>>>>> Exception Table:
>>>>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>>>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 396]
>>>>>> [pc: 5, line: 397]
>>>>>> [pc: 9, line: 400]
>>>>>> [pc: 14, line: 401]
>>>>>> [pc: 15, line: 403]
>>>>>>
>>>>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>>>>> // Stack: 1, Locals: 0
>>>>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>>>>> 0 getstatic sun.misc.Launcher.factory :
>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>> 3 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 37]
>>>>>>
>>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>>> // Stack: 1, Locals: 1
>>>>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 invokestatic
>>>>>> sun.misc.Launcher.getClassPath(java.lang.String) : java.io.File[] [2]
>>>>>> 4 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 37]
>>>>>>
>>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>>> // Stack: 1, Locals: 1
>>>>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>>>>>> java.net.URL[] [1]
>>>>>> 4 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 37]
>>>>>>
>>>>>> // Method descriptor #84 ()V
>>>>>> // Stack: 3, Locals: 0
>>>>>> static {};
>>>>>> 0 new sun.misc.Launcher$Factory [60]
>>>>>> 3 dup
>>>>>> 4 aconst_null
>>>>>> 5 invokespecial
>>>>>> sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
>>>>>> 8 putstatic sun.misc.Launcher.factory :
>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>> 11 new sun.misc.Launcher [62]
>>>>>> 14 dup
>>>>>> 15 invokespecial sun.misc.Launcher() [63]
>>>>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>>> 21 return
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 38]
>>>>>> [pc: 11, line: 39]
>>>>>>
>>>>>> Inner classes:
>>>>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>>>>> info: #62 sun/misc/Launcher
>>>>>> inner name: #65 Factory, accessflags: 10 private static],
>>>>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>>>>>> class info: #62 sun/misc/Launcher
>>>>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>>>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>>>>>> class info: #62 sun/misc/Launcher
>>>>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>>>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>>>>> inner name: #0, accessflags: 8 static]
>>>>>>
>>>>>> regards
>>>>>> Steve
>>>>>>
>>>>>>
>>>>>> Sven Efftinge wrote:
>>>>>>> Hi Bill,
>>>>>>>
>>>>>>> sorry, I've no idea why the workflow terminates silently.
>>>>>>> It seems that for some yet unkown reason the exception is not
>>>>>>> printed on the console.
>>>>>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>>>>>> checkbox in the run configuration) in order to find out where,
>>>>>>> when and why it terminates?
>>>>>>>
>>>>>>> Sorry, I couldn't help more.
>>>>>>>
>>>>>>> Sven
>>>>>>>
>>>>>>> Bill Hinge schrieb:
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> I originally posted to the tmf newsgroup but I suspect I should
>>>>>>>> have
>>>>>>>> posted here? I have been experimenting further and this post is
>>>>>>>> updated
>>>>>>>>
>>>>>>>> I have created a GMF editor based on multiple linked ecore files
>>>>>>>> and
>>>>>>>> my GMF editor creates a shared EMF-GMF editor domain in a single
>>>>>>>> file.
>>>>>>>>
>>>>>>>> I have set up an action to call a workflow from my GMF UI and it
>>>>>>>> appears
>>>>>>>> to be configured correctly but doesn't actually produce
>>>>>>>> anything. (ie
>>>>>>>> it's called from java using WorkFlowRunner().... The intention
>>>>>>>> is to
>>>>>>>> call the workflow on my editor's model files which will be in
>>>>>>>> their own
>>>>>>>> project directory.
>>>>>>>>
>>>>>>>> As part of my testing I'm manually testing by running the
>>>>>>>> workflow from
>>>>>>>> the project explorer (right click run as MWE). I have set up a
>>>>>>>> runtime
>>>>>>>> config but when I run I get no errors and no output. I get a
>>>>>>>> message
>>>>>>>> 'terminated' on top of the console window.
>>>>>>>>
>>>>>>>> I am also seeing a lot of messages
>>>>>>>> "Could not acquire children from extension:
>>>>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but
>>>>>>>> these don't seem to timed with my test runs so I'm not sure if
>>>>>>>> they are related.
>>>>>>>>
>>>>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>>>>
>>>>>>>> <?xml version="1.0"?>
>>>>>>>> <workflow>
>>>>>>>> <property name="workspace_loc" value="./" />
>>>>>>>> <property name="eclipse_home" value="../" />
>>>>>>>> <property name="model"
>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>>>>> <property name="src-gen"
>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>> <property name="out" value="out" />
>>>>>>>>
>>>>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>>>>> <platformUri value="../" />
>>>>>>>> <RegisterEcoreFile
>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>>>>> <RegisterEcoreFile
>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>>>>> </bean>
>>>>>>>> <component
>>>>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>>
>>>>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>>>>> <modelSlot value="model"/>
>>>>>>>> <uri value="${model}"/>
>>>>>>>> <firstElementOnly value="false" />
>>>>>>>> </component>
>>>>>>>>
>>>>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>>>>> <metaModel id="mm"
>>>>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>>>>> <expand value="Demo::Main FOR model" />
>>>>>>>> <outlet path="${src-gen}"/>
>>>>>>>> </component>
>>>>>>>> </workflow>
>>>>>>>>
>>>>>>>>
>>>>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>>>>
>>>>>>>> I have put a copy set of my model ecore files in
>>>>>>>> com.xx.yy.ui/model/
>>>>>>>> (contract.ecore etc) and I have put a test copy of the GMF
>>>>>>>> editor model
>>>>>>>> output default2.ngoss in /templates
>>>>>>>>
>>>>>>>> (once I get this running manually I'll be using a call from java)
>>>>>>>>
>>>>>>>>
>>>>>>>> When I run the workflow it gets as far as and stops
>>>>>>>>
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO:
>>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>>
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO:
>>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>>
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO: running workflow:
>>>>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>>>>
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO:
>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup setPlatformUri
>>>>>>>> INFO: Registering platform uri
>>>>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterEcoreFile
>>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss'
>>>>>>>> from '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterEcoreFile
>>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>>>>> >
>>>>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>>>>> org.eclipse.core.resources,
>>>>>>>> org.eclipse.ui,
>>>>>>>> org.eclipse.emf.codegen,
>>>>>>>> org.eclipse.ui.ide,
>>>>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF
>>>>>>>> book,
>>>>>>>> tried various combinations of the above but am stuck. Any idea
>>>>>>>> what I'm
>>>>>>>> doing wrong please?
>>>>>>>>
>>>>>>>> regards
>>>>>>>> Steve
|
|
| | | | |
Re: first time problem running workflow (mwe 0.7.0) [message #137961 is a reply to message #137936] |
Thu, 02 July 2009 21:26 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Krzysztof,
my previous post has been submitted to fast. Actually a platform:/plugin
uri will not help you, because the workflow does not know about
registered plugins etc.
I didn't find another solution than you. It seems you really have to be
evil and copy the genmodel. Maybe somebody else knows the trick how to
avoid this?
Regards,
Sebastian
Am 02.07.2009 22:46 Uhr, schrieb Krzysztof Kowalczyk:
> I don't know how to do all the things right so I added TMF news group
> and believe that somebody will help with the rest.
>
> > What I meant was that my created DSL has ERefeferences to UML Class
> > entity etc so that I may load UML classes from a .uml file into my DSL.
> >
> > As such I needed to put something like
> >
> > <RegisterEcoreFile value="./model/UML.ecore"/> in my workflow having
> > put a copy of UML.ecore in local dir. I thought it better to register(?)
> > this by pointing to the plugin containing the ecore directly. However, I
> > don't know if this is possible?
>
> Don't do that, some projects does include changes in code generated
> from ecore models. AFAIK UML project is one of them so you should use
> generated code not the dynamic version IMHO. Unfortunately UML need
> different handling in most cases (its own metamodel, its own setup etc.)
>
> What you need is to register the generated UML model by registering the
> generated EPackage:
>
> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
> <registerGeneratedEPackage value="org.eclipse.uml2.uml.UMLPackage"/>
> </bean>
>
> You also need small change like that in your Xtext workflow:
>
> <fragment
> class="org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment "
> genModels="platform:/plugins/org.eclipse.uml2.uml/model/UML.genmodel "
> />
>
> But actually this will not work (I never liked uri), can somebody
> correct that? Is the copying genmodel and using "platform:/resource/"
> instead, the only solution? It works, but is pure evil IMO ;)
>
> Regards,
> Krzysztof Kowalczyk
|
|
| |
Re: first time problem running workflow (mwe 0.7.0) [message #137988 is a reply to message #137900] |
Thu, 02 July 2009 22:37 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
By the way, I managed to resolve the need for the notation.ecore. I
misread the GMF book and interpreted it that I must have
firstElementOnly=false if I have multiple roots in my file. Obviously
I don't want to parse diag info so if I remove this flag (default=true)
I remove the need to deal with notation.ecore.
I'm still getting a termination from an exception with no error message
associated with it when running in debugger (occasional memory violation
with f5)
I'm trying a bit of refactoring to see if it helps
regards
Steve
PS thanks for the great info
Bill Hinge wrote:
> Working now, got the answer on m2t group
> (message Re: problem running xpand generator )
>
> Would be nice if there were a way to reference ecore's
> from referenced plugin's eg uml.ecore, notation.ecore
>
> regards
> Steve
>
>
> Bill Hinge wrote:
>> I originally posted this to m2t as I thought it was an Xpand problem
>>
>> I'm struggling through some workflow & xpand2 issues and I've got as far
>> as the generator part.
>>
>> I have set up my gmf model in $model etc for my Reader and it is being
>> read but I'm getting a fatal error at the generator.
>>
>> My xpand template is quite simple at this stage
>>
>> «IMPORT ngoss»
>> «IMPORT contract»
>> «IMPORT sla»
>>
>>
>> «DEFINE ngoss FOR contract::Contract»
>> «ENDDEFINE»
>>
>>
>> Note, even though I used code completion I'm getting those red error
>> marks on my IMPORT's
>>
>> Here is part of my workflow
>>
>>
>> <component class="org.eclipse.emf.mwe.utils.Reader">
>> <firstElementOnly value="false" />
>> <modelSlot value="model"/>
>> <uri value="${model}"/>
>>
>> </component>
>>
>> <component class="org.eclipse.xpand2.Generator" id="generate">
>> <metaModel id="mm"
>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>> <fileEncoding value="UTF-8"/>
>> <expand value="Demos::ngoss FOR model" />
>> <outlet path="${src-gen}"/>
>> </component>
>>
>> Note it doesn't seem to matter if I use templates::Demos or not!
>>
>> Jul 1, 2009 3:17:40 PM
>> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent
>> invokeInternal
>> SEVERE: Error in Component generate of type org.eclipse.xpand2.Generator:
>> EvaluationException : No Definition
>> 'templates::NewTemplateFile::ngoss for List' found!
>> [23,50] on line 1 'EXPAND templates::NewTemplateFile::ngoss FOR
>> model'
>>
>> Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner
>> executeWorkflow
>> SEVERE: Workflow interrupted. Reason: No Definition
>> 'templates::NewTemplateFile::ngoss for List' found!
>> Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
>> SEVERE: [ERROR]: No Definition 'templates::NewTemplateFile::ngoss for
>> List' found!(Element: EXPAND templates::NewTemplateFile::ngoss FOR
>> model; Reported by: Generator(generate)
>>
>>
>>
>> IF I use the following template (done via code completion)
>>
>> «IMPORT ngoss»
>> «IMPORT contract»
>> «IMPORT sla»
>>
>>
>> «DEFINE Main FOR NGOSS»
>>
>> «FILE author + ".ngoss_out"»
>> «EXPAND bs FOREACH this.businessServices»
>>
>> «ENDFILE»
>>
>>
>> «ENDDEFINE»
>>
>> «DEFINE bs FOR Contract»
>>
>> «Title»
>> «ENDDEFINE»
>>
>> I get the following error
>>
>> SEVERE: mismatched input ''http://www.xx.com/2008/ngoss'' expecting
>> Identifier on line 1
>> org.eclipse.internal.xtend.xtend.parser.ParseException: mismatched
>> input ''http://www.bt.com/2008/ngoss'' expecting Identifier on line 1
>> at
>> org.eclipse.internal.xpand2.parser.XpandParseFacade$3.handle Error(XpandParseFacade.java:77)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParseFacade$2.report Error(XpandParseFacade.java:66)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParser.identifier(Xp andParser.java:4326)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .identifier(XpandLocationAddingParser.java:184)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParser.simpleType(Xp andParser.java:4251)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .simpleType(XpandLocationAddingParser.java:274)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParser.anImport(Xpan dParser.java:368)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .anImport(XpandLocationAddingParser.java:79)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParser.template(Xpan dParser.java:170)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .template(XpandLocationAddingParser.java:289)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:44)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:31)
>>
>> at
>> org.eclipse.xpand2.XpandExecutionContextImpl$1.parse(XpandEx ecutionContextImpl.java:92)
>>
>> at
>> org.eclipse.xtend.expression.ResourceManagerDefaultImpl.load Resource(ResourceManagerDefaultImpl.java:70)
>>
>> at
>> org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:193)
>>
>> at
>> org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:186)
>>
>> at
>> org.eclipse.xpand2.XpandExecutionContextImpl.findDefinition( XpandExecutionContextImpl.java:145)
>>
>> at
>> org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefini tion(ExpandStatement.java:174)
>>
>> at
>> org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInte rnal(ExpandStatement.java:167)
>>
>> at
>> org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
>> at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java: 334)
>> at
>> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent.invokeInternal(AbstractExpressionsUsingWorkflowCo mponent.java:191)
>>
>> at
>> org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invok e(AbstractWorkflowComponent.java:118)
>>
>> at
>> org.eclipse.emf.mwe.core.container.CompositeComponent.intern alInvoke(CompositeComponent.java:101)
>>
>> at
>> org.eclipse.emf.mwe.core.container.CompositeComponent.invoke (CompositeComponent.java:86)
>>
>> at
>> org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(Work flowRunner.java:412)
>>
>> at
>> org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.j ava:292)
>> at
>> org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner. java:239)
>> Jul 1, 2009 4:29:04 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
>> SEVERE: [ERROR]: mismatched input ''http://www.xx.com/2008/ngoss''
>> expecting Identifier on line 1(Element: EXPAND Demo::ngoss FOR model;
>> Reported by: Generator(NgossGenerate): generating 'Demo::ngoss FOR
>> model' => ..//com.xx.yyy.ui/src-gen)
>>
>>
>> regards
>> Steve
>>
>>
>>
>>
>>
>> Bill Hinge wrote:
>>> For now I have cheated and copied notation.ecore to my local directory
>>> and put a reference to it
>>>
>>> <RegisterEcoreFile
>>> value="${eclipse_home}/com.xx.yyy.ui/model/notation.ecore"/ >
>>>
>>> obviously not very elegant but it works, the following didn't though
>>>
>>> <uriMap
>>> from="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
>>>
>>> to=" platform:/plugin/org.eclipse.gmf.runtime.notation.notation.e core "/>
>>>
>>>
>>> Bill Hinge wrote:
>>>> Sorry to answer my own post, hopefully someone may find it useful in
>>>> future!
>>>>
>>>> The reason for the error below was that I was was linking by reference
>>>> to uml.ecore and ecore.ecore and some attributes were badly set as uml
>>>> definition of string as opposed to ecore string. A quick edit of the
>>>> attribute type in the local ecore fixed that problem as a workaround.
>>>>
>>>>
>>>> There were some other later issues with other namespaces not being
>>>> found
>>>> so I just added them via multiple calls of RegisterEcoreFile.
>>>>
>>>>
>>>> However, since this is a mixed model and diagram file containing both
>>>> model and GMF diagram info the workflow is now looking for
>>>>
>>>> Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation'
>>>> not found
>>>>
>>>> as this is referenced in the gmf output file default2.ngoss
>>>>
>>>> Haven't worked out this one yet , any hints?
>>>>
>>>> steve
>>>>
>>>> Bill Hinge wrote:
>>>>> To clarify, TestModel referred to below is a string value defined
>>>>> by my
>>>>> ecore files as a legal String, it was created by my GMF-EMF editor
>>>>> so I
>>>>> would be surprised if it weren't legal. Hence my question as to what
>>>>> Reader I should use?
>>>>>
>>>>> Anyhow, made some progress I'm now failing on the Reader
>>>>>
>>>>> steve
>>>>>
>>>>> Bill Hinge wrote:
>>>>>> Sven
>>>>>>
>>>>>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>>>>>
>>>>>> if I add to my dependencies I now get
>>>>>>
>>>>>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>>>>>> 'TestModel' is not legal.
>>>>>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>>>>>> 4, 105)
>>>>>>
>>>>>>
>>>>>> Should I be using a different Reader/Generator?
>>>>>> (This is a single file GMF-EMF editor)
>>>>>>
>>>>>>
>>>>>> regards
>>>>>> Steve
>>>>>>
>>>>>>
>>>>>> Bill Hinge wrote:
>>>>>>> Hi Sven
>>>>>>>
>>>>>>>
>>>>>>> I just tried this, must have had some fat fingered gremlins
>>>>>>> before cause
>>>>>>> it kept crashing
>>>>>>>
>>>>>>> works now...
>>>>>>>
>>>>>>> I get a classloader error -- source not found
>>>>>>>
>>>>>>>
>>>>>>> } finally {
>>>>>>> if (isChildmost) {
>>>>>>> childmostCaller.remove();
>>>>>>>
>>>>>>> if ((c != null) && name.startsWith("org.apache.") &&
>>>>>>> ( name.startsWith("org.apache.crimson.") ||
>>>>>>> name.startsWith("org.apache.xalan.") ||
>>>>>>> name.startsWith("org.apache.xml.") ||
>>>>>>> name.startsWith("org.apache.xpath.") ) ) {
>>>>>>> AccessController.doPrivileged(new
>>>>>>> PrivilegedAction() {
>>>>>>> public Object
>>>>>>> run() { return
>>>>>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ",
>>>>>>> "true");
>>>>>>> }});
>>>>>>> }
>>>>>>> }
>>>>>>> // MacOSX Change END
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> and ...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>>>>>> public class sun.misc.Launcher {
>>>>>>>
>>>>>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>>>>>> private static java.net.URLStreamHandlerFactory factory;
>>>>>>>
>>>>>>> // Field descriptor #74 Lsun/misc/Launcher;
>>>>>>> private static sun.misc.Launcher launcher;
>>>>>>>
>>>>>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>>>>>> private java.lang.ClassLoader loader;
>>>>>>>
>>>>>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>>>>>> private static java.net.URLStreamHandler fileHandler;
>>>>>>>
>>>>>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>>>>>> // Stack: 1, Locals: 0
>>>>>>> public static sun.misc.Launcher getLauncher();
>>>>>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>>>> 3 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 42]
>>>>>>>
>>>>>>> // Method descriptor #84 ()V
>>>>>>> // Stack: 4, Locals: 5
>>>>>>> public Launcher();
>>>>>>> 0 aload_0 [this]
>>>>>>> 1 invokespecial java.lang.Object() [5]
>>>>>>> 4 invokestatic
>>>>>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>>>>>> sun.misc.Launcher$ExtClassLoader [6]
>>>>>>> 7 astore_1
>>>>>>> 8 goto 22
>>>>>>> 11 astore_2
>>>>>>> 12 new java.lang.InternalError [8]
>>>>>>> 15 dup
>>>>>>> 16 ldc <String "Could not create extension class loader"> [9]
>>>>>>> 18 invokespecial java.lang.InternalError(java.lang.String)
>>>>>>> [10]
>>>>>>> 21 athrow
>>>>>>> 22 aload_0 [this]
>>>>>>> 23 aload_1
>>>>>>> 24 invokestatic
>>>>>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>>>>>> : java.lang.ClassLoader [11]
>>>>>>> 27 putfield sun.misc.Launcher.loader :
>>>>>>> java.lang.ClassLoader [12]
>>>>>>> 30 goto 44
>>>>>>> 33 astore_2
>>>>>>> 34 new java.lang.InternalError [8]
>>>>>>> 37 dup
>>>>>>> 38 ldc <String "Could not create application class loader">
>>>>>>> [13]
>>>>>>> 40 invokespecial java.lang.InternalError(java.lang.String)
>>>>>>> [10]
>>>>>>> 43 athrow
>>>>>>> 44 invokestatic java.lang.Thread.currentThread() :
>>>>>>> java.lang.Thread [14]
>>>>>>> 47 aload_0 [this]
>>>>>>> 48 getfield sun.misc.Launcher.loader :
>>>>>>> java.lang.ClassLoader [12]
>>>>>>> 51 invokevirtual
>>>>>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) :
>>>>>>> void [15]
>>>>>>> 54 ldc <String "java.security.manager"> [16]
>>>>>>> 56 invokestatic
>>>>>>> java.lang.System.getProperty(java.lang.String) : java.lang.String
>>>>>>> [17]
>>>>>>> 59 astore_2
>>>>>>> 60 aload_2
>>>>>>> 61 ifnull 168
>>>>>>> 64 aconst_null
>>>>>>> 65 astore_3
>>>>>>> 66 ldc <String ""> [18]
>>>>>>> 68 aload_2
>>>>>>> 69 invokevirtual java.lang.String.equals(java.lang.Object)
>>>>>>> : boolean [19]
>>>>>>> 72 ifne 84
>>>>>>> 75 ldc <String "default"> [20]
>>>>>>> 77 aload_2
>>>>>>> 78 invokevirtual java.lang.String.equals(java.lang.Object)
>>>>>>> : boolean [19]
>>>>>>> 81 ifeq 95
>>>>>>> 84 new java.lang.SecurityManager [21]
>>>>>>> 87 dup
>>>>>>> 88 invokespecial java.lang.SecurityManager() [22]
>>>>>>> 91 astore_3
>>>>>>> 92 goto 130
>>>>>>> 95 aload_0 [this]
>>>>>>> 96 getfield sun.misc.Launcher.loader :
>>>>>>> java.lang.ClassLoader [12]
>>>>>>> 99 aload_2
>>>>>>> 100 invokevirtual
>>>>>>> java.lang.ClassLoader.loadClass(java.lang.String) :
>>>>>>> java.lang.Class [23]
>>>>>>> 103 invokevirtual java.lang.Class.newInstance() :
>>>>>>> java.lang.Object [24]
>>>>>>> 106 checkcast java.lang.SecurityManager [21]
>>>>>>> 109 astore_3
>>>>>>> 110 goto 130
>>>>>>> 113 astore 4
>>>>>>> 115 goto 130
>>>>>>> 118 astore 4
>>>>>>> 120 goto 130
>>>>>>> 123 astore 4
>>>>>>> 125 goto 130
>>>>>>> 128 astore 4
>>>>>>> 130 aload_3
>>>>>>> 131 ifnull 141
>>>>>>> 134 aload_3
>>>>>>> 135 invokestatic
>>>>>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) :
>>>>>>> void [29]
>>>>>>> 138 goto 168
>>>>>>> 141 new java.lang.InternalError [8]
>>>>>>> 144 dup
>>>>>>> 145 new java.lang.StringBuilder [30]
>>>>>>> 148 dup
>>>>>>> 149 invokespecial java.lang.StringBuilder() [31]
>>>>>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>>>>>> 154 invokevirtual
>>>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>>>> java.lang.StringBuilder [33]
>>>>>>> 157 aload_2
>>>>>>> 158 invokevirtual
>>>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>>>> java.lang.StringBuilder [33]
>>>>>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>>>>>> java.lang.String [34]
>>>>>>> 164 invokespecial java.lang.InternalError(java.lang.String)
>>>>>>> [10]
>>>>>>> 167 athrow
>>>>>>> 168 return
>>>>>>> Exception Table:
>>>>>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>>>>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>>>>>> [pc: 95, pc: 110] -> 113 when :
>>>>>>> java.lang.IllegalAccessException
>>>>>>> [pc: 95, pc: 110] -> 118 when :
>>>>>>> java.lang.InstantiationException
>>>>>>> [pc: 95, pc: 110] -> 123 when :
>>>>>>> java.lang.ClassNotFoundException
>>>>>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 47]
>>>>>>> [pc: 4, line: 51]
>>>>>>> [pc: 8, line: 55]
>>>>>>> [pc: 11, line: 52]
>>>>>>> [pc: 12, line: 53]
>>>>>>> [pc: 22, line: 59]
>>>>>>> [pc: 30, line: 63]
>>>>>>> [pc: 33, line: 60]
>>>>>>> [pc: 34, line: 61]
>>>>>>> [pc: 44, line: 66]
>>>>>>> [pc: 54, line: 69]
>>>>>>> [pc: 60, line: 70]
>>>>>>> [pc: 64, line: 71]
>>>>>>> [pc: 66, line: 72]
>>>>>>> [pc: 84, line: 73]
>>>>>>> [pc: 95, line: 76]
>>>>>>> [pc: 110, line: 81]
>>>>>>> [pc: 113, line: 77]
>>>>>>> [pc: 115, line: 81]
>>>>>>> [pc: 118, line: 78]
>>>>>>> [pc: 120, line: 81]
>>>>>>> [pc: 123, line: 79]
>>>>>>> [pc: 125, line: 81]
>>>>>>> [pc: 128, line: 80]
>>>>>>> [pc: 130, line: 83]
>>>>>>> [pc: 134, line: 84]
>>>>>>> [pc: 141, line: 86]
>>>>>>> [pc: 168, line: 90]
>>>>>>>
>>>>>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>>>>>> // Stack: 1, Locals: 1
>>>>>>> public java.lang.ClassLoader getClassLoader();
>>>>>>> 0 aload_0 [this]
>>>>>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>>>> [12]
>>>>>>> 4 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 96]
>>>>>>>
>>>>>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>>>>>> // Stack: 4, Locals: 3
>>>>>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>>>>>> 0 new sun.security.action.GetPropertyAction [35]
>>>>>>> 3 dup
>>>>>>> 4 ldc <String "sun.boot.class.path"> [36]
>>>>>>> 6 invokespecial
>>>>>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>>>>>> 9 invokestatic
>>>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>>>> : java.lang.Object [38]
>>>>>>> 12 checkcast java.lang.String [39]
>>>>>>> 15 astore_0
>>>>>>> 16 aload_0
>>>>>>> 17 ifnull 43
>>>>>>> 20 aload_0
>>>>>>> 21 astore_2
>>>>>>> 22 new sun.misc.Launcher$1 [40]
>>>>>>> 25 dup
>>>>>>> 26 aload_2
>>>>>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>>>>>> 30 invokestatic
>>>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>>>> : java.lang.Object [38]
>>>>>>> 33 checkcast java.net.URL[] [42]
>>>>>>> 36 checkcast java.net.URL[] [42]
>>>>>>> 39 astore_1
>>>>>>> 40 goto 48
>>>>>>> 43 iconst_0
>>>>>>> 44 anewarray java.net.URL [43]
>>>>>>> 47 astore_1
>>>>>>> 48 new sun.misc.URLClassPath [44]
>>>>>>> 51 dup
>>>>>>> 52 aload_1
>>>>>>> 53 getstatic sun.misc.Launcher.factory :
>>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>>>>>> java.net.URLStreamHandlerFactory) [45]
>>>>>>> 59 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 319]
>>>>>>> [pc: 16, line: 321]
>>>>>>> [pc: 20, line: 322]
>>>>>>> [pc: 22, line: 323]
>>>>>>> [pc: 40, line: 330]
>>>>>>> [pc: 43, line: 331]
>>>>>>> [pc: 48, line: 333]
>>>>>>>
>>>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>>>> // Stack: 4, Locals: 3
>>>>>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 arraylength
>>>>>>> 2 anewarray java.net.URL [43]
>>>>>>> 5 astore_1
>>>>>>> 6 iconst_0
>>>>>>> 7 istore_2
>>>>>>> 8 iload_2
>>>>>>> 9 aload_0 [arg0]
>>>>>>> 10 arraylength
>>>>>>> 11 if_icmpge 29
>>>>>>> 14 aload_1
>>>>>>> 15 iload_2
>>>>>>> 16 aload_0 [arg0]
>>>>>>> 17 iload_2
>>>>>>> 18 aaload
>>>>>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>>>>>> java.net.URL [46]
>>>>>>> 22 aastore
>>>>>>> 23 iinc 2 1
>>>>>>> 26 goto 8
>>>>>>> 29 aload_1
>>>>>>> 30 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 337]
>>>>>>> [pc: 6, line: 338]
>>>>>>> [pc: 14, line: 339]
>>>>>>> [pc: 23, line: 338]
>>>>>>> [pc: 29, line: 345]
>>>>>>>
>>>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>>>> // Stack: 7, Locals: 7
>>>>>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 ifnull 197
>>>>>>> 4 iconst_0
>>>>>>> 5 istore_2
>>>>>>> 6 iconst_1
>>>>>>> 7 istore_3
>>>>>>> 8 iconst_0
>>>>>>> 9 istore 4
>>>>>>> 11 iconst_0
>>>>>>> 12 istore 5
>>>>>>> 14 aload_0 [arg0]
>>>>>>> 15 getstatic java.io.File.pathSeparator : java.lang.String
>>>>>>> [47]
>>>>>>> 18 iload 5
>>>>>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>>>> int) : int [48]
>>>>>>> 23 dup
>>>>>>> 24 istore 4
>>>>>>> 26 iconst_m1
>>>>>>> 27 if_icmpeq 42
>>>>>>> 30 iinc 3 1
>>>>>>> 33 iload 4
>>>>>>> 35 iconst_1
>>>>>>> 36 iadd
>>>>>>> 37 istore 5
>>>>>>> 39 goto 14
>>>>>>> 42 iload_3
>>>>>>> 43 anewarray java.io.File [49]
>>>>>>> 46 astore_1
>>>>>>> 47 iconst_0
>>>>>>> 48 dup
>>>>>>> 49 istore 4
>>>>>>> 51 istore 5
>>>>>>> 53 aload_0 [arg0]
>>>>>>> 54 getstatic java.io.File.pathSeparator : java.lang.String
>>>>>>> [47]
>>>>>>> 57 iload 5
>>>>>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>>>> int) : int [48]
>>>>>>> 62 dup
>>>>>>> 63 istore 4
>>>>>>> 65 iconst_m1
>>>>>>> 66 if_icmpeq 125
>>>>>>> 69 iload 4
>>>>>>> 71 iload 5
>>>>>>> 73 isub
>>>>>>> 74 ifle 101
>>>>>>> 77 aload_1
>>>>>>> 78 iload_2
>>>>>>> 79 iinc 2 1
>>>>>>> 82 new java.io.File [49]
>>>>>>> 85 dup
>>>>>>> 86 aload_0 [arg0]
>>>>>>> 87 iload 5
>>>>>>> 89 iload 4
>>>>>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>>>>>> java.lang.String [50]
>>>>>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>>>>>> 97 aastore
>>>>>>> 98 goto 116
>>>>>>> 101 aload_1
>>>>>>> 102 iload_2
>>>>>>> 103 iinc 2 1
>>>>>>> 106 new java.io.File [49]
>>>>>>> 109 dup
>>>>>>> 110 ldc <String "."> [52]
>>>>>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>>>>>> 115 aastore
>>>>>>> 116 iload 4
>>>>>>> 118 iconst_1
>>>>>>> 119 iadd
>>>>>>> 120 istore 5
>>>>>>> 122 goto 53
>>>>>>> 125 iload 5
>>>>>>> 127 aload_0 [arg0]
>>>>>>> 128 invokevirtual java.lang.String.length() : int [53]
>>>>>>> 131 if_icmpge 156
>>>>>>> 134 aload_1
>>>>>>> 135 iload_2
>>>>>>> 136 iinc 2 1
>>>>>>> 139 new java.io.File [49]
>>>>>>> 142 dup
>>>>>>> 143 aload_0 [arg0]
>>>>>>> 144 iload 5
>>>>>>> 146 invokevirtual java.lang.String.substring(int) :
>>>>>>> java.lang.String [54]
>>>>>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>>>>>> 152 aastore
>>>>>>> 153 goto 171
>>>>>>> 156 aload_1
>>>>>>> 157 iload_2
>>>>>>> 158 iinc 2 1
>>>>>>> 161 new java.io.File [49]
>>>>>>> 164 dup
>>>>>>> 165 ldc <String "."> [52]
>>>>>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>>>>>> 170 aastore
>>>>>>> 171 iload_2
>>>>>>> 172 iload_3
>>>>>>> 173 if_icmpeq 194
>>>>>>> 176 iload_2
>>>>>>> 177 anewarray java.io.File [49]
>>>>>>> 180 astore 6
>>>>>>> 182 aload_1
>>>>>>> 183 iconst_0
>>>>>>> 184 aload 6
>>>>>>> 186 iconst_0
>>>>>>> 187 iload_2
>>>>>>> 188 invokestatic
>>>>>>> java.lang.System.arraycopy(java.lang.Object, int,
>>>>>>> java.lang.Object, int, int) : void [55]
>>>>>>> 191 aload 6
>>>>>>> 193 astore_1
>>>>>>> 194 goto 202
>>>>>>> 197 iconst_0
>>>>>>> 198 anewarray java.io.File [49]
>>>>>>> 201 astore_1
>>>>>>> 202 aload_1
>>>>>>> 203 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 350]
>>>>>>> [pc: 4, line: 351]
>>>>>>> [pc: 8, line: 352]
>>>>>>> [pc: 14, line: 354]
>>>>>>> [pc: 30, line: 355]
>>>>>>> [pc: 33, line: 356]
>>>>>>> [pc: 42, line: 358]
>>>>>>> [pc: 47, line: 359]
>>>>>>> [pc: 53, line: 361]
>>>>>>> [pc: 69, line: 362]
>>>>>>> [pc: 77, line: 363]
>>>>>>> [pc: 101, line: 366]
>>>>>>> [pc: 116, line: 368]
>>>>>>> [pc: 125, line: 371]
>>>>>>> [pc: 134, line: 372]
>>>>>>> [pc: 156, line: 374]
>>>>>>> [pc: 171, line: 377]
>>>>>>> [pc: 176, line: 378]
>>>>>>> [pc: 182, line: 379]
>>>>>>> [pc: 191, line: 380]
>>>>>>> [pc: 194, line: 382]
>>>>>>> [pc: 197, line: 383]
>>>>>>> [pc: 202, line: 389]
>>>>>>>
>>>>>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>>>>>> // Stack: 2, Locals: 2
>>>>>>> static java.net.URL getFileURL(java.io.File arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 invokevirtual java.io.File.getCanonicalFile() :
>>>>>>> java.io.File [56]
>>>>>>> 4 astore_0 [arg0]
>>>>>>> 5 goto 9
>>>>>>> 8 astore_1
>>>>>>> 9 aload_0 [arg0]
>>>>>>> 10 invokestatic
>>>>>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) :
>>>>>>> java.net.URL [57]
>>>>>>> 13 areturn
>>>>>>> 14 astore_1
>>>>>>> 15 new java.lang.InternalError [8]
>>>>>>> 18 dup
>>>>>>> 19 invokespecial java.lang.InternalError() [59]
>>>>>>> 22 athrow
>>>>>>> Exception Table:
>>>>>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>>>>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 396]
>>>>>>> [pc: 5, line: 397]
>>>>>>> [pc: 9, line: 400]
>>>>>>> [pc: 14, line: 401]
>>>>>>> [pc: 15, line: 403]
>>>>>>>
>>>>>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>>>>>> // Stack: 1, Locals: 0
>>>>>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>>>>>> 0 getstatic sun.misc.Launcher.factory :
>>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>>> 3 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 37]
>>>>>>>
>>>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>>>> // Stack: 1, Locals: 1
>>>>>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 invokestatic
>>>>>>> sun.misc.Launcher.getClassPath(java.lang.String) : java.io.File[]
>>>>>>> [2]
>>>>>>> 4 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 37]
>>>>>>>
>>>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>>>> // Stack: 1, Locals: 1
>>>>>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[])
>>>>>>> : java.net.URL[] [1]
>>>>>>> 4 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 37]
>>>>>>>
>>>>>>> // Method descriptor #84 ()V
>>>>>>> // Stack: 3, Locals: 0
>>>>>>> static {};
>>>>>>> 0 new sun.misc.Launcher$Factory [60]
>>>>>>> 3 dup
>>>>>>> 4 aconst_null
>>>>>>> 5 invokespecial
>>>>>>> sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
>>>>>>> 8 putstatic sun.misc.Launcher.factory :
>>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>>> 11 new sun.misc.Launcher [62]
>>>>>>> 14 dup
>>>>>>> 15 invokespecial sun.misc.Launcher() [63]
>>>>>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>>>> 21 return
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 38]
>>>>>>> [pc: 11, line: 39]
>>>>>>>
>>>>>>> Inner classes:
>>>>>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>>>>>> info: #62 sun/misc/Launcher
>>>>>>> inner name: #65 Factory, accessflags: 10 private static],
>>>>>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader,
>>>>>>> outer class info: #62 sun/misc/Launcher
>>>>>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>>>>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader,
>>>>>>> outer class info: #62 sun/misc/Launcher
>>>>>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>>>>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>>>>>> inner name: #0, accessflags: 8 static]
>>>>>>>
>>>>>>> regards
>>>>>>> Steve
>>>>>>>
>>>>>>>
>>>>>>> Sven Efftinge wrote:
>>>>>>>> Hi Bill,
>>>>>>>>
>>>>>>>> sorry, I've no idea why the workflow terminates silently.
>>>>>>>> It seems that for some yet unkown reason the exception is not
>>>>>>>> printed on the console.
>>>>>>>> Did you try the debug mode (don't forget to flag the "Java
>>>>>>>> Debug" checkbox in the run configuration) in order to find out
>>>>>>>> where, when and why it terminates?
>>>>>>>>
>>>>>>>> Sorry, I couldn't help more.
>>>>>>>>
>>>>>>>> Sven
>>>>>>>>
>>>>>>>> Bill Hinge schrieb:
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> I originally posted to the tmf newsgroup but I suspect I should
>>>>>>>>> have
>>>>>>>>> posted here? I have been experimenting further and this post is
>>>>>>>>> updated
>>>>>>>>>
>>>>>>>>> I have created a GMF editor based on multiple linked ecore
>>>>>>>>> files and
>>>>>>>>> my GMF editor creates a shared EMF-GMF editor domain in a
>>>>>>>>> single file.
>>>>>>>>>
>>>>>>>>> I have set up an action to call a workflow from my GMF UI and
>>>>>>>>> it appears
>>>>>>>>> to be configured correctly but doesn't actually produce
>>>>>>>>> anything. (ie
>>>>>>>>> it's called from java using WorkFlowRunner().... The intention
>>>>>>>>> is to
>>>>>>>>> call the workflow on my editor's model files which will be in
>>>>>>>>> their own
>>>>>>>>> project directory.
>>>>>>>>>
>>>>>>>>> As part of my testing I'm manually testing by running the
>>>>>>>>> workflow from
>>>>>>>>> the project explorer (right click run as MWE). I have set up a
>>>>>>>>> runtime
>>>>>>>>> config but when I run I get no errors and no output. I get a
>>>>>>>>> message
>>>>>>>>> 'terminated' on top of the console window.
>>>>>>>>>
>>>>>>>>> I am also seeing a lot of messages
>>>>>>>>> "Could not acquire children from extension:
>>>>>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but
>>>>>>>>> these don't seem to timed with my test runs so I'm not sure if
>>>>>>>>> they are related.
>>>>>>>>>
>>>>>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>>>>>
>>>>>>>>> <?xml version="1.0"?>
>>>>>>>>> <workflow>
>>>>>>>>> <property name="workspace_loc" value="./" />
>>>>>>>>> <property name="eclipse_home" value="../" />
>>>>>>>>> <property name="model"
>>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>>>>>> <property name="src-gen"
>>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>>> <property name="out" value="out" />
>>>>>>>>>
>>>>>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>>>>>> <platformUri value="../" />
>>>>>>>>> <RegisterEcoreFile
>>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>>>>>> <RegisterEcoreFile
>>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>>>>>> </bean>
>>>>>>>>> <component
>>>>>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>>>
>>>>>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>>>>>> <modelSlot value="model"/>
>>>>>>>>> <uri value="${model}"/>
>>>>>>>>> <firstElementOnly value="false" />
>>>>>>>>> </component>
>>>>>>>>>
>>>>>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>>>>>> <metaModel id="mm"
>>>>>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>>>>>> <expand value="Demo::Main FOR model" />
>>>>>>>>> <outlet path="${src-gen}"/>
>>>>>>>>> </component>
>>>>>>>>> </workflow>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>>>>>
>>>>>>>>> I have put a copy set of my model ecore files in
>>>>>>>>> com.xx.yy.ui/model/
>>>>>>>>> (contract.ecore etc) and I have put a test copy of the GMF
>>>>>>>>> editor model
>>>>>>>>> output default2.ngoss in /templates
>>>>>>>>>
>>>>>>>>> (once I get this running manually I'll be using a call from java)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> When I run the workflow it gets as far as and stops
>>>>>>>>>
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO:
>>>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>>>
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO:
>>>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>>>
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO: running workflow:
>>>>>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>>>>>
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO:
>>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup setPlatformUri
>>>>>>>>> INFO: Registering platform uri
>>>>>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterEcoreFile
>>>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss'
>>>>>>>>> from '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterEcoreFile
>>>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>>>>>> >
>>>>>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>>>>>> org.eclipse.core.resources,
>>>>>>>>> org.eclipse.ui,
>>>>>>>>> org.eclipse.emf.codegen,
>>>>>>>>> org.eclipse.ui.ide,
>>>>>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>>>>>> >
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF
>>>>>>>>> book,
>>>>>>>>> tried various combinations of the above but am stuck. Any idea
>>>>>>>>> what I'm
>>>>>>>>> doing wrong please?
>>>>>>>>>
>>>>>>>>> regards
>>>>>>>>> Steve
|
|
| |
Re: first time problem running workflow (mwe 0.7.0) [message #138014 is a reply to message #138002] |
Fri, 03 July 2009 10:06 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------010409080708050806070800
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sven,
EMF can even deal with accessing deeply nested jars:
A connection that can access an entry in an archive, and then
recursively an entry in that archive, and so on. For example, it can
be used just like jar: or zip:, only the archive paths can repeat,
e.g.,
archive:file:///c:/temp/example.zip!/org/example/nested.zip! /org/example/deeply-nested.html
The general recursive pattern is
archive:$nestedURL${/!$archivePath$}+
So the nested URL for the example above is
file:///c:/temp/example.zip
Since the nested URL may itself contain archive schemes, the
subsequence of the archive paths that should be associated with the
nested URL is determined by finding the nth archive separator, i.e.,
the nth !/, where n is the number of ":"s before the first "/" of
the nested URL, i.e., the number of nested schemes. For example, for
a more complex case where the nested URL is itself an archive-based
scheme, e.g.,
archive:jar:file:///c:/temp/example.zip!/org/example/nested. zip!/org/example/deeply-nested.html
the nested URL is correctly parsed to skip to the second archive
separator as jar:file:///c:/temp/example.zip!/org/example/nested.zip
Sven Efftinge wrote:
> Don't copy the genmodel but use a file URI which points to the
> genmodel in the jar.
> Don't know the exact syntax, but I guess you'll find it by looking
> into the code and JavaDocs of EMF's URI class.
>
> It's something like this as I remember:
>
> file:/my/absolute/path/org.eclipse.uml2.uml.jar!/model/UML.g enmodel
>
> Sven
>
> Krzysztof Kowalczyk schrieb:
>> Sebastian Zarnekow pisze:
>>> Hi Krzysztof,
>>>
>>> my previous post has been submitted to fast. Actually a
>>> platform:/plugin uri will not help you, because the workflow does
>>> not know about registered plugins etc.
>> I know that unfortunately. In xtext we have:
>>
>> import "http://www.eclipse.org/uml2/3.0.0/UML"
>>
>> and in workflow we have:
>>
>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup"
>> platformUri="${runtimeProject}/.."
>> >
>> <registerGeneratedEPackage value="org.eclipse.uml2.uml.UMLPackage"/>
>> </bean>
>> ...
>> <fragment
>> class="org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment "
>> genModels="platform:/resource/myproject/UML.genmodel"
>> />
>>
>> and I got a feeling that something is bad here :(
>>
>> As I understand this is an osgi/ eclipse plugins stuff that workflow
>> ignores. In active workbench, uri:
>> "http://www.eclipse.org/uml2/3.0.0/UML" allow to find both the
>> genmodel and the epackage. Maybe there is a way to dump registered
>> metamodels and make them visible to the workflow? Or handle the
>> "platform:/plugin" uri somehow? Model and genmodel should be visible
>> to workflow without copying as they are already on classpath.
>>
>> Regards,
>> Krzysztof Kowalczyk
--------------010409080708050806070800
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Sven,<br>
<br>
EMF can even deal with accessing deeply nested jars:<br>
<blockquote>
<p>A connection that can access an entry in an archive, and then
recursively an entry in that archive, and so on. For example, it can be
used just like jar: or zip:, only the archive paths can repeat, e.g., </p>
<pre> archive:<a class="moz-txt-link-freetext" href=" file:///c:/temp/example.zip!/org/example/nested.zip!/org/exa mple/deeply-nested.html"> file:///c:/temp/example.zip!/org/example/nested.zip!/org/exa mple/deeply-nested.html</a>
</pre>
The general recursive pattern is
<pre> archive:$nestedURL${/!$archivePath$}+
</pre>
So the nested URL for the example above is
<pre> <a class="moz-txt-link-freetext" href="file:///c:/temp/example.zip">file:///c:/temp/example.zip</a>
</pre>
<p>Since the nested URL may itself contain archive schemes, the
subsequence of the archive paths that should be associated with the
nested URL is determined by finding the nth archive separator, i.e.,
the nth !/, where n is the number of ":"s before the first "/" of the
nested URL, i.e., the number of nested schemes. For example, for a more
complex case where the nested URL is itself an archive-based scheme,
e.g., </p>
<pre> archive:<a class="moz-txt-link-freetext" href=" jar:file:///c:/temp/example.zip!/org/example/nested.zip!/org /example/deeply-nested.html"> jar:file:///c:/temp/example.zip!/org/example/nested.zip!/org /example/deeply-nested.html</a>
</pre>
the nested URL is correctly parsed to skip to the second archive
separator as <a class="moz-txt-link-freetext" href="jar:file:///c:/temp/example.zip!/org/example/nested.zip">jar:file:///c:/temp/example.zip!/org/example/nested.zip</a><br>
</blockquote>
<br>
<br>
Sven Efftinge wrote:
<blockquote cite="mid:h2kh2n$adb$1@build.eclipse.org" type="cite">Don't
copy the genmodel but use a file URI which points to the genmodel in
the jar.
<br>
Don't know the exact syntax, but I guess you'll find it by looking into
the code and JavaDocs of EMF's URI class.
<br>
<br>
It's something like this as I remember:
<br>
<br>
<a class="moz-txt-link-freetext" href=" file:/my/absolute/path/org.eclipse.uml2.uml.jar!/model/UML.g enmodel "> file:/my/absolute/path/org.eclipse.uml2.uml.jar!/model/UML.g enmodel </a>
<br>
<br>
Sven
<br>
<br>
Krzysztof Kowalczyk schrieb:
<br>
<blockquote type="cite">Sebastian Zarnekow pisze:
<br>
<blockquote type="cite">Hi Krzysztof,
<br>
<br>
my previous post has been submitted to fast. Actually a
platform:/plugin uri will not help you, because the workflow does not
know about registered plugins etc.
<br>
</blockquote>
I know that unfortunately. In xtext we have:
<br>
<br>
import <a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/uml2/3.0.0/UML">"http://www.eclipse.org/uml2/3.0.0/UML"</a>
<br>
<br>
and in workflow we have:
<br>
<br>
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup"
<br>
platformUri="${runtimeProject}/.."
<br>
>
<br>
<registerGeneratedEPackage
value="org.eclipse.uml2.uml.UMLPackage"/>
<br>
</bean>
<br>
....
<br>
<fragment
<br>
class="org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment "
<br>
genModels="platform:/resource/myproject/UML.genmodel "
<br>
/>
<br>
<br>
and I got a feeling that something is bad here :(
<br>
<br>
As I understand this is an osgi/ eclipse plugins stuff that workflow
ignores. In active workbench, uri:
<a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/uml2/3.0.0/UML">"http://www.eclipse.org/uml2/3.0.0/UML"</a> allow to find both the genmodel
and the epackage. Maybe there is a way to dump registered metamodels
and make them visible to the workflow? Or handle the "platform:/plugin"
uri somehow? Model and genmodel should be visible to workflow without
copying as they are already on classpath.
<br>
<br>
Regards,
<br>
Krzysztof Kowalczyk
<br>
</blockquote>
</blockquote>
</body>
</html>
--------------010409080708050806070800--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | | | |
Re: first time problem running workflow (mwe 0.7.0) [message #138433 is a reply to message #138422] |
Sun, 12 July 2009 13:47 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Krzysztof Kowalczyk wrote:
> > The answer is ...
>> <registerGeneratedEPackage
>> value="org.eclipse.uml2.uml.UMLPackage"/>
>> <registerGeneratedEPackage
>> value="org.eclipse.gmf.runtime.notation.NotationPackage"/>
>>
>
> I told to use generated EPackage (if there exist one) instead of ecore
> file, didn't I? ;)
>
> Generated metamodel can contain and in some cases need to contain
> handwritten logic (e.g. derived properties).
> A problem in MWE can occur with types, identity and some strange errors
> if one component is creating ecore model with generated package, and
> other use ecore file to handle the same model in the same workflow.
>
> Regards,
> Krzysztof Kowalczyk
Thanks Krzysztof, you did but I was just being specific to point out
that the useful package bit for notation was called NotationPackage.
steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #621064 is a reply to message #137734] |
Tue, 30 June 2009 16:37 |
Sven Efftinge Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Hi Bill,
sorry, I've no idea why the workflow terminates silently.
It seems that for some yet unkown reason the exception is not printed on
the console.
Did you try the debug mode (don't forget to flag the "Java Debug"
checkbox in the run configuration) in order to find out where, when and
why it terminates?
Sorry, I couldn't help more.
Sven
Bill Hinge schrieb:
> Hi
>
> I originally posted to the tmf newsgroup but I suspect I should have
> posted here? I have been experimenting further and this post is updated
>
> I have created a GMF editor based on multiple linked ecore files and
> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>
> I have set up an action to call a workflow from my GMF UI and it appears
> to be configured correctly but doesn't actually produce anything. (ie
> it's called from java using WorkFlowRunner().... The intention is to
> call the workflow on my editor's model files which will be in their own
> project directory.
>
> As part of my testing I'm manually testing by running the workflow from
> the project explorer (right click run as MWE). I have set up a runtime
> config but when I run I get no errors and no output. I get a message
> 'terminated' on top of the console window.
>
> I am also seeing a lot of messages
> "Could not acquire children from extension:
> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these don't
> seem to timed with my test runs so I'm not sure if they are related.
>
> this is my workflow is as follows (running on OS X 10.5.7)
>
> <?xml version="1.0"?>
> <workflow>
> <property name="workspace_loc" value="./" />
> <property name="eclipse_home" value="../" />
> <property name="model"
> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
> <property name="src-gen"
> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
> <property name="out" value="out" />
>
> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
> <platformUri value="../" />
> <RegisterEcoreFile
> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
> <RegisterEcoreFile
> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
> </bean>
>
> <component class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>
> <component class="org.eclipse.emf.mwe.utils.Reader">
> <modelSlot value="model"/>
> <uri value="${model}"/>
> <firstElementOnly value="false" />
> </component>
>
> <component class="org.eclipse.xpand2.Generator">
> <metaModel id="mm"
> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
> <expand value="Demo::Main FOR model" />
> <outlet path="${src-gen}"/>
> </component>
>
>
> </workflow>
>
>
> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>
> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
> (contract.ecore etc) and I have put a test copy of the GMF editor model
> output default2.ngoss in /templates
>
> (once I get this running manually I'll be using a call from java)
>
>
> When I run the workflow it gets as far as and stops
>
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: (c) 2005-2009 openarchitectureware.org and contributors
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: running workflow:
> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
> setPlatformUri
> INFO: Registering platform uri
> '/Users/steveorobec/DSL/eclipseRc4/workspace'
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
> addRegisterEcoreFile
> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
> addRegisterEcoreFile
> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
> '..//com.xx.yyy.ui/model/contract.ecore'
>
>
>
>
>
> I have the following dependencies in my manifest (belt & braces)
> >
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.core.resources,
> org.eclipse.ui,
> org.eclipse.emf.codegen,
> org.eclipse.ui.ide,
> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
> org.eclipse.xpand;bundle-version="0.7.0",
> org.eclipse.xtend;bundle-version="0.7.0",
> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
> org.eclipse.xtend.ui;bundle-version="0.7.0",
> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
> >
>
>
>
> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
> tried various combinations of the above but am stuck. Any idea what I'm
> doing wrong please?
>
> regards
> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #621066 is a reply to message #137759] |
Tue, 30 June 2009 16:58 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Hi Sven
I just tried this, must have had some fat fingered gremlins before cause
it kept crashing
works now...
I get a classloader error -- source not found
} finally {
if (isChildmost) {
childmostCaller.remove();
if ((c != null) && name.startsWith("org.apache.") &&
( name.startsWith("org.apache.crimson.") ||
name.startsWith("org.apache.xalan.") ||
name.startsWith("org.apache.xml.") ||
name.startsWith("org.apache.xpath.") ) ) {
AccessController.doPrivileged(new PrivilegedAction() {
public Object run()
{ return System.setProperty("apple.lang.DisableCompatibilityClasspath ",
"true");
}});
}
}
// MacOSX Change END
}
}
and ...
// Compiled from Launcher.java (version 1.5 : 49.0, super bit)
public class sun.misc.Launcher {
// Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
private static java.net.URLStreamHandlerFactory factory;
// Field descriptor #74 Lsun/misc/Launcher;
private static sun.misc.Launcher launcher;
// Field descriptor #76 Ljava/lang/ClassLoader;
private java.lang.ClassLoader loader;
// Field descriptor #78 Ljava/net/URLStreamHandler;
private static java.net.URLStreamHandler fileHandler;
// Method descriptor #80 ()Lsun/misc/Launcher;
// Stack: 1, Locals: 0
public static sun.misc.Launcher getLauncher();
0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
3 areturn
Line numbers:
[pc: 0, line: 42]
// Method descriptor #84 ()V
// Stack: 4, Locals: 5
public Launcher();
0 aload_0 [this]
1 invokespecial java.lang.Object() [5]
4 invokestatic
sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
sun.misc.Launcher$ExtClassLoader [6]
7 astore_1
8 goto 22
11 astore_2
12 new java.lang.InternalError [8]
15 dup
16 ldc <String "Could not create extension class loader"> [9]
18 invokespecial java.lang.InternalError(java.lang.String) [10]
21 athrow
22 aload_0 [this]
23 aload_1
24 invokestatic
sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
: java.lang.ClassLoader [11]
27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
30 goto 44
33 astore_2
34 new java.lang.InternalError [8]
37 dup
38 ldc <String "Could not create application class loader"> [13]
40 invokespecial java.lang.InternalError(java.lang.String) [10]
43 athrow
44 invokestatic java.lang.Thread.currentThread() :
java.lang.Thread [14]
47 aload_0 [this]
48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
51 invokevirtual
java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void [15]
54 ldc <String "java.security.manager"> [16]
56 invokestatic java.lang.System.getProperty(java.lang.String) :
java.lang.String [17]
59 astore_2
60 aload_2
61 ifnull 168
64 aconst_null
65 astore_3
66 ldc <String ""> [18]
68 aload_2
69 invokevirtual java.lang.String.equals(java.lang.Object) :
boolean [19]
72 ifne 84
75 ldc <String "default"> [20]
77 aload_2
78 invokevirtual java.lang.String.equals(java.lang.Object) :
boolean [19]
81 ifeq 95
84 new java.lang.SecurityManager [21]
87 dup
88 invokespecial java.lang.SecurityManager() [22]
91 astore_3
92 goto 130
95 aload_0 [this]
96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
99 aload_2
100 invokevirtual
java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class [23]
103 invokevirtual java.lang.Class.newInstance() : java.lang.Object
[24]
106 checkcast java.lang.SecurityManager [21]
109 astore_3
110 goto 130
113 astore 4
115 goto 130
118 astore 4
120 goto 130
123 astore 4
125 goto 130
128 astore 4
130 aload_3
131 ifnull 141
134 aload_3
135 invokestatic
java.lang.System.setSecurityManager(java.lang.SecurityManage r) : void [29]
138 goto 168
141 new java.lang.InternalError [8]
144 dup
145 new java.lang.StringBuilder [30]
148 dup
149 invokespecial java.lang.StringBuilder() [31]
152 ldc <String "Could not create SecurityManager: "> [32]
154 invokevirtual java.lang.StringBuilder.append(java.lang.String)
: java.lang.StringBuilder [33]
157 aload_2
158 invokevirtual java.lang.StringBuilder.append(java.lang.String)
: java.lang.StringBuilder [33]
161 invokevirtual java.lang.StringBuilder.toString() :
java.lang.String [34]
164 invokespecial java.lang.InternalError(java.lang.String) [10]
167 athrow
168 return
Exception Table:
[pc: 4, pc: 8] -> 11 when : java.io.IOException
[pc: 22, pc: 30] -> 33 when : java.io.IOException
[pc: 95, pc: 110] -> 113 when : java.lang.IllegalAccessException
[pc: 95, pc: 110] -> 118 when : java.lang.InstantiationException
[pc: 95, pc: 110] -> 123 when : java.lang.ClassNotFoundException
[pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
Line numbers:
[pc: 0, line: 47]
[pc: 4, line: 51]
[pc: 8, line: 55]
[pc: 11, line: 52]
[pc: 12, line: 53]
[pc: 22, line: 59]
[pc: 30, line: 63]
[pc: 33, line: 60]
[pc: 34, line: 61]
[pc: 44, line: 66]
[pc: 54, line: 69]
[pc: 60, line: 70]
[pc: 64, line: 71]
[pc: 66, line: 72]
[pc: 84, line: 73]
[pc: 95, line: 76]
[pc: 110, line: 81]
[pc: 113, line: 77]
[pc: 115, line: 81]
[pc: 118, line: 78]
[pc: 120, line: 81]
[pc: 123, line: 79]
[pc: 125, line: 81]
[pc: 128, line: 80]
[pc: 130, line: 83]
[pc: 134, line: 84]
[pc: 141, line: 86]
[pc: 168, line: 90]
// Method descriptor #86 ()Ljava/lang/ClassLoader;
// Stack: 1, Locals: 1
public java.lang.ClassLoader getClassLoader();
0 aload_0 [this]
1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
4 areturn
Line numbers:
[pc: 0, line: 96]
// Method descriptor #88 ()Lsun/misc/URLClassPath;
// Stack: 4, Locals: 3
public static sun.misc.URLClassPath getBootstrapClassPath();
0 new sun.security.action.GetPropertyAction [35]
3 dup
4 ldc <String "sun.boot.class.path"> [36]
6 invokespecial
sun.security.action.GetPropertyAction(java.lang.String) [37]
9 invokestatic
java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
: java.lang.Object [38]
12 checkcast java.lang.String [39]
15 astore_0
16 aload_0
17 ifnull 43
20 aload_0
21 astore_2
22 new sun.misc.Launcher$1 [40]
25 dup
26 aload_2
27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
30 invokestatic
java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
: java.lang.Object [38]
33 checkcast java.net.URL[] [42]
36 checkcast java.net.URL[] [42]
39 astore_1
40 goto 48
43 iconst_0
44 anewarray java.net.URL [43]
47 astore_1
48 new sun.misc.URLClassPath [44]
51 dup
52 aload_1
53 getstatic sun.misc.Launcher.factory :
java.net.URLStreamHandlerFactory [3]
56 invokespecial sun.misc.URLClassPath(java.net.URL[],
java.net.URLStreamHandlerFactory) [45]
59 areturn
Line numbers:
[pc: 0, line: 319]
[pc: 16, line: 321]
[pc: 20, line: 322]
[pc: 22, line: 323]
[pc: 40, line: 330]
[pc: 43, line: 331]
[pc: 48, line: 333]
// Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
// Stack: 4, Locals: 3
private static java.net.URL[] pathToURLs(java.io.File[] arg0);
0 aload_0 [arg0]
1 arraylength
2 anewarray java.net.URL [43]
5 astore_1
6 iconst_0
7 istore_2
8 iload_2
9 aload_0 [arg0]
10 arraylength
11 if_icmpge 29
14 aload_1
15 iload_2
16 aload_0 [arg0]
17 iload_2
18 aaload
19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
java.net.URL [46]
22 aastore
23 iinc 2 1
26 goto 8
29 aload_1
30 areturn
Line numbers:
[pc: 0, line: 337]
[pc: 6, line: 338]
[pc: 14, line: 339]
[pc: 23, line: 338]
[pc: 29, line: 345]
// Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
// Stack: 7, Locals: 7
private static java.io.File[] getClassPath(java.lang.String arg0);
0 aload_0 [arg0]
1 ifnull 197
4 iconst_0
5 istore_2
6 iconst_1
7 istore_3
8 iconst_0
9 istore 4
11 iconst_0
12 istore 5
14 aload_0 [arg0]
15 getstatic java.io.File.pathSeparator : java.lang.String [47]
18 iload 5
20 invokevirtual java.lang.String.indexOf(java.lang.String, int)
: int [48]
23 dup
24 istore 4
26 iconst_m1
27 if_icmpeq 42
30 iinc 3 1
33 iload 4
35 iconst_1
36 iadd
37 istore 5
39 goto 14
42 iload_3
43 anewarray java.io.File [49]
46 astore_1
47 iconst_0
48 dup
49 istore 4
51 istore 5
53 aload_0 [arg0]
54 getstatic java.io.File.pathSeparator : java.lang.String [47]
57 iload 5
59 invokevirtual java.lang.String.indexOf(java.lang.String, int)
: int [48]
62 dup
63 istore 4
65 iconst_m1
66 if_icmpeq 125
69 iload 4
71 iload 5
73 isub
74 ifle 101
77 aload_1
78 iload_2
79 iinc 2 1
82 new java.io.File [49]
85 dup
86 aload_0 [arg0]
87 iload 5
89 iload 4
91 invokevirtual java.lang.String.substring(int, int) :
java.lang.String [50]
94 invokespecial java.io.File(java.lang.String) [51]
97 aastore
98 goto 116
101 aload_1
102 iload_2
103 iinc 2 1
106 new java.io.File [49]
109 dup
110 ldc <String "."> [52]
112 invokespecial java.io.File(java.lang.String) [51]
115 aastore
116 iload 4
118 iconst_1
119 iadd
120 istore 5
122 goto 53
125 iload 5
127 aload_0 [arg0]
128 invokevirtual java.lang.String.length() : int [53]
131 if_icmpge 156
134 aload_1
135 iload_2
136 iinc 2 1
139 new java.io.File [49]
142 dup
143 aload_0 [arg0]
144 iload 5
146 invokevirtual java.lang.String.substring(int) :
java.lang.String [54]
149 invokespecial java.io.File(java.lang.String) [51]
152 aastore
153 goto 171
156 aload_1
157 iload_2
158 iinc 2 1
161 new java.io.File [49]
164 dup
165 ldc <String "."> [52]
167 invokespecial java.io.File(java.lang.String) [51]
170 aastore
171 iload_2
172 iload_3
173 if_icmpeq 194
176 iload_2
177 anewarray java.io.File [49]
180 astore 6
182 aload_1
183 iconst_0
184 aload 6
186 iconst_0
187 iload_2
188 invokestatic java.lang.System.arraycopy(java.lang.Object, int,
java.lang.Object, int, int) : void [55]
191 aload 6
193 astore_1
194 goto 202
197 iconst_0
198 anewarray java.io.File [49]
201 astore_1
202 aload_1
203 areturn
Line numbers:
[pc: 0, line: 350]
[pc: 4, line: 351]
[pc: 8, line: 352]
[pc: 14, line: 354]
[pc: 30, line: 355]
[pc: 33, line: 356]
[pc: 42, line: 358]
[pc: 47, line: 359]
[pc: 53, line: 361]
[pc: 69, line: 362]
[pc: 77, line: 363]
[pc: 101, line: 366]
[pc: 116, line: 368]
[pc: 125, line: 371]
[pc: 134, line: 372]
[pc: 156, line: 374]
[pc: 171, line: 377]
[pc: 176, line: 378]
[pc: 182, line: 379]
[pc: 191, line: 380]
[pc: 194, line: 382]
[pc: 197, line: 383]
[pc: 202, line: 389]
// Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
// Stack: 2, Locals: 2
static java.net.URL getFileURL(java.io.File arg0);
0 aload_0 [arg0]
1 invokevirtual java.io.File.getCanonicalFile() : java.io.File [56]
4 astore_0 [arg0]
5 goto 9
8 astore_1
9 aload_0 [arg0]
10 invokestatic
sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL [57]
13 areturn
14 astore_1
15 new java.lang.InternalError [8]
18 dup
19 invokespecial java.lang.InternalError() [59]
22 athrow
Exception Table:
[pc: 0, pc: 5] -> 8 when : java.io.IOException
[pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
Line numbers:
[pc: 0, line: 396]
[pc: 5, line: 397]
[pc: 9, line: 400]
[pc: 14, line: 401]
[pc: 15, line: 403]
// Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
// Stack: 1, Locals: 0
static synthetic java.net.URLStreamHandlerFactory access$100();
0 getstatic sun.misc.Launcher.factory :
java.net.URLStreamHandlerFactory [3]
3 areturn
Line numbers:
[pc: 0, line: 37]
// Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
// Stack: 1, Locals: 1
static synthetic java.io.File[] access$200(java.lang.String arg0);
0 aload_0 [arg0]
1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String) :
java.io.File[] [2]
4 areturn
Line numbers:
[pc: 0, line: 37]
// Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
// Stack: 1, Locals: 1
static synthetic java.net.URL[] access$300(java.io.File[] arg0);
0 aload_0 [arg0]
1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
java.net.URL[] [1]
4 areturn
Line numbers:
[pc: 0, line: 37]
// Method descriptor #84 ()V
// Stack: 3, Locals: 0
static {};
0 new sun.misc.Launcher$Factory [60]
3 dup
4 aconst_null
5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
8 putstatic sun.misc.Launcher.factory :
java.net.URLStreamHandlerFactory [3]
11 new sun.misc.Launcher [62]
14 dup
15 invokespecial sun.misc.Launcher() [63]
18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
21 return
Line numbers:
[pc: 0, line: 38]
[pc: 11, line: 39]
Inner classes:
[inner class info: #60 sun/misc/Launcher$Factory, outer class info:
#62 sun/misc/Launcher
inner name: #65 Factory, accessflags: 10 private static],
[inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
class info: #62 sun/misc/Launcher
inner name: #68 AppClassLoader, accessflags: 8 static],
[inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
class info: #62 sun/misc/Launcher
inner name: #70 ExtClassLoader, accessflags: 8 static],
[inner class info: #40 sun/misc/Launcher$1, outer class info: #0
inner name: #0, accessflags: 8 static]
regards
Steve
Sven Efftinge wrote:
> Hi Bill,
>
> sorry, I've no idea why the workflow terminates silently.
> It seems that for some yet unkown reason the exception is not printed on
> the console.
> Did you try the debug mode (don't forget to flag the "Java Debug"
> checkbox in the run configuration) in order to find out where, when and
> why it terminates?
>
> Sorry, I couldn't help more.
>
> Sven
>
> Bill Hinge schrieb:
>> Hi
>>
>> I originally posted to the tmf newsgroup but I suspect I should have
>> posted here? I have been experimenting further and this post is updated
>>
>> I have created a GMF editor based on multiple linked ecore files and
>> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>>
>> I have set up an action to call a workflow from my GMF UI and it appears
>> to be configured correctly but doesn't actually produce anything. (ie
>> it's called from java using WorkFlowRunner().... The intention is to
>> call the workflow on my editor's model files which will be in their own
>> project directory.
>>
>> As part of my testing I'm manually testing by running the workflow from
>> the project explorer (right click run as MWE). I have set up a runtime
>> config but when I run I get no errors and no output. I get a message
>> 'terminated' on top of the console window.
>>
>> I am also seeing a lot of messages
>> "Could not acquire children from extension:
>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>> don't seem to timed with my test runs so I'm not sure if they are
>> related.
>>
>> this is my workflow is as follows (running on OS X 10.5.7)
>>
>> <?xml version="1.0"?>
>> <workflow>
>> <property name="workspace_loc" value="./" />
>> <property name="eclipse_home" value="../" />
>> <property name="model"
>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>> <property name="src-gen"
>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>> <property name="out" value="out" />
>>
>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>> <platformUri value="../" />
>> <RegisterEcoreFile
>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>> <RegisterEcoreFile
>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>> </bean>
>> <component class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>
>> <component class="org.eclipse.emf.mwe.utils.Reader">
>> <modelSlot value="model"/>
>> <uri value="${model}"/>
>> <firstElementOnly value="false" />
>> </component>
>>
>> <component class="org.eclipse.xpand2.Generator">
>> <metaModel id="mm"
>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>> <expand value="Demo::Main FOR model" />
>> <outlet path="${src-gen}"/>
>> </component>
>>
>> </workflow>
>>
>>
>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>
>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>> (contract.ecore etc) and I have put a test copy of the GMF editor model
>> output default2.ngoss in /templates
>>
>> (once I get this running manually I'll be using a call from java)
>>
>>
>> When I run the workflow it gets as far as and stops
>>
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO:
>> ------------------------------------------------------------ --------------------------
>>
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO:
>> ------------------------------------------------------------ --------------------------
>>
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO: running workflow:
>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>> INFO:
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>> setPlatformUri
>> INFO: Registering platform uri
>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>> addRegisterEcoreFile
>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>> addRegisterEcoreFile
>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
>> '..//com.xx.yyy.ui/model/contract.ecore'
>>
>>
>>
>>
>>
>> I have the following dependencies in my manifest (belt & braces)
>> >
>> Require-Bundle: org.eclipse.core.runtime,
>> org.eclipse.core.resources,
>> org.eclipse.ui,
>> org.eclipse.emf.codegen,
>> org.eclipse.ui.ide,
>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>> org.eclipse.xpand;bundle-version="0.7.0",
>> org.eclipse.xtend;bundle-version="0.7.0",
>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>> >
>>
>>
>>
>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>> tried various combinations of the above but am stuck. Any idea what I'm
>> doing wrong please?
>>
>> regards
>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #621067 is a reply to message #137788] |
Tue, 30 June 2009 19:05 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Sven
Seems to be some issue with org.antlr.runtime.CharStream not found?
if I add to my dependencies I now get
SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
'TestModel' is not legal.
( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
4, 105)
Should I be using a different Reader/Generator?
(This is a single file GMF-EMF editor)
regards
Steve
Bill Hinge wrote:
> Hi Sven
>
>
> I just tried this, must have had some fat fingered gremlins before cause
> it kept crashing
>
> works now...
>
> I get a classloader error -- source not found
>
>
> } finally {
> if (isChildmost) {
> childmostCaller.remove();
>
> if ((c != null) && name.startsWith("org.apache.") &&
> ( name.startsWith("org.apache.crimson.") ||
> name.startsWith("org.apache.xalan.") ||
> name.startsWith("org.apache.xml.") ||
> name.startsWith("org.apache.xpath.") ) ) {
> AccessController.doPrivileged(new PrivilegedAction() {
> public Object run() {
> return System.setProperty("apple.lang.DisableCompatibilityClasspath ",
> "true");
> }});
> }
> }
> // MacOSX Change END
> }
> }
>
>
>
> and ...
>
>
>
> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
> public class sun.misc.Launcher {
>
> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
> private static java.net.URLStreamHandlerFactory factory;
>
> // Field descriptor #74 Lsun/misc/Launcher;
> private static sun.misc.Launcher launcher;
>
> // Field descriptor #76 Ljava/lang/ClassLoader;
> private java.lang.ClassLoader loader;
>
> // Field descriptor #78 Ljava/net/URLStreamHandler;
> private static java.net.URLStreamHandler fileHandler;
>
> // Method descriptor #80 ()Lsun/misc/Launcher;
> // Stack: 1, Locals: 0
> public static sun.misc.Launcher getLauncher();
> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
> 3 areturn
> Line numbers:
> [pc: 0, line: 42]
>
> // Method descriptor #84 ()V
> // Stack: 4, Locals: 5
> public Launcher();
> 0 aload_0 [this]
> 1 invokespecial java.lang.Object() [5]
> 4 invokestatic
> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
> sun.misc.Launcher$ExtClassLoader [6]
> 7 astore_1
> 8 goto 22
> 11 astore_2
> 12 new java.lang.InternalError [8]
> 15 dup
> 16 ldc <String "Could not create extension class loader"> [9]
> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
> 21 athrow
> 22 aload_0 [this]
> 23 aload_1
> 24 invokestatic
> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
> : java.lang.ClassLoader [11]
> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
> 30 goto 44
> 33 astore_2
> 34 new java.lang.InternalError [8]
> 37 dup
> 38 ldc <String "Could not create application class loader"> [13]
> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
> 43 athrow
> 44 invokestatic java.lang.Thread.currentThread() :
> java.lang.Thread [14]
> 47 aload_0 [this]
> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
> 51 invokevirtual
> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void [15]
> 54 ldc <String "java.security.manager"> [16]
> 56 invokestatic java.lang.System.getProperty(java.lang.String) :
> java.lang.String [17]
> 59 astore_2
> 60 aload_2
> 61 ifnull 168
> 64 aconst_null
> 65 astore_3
> 66 ldc <String ""> [18]
> 68 aload_2
> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
> boolean [19]
> 72 ifne 84
> 75 ldc <String "default"> [20]
> 77 aload_2
> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
> boolean [19]
> 81 ifeq 95
> 84 new java.lang.SecurityManager [21]
> 87 dup
> 88 invokespecial java.lang.SecurityManager() [22]
> 91 astore_3
> 92 goto 130
> 95 aload_0 [this]
> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
> 99 aload_2
> 100 invokevirtual java.lang.ClassLoader.loadClass(java.lang.String)
> : java.lang.Class [23]
> 103 invokevirtual java.lang.Class.newInstance() : java.lang.Object
> [24]
> 106 checkcast java.lang.SecurityManager [21]
> 109 astore_3
> 110 goto 130
> 113 astore 4
> 115 goto 130
> 118 astore 4
> 120 goto 130
> 123 astore 4
> 125 goto 130
> 128 astore 4
> 130 aload_3
> 131 ifnull 141
> 134 aload_3
> 135 invokestatic
> java.lang.System.setSecurityManager(java.lang.SecurityManage r) : void [29]
> 138 goto 168
> 141 new java.lang.InternalError [8]
> 144 dup
> 145 new java.lang.StringBuilder [30]
> 148 dup
> 149 invokespecial java.lang.StringBuilder() [31]
> 152 ldc <String "Could not create SecurityManager: "> [32]
> 154 invokevirtual java.lang.StringBuilder.append(java.lang.String)
> : java.lang.StringBuilder [33]
> 157 aload_2
> 158 invokevirtual java.lang.StringBuilder.append(java.lang.String)
> : java.lang.StringBuilder [33]
> 161 invokevirtual java.lang.StringBuilder.toString() :
> java.lang.String [34]
> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
> 167 athrow
> 168 return
> Exception Table:
> [pc: 4, pc: 8] -> 11 when : java.io.IOException
> [pc: 22, pc: 30] -> 33 when : java.io.IOException
> [pc: 95, pc: 110] -> 113 when : java.lang.IllegalAccessException
> [pc: 95, pc: 110] -> 118 when : java.lang.InstantiationException
> [pc: 95, pc: 110] -> 123 when : java.lang.ClassNotFoundException
> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
> Line numbers:
> [pc: 0, line: 47]
> [pc: 4, line: 51]
> [pc: 8, line: 55]
> [pc: 11, line: 52]
> [pc: 12, line: 53]
> [pc: 22, line: 59]
> [pc: 30, line: 63]
> [pc: 33, line: 60]
> [pc: 34, line: 61]
> [pc: 44, line: 66]
> [pc: 54, line: 69]
> [pc: 60, line: 70]
> [pc: 64, line: 71]
> [pc: 66, line: 72]
> [pc: 84, line: 73]
> [pc: 95, line: 76]
> [pc: 110, line: 81]
> [pc: 113, line: 77]
> [pc: 115, line: 81]
> [pc: 118, line: 78]
> [pc: 120, line: 81]
> [pc: 123, line: 79]
> [pc: 125, line: 81]
> [pc: 128, line: 80]
> [pc: 130, line: 83]
> [pc: 134, line: 84]
> [pc: 141, line: 86]
> [pc: 168, line: 90]
>
> // Method descriptor #86 ()Ljava/lang/ClassLoader;
> // Stack: 1, Locals: 1
> public java.lang.ClassLoader getClassLoader();
> 0 aload_0 [this]
> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
> 4 areturn
> Line numbers:
> [pc: 0, line: 96]
>
> // Method descriptor #88 ()Lsun/misc/URLClassPath;
> // Stack: 4, Locals: 3
> public static sun.misc.URLClassPath getBootstrapClassPath();
> 0 new sun.security.action.GetPropertyAction [35]
> 3 dup
> 4 ldc <String "sun.boot.class.path"> [36]
> 6 invokespecial
> sun.security.action.GetPropertyAction(java.lang.String) [37]
> 9 invokestatic
> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
> : java.lang.Object [38]
> 12 checkcast java.lang.String [39]
> 15 astore_0
> 16 aload_0
> 17 ifnull 43
> 20 aload_0
> 21 astore_2
> 22 new sun.misc.Launcher$1 [40]
> 25 dup
> 26 aload_2
> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
> 30 invokestatic
> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
> : java.lang.Object [38]
> 33 checkcast java.net.URL[] [42]
> 36 checkcast java.net.URL[] [42]
> 39 astore_1
> 40 goto 48
> 43 iconst_0
> 44 anewarray java.net.URL [43]
> 47 astore_1
> 48 new sun.misc.URLClassPath [44]
> 51 dup
> 52 aload_1
> 53 getstatic sun.misc.Launcher.factory :
> java.net.URLStreamHandlerFactory [3]
> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
> java.net.URLStreamHandlerFactory) [45]
> 59 areturn
> Line numbers:
> [pc: 0, line: 319]
> [pc: 16, line: 321]
> [pc: 20, line: 322]
> [pc: 22, line: 323]
> [pc: 40, line: 330]
> [pc: 43, line: 331]
> [pc: 48, line: 333]
>
> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
> // Stack: 4, Locals: 3
> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
> 0 aload_0 [arg0]
> 1 arraylength
> 2 anewarray java.net.URL [43]
> 5 astore_1
> 6 iconst_0
> 7 istore_2
> 8 iload_2
> 9 aload_0 [arg0]
> 10 arraylength
> 11 if_icmpge 29
> 14 aload_1
> 15 iload_2
> 16 aload_0 [arg0]
> 17 iload_2
> 18 aaload
> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
> java.net.URL [46]
> 22 aastore
> 23 iinc 2 1
> 26 goto 8
> 29 aload_1
> 30 areturn
> Line numbers:
> [pc: 0, line: 337]
> [pc: 6, line: 338]
> [pc: 14, line: 339]
> [pc: 23, line: 338]
> [pc: 29, line: 345]
>
> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
> // Stack: 7, Locals: 7
> private static java.io.File[] getClassPath(java.lang.String arg0);
> 0 aload_0 [arg0]
> 1 ifnull 197
> 4 iconst_0
> 5 istore_2
> 6 iconst_1
> 7 istore_3
> 8 iconst_0
> 9 istore 4
> 11 iconst_0
> 12 istore 5
> 14 aload_0 [arg0]
> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
> 18 iload 5
> 20 invokevirtual java.lang.String.indexOf(java.lang.String, int) :
> int [48]
> 23 dup
> 24 istore 4
> 26 iconst_m1
> 27 if_icmpeq 42
> 30 iinc 3 1
> 33 iload 4
> 35 iconst_1
> 36 iadd
> 37 istore 5
> 39 goto 14
> 42 iload_3
> 43 anewarray java.io.File [49]
> 46 astore_1
> 47 iconst_0
> 48 dup
> 49 istore 4
> 51 istore 5
> 53 aload_0 [arg0]
> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
> 57 iload 5
> 59 invokevirtual java.lang.String.indexOf(java.lang.String, int) :
> int [48]
> 62 dup
> 63 istore 4
> 65 iconst_m1
> 66 if_icmpeq 125
> 69 iload 4
> 71 iload 5
> 73 isub
> 74 ifle 101
> 77 aload_1
> 78 iload_2
> 79 iinc 2 1
> 82 new java.io.File [49]
> 85 dup
> 86 aload_0 [arg0]
> 87 iload 5
> 89 iload 4
> 91 invokevirtual java.lang.String.substring(int, int) :
> java.lang.String [50]
> 94 invokespecial java.io.File(java.lang.String) [51]
> 97 aastore
> 98 goto 116
> 101 aload_1
> 102 iload_2
> 103 iinc 2 1
> 106 new java.io.File [49]
> 109 dup
> 110 ldc <String "."> [52]
> 112 invokespecial java.io.File(java.lang.String) [51]
> 115 aastore
> 116 iload 4
> 118 iconst_1
> 119 iadd
> 120 istore 5
> 122 goto 53
> 125 iload 5
> 127 aload_0 [arg0]
> 128 invokevirtual java.lang.String.length() : int [53]
> 131 if_icmpge 156
> 134 aload_1
> 135 iload_2
> 136 iinc 2 1
> 139 new java.io.File [49]
> 142 dup
> 143 aload_0 [arg0]
> 144 iload 5
> 146 invokevirtual java.lang.String.substring(int) :
> java.lang.String [54]
> 149 invokespecial java.io.File(java.lang.String) [51]
> 152 aastore
> 153 goto 171
> 156 aload_1
> 157 iload_2
> 158 iinc 2 1
> 161 new java.io.File [49]
> 164 dup
> 165 ldc <String "."> [52]
> 167 invokespecial java.io.File(java.lang.String) [51]
> 170 aastore
> 171 iload_2
> 172 iload_3
> 173 if_icmpeq 194
> 176 iload_2
> 177 anewarray java.io.File [49]
> 180 astore 6
> 182 aload_1
> 183 iconst_0
> 184 aload 6
> 186 iconst_0
> 187 iload_2
> 188 invokestatic java.lang.System.arraycopy(java.lang.Object, int,
> java.lang.Object, int, int) : void [55]
> 191 aload 6
> 193 astore_1
> 194 goto 202
> 197 iconst_0
> 198 anewarray java.io.File [49]
> 201 astore_1
> 202 aload_1
> 203 areturn
> Line numbers:
> [pc: 0, line: 350]
> [pc: 4, line: 351]
> [pc: 8, line: 352]
> [pc: 14, line: 354]
> [pc: 30, line: 355]
> [pc: 33, line: 356]
> [pc: 42, line: 358]
> [pc: 47, line: 359]
> [pc: 53, line: 361]
> [pc: 69, line: 362]
> [pc: 77, line: 363]
> [pc: 101, line: 366]
> [pc: 116, line: 368]
> [pc: 125, line: 371]
> [pc: 134, line: 372]
> [pc: 156, line: 374]
> [pc: 171, line: 377]
> [pc: 176, line: 378]
> [pc: 182, line: 379]
> [pc: 191, line: 380]
> [pc: 194, line: 382]
> [pc: 197, line: 383]
> [pc: 202, line: 389]
>
> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
> // Stack: 2, Locals: 2
> static java.net.URL getFileURL(java.io.File arg0);
> 0 aload_0 [arg0]
> 1 invokevirtual java.io.File.getCanonicalFile() : java.io.File [56]
> 4 astore_0 [arg0]
> 5 goto 9
> 8 astore_1
> 9 aload_0 [arg0]
> 10 invokestatic
> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL [57]
> 13 areturn
> 14 astore_1
> 15 new java.lang.InternalError [8]
> 18 dup
> 19 invokespecial java.lang.InternalError() [59]
> 22 athrow
> Exception Table:
> [pc: 0, pc: 5] -> 8 when : java.io.IOException
> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
> Line numbers:
> [pc: 0, line: 396]
> [pc: 5, line: 397]
> [pc: 9, line: 400]
> [pc: 14, line: 401]
> [pc: 15, line: 403]
>
> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
> // Stack: 1, Locals: 0
> static synthetic java.net.URLStreamHandlerFactory access$100();
> 0 getstatic sun.misc.Launcher.factory :
> java.net.URLStreamHandlerFactory [3]
> 3 areturn
> Line numbers:
> [pc: 0, line: 37]
>
> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
> // Stack: 1, Locals: 1
> static synthetic java.io.File[] access$200(java.lang.String arg0);
> 0 aload_0 [arg0]
> 1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String) :
> java.io.File[] [2]
> 4 areturn
> Line numbers:
> [pc: 0, line: 37]
>
> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
> // Stack: 1, Locals: 1
> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
> 0 aload_0 [arg0]
> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
> java.net.URL[] [1]
> 4 areturn
> Line numbers:
> [pc: 0, line: 37]
>
> // Method descriptor #84 ()V
> // Stack: 3, Locals: 0
> static {};
> 0 new sun.misc.Launcher$Factory [60]
> 3 dup
> 4 aconst_null
> 5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
> 8 putstatic sun.misc.Launcher.factory :
> java.net.URLStreamHandlerFactory [3]
> 11 new sun.misc.Launcher [62]
> 14 dup
> 15 invokespecial sun.misc.Launcher() [63]
> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
> 21 return
> Line numbers:
> [pc: 0, line: 38]
> [pc: 11, line: 39]
>
> Inner classes:
> [inner class info: #60 sun/misc/Launcher$Factory, outer class info:
> #62 sun/misc/Launcher
> inner name: #65 Factory, accessflags: 10 private static],
> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer class
> info: #62 sun/misc/Launcher
> inner name: #68 AppClassLoader, accessflags: 8 static],
> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer class
> info: #62 sun/misc/Launcher
> inner name: #70 ExtClassLoader, accessflags: 8 static],
> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
> inner name: #0, accessflags: 8 static]
>
> regards
> Steve
>
>
> Sven Efftinge wrote:
>> Hi Bill,
>>
>> sorry, I've no idea why the workflow terminates silently.
>> It seems that for some yet unkown reason the exception is not printed
>> on the console.
>> Did you try the debug mode (don't forget to flag the "Java Debug"
>> checkbox in the run configuration) in order to find out where, when
>> and why it terminates?
>>
>> Sorry, I couldn't help more.
>>
>> Sven
>>
>> Bill Hinge schrieb:
>>> Hi
>>>
>>> I originally posted to the tmf newsgroup but I suspect I should have
>>> posted here? I have been experimenting further and this post is updated
>>>
>>> I have created a GMF editor based on multiple linked ecore files and
>>> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>>>
>>> I have set up an action to call a workflow from my GMF UI and it appears
>>> to be configured correctly but doesn't actually produce anything. (ie
>>> it's called from java using WorkFlowRunner().... The intention is to
>>> call the workflow on my editor's model files which will be in their own
>>> project directory.
>>>
>>> As part of my testing I'm manually testing by running the workflow from
>>> the project explorer (right click run as MWE). I have set up a runtime
>>> config but when I run I get no errors and no output. I get a message
>>> 'terminated' on top of the console window.
>>>
>>> I am also seeing a lot of messages
>>> "Could not acquire children from extension:
>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>>> don't seem to timed with my test runs so I'm not sure if they are
>>> related.
>>>
>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>
>>> <?xml version="1.0"?>
>>> <workflow>
>>> <property name="workspace_loc" value="./" />
>>> <property name="eclipse_home" value="../" />
>>> <property name="model"
>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>> <property name="src-gen"
>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>> <property name="out" value="out" />
>>>
>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>> <platformUri value="../" />
>>> <RegisterEcoreFile
>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>> <RegisterEcoreFile
>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>> </bean>
>>> <component class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>
>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>> <modelSlot value="model"/>
>>> <uri value="${model}"/>
>>> <firstElementOnly value="false" />
>>> </component>
>>>
>>> <component class="org.eclipse.xpand2.Generator">
>>> <metaModel id="mm"
>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>> <expand value="Demo::Main FOR model" />
>>> <outlet path="${src-gen}"/>
>>> </component>
>>> </workflow>
>>>
>>>
>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>
>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>> (contract.ecore etc) and I have put a test copy of the GMF editor model
>>> output default2.ngoss in /templates
>>>
>>> (once I get this running manually I'll be using a call from java)
>>>
>>>
>>> When I run the workflow it gets as far as and stops
>>>
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO:
>>> ------------------------------------------------------------ --------------------------
>>>
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO:
>>> ------------------------------------------------------------ --------------------------
>>>
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO: running workflow:
>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>> INFO:
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>> setPlatformUri
>>> INFO: Registering platform uri
>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>> addRegisterEcoreFile
>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>> addRegisterEcoreFile
>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
>>> '..//com.xx.yyy.ui/model/contract.ecore'
>>>
>>>
>>>
>>>
>>>
>>> I have the following dependencies in my manifest (belt & braces)
>>> >
>>> Require-Bundle: org.eclipse.core.runtime,
>>> org.eclipse.core.resources,
>>> org.eclipse.ui,
>>> org.eclipse.emf.codegen,
>>> org.eclipse.ui.ide,
>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>> org.eclipse.xpand;bundle-version="0.7.0",
>>> org.eclipse.xtend;bundle-version="0.7.0",
>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>> >
>>>
>>>
>>>
>>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>>> tried various combinations of the above but am stuck. Any idea what I'm
>>> doing wrong please?
>>>
>>> regards
>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #621068 is a reply to message #137807] |
Tue, 30 June 2009 19:40 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
To clarify, TestModel referred to below is a string value defined by my
ecore files as a legal String, it was created by my GMF-EMF editor so I
would be surprised if it weren't legal. Hence my question as to what
Reader I should use?
Anyhow, made some progress I'm now failing on the Reader
steve
Bill Hinge wrote:
> Sven
>
> Seems to be some issue with org.antlr.runtime.CharStream not found?
>
> if I add to my dependencies I now get
>
> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
> 'TestModel' is not legal.
> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
> 4, 105)
>
>
> Should I be using a different Reader/Generator?
> (This is a single file GMF-EMF editor)
>
>
> regards
> Steve
>
>
> Bill Hinge wrote:
>> Hi Sven
>>
>>
>> I just tried this, must have had some fat fingered gremlins before cause
>> it kept crashing
>>
>> works now...
>>
>> I get a classloader error -- source not found
>>
>>
>> } finally {
>> if (isChildmost) {
>> childmostCaller.remove();
>>
>> if ((c != null) && name.startsWith("org.apache.") &&
>> ( name.startsWith("org.apache.crimson.") ||
>> name.startsWith("org.apache.xalan.") ||
>> name.startsWith("org.apache.xml.") ||
>> name.startsWith("org.apache.xpath.") ) ) {
>> AccessController.doPrivileged(new
>> PrivilegedAction() {
>> public Object run()
>> { return
>> System.setProperty("apple.lang.DisableCompatibilityClasspath ", "true");
>> }});
>> }
>> }
>> // MacOSX Change END
>> }
>> }
>>
>>
>>
>> and ...
>>
>>
>>
>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>> public class sun.misc.Launcher {
>>
>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>> private static java.net.URLStreamHandlerFactory factory;
>>
>> // Field descriptor #74 Lsun/misc/Launcher;
>> private static sun.misc.Launcher launcher;
>>
>> // Field descriptor #76 Ljava/lang/ClassLoader;
>> private java.lang.ClassLoader loader;
>>
>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>> private static java.net.URLStreamHandler fileHandler;
>>
>> // Method descriptor #80 ()Lsun/misc/Launcher;
>> // Stack: 1, Locals: 0
>> public static sun.misc.Launcher getLauncher();
>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>> 3 areturn
>> Line numbers:
>> [pc: 0, line: 42]
>>
>> // Method descriptor #84 ()V
>> // Stack: 4, Locals: 5
>> public Launcher();
>> 0 aload_0 [this]
>> 1 invokespecial java.lang.Object() [5]
>> 4 invokestatic
>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>> sun.misc.Launcher$ExtClassLoader [6]
>> 7 astore_1
>> 8 goto 22
>> 11 astore_2
>> 12 new java.lang.InternalError [8]
>> 15 dup
>> 16 ldc <String "Could not create extension class loader"> [9]
>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>> 21 athrow
>> 22 aload_0 [this]
>> 23 aload_1
>> 24 invokestatic
>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>> : java.lang.ClassLoader [11]
>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>> 30 goto 44
>> 33 astore_2
>> 34 new java.lang.InternalError [8]
>> 37 dup
>> 38 ldc <String "Could not create application class loader"> [13]
>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>> 43 athrow
>> 44 invokestatic java.lang.Thread.currentThread() :
>> java.lang.Thread [14]
>> 47 aload_0 [this]
>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>> 51 invokevirtual
>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void [15]
>> 54 ldc <String "java.security.manager"> [16]
>> 56 invokestatic java.lang.System.getProperty(java.lang.String) :
>> java.lang.String [17]
>> 59 astore_2
>> 60 aload_2
>> 61 ifnull 168
>> 64 aconst_null
>> 65 astore_3
>> 66 ldc <String ""> [18]
>> 68 aload_2
>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>> boolean [19]
>> 72 ifne 84
>> 75 ldc <String "default"> [20]
>> 77 aload_2
>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>> boolean [19]
>> 81 ifeq 95
>> 84 new java.lang.SecurityManager [21]
>> 87 dup
>> 88 invokespecial java.lang.SecurityManager() [22]
>> 91 astore_3
>> 92 goto 130
>> 95 aload_0 [this]
>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>> 99 aload_2
>> 100 invokevirtual
>> java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class [23]
>> 103 invokevirtual java.lang.Class.newInstance() :
>> java.lang.Object [24]
>> 106 checkcast java.lang.SecurityManager [21]
>> 109 astore_3
>> 110 goto 130
>> 113 astore 4
>> 115 goto 130
>> 118 astore 4
>> 120 goto 130
>> 123 astore 4
>> 125 goto 130
>> 128 astore 4
>> 130 aload_3
>> 131 ifnull 141
>> 134 aload_3
>> 135 invokestatic
>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) : void
>> [29]
>> 138 goto 168
>> 141 new java.lang.InternalError [8]
>> 144 dup
>> 145 new java.lang.StringBuilder [30]
>> 148 dup
>> 149 invokespecial java.lang.StringBuilder() [31]
>> 152 ldc <String "Could not create SecurityManager: "> [32]
>> 154 invokevirtual
>> java.lang.StringBuilder.append(java.lang.String) :
>> java.lang.StringBuilder [33]
>> 157 aload_2
>> 158 invokevirtual
>> java.lang.StringBuilder.append(java.lang.String) :
>> java.lang.StringBuilder [33]
>> 161 invokevirtual java.lang.StringBuilder.toString() :
>> java.lang.String [34]
>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>> 167 athrow
>> 168 return
>> Exception Table:
>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>> [pc: 95, pc: 110] -> 113 when : java.lang.IllegalAccessException
>> [pc: 95, pc: 110] -> 118 when : java.lang.InstantiationException
>> [pc: 95, pc: 110] -> 123 when : java.lang.ClassNotFoundException
>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>> Line numbers:
>> [pc: 0, line: 47]
>> [pc: 4, line: 51]
>> [pc: 8, line: 55]
>> [pc: 11, line: 52]
>> [pc: 12, line: 53]
>> [pc: 22, line: 59]
>> [pc: 30, line: 63]
>> [pc: 33, line: 60]
>> [pc: 34, line: 61]
>> [pc: 44, line: 66]
>> [pc: 54, line: 69]
>> [pc: 60, line: 70]
>> [pc: 64, line: 71]
>> [pc: 66, line: 72]
>> [pc: 84, line: 73]
>> [pc: 95, line: 76]
>> [pc: 110, line: 81]
>> [pc: 113, line: 77]
>> [pc: 115, line: 81]
>> [pc: 118, line: 78]
>> [pc: 120, line: 81]
>> [pc: 123, line: 79]
>> [pc: 125, line: 81]
>> [pc: 128, line: 80]
>> [pc: 130, line: 83]
>> [pc: 134, line: 84]
>> [pc: 141, line: 86]
>> [pc: 168, line: 90]
>>
>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>> // Stack: 1, Locals: 1
>> public java.lang.ClassLoader getClassLoader();
>> 0 aload_0 [this]
>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>> 4 areturn
>> Line numbers:
>> [pc: 0, line: 96]
>>
>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>> // Stack: 4, Locals: 3
>> public static sun.misc.URLClassPath getBootstrapClassPath();
>> 0 new sun.security.action.GetPropertyAction [35]
>> 3 dup
>> 4 ldc <String "sun.boot.class.path"> [36]
>> 6 invokespecial
>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>> 9 invokestatic
>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>> : java.lang.Object [38]
>> 12 checkcast java.lang.String [39]
>> 15 astore_0
>> 16 aload_0
>> 17 ifnull 43
>> 20 aload_0
>> 21 astore_2
>> 22 new sun.misc.Launcher$1 [40]
>> 25 dup
>> 26 aload_2
>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>> 30 invokestatic
>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>> : java.lang.Object [38]
>> 33 checkcast java.net.URL[] [42]
>> 36 checkcast java.net.URL[] [42]
>> 39 astore_1
>> 40 goto 48
>> 43 iconst_0
>> 44 anewarray java.net.URL [43]
>> 47 astore_1
>> 48 new sun.misc.URLClassPath [44]
>> 51 dup
>> 52 aload_1
>> 53 getstatic sun.misc.Launcher.factory :
>> java.net.URLStreamHandlerFactory [3]
>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>> java.net.URLStreamHandlerFactory) [45]
>> 59 areturn
>> Line numbers:
>> [pc: 0, line: 319]
>> [pc: 16, line: 321]
>> [pc: 20, line: 322]
>> [pc: 22, line: 323]
>> [pc: 40, line: 330]
>> [pc: 43, line: 331]
>> [pc: 48, line: 333]
>>
>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>> // Stack: 4, Locals: 3
>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>> 0 aload_0 [arg0]
>> 1 arraylength
>> 2 anewarray java.net.URL [43]
>> 5 astore_1
>> 6 iconst_0
>> 7 istore_2
>> 8 iload_2
>> 9 aload_0 [arg0]
>> 10 arraylength
>> 11 if_icmpge 29
>> 14 aload_1
>> 15 iload_2
>> 16 aload_0 [arg0]
>> 17 iload_2
>> 18 aaload
>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>> java.net.URL [46]
>> 22 aastore
>> 23 iinc 2 1
>> 26 goto 8
>> 29 aload_1
>> 30 areturn
>> Line numbers:
>> [pc: 0, line: 337]
>> [pc: 6, line: 338]
>> [pc: 14, line: 339]
>> [pc: 23, line: 338]
>> [pc: 29, line: 345]
>>
>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>> // Stack: 7, Locals: 7
>> private static java.io.File[] getClassPath(java.lang.String arg0);
>> 0 aload_0 [arg0]
>> 1 ifnull 197
>> 4 iconst_0
>> 5 istore_2
>> 6 iconst_1
>> 7 istore_3
>> 8 iconst_0
>> 9 istore 4
>> 11 iconst_0
>> 12 istore 5
>> 14 aload_0 [arg0]
>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>> 18 iload 5
>> 20 invokevirtual java.lang.String.indexOf(java.lang.String, int)
>> : int [48]
>> 23 dup
>> 24 istore 4
>> 26 iconst_m1
>> 27 if_icmpeq 42
>> 30 iinc 3 1
>> 33 iload 4
>> 35 iconst_1
>> 36 iadd
>> 37 istore 5
>> 39 goto 14
>> 42 iload_3
>> 43 anewarray java.io.File [49]
>> 46 astore_1
>> 47 iconst_0
>> 48 dup
>> 49 istore 4
>> 51 istore 5
>> 53 aload_0 [arg0]
>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>> 57 iload 5
>> 59 invokevirtual java.lang.String.indexOf(java.lang.String, int)
>> : int [48]
>> 62 dup
>> 63 istore 4
>> 65 iconst_m1
>> 66 if_icmpeq 125
>> 69 iload 4
>> 71 iload 5
>> 73 isub
>> 74 ifle 101
>> 77 aload_1
>> 78 iload_2
>> 79 iinc 2 1
>> 82 new java.io.File [49]
>> 85 dup
>> 86 aload_0 [arg0]
>> 87 iload 5
>> 89 iload 4
>> 91 invokevirtual java.lang.String.substring(int, int) :
>> java.lang.String [50]
>> 94 invokespecial java.io.File(java.lang.String) [51]
>> 97 aastore
>> 98 goto 116
>> 101 aload_1
>> 102 iload_2
>> 103 iinc 2 1
>> 106 new java.io.File [49]
>> 109 dup
>> 110 ldc <String "."> [52]
>> 112 invokespecial java.io.File(java.lang.String) [51]
>> 115 aastore
>> 116 iload 4
>> 118 iconst_1
>> 119 iadd
>> 120 istore 5
>> 122 goto 53
>> 125 iload 5
>> 127 aload_0 [arg0]
>> 128 invokevirtual java.lang.String.length() : int [53]
>> 131 if_icmpge 156
>> 134 aload_1
>> 135 iload_2
>> 136 iinc 2 1
>> 139 new java.io.File [49]
>> 142 dup
>> 143 aload_0 [arg0]
>> 144 iload 5
>> 146 invokevirtual java.lang.String.substring(int) :
>> java.lang.String [54]
>> 149 invokespecial java.io.File(java.lang.String) [51]
>> 152 aastore
>> 153 goto 171
>> 156 aload_1
>> 157 iload_2
>> 158 iinc 2 1
>> 161 new java.io.File [49]
>> 164 dup
>> 165 ldc <String "."> [52]
>> 167 invokespecial java.io.File(java.lang.String) [51]
>> 170 aastore
>> 171 iload_2
>> 172 iload_3
>> 173 if_icmpeq 194
>> 176 iload_2
>> 177 anewarray java.io.File [49]
>> 180 astore 6
>> 182 aload_1
>> 183 iconst_0
>> 184 aload 6
>> 186 iconst_0
>> 187 iload_2
>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>> int, java.lang.Object, int, int) : void [55]
>> 191 aload 6
>> 193 astore_1
>> 194 goto 202
>> 197 iconst_0
>> 198 anewarray java.io.File [49]
>> 201 astore_1
>> 202 aload_1
>> 203 areturn
>> Line numbers:
>> [pc: 0, line: 350]
>> [pc: 4, line: 351]
>> [pc: 8, line: 352]
>> [pc: 14, line: 354]
>> [pc: 30, line: 355]
>> [pc: 33, line: 356]
>> [pc: 42, line: 358]
>> [pc: 47, line: 359]
>> [pc: 53, line: 361]
>> [pc: 69, line: 362]
>> [pc: 77, line: 363]
>> [pc: 101, line: 366]
>> [pc: 116, line: 368]
>> [pc: 125, line: 371]
>> [pc: 134, line: 372]
>> [pc: 156, line: 374]
>> [pc: 171, line: 377]
>> [pc: 176, line: 378]
>> [pc: 182, line: 379]
>> [pc: 191, line: 380]
>> [pc: 194, line: 382]
>> [pc: 197, line: 383]
>> [pc: 202, line: 389]
>>
>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>> // Stack: 2, Locals: 2
>> static java.net.URL getFileURL(java.io.File arg0);
>> 0 aload_0 [arg0]
>> 1 invokevirtual java.io.File.getCanonicalFile() : java.io.File [56]
>> 4 astore_0 [arg0]
>> 5 goto 9
>> 8 astore_1
>> 9 aload_0 [arg0]
>> 10 invokestatic
>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL [57]
>> 13 areturn
>> 14 astore_1
>> 15 new java.lang.InternalError [8]
>> 18 dup
>> 19 invokespecial java.lang.InternalError() [59]
>> 22 athrow
>> Exception Table:
>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>> Line numbers:
>> [pc: 0, line: 396]
>> [pc: 5, line: 397]
>> [pc: 9, line: 400]
>> [pc: 14, line: 401]
>> [pc: 15, line: 403]
>>
>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>> // Stack: 1, Locals: 0
>> static synthetic java.net.URLStreamHandlerFactory access$100();
>> 0 getstatic sun.misc.Launcher.factory :
>> java.net.URLStreamHandlerFactory [3]
>> 3 areturn
>> Line numbers:
>> [pc: 0, line: 37]
>>
>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>> // Stack: 1, Locals: 1
>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>> 0 aload_0 [arg0]
>> 1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String) :
>> java.io.File[] [2]
>> 4 areturn
>> Line numbers:
>> [pc: 0, line: 37]
>>
>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>> // Stack: 1, Locals: 1
>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>> 0 aload_0 [arg0]
>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>> java.net.URL[] [1]
>> 4 areturn
>> Line numbers:
>> [pc: 0, line: 37]
>>
>> // Method descriptor #84 ()V
>> // Stack: 3, Locals: 0
>> static {};
>> 0 new sun.misc.Launcher$Factory [60]
>> 3 dup
>> 4 aconst_null
>> 5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
>> 8 putstatic sun.misc.Launcher.factory :
>> java.net.URLStreamHandlerFactory [3]
>> 11 new sun.misc.Launcher [62]
>> 14 dup
>> 15 invokespecial sun.misc.Launcher() [63]
>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>> 21 return
>> Line numbers:
>> [pc: 0, line: 38]
>> [pc: 11, line: 39]
>>
>> Inner classes:
>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>> info: #62 sun/misc/Launcher
>> inner name: #65 Factory, accessflags: 10 private static],
>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>> class info: #62 sun/misc/Launcher
>> inner name: #68 AppClassLoader, accessflags: 8 static],
>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>> class info: #62 sun/misc/Launcher
>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>> inner name: #0, accessflags: 8 static]
>>
>> regards
>> Steve
>>
>>
>> Sven Efftinge wrote:
>>> Hi Bill,
>>>
>>> sorry, I've no idea why the workflow terminates silently.
>>> It seems that for some yet unkown reason the exception is not printed
>>> on the console.
>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>> checkbox in the run configuration) in order to find out where, when
>>> and why it terminates?
>>>
>>> Sorry, I couldn't help more.
>>>
>>> Sven
>>>
>>> Bill Hinge schrieb:
>>>> Hi
>>>>
>>>> I originally posted to the tmf newsgroup but I suspect I should have
>>>> posted here? I have been experimenting further and this post is updated
>>>>
>>>> I have created a GMF editor based on multiple linked ecore files and
>>>> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>>>>
>>>> I have set up an action to call a workflow from my GMF UI and it
>>>> appears
>>>> to be configured correctly but doesn't actually produce anything. (ie
>>>> it's called from java using WorkFlowRunner().... The intention is to
>>>> call the workflow on my editor's model files which will be in their own
>>>> project directory.
>>>>
>>>> As part of my testing I'm manually testing by running the workflow from
>>>> the project explorer (right click run as MWE). I have set up a runtime
>>>> config but when I run I get no errors and no output. I get a message
>>>> 'terminated' on top of the console window.
>>>>
>>>> I am also seeing a lot of messages
>>>> "Could not acquire children from extension:
>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>>>> don't seem to timed with my test runs so I'm not sure if they are
>>>> related.
>>>>
>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>
>>>> <?xml version="1.0"?>
>>>> <workflow>
>>>> <property name="workspace_loc" value="./" />
>>>> <property name="eclipse_home" value="../" />
>>>> <property name="model"
>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>> <property name="src-gen"
>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>> <property name="out" value="out" />
>>>>
>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>> <platformUri value="../" />
>>>> <RegisterEcoreFile
>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>> <RegisterEcoreFile
>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>> </bean>
>>>> <component
>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>
>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>> <modelSlot value="model"/>
>>>> <uri value="${model}"/>
>>>> <firstElementOnly value="false" />
>>>> </component>
>>>>
>>>> <component class="org.eclipse.xpand2.Generator">
>>>> <metaModel id="mm"
>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>> <expand value="Demo::Main FOR model" />
>>>> <outlet path="${src-gen}"/>
>>>> </component>
>>>> </workflow>
>>>>
>>>>
>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>
>>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>>> (contract.ecore etc) and I have put a test copy of the GMF editor model
>>>> output default2.ngoss in /templates
>>>>
>>>> (once I get this running manually I'll be using a call from java)
>>>>
>>>>
>>>> When I run the workflow it gets as far as and stops
>>>>
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO:
>>>> ------------------------------------------------------------ --------------------------
>>>>
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO:
>>>> ------------------------------------------------------------ --------------------------
>>>>
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO: running workflow:
>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
>>>> INFO:
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>> setPlatformUri
>>>> INFO: Registering platform uri
>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>> addRegisterEcoreFile
>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>> addRegisterEcoreFile
>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
>>>> '..//com.xx.yyy.ui/model/contract.ecore'
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I have the following dependencies in my manifest (belt & braces)
>>>> >
>>>> Require-Bundle: org.eclipse.core.runtime,
>>>> org.eclipse.core.resources,
>>>> org.eclipse.ui,
>>>> org.eclipse.emf.codegen,
>>>> org.eclipse.ui.ide,
>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>> >
>>>>
>>>>
>>>>
>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>>>> tried various combinations of the above but am stuck. Any idea what I'm
>>>> doing wrong please?
>>>>
>>>> regards
>>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #621069 is a reply to message #137824] |
Tue, 30 June 2009 20:51 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Sorry to answer my own post, hopefully someone may find it useful in
future!
The reason for the error below was that I was was linking by reference
to uml.ecore and ecore.ecore and some attributes were badly set as uml
definition of string as opposed to ecore string. A quick edit of the
attribute type in the local ecore fixed that problem as a workaround.
There were some other later issues with other namespaces not being found
so I just added them via multiple calls of RegisterEcoreFile.
However, since this is a mixed model and diagram file containing both
model and GMF diagram info the workflow is now looking for
Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation' not
found
as this is referenced in the gmf output file default2.ngoss
Haven't worked out this one yet , any hints?
steve
Bill Hinge wrote:
> To clarify, TestModel referred to below is a string value defined by my
> ecore files as a legal String, it was created by my GMF-EMF editor so I
> would be surprised if it weren't legal. Hence my question as to what
> Reader I should use?
>
> Anyhow, made some progress I'm now failing on the Reader
>
> steve
>
> Bill Hinge wrote:
>> Sven
>>
>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>
>> if I add to my dependencies I now get
>>
>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>> 'TestModel' is not legal.
>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>> 4, 105)
>>
>>
>> Should I be using a different Reader/Generator?
>> (This is a single file GMF-EMF editor)
>>
>>
>> regards
>> Steve
>>
>>
>> Bill Hinge wrote:
>>> Hi Sven
>>>
>>>
>>> I just tried this, must have had some fat fingered gremlins before cause
>>> it kept crashing
>>>
>>> works now...
>>>
>>> I get a classloader error -- source not found
>>>
>>>
>>> } finally {
>>> if (isChildmost) {
>>> childmostCaller.remove();
>>>
>>> if ((c != null) && name.startsWith("org.apache.") &&
>>> ( name.startsWith("org.apache.crimson.") ||
>>> name.startsWith("org.apache.xalan.") ||
>>> name.startsWith("org.apache.xml.") ||
>>> name.startsWith("org.apache.xpath.") ) ) {
>>> AccessController.doPrivileged(new
>>> PrivilegedAction() {
>>> public Object
>>> run() { return
>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ", "true");
>>> }});
>>> }
>>> }
>>> // MacOSX Change END
>>> }
>>> }
>>>
>>>
>>>
>>> and ...
>>>
>>>
>>>
>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>> public class sun.misc.Launcher {
>>>
>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>> private static java.net.URLStreamHandlerFactory factory;
>>>
>>> // Field descriptor #74 Lsun/misc/Launcher;
>>> private static sun.misc.Launcher launcher;
>>>
>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>> private java.lang.ClassLoader loader;
>>>
>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>> private static java.net.URLStreamHandler fileHandler;
>>>
>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>> // Stack: 1, Locals: 0
>>> public static sun.misc.Launcher getLauncher();
>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>> 3 areturn
>>> Line numbers:
>>> [pc: 0, line: 42]
>>>
>>> // Method descriptor #84 ()V
>>> // Stack: 4, Locals: 5
>>> public Launcher();
>>> 0 aload_0 [this]
>>> 1 invokespecial java.lang.Object() [5]
>>> 4 invokestatic
>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>> sun.misc.Launcher$ExtClassLoader [6]
>>> 7 astore_1
>>> 8 goto 22
>>> 11 astore_2
>>> 12 new java.lang.InternalError [8]
>>> 15 dup
>>> 16 ldc <String "Could not create extension class loader"> [9]
>>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>>> 21 athrow
>>> 22 aload_0 [this]
>>> 23 aload_1
>>> 24 invokestatic
>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>> : java.lang.ClassLoader [11]
>>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>> 30 goto 44
>>> 33 astore_2
>>> 34 new java.lang.InternalError [8]
>>> 37 dup
>>> 38 ldc <String "Could not create application class loader"> [13]
>>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>>> 43 athrow
>>> 44 invokestatic java.lang.Thread.currentThread() :
>>> java.lang.Thread [14]
>>> 47 aload_0 [this]
>>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>> 51 invokevirtual
>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void
>>> [15]
>>> 54 ldc <String "java.security.manager"> [16]
>>> 56 invokestatic java.lang.System.getProperty(java.lang.String)
>>> : java.lang.String [17]
>>> 59 astore_2
>>> 60 aload_2
>>> 61 ifnull 168
>>> 64 aconst_null
>>> 65 astore_3
>>> 66 ldc <String ""> [18]
>>> 68 aload_2
>>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>>> boolean [19]
>>> 72 ifne 84
>>> 75 ldc <String "default"> [20]
>>> 77 aload_2
>>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>>> boolean [19]
>>> 81 ifeq 95
>>> 84 new java.lang.SecurityManager [21]
>>> 87 dup
>>> 88 invokespecial java.lang.SecurityManager() [22]
>>> 91 astore_3
>>> 92 goto 130
>>> 95 aload_0 [this]
>>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>> 99 aload_2
>>> 100 invokevirtual
>>> java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class [23]
>>> 103 invokevirtual java.lang.Class.newInstance() :
>>> java.lang.Object [24]
>>> 106 checkcast java.lang.SecurityManager [21]
>>> 109 astore_3
>>> 110 goto 130
>>> 113 astore 4
>>> 115 goto 130
>>> 118 astore 4
>>> 120 goto 130
>>> 123 astore 4
>>> 125 goto 130
>>> 128 astore 4
>>> 130 aload_3
>>> 131 ifnull 141
>>> 134 aload_3
>>> 135 invokestatic
>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) : void
>>> [29]
>>> 138 goto 168
>>> 141 new java.lang.InternalError [8]
>>> 144 dup
>>> 145 new java.lang.StringBuilder [30]
>>> 148 dup
>>> 149 invokespecial java.lang.StringBuilder() [31]
>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>> 154 invokevirtual
>>> java.lang.StringBuilder.append(java.lang.String) :
>>> java.lang.StringBuilder [33]
>>> 157 aload_2
>>> 158 invokevirtual
>>> java.lang.StringBuilder.append(java.lang.String) :
>>> java.lang.StringBuilder [33]
>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>> java.lang.String [34]
>>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>>> 167 athrow
>>> 168 return
>>> Exception Table:
>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>> [pc: 95, pc: 110] -> 113 when : java.lang.IllegalAccessException
>>> [pc: 95, pc: 110] -> 118 when : java.lang.InstantiationException
>>> [pc: 95, pc: 110] -> 123 when : java.lang.ClassNotFoundException
>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>> Line numbers:
>>> [pc: 0, line: 47]
>>> [pc: 4, line: 51]
>>> [pc: 8, line: 55]
>>> [pc: 11, line: 52]
>>> [pc: 12, line: 53]
>>> [pc: 22, line: 59]
>>> [pc: 30, line: 63]
>>> [pc: 33, line: 60]
>>> [pc: 34, line: 61]
>>> [pc: 44, line: 66]
>>> [pc: 54, line: 69]
>>> [pc: 60, line: 70]
>>> [pc: 64, line: 71]
>>> [pc: 66, line: 72]
>>> [pc: 84, line: 73]
>>> [pc: 95, line: 76]
>>> [pc: 110, line: 81]
>>> [pc: 113, line: 77]
>>> [pc: 115, line: 81]
>>> [pc: 118, line: 78]
>>> [pc: 120, line: 81]
>>> [pc: 123, line: 79]
>>> [pc: 125, line: 81]
>>> [pc: 128, line: 80]
>>> [pc: 130, line: 83]
>>> [pc: 134, line: 84]
>>> [pc: 141, line: 86]
>>> [pc: 168, line: 90]
>>>
>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>> // Stack: 1, Locals: 1
>>> public java.lang.ClassLoader getClassLoader();
>>> 0 aload_0 [this]
>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>> 4 areturn
>>> Line numbers:
>>> [pc: 0, line: 96]
>>>
>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>> // Stack: 4, Locals: 3
>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>> 0 new sun.security.action.GetPropertyAction [35]
>>> 3 dup
>>> 4 ldc <String "sun.boot.class.path"> [36]
>>> 6 invokespecial
>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>> 9 invokestatic
>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>> : java.lang.Object [38]
>>> 12 checkcast java.lang.String [39]
>>> 15 astore_0
>>> 16 aload_0
>>> 17 ifnull 43
>>> 20 aload_0
>>> 21 astore_2
>>> 22 new sun.misc.Launcher$1 [40]
>>> 25 dup
>>> 26 aload_2
>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>> 30 invokestatic
>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>> : java.lang.Object [38]
>>> 33 checkcast java.net.URL[] [42]
>>> 36 checkcast java.net.URL[] [42]
>>> 39 astore_1
>>> 40 goto 48
>>> 43 iconst_0
>>> 44 anewarray java.net.URL [43]
>>> 47 astore_1
>>> 48 new sun.misc.URLClassPath [44]
>>> 51 dup
>>> 52 aload_1
>>> 53 getstatic sun.misc.Launcher.factory :
>>> java.net.URLStreamHandlerFactory [3]
>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>> java.net.URLStreamHandlerFactory) [45]
>>> 59 areturn
>>> Line numbers:
>>> [pc: 0, line: 319]
>>> [pc: 16, line: 321]
>>> [pc: 20, line: 322]
>>> [pc: 22, line: 323]
>>> [pc: 40, line: 330]
>>> [pc: 43, line: 331]
>>> [pc: 48, line: 333]
>>>
>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>> // Stack: 4, Locals: 3
>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>> 0 aload_0 [arg0]
>>> 1 arraylength
>>> 2 anewarray java.net.URL [43]
>>> 5 astore_1
>>> 6 iconst_0
>>> 7 istore_2
>>> 8 iload_2
>>> 9 aload_0 [arg0]
>>> 10 arraylength
>>> 11 if_icmpge 29
>>> 14 aload_1
>>> 15 iload_2
>>> 16 aload_0 [arg0]
>>> 17 iload_2
>>> 18 aaload
>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>> java.net.URL [46]
>>> 22 aastore
>>> 23 iinc 2 1
>>> 26 goto 8
>>> 29 aload_1
>>> 30 areturn
>>> Line numbers:
>>> [pc: 0, line: 337]
>>> [pc: 6, line: 338]
>>> [pc: 14, line: 339]
>>> [pc: 23, line: 338]
>>> [pc: 29, line: 345]
>>>
>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>> // Stack: 7, Locals: 7
>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>> 0 aload_0 [arg0]
>>> 1 ifnull 197
>>> 4 iconst_0
>>> 5 istore_2
>>> 6 iconst_1
>>> 7 istore_3
>>> 8 iconst_0
>>> 9 istore 4
>>> 11 iconst_0
>>> 12 istore 5
>>> 14 aload_0 [arg0]
>>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>> 18 iload 5
>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>> int) : int [48]
>>> 23 dup
>>> 24 istore 4
>>> 26 iconst_m1
>>> 27 if_icmpeq 42
>>> 30 iinc 3 1
>>> 33 iload 4
>>> 35 iconst_1
>>> 36 iadd
>>> 37 istore 5
>>> 39 goto 14
>>> 42 iload_3
>>> 43 anewarray java.io.File [49]
>>> 46 astore_1
>>> 47 iconst_0
>>> 48 dup
>>> 49 istore 4
>>> 51 istore 5
>>> 53 aload_0 [arg0]
>>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>> 57 iload 5
>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>> int) : int [48]
>>> 62 dup
>>> 63 istore 4
>>> 65 iconst_m1
>>> 66 if_icmpeq 125
>>> 69 iload 4
>>> 71 iload 5
>>> 73 isub
>>> 74 ifle 101
>>> 77 aload_1
>>> 78 iload_2
>>> 79 iinc 2 1
>>> 82 new java.io.File [49]
>>> 85 dup
>>> 86 aload_0 [arg0]
>>> 87 iload 5
>>> 89 iload 4
>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>> java.lang.String [50]
>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>> 97 aastore
>>> 98 goto 116
>>> 101 aload_1
>>> 102 iload_2
>>> 103 iinc 2 1
>>> 106 new java.io.File [49]
>>> 109 dup
>>> 110 ldc <String "."> [52]
>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>> 115 aastore
>>> 116 iload 4
>>> 118 iconst_1
>>> 119 iadd
>>> 120 istore 5
>>> 122 goto 53
>>> 125 iload 5
>>> 127 aload_0 [arg0]
>>> 128 invokevirtual java.lang.String.length() : int [53]
>>> 131 if_icmpge 156
>>> 134 aload_1
>>> 135 iload_2
>>> 136 iinc 2 1
>>> 139 new java.io.File [49]
>>> 142 dup
>>> 143 aload_0 [arg0]
>>> 144 iload 5
>>> 146 invokevirtual java.lang.String.substring(int) :
>>> java.lang.String [54]
>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>> 152 aastore
>>> 153 goto 171
>>> 156 aload_1
>>> 157 iload_2
>>> 158 iinc 2 1
>>> 161 new java.io.File [49]
>>> 164 dup
>>> 165 ldc <String "."> [52]
>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>> 170 aastore
>>> 171 iload_2
>>> 172 iload_3
>>> 173 if_icmpeq 194
>>> 176 iload_2
>>> 177 anewarray java.io.File [49]
>>> 180 astore 6
>>> 182 aload_1
>>> 183 iconst_0
>>> 184 aload 6
>>> 186 iconst_0
>>> 187 iload_2
>>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>>> int, java.lang.Object, int, int) : void [55]
>>> 191 aload 6
>>> 193 astore_1
>>> 194 goto 202
>>> 197 iconst_0
>>> 198 anewarray java.io.File [49]
>>> 201 astore_1
>>> 202 aload_1
>>> 203 areturn
>>> Line numbers:
>>> [pc: 0, line: 350]
>>> [pc: 4, line: 351]
>>> [pc: 8, line: 352]
>>> [pc: 14, line: 354]
>>> [pc: 30, line: 355]
>>> [pc: 33, line: 356]
>>> [pc: 42, line: 358]
>>> [pc: 47, line: 359]
>>> [pc: 53, line: 361]
>>> [pc: 69, line: 362]
>>> [pc: 77, line: 363]
>>> [pc: 101, line: 366]
>>> [pc: 116, line: 368]
>>> [pc: 125, line: 371]
>>> [pc: 134, line: 372]
>>> [pc: 156, line: 374]
>>> [pc: 171, line: 377]
>>> [pc: 176, line: 378]
>>> [pc: 182, line: 379]
>>> [pc: 191, line: 380]
>>> [pc: 194, line: 382]
>>> [pc: 197, line: 383]
>>> [pc: 202, line: 389]
>>>
>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>> // Stack: 2, Locals: 2
>>> static java.net.URL getFileURL(java.io.File arg0);
>>> 0 aload_0 [arg0]
>>> 1 invokevirtual java.io.File.getCanonicalFile() : java.io.File
>>> [56]
>>> 4 astore_0 [arg0]
>>> 5 goto 9
>>> 8 astore_1
>>> 9 aload_0 [arg0]
>>> 10 invokestatic
>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL [57]
>>> 13 areturn
>>> 14 astore_1
>>> 15 new java.lang.InternalError [8]
>>> 18 dup
>>> 19 invokespecial java.lang.InternalError() [59]
>>> 22 athrow
>>> Exception Table:
>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>> Line numbers:
>>> [pc: 0, line: 396]
>>> [pc: 5, line: 397]
>>> [pc: 9, line: 400]
>>> [pc: 14, line: 401]
>>> [pc: 15, line: 403]
>>>
>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>> // Stack: 1, Locals: 0
>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>> 0 getstatic sun.misc.Launcher.factory :
>>> java.net.URLStreamHandlerFactory [3]
>>> 3 areturn
>>> Line numbers:
>>> [pc: 0, line: 37]
>>>
>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>> // Stack: 1, Locals: 1
>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>> 0 aload_0 [arg0]
>>> 1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String)
>>> : java.io.File[] [2]
>>> 4 areturn
>>> Line numbers:
>>> [pc: 0, line: 37]
>>>
>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>> // Stack: 1, Locals: 1
>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>> 0 aload_0 [arg0]
>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>>> java.net.URL[] [1]
>>> 4 areturn
>>> Line numbers:
>>> [pc: 0, line: 37]
>>>
>>> // Method descriptor #84 ()V
>>> // Stack: 3, Locals: 0
>>> static {};
>>> 0 new sun.misc.Launcher$Factory [60]
>>> 3 dup
>>> 4 aconst_null
>>> 5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1)
>>> [61]
>>> 8 putstatic sun.misc.Launcher.factory :
>>> java.net.URLStreamHandlerFactory [3]
>>> 11 new sun.misc.Launcher [62]
>>> 14 dup
>>> 15 invokespecial sun.misc.Launcher() [63]
>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>> 21 return
>>> Line numbers:
>>> [pc: 0, line: 38]
>>> [pc: 11, line: 39]
>>>
>>> Inner classes:
>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>> info: #62 sun/misc/Launcher
>>> inner name: #65 Factory, accessflags: 10 private static],
>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>>> class info: #62 sun/misc/Launcher
>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>>> class info: #62 sun/misc/Launcher
>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>> inner name: #0, accessflags: 8 static]
>>>
>>> regards
>>> Steve
>>>
>>>
>>> Sven Efftinge wrote:
>>>> Hi Bill,
>>>>
>>>> sorry, I've no idea why the workflow terminates silently.
>>>> It seems that for some yet unkown reason the exception is not
>>>> printed on the console.
>>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>>> checkbox in the run configuration) in order to find out where, when
>>>> and why it terminates?
>>>>
>>>> Sorry, I couldn't help more.
>>>>
>>>> Sven
>>>>
>>>> Bill Hinge schrieb:
>>>>> Hi
>>>>>
>>>>> I originally posted to the tmf newsgroup but I suspect I should have
>>>>> posted here? I have been experimenting further and this post is
>>>>> updated
>>>>>
>>>>> I have created a GMF editor based on multiple linked ecore files and
>>>>> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>>>>>
>>>>> I have set up an action to call a workflow from my GMF UI and it
>>>>> appears
>>>>> to be configured correctly but doesn't actually produce anything. (ie
>>>>> it's called from java using WorkFlowRunner().... The intention is to
>>>>> call the workflow on my editor's model files which will be in their
>>>>> own
>>>>> project directory.
>>>>>
>>>>> As part of my testing I'm manually testing by running the workflow
>>>>> from
>>>>> the project explorer (right click run as MWE). I have set up a runtime
>>>>> config but when I run I get no errors and no output. I get a message
>>>>> 'terminated' on top of the console window.
>>>>>
>>>>> I am also seeing a lot of messages
>>>>> "Could not acquire children from extension:
>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>>>>> don't seem to timed with my test runs so I'm not sure if they are
>>>>> related.
>>>>>
>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>
>>>>> <?xml version="1.0"?>
>>>>> <workflow>
>>>>> <property name="workspace_loc" value="./" />
>>>>> <property name="eclipse_home" value="../" />
>>>>> <property name="model"
>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>> <property name="src-gen"
>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>> <property name="out" value="out" />
>>>>>
>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>> <platformUri value="../" />
>>>>> <RegisterEcoreFile
>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>> <RegisterEcoreFile
>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>> </bean>
>>>>> <component
>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>
>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>> <modelSlot value="model"/>
>>>>> <uri value="${model}"/>
>>>>> <firstElementOnly value="false" />
>>>>> </component>
>>>>>
>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>> <metaModel id="mm"
>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>> <expand value="Demo::Main FOR model" />
>>>>> <outlet path="${src-gen}"/>
>>>>> </component>
>>>>> </workflow>
>>>>>
>>>>>
>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>
>>>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>>>> (contract.ecore etc) and I have put a test copy of the GMF editor
>>>>> model
>>>>> output default2.ngoss in /templates
>>>>>
>>>>> (once I get this running manually I'll be using a call from java)
>>>>>
>>>>>
>>>>> When I run the workflow it gets as far as and stops
>>>>>
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO:
>>>>> ------------------------------------------------------------ --------------------------
>>>>>
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO:
>>>>> ------------------------------------------------------------ --------------------------
>>>>>
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO: running workflow:
>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>> prepare
>>>>> INFO:
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>> setPlatformUri
>>>>> INFO: Registering platform uri
>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>> addRegisterEcoreFile
>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>> addRegisterEcoreFile
>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>> >
>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>> org.eclipse.core.resources,
>>>>> org.eclipse.ui,
>>>>> org.eclipse.emf.codegen,
>>>>> org.eclipse.ui.ide,
>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>>>>> tried various combinations of the above but am stuck. Any idea what
>>>>> I'm
>>>>> doing wrong please?
>>>>>
>>>>> regards
>>>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #621070 is a reply to message #137842] |
Wed, 01 July 2009 00:19 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
For now I have cheated and copied notation.ecore to my local directory
and put a reference to it
<RegisterEcoreFile
value="${eclipse_home}/com.xx.yyy.ui/model/notation.ecore"/ >
obviously not very elegant but it works, the following didn't though
<uriMap
from="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
to=" platform:/plugin/org.eclipse.gmf.runtime.notation.notation.e core "/>
Bill Hinge wrote:
> Sorry to answer my own post, hopefully someone may find it useful in
> future!
>
> The reason for the error below was that I was was linking by reference
> to uml.ecore and ecore.ecore and some attributes were badly set as uml
> definition of string as opposed to ecore string. A quick edit of the
> attribute type in the local ecore fixed that problem as a workaround.
>
>
> There were some other later issues with other namespaces not being found
> so I just added them via multiple calls of RegisterEcoreFile.
>
>
> However, since this is a mixed model and diagram file containing both
> model and GMF diagram info the workflow is now looking for
>
> Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation' not
> found
>
> as this is referenced in the gmf output file default2.ngoss
>
> Haven't worked out this one yet , any hints?
>
> steve
>
> Bill Hinge wrote:
>> To clarify, TestModel referred to below is a string value defined by my
>> ecore files as a legal String, it was created by my GMF-EMF editor so I
>> would be surprised if it weren't legal. Hence my question as to what
>> Reader I should use?
>>
>> Anyhow, made some progress I'm now failing on the Reader
>>
>> steve
>>
>> Bill Hinge wrote:
>>> Sven
>>>
>>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>>
>>> if I add to my dependencies I now get
>>>
>>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>>> 'TestModel' is not legal.
>>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>>> 4, 105)
>>>
>>>
>>> Should I be using a different Reader/Generator?
>>> (This is a single file GMF-EMF editor)
>>>
>>>
>>> regards
>>> Steve
>>>
>>>
>>> Bill Hinge wrote:
>>>> Hi Sven
>>>>
>>>>
>>>> I just tried this, must have had some fat fingered gremlins before
>>>> cause
>>>> it kept crashing
>>>>
>>>> works now...
>>>>
>>>> I get a classloader error -- source not found
>>>>
>>>>
>>>> } finally {
>>>> if (isChildmost) {
>>>> childmostCaller.remove();
>>>>
>>>> if ((c != null) && name.startsWith("org.apache.") &&
>>>> ( name.startsWith("org.apache.crimson.") ||
>>>> name.startsWith("org.apache.xalan.") ||
>>>> name.startsWith("org.apache.xml.") ||
>>>> name.startsWith("org.apache.xpath.") ) ) {
>>>> AccessController.doPrivileged(new
>>>> PrivilegedAction() {
>>>> public Object
>>>> run() { return
>>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ", "true");
>>>> }});
>>>> }
>>>> }
>>>> // MacOSX Change END
>>>> }
>>>> }
>>>>
>>>>
>>>>
>>>> and ...
>>>>
>>>>
>>>>
>>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>>> public class sun.misc.Launcher {
>>>>
>>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>>> private static java.net.URLStreamHandlerFactory factory;
>>>>
>>>> // Field descriptor #74 Lsun/misc/Launcher;
>>>> private static sun.misc.Launcher launcher;
>>>>
>>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>>> private java.lang.ClassLoader loader;
>>>>
>>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>>> private static java.net.URLStreamHandler fileHandler;
>>>>
>>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>>> // Stack: 1, Locals: 0
>>>> public static sun.misc.Launcher getLauncher();
>>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>> 3 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 42]
>>>>
>>>> // Method descriptor #84 ()V
>>>> // Stack: 4, Locals: 5
>>>> public Launcher();
>>>> 0 aload_0 [this]
>>>> 1 invokespecial java.lang.Object() [5]
>>>> 4 invokestatic
>>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>>> sun.misc.Launcher$ExtClassLoader [6]
>>>> 7 astore_1
>>>> 8 goto 22
>>>> 11 astore_2
>>>> 12 new java.lang.InternalError [8]
>>>> 15 dup
>>>> 16 ldc <String "Could not create extension class loader"> [9]
>>>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>> 21 athrow
>>>> 22 aload_0 [this]
>>>> 23 aload_1
>>>> 24 invokestatic
>>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>>> : java.lang.ClassLoader [11]
>>>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>> 30 goto 44
>>>> 33 astore_2
>>>> 34 new java.lang.InternalError [8]
>>>> 37 dup
>>>> 38 ldc <String "Could not create application class loader"> [13]
>>>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>> 43 athrow
>>>> 44 invokestatic java.lang.Thread.currentThread() :
>>>> java.lang.Thread [14]
>>>> 47 aload_0 [this]
>>>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>> 51 invokevirtual
>>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) : void
>>>> [15]
>>>> 54 ldc <String "java.security.manager"> [16]
>>>> 56 invokestatic java.lang.System.getProperty(java.lang.String)
>>>> : java.lang.String [17]
>>>> 59 astore_2
>>>> 60 aload_2
>>>> 61 ifnull 168
>>>> 64 aconst_null
>>>> 65 astore_3
>>>> 66 ldc <String ""> [18]
>>>> 68 aload_2
>>>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>> boolean [19]
>>>> 72 ifne 84
>>>> 75 ldc <String "default"> [20]
>>>> 77 aload_2
>>>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>> boolean [19]
>>>> 81 ifeq 95
>>>> 84 new java.lang.SecurityManager [21]
>>>> 87 dup
>>>> 88 invokespecial java.lang.SecurityManager() [22]
>>>> 91 astore_3
>>>> 92 goto 130
>>>> 95 aload_0 [this]
>>>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>> 99 aload_2
>>>> 100 invokevirtual
>>>> java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class
>>>> [23]
>>>> 103 invokevirtual java.lang.Class.newInstance() :
>>>> java.lang.Object [24]
>>>> 106 checkcast java.lang.SecurityManager [21]
>>>> 109 astore_3
>>>> 110 goto 130
>>>> 113 astore 4
>>>> 115 goto 130
>>>> 118 astore 4
>>>> 120 goto 130
>>>> 123 astore 4
>>>> 125 goto 130
>>>> 128 astore 4
>>>> 130 aload_3
>>>> 131 ifnull 141
>>>> 134 aload_3
>>>> 135 invokestatic
>>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) :
>>>> void [29]
>>>> 138 goto 168
>>>> 141 new java.lang.InternalError [8]
>>>> 144 dup
>>>> 145 new java.lang.StringBuilder [30]
>>>> 148 dup
>>>> 149 invokespecial java.lang.StringBuilder() [31]
>>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>>> 154 invokevirtual
>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>> java.lang.StringBuilder [33]
>>>> 157 aload_2
>>>> 158 invokevirtual
>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>> java.lang.StringBuilder [33]
>>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>>> java.lang.String [34]
>>>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>> 167 athrow
>>>> 168 return
>>>> Exception Table:
>>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>>> [pc: 95, pc: 110] -> 113 when :
>>>> java.lang.IllegalAccessException
>>>> [pc: 95, pc: 110] -> 118 when :
>>>> java.lang.InstantiationException
>>>> [pc: 95, pc: 110] -> 123 when :
>>>> java.lang.ClassNotFoundException
>>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>>> Line numbers:
>>>> [pc: 0, line: 47]
>>>> [pc: 4, line: 51]
>>>> [pc: 8, line: 55]
>>>> [pc: 11, line: 52]
>>>> [pc: 12, line: 53]
>>>> [pc: 22, line: 59]
>>>> [pc: 30, line: 63]
>>>> [pc: 33, line: 60]
>>>> [pc: 34, line: 61]
>>>> [pc: 44, line: 66]
>>>> [pc: 54, line: 69]
>>>> [pc: 60, line: 70]
>>>> [pc: 64, line: 71]
>>>> [pc: 66, line: 72]
>>>> [pc: 84, line: 73]
>>>> [pc: 95, line: 76]
>>>> [pc: 110, line: 81]
>>>> [pc: 113, line: 77]
>>>> [pc: 115, line: 81]
>>>> [pc: 118, line: 78]
>>>> [pc: 120, line: 81]
>>>> [pc: 123, line: 79]
>>>> [pc: 125, line: 81]
>>>> [pc: 128, line: 80]
>>>> [pc: 130, line: 83]
>>>> [pc: 134, line: 84]
>>>> [pc: 141, line: 86]
>>>> [pc: 168, line: 90]
>>>>
>>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>>> // Stack: 1, Locals: 1
>>>> public java.lang.ClassLoader getClassLoader();
>>>> 0 aload_0 [this]
>>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>> 4 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 96]
>>>>
>>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>>> // Stack: 4, Locals: 3
>>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>>> 0 new sun.security.action.GetPropertyAction [35]
>>>> 3 dup
>>>> 4 ldc <String "sun.boot.class.path"> [36]
>>>> 6 invokespecial
>>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>>> 9 invokestatic
>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>> : java.lang.Object [38]
>>>> 12 checkcast java.lang.String [39]
>>>> 15 astore_0
>>>> 16 aload_0
>>>> 17 ifnull 43
>>>> 20 aload_0
>>>> 21 astore_2
>>>> 22 new sun.misc.Launcher$1 [40]
>>>> 25 dup
>>>> 26 aload_2
>>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>>> 30 invokestatic
>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>> : java.lang.Object [38]
>>>> 33 checkcast java.net.URL[] [42]
>>>> 36 checkcast java.net.URL[] [42]
>>>> 39 astore_1
>>>> 40 goto 48
>>>> 43 iconst_0
>>>> 44 anewarray java.net.URL [43]
>>>> 47 astore_1
>>>> 48 new sun.misc.URLClassPath [44]
>>>> 51 dup
>>>> 52 aload_1
>>>> 53 getstatic sun.misc.Launcher.factory :
>>>> java.net.URLStreamHandlerFactory [3]
>>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>>> java.net.URLStreamHandlerFactory) [45]
>>>> 59 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 319]
>>>> [pc: 16, line: 321]
>>>> [pc: 20, line: 322]
>>>> [pc: 22, line: 323]
>>>> [pc: 40, line: 330]
>>>> [pc: 43, line: 331]
>>>> [pc: 48, line: 333]
>>>>
>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>> // Stack: 4, Locals: 3
>>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 arraylength
>>>> 2 anewarray java.net.URL [43]
>>>> 5 astore_1
>>>> 6 iconst_0
>>>> 7 istore_2
>>>> 8 iload_2
>>>> 9 aload_0 [arg0]
>>>> 10 arraylength
>>>> 11 if_icmpge 29
>>>> 14 aload_1
>>>> 15 iload_2
>>>> 16 aload_0 [arg0]
>>>> 17 iload_2
>>>> 18 aaload
>>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>>> java.net.URL [46]
>>>> 22 aastore
>>>> 23 iinc 2 1
>>>> 26 goto 8
>>>> 29 aload_1
>>>> 30 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 337]
>>>> [pc: 6, line: 338]
>>>> [pc: 14, line: 339]
>>>> [pc: 23, line: 338]
>>>> [pc: 29, line: 345]
>>>>
>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>> // Stack: 7, Locals: 7
>>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 ifnull 197
>>>> 4 iconst_0
>>>> 5 istore_2
>>>> 6 iconst_1
>>>> 7 istore_3
>>>> 8 iconst_0
>>>> 9 istore 4
>>>> 11 iconst_0
>>>> 12 istore 5
>>>> 14 aload_0 [arg0]
>>>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>> 18 iload 5
>>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>> int) : int [48]
>>>> 23 dup
>>>> 24 istore 4
>>>> 26 iconst_m1
>>>> 27 if_icmpeq 42
>>>> 30 iinc 3 1
>>>> 33 iload 4
>>>> 35 iconst_1
>>>> 36 iadd
>>>> 37 istore 5
>>>> 39 goto 14
>>>> 42 iload_3
>>>> 43 anewarray java.io.File [49]
>>>> 46 astore_1
>>>> 47 iconst_0
>>>> 48 dup
>>>> 49 istore 4
>>>> 51 istore 5
>>>> 53 aload_0 [arg0]
>>>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>> 57 iload 5
>>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>> int) : int [48]
>>>> 62 dup
>>>> 63 istore 4
>>>> 65 iconst_m1
>>>> 66 if_icmpeq 125
>>>> 69 iload 4
>>>> 71 iload 5
>>>> 73 isub
>>>> 74 ifle 101
>>>> 77 aload_1
>>>> 78 iload_2
>>>> 79 iinc 2 1
>>>> 82 new java.io.File [49]
>>>> 85 dup
>>>> 86 aload_0 [arg0]
>>>> 87 iload 5
>>>> 89 iload 4
>>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>>> java.lang.String [50]
>>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>>> 97 aastore
>>>> 98 goto 116
>>>> 101 aload_1
>>>> 102 iload_2
>>>> 103 iinc 2 1
>>>> 106 new java.io.File [49]
>>>> 109 dup
>>>> 110 ldc <String "."> [52]
>>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>>> 115 aastore
>>>> 116 iload 4
>>>> 118 iconst_1
>>>> 119 iadd
>>>> 120 istore 5
>>>> 122 goto 53
>>>> 125 iload 5
>>>> 127 aload_0 [arg0]
>>>> 128 invokevirtual java.lang.String.length() : int [53]
>>>> 131 if_icmpge 156
>>>> 134 aload_1
>>>> 135 iload_2
>>>> 136 iinc 2 1
>>>> 139 new java.io.File [49]
>>>> 142 dup
>>>> 143 aload_0 [arg0]
>>>> 144 iload 5
>>>> 146 invokevirtual java.lang.String.substring(int) :
>>>> java.lang.String [54]
>>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>>> 152 aastore
>>>> 153 goto 171
>>>> 156 aload_1
>>>> 157 iload_2
>>>> 158 iinc 2 1
>>>> 161 new java.io.File [49]
>>>> 164 dup
>>>> 165 ldc <String "."> [52]
>>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>>> 170 aastore
>>>> 171 iload_2
>>>> 172 iload_3
>>>> 173 if_icmpeq 194
>>>> 176 iload_2
>>>> 177 anewarray java.io.File [49]
>>>> 180 astore 6
>>>> 182 aload_1
>>>> 183 iconst_0
>>>> 184 aload 6
>>>> 186 iconst_0
>>>> 187 iload_2
>>>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>>>> int, java.lang.Object, int, int) : void [55]
>>>> 191 aload 6
>>>> 193 astore_1
>>>> 194 goto 202
>>>> 197 iconst_0
>>>> 198 anewarray java.io.File [49]
>>>> 201 astore_1
>>>> 202 aload_1
>>>> 203 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 350]
>>>> [pc: 4, line: 351]
>>>> [pc: 8, line: 352]
>>>> [pc: 14, line: 354]
>>>> [pc: 30, line: 355]
>>>> [pc: 33, line: 356]
>>>> [pc: 42, line: 358]
>>>> [pc: 47, line: 359]
>>>> [pc: 53, line: 361]
>>>> [pc: 69, line: 362]
>>>> [pc: 77, line: 363]
>>>> [pc: 101, line: 366]
>>>> [pc: 116, line: 368]
>>>> [pc: 125, line: 371]
>>>> [pc: 134, line: 372]
>>>> [pc: 156, line: 374]
>>>> [pc: 171, line: 377]
>>>> [pc: 176, line: 378]
>>>> [pc: 182, line: 379]
>>>> [pc: 191, line: 380]
>>>> [pc: 194, line: 382]
>>>> [pc: 197, line: 383]
>>>> [pc: 202, line: 389]
>>>>
>>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>>> // Stack: 2, Locals: 2
>>>> static java.net.URL getFileURL(java.io.File arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 invokevirtual java.io.File.getCanonicalFile() : java.io.File
>>>> [56]
>>>> 4 astore_0 [arg0]
>>>> 5 goto 9
>>>> 8 astore_1
>>>> 9 aload_0 [arg0]
>>>> 10 invokestatic
>>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL
>>>> [57]
>>>> 13 areturn
>>>> 14 astore_1
>>>> 15 new java.lang.InternalError [8]
>>>> 18 dup
>>>> 19 invokespecial java.lang.InternalError() [59]
>>>> 22 athrow
>>>> Exception Table:
>>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>>> Line numbers:
>>>> [pc: 0, line: 396]
>>>> [pc: 5, line: 397]
>>>> [pc: 9, line: 400]
>>>> [pc: 14, line: 401]
>>>> [pc: 15, line: 403]
>>>>
>>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>>> // Stack: 1, Locals: 0
>>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>>> 0 getstatic sun.misc.Launcher.factory :
>>>> java.net.URLStreamHandlerFactory [3]
>>>> 3 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 37]
>>>>
>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>> // Stack: 1, Locals: 1
>>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 invokestatic sun.misc.Launcher.getClassPath(java.lang.String)
>>>> : java.io.File[] [2]
>>>> 4 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 37]
>>>>
>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>> // Stack: 1, Locals: 1
>>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>>> 0 aload_0 [arg0]
>>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>>>> java.net.URL[] [1]
>>>> 4 areturn
>>>> Line numbers:
>>>> [pc: 0, line: 37]
>>>>
>>>> // Method descriptor #84 ()V
>>>> // Stack: 3, Locals: 0
>>>> static {};
>>>> 0 new sun.misc.Launcher$Factory [60]
>>>> 3 dup
>>>> 4 aconst_null
>>>> 5 invokespecial sun.misc.Launcher$Factory(sun.misc.Launcher$1)
>>>> [61]
>>>> 8 putstatic sun.misc.Launcher.factory :
>>>> java.net.URLStreamHandlerFactory [3]
>>>> 11 new sun.misc.Launcher [62]
>>>> 14 dup
>>>> 15 invokespecial sun.misc.Launcher() [63]
>>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>> 21 return
>>>> Line numbers:
>>>> [pc: 0, line: 38]
>>>> [pc: 11, line: 39]
>>>>
>>>> Inner classes:
>>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>>> info: #62 sun/misc/Launcher
>>>> inner name: #65 Factory, accessflags: 10 private static],
>>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>>>> class info: #62 sun/misc/Launcher
>>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>>>> class info: #62 sun/misc/Launcher
>>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>>> inner name: #0, accessflags: 8 static]
>>>>
>>>> regards
>>>> Steve
>>>>
>>>>
>>>> Sven Efftinge wrote:
>>>>> Hi Bill,
>>>>>
>>>>> sorry, I've no idea why the workflow terminates silently.
>>>>> It seems that for some yet unkown reason the exception is not
>>>>> printed on the console.
>>>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>>>> checkbox in the run configuration) in order to find out where, when
>>>>> and why it terminates?
>>>>>
>>>>> Sorry, I couldn't help more.
>>>>>
>>>>> Sven
>>>>>
>>>>> Bill Hinge schrieb:
>>>>>> Hi
>>>>>>
>>>>>> I originally posted to the tmf newsgroup but I suspect I should have
>>>>>> posted here? I have been experimenting further and this post is
>>>>>> updated
>>>>>>
>>>>>> I have created a GMF editor based on multiple linked ecore files and
>>>>>> my GMF editor creates a shared EMF-GMF editor domain in a single
>>>>>> file.
>>>>>>
>>>>>> I have set up an action to call a workflow from my GMF UI and it
>>>>>> appears
>>>>>> to be configured correctly but doesn't actually produce anything. (ie
>>>>>> it's called from java using WorkFlowRunner().... The intention is to
>>>>>> call the workflow on my editor's model files which will be in
>>>>>> their own
>>>>>> project directory.
>>>>>>
>>>>>> As part of my testing I'm manually testing by running the workflow
>>>>>> from
>>>>>> the project explorer (right click run as MWE). I have set up a
>>>>>> runtime
>>>>>> config but when I run I get no errors and no output. I get a message
>>>>>> 'terminated' on top of the console window.
>>>>>>
>>>>>> I am also seeing a lot of messages
>>>>>> "Could not acquire children from extension:
>>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but these
>>>>>> don't seem to timed with my test runs so I'm not sure if they are
>>>>>> related.
>>>>>>
>>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>>
>>>>>> <?xml version="1.0"?>
>>>>>> <workflow>
>>>>>> <property name="workspace_loc" value="./" />
>>>>>> <property name="eclipse_home" value="../" />
>>>>>> <property name="model"
>>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>>> <property name="src-gen"
>>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>> <property name="out" value="out" />
>>>>>>
>>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>>> <platformUri value="../" />
>>>>>> <RegisterEcoreFile
>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>>> <RegisterEcoreFile
>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>>> </bean>
>>>>>> <component
>>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>
>>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>>> <modelSlot value="model"/>
>>>>>> <uri value="${model}"/>
>>>>>> <firstElementOnly value="false" />
>>>>>> </component>
>>>>>>
>>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>>> <metaModel id="mm"
>>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>>> <expand value="Demo::Main FOR model" />
>>>>>> <outlet path="${src-gen}"/>
>>>>>> </component>
>>>>>> </workflow>
>>>>>>
>>>>>>
>>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>>
>>>>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>>>>> (contract.ecore etc) and I have put a test copy of the GMF editor
>>>>>> model
>>>>>> output default2.ngoss in /templates
>>>>>>
>>>>>> (once I get this running manually I'll be using a call from java)
>>>>>>
>>>>>>
>>>>>> When I run the workflow it gets as far as and stops
>>>>>>
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO:
>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO:
>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO: running workflow:
>>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>>
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>> prepare
>>>>>> INFO:
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>> setPlatformUri
>>>>>> INFO: Registering platform uri
>>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>> addRegisterEcoreFile
>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>>>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>> addRegisterEcoreFile
>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>>> >
>>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>>> org.eclipse.core.resources,
>>>>>> org.eclipse.ui,
>>>>>> org.eclipse.emf.codegen,
>>>>>> org.eclipse.ui.ide,
>>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF book,
>>>>>> tried various combinations of the above but am stuck. Any idea
>>>>>> what I'm
>>>>>> doing wrong please?
>>>>>>
>>>>>> regards
>>>>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #621072 is a reply to message #137856] |
Wed, 01 July 2009 16:22 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
I originally posted this to m2t as I thought it was an Xpand problem
I'm struggling through some workflow & xpand2 issues and I've got as far
as the generator part.
I have set up my gmf model in $model etc for my Reader and it is being
read but I'm getting a fatal error at the generator.
My xpand template is quite simple at this stage
«IMPORT ngoss»
«IMPORT contract»
«IMPORT sla»
«DEFINE ngoss FOR contract::Contract»
«ENDDEFINE»
Note, even though I used code completion I'm getting those red error
marks on my IMPORT's
Here is part of my workflow
<component class="org.eclipse.emf.mwe.utils.Reader">
<firstElementOnly value="false" />
<modelSlot value="model"/>
<uri value="${model}"/>
</component>
<component class="org.eclipse.xpand2.Generator" id="generate">
<metaModel id="mm"
class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
<fileEncoding value="UTF-8"/>
<expand value="Demos::ngoss FOR model" />
<outlet path="${src-gen}"/>
</component>
Note it doesn't seem to matter if I use templates::Demos or not!
Jul 1, 2009 3:17:40 PM
org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent
invokeInternal
SEVERE: Error in Component generate of type org.eclipse.xpand2.Generator:
EvaluationException : No Definition
'templates::NewTemplateFile::ngoss for List' found!
[23,50] on line 1 'EXPAND templates::NewTemplateFile::ngoss FOR model'
Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner
executeWorkflow
SEVERE: Workflow interrupted. Reason: No Definition
'templates::NewTemplateFile::ngoss for List' found!
Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No Definition 'templates::NewTemplateFile::ngoss for
List' found!(Element: EXPAND templates::NewTemplateFile::ngoss FOR
model; Reported by: Generator(generate)
IF I use the following template (done via code completion)
«IMPORT ngoss»
«IMPORT contract»
«IMPORT sla»
«DEFINE Main FOR NGOSS»
«FILE author + ".ngoss_out"»
«EXPAND bs FOREACH this.businessServices»
«ENDFILE»
«ENDDEFINE»
«DEFINE bs FOR Contract»
«Title»
«ENDDEFINE»
I get the following error
SEVERE: mismatched input ''http://www.xx.com/2008/ngoss'' expecting
Identifier on line 1
org.eclipse.internal.xtend.xtend.parser.ParseException: mismatched input
''http://www.bt.com/2008/ngoss'' expecting Identifier on line 1
at
org.eclipse.internal.xpand2.parser.XpandParseFacade$3.handle Error(XpandParseFacade.java:77)
at
org.eclipse.internal.xpand2.parser.XpandParseFacade$2.report Error(XpandParseFacade.java:66)
at
org.eclipse.internal.xpand2.parser.XpandParser.identifier(Xp andParser.java:4326)
at
org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .identifier(XpandLocationAddingParser.java:184)
at
org.eclipse.internal.xpand2.parser.XpandParser.simpleType(Xp andParser.java:4251)
at
org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .simpleType(XpandLocationAddingParser.java:274)
at
org.eclipse.internal.xpand2.parser.XpandParser.anImport(Xpan dParser.java:368)
at
org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .anImport(XpandLocationAddingParser.java:79)
at
org.eclipse.internal.xpand2.parser.XpandParser.template(Xpan dParser.java:170)
at
org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .template(XpandLocationAddingParser.java:289)
at
org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:44)
at
org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:31)
at
org.eclipse.xpand2.XpandExecutionContextImpl$1.parse(XpandEx ecutionContextImpl.java:92)
at
org.eclipse.xtend.expression.ResourceManagerDefaultImpl.load Resource(ResourceManagerDefaultImpl.java:70)
at
org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:193)
at
org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:186)
at
org.eclipse.xpand2.XpandExecutionContextImpl.findDefinition( XpandExecutionContextImpl.java:145)
at
org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefini tion(ExpandStatement.java:174)
at
org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInte rnal(ExpandStatement.java:167)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java: 334)
at
org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent.invokeInternal(AbstractExpressionsUsingWorkflowCo mponent.java:191)
at
org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invok e(AbstractWorkflowComponent.java:118)
at
org.eclipse.emf.mwe.core.container.CompositeComponent.intern alInvoke(CompositeComponent.java:101)
at
org.eclipse.emf.mwe.core.container.CompositeComponent.invoke (CompositeComponent.java:86)
at
org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(Work flowRunner.java:412)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.j ava:292)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner. java:239)
Jul 1, 2009 4:29:04 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: mismatched input ''http://www.xx.com/2008/ngoss''
expecting Identifier on line 1(Element: EXPAND Demo::ngoss FOR model;
Reported by: Generator(NgossGenerate): generating 'Demo::ngoss FOR
model' => ..//com.xx.yyy.ui/src-gen)
regards
Steve
Bill Hinge wrote:
> For now I have cheated and copied notation.ecore to my local directory
> and put a reference to it
>
> <RegisterEcoreFile
> value="${eclipse_home}/com.xx.yyy.ui/model/notation.ecore"/ >
>
> obviously not very elegant but it works, the following didn't though
>
> <uriMap
> from="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
>
> to=" platform:/plugin/org.eclipse.gmf.runtime.notation.notation.e core "/>
>
>
> Bill Hinge wrote:
>> Sorry to answer my own post, hopefully someone may find it useful in
>> future!
>>
>> The reason for the error below was that I was was linking by reference
>> to uml.ecore and ecore.ecore and some attributes were badly set as uml
>> definition of string as opposed to ecore string. A quick edit of the
>> attribute type in the local ecore fixed that problem as a workaround.
>>
>>
>> There were some other later issues with other namespaces not being found
>> so I just added them via multiple calls of RegisterEcoreFile.
>>
>>
>> However, since this is a mixed model and diagram file containing both
>> model and GMF diagram info the workflow is now looking for
>>
>> Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation'
>> not found
>>
>> as this is referenced in the gmf output file default2.ngoss
>>
>> Haven't worked out this one yet , any hints?
>>
>> steve
>>
>> Bill Hinge wrote:
>>> To clarify, TestModel referred to below is a string value defined by my
>>> ecore files as a legal String, it was created by my GMF-EMF editor so I
>>> would be surprised if it weren't legal. Hence my question as to what
>>> Reader I should use?
>>>
>>> Anyhow, made some progress I'm now failing on the Reader
>>>
>>> steve
>>>
>>> Bill Hinge wrote:
>>>> Sven
>>>>
>>>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>>>
>>>> if I add to my dependencies I now get
>>>>
>>>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>>>> 'TestModel' is not legal.
>>>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>>>> 4, 105)
>>>>
>>>>
>>>> Should I be using a different Reader/Generator?
>>>> (This is a single file GMF-EMF editor)
>>>>
>>>>
>>>> regards
>>>> Steve
>>>>
>>>>
>>>> Bill Hinge wrote:
>>>>> Hi Sven
>>>>>
>>>>>
>>>>> I just tried this, must have had some fat fingered gremlins before
>>>>> cause
>>>>> it kept crashing
>>>>>
>>>>> works now...
>>>>>
>>>>> I get a classloader error -- source not found
>>>>>
>>>>>
>>>>> } finally {
>>>>> if (isChildmost) {
>>>>> childmostCaller.remove();
>>>>>
>>>>> if ((c != null) && name.startsWith("org.apache.") &&
>>>>> ( name.startsWith("org.apache.crimson.") ||
>>>>> name.startsWith("org.apache.xalan.") ||
>>>>> name.startsWith("org.apache.xml.") ||
>>>>> name.startsWith("org.apache.xpath.") ) ) {
>>>>> AccessController.doPrivileged(new
>>>>> PrivilegedAction() {
>>>>> public Object
>>>>> run() { return
>>>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ",
>>>>> "true");
>>>>> }});
>>>>> }
>>>>> }
>>>>> // MacOSX Change END
>>>>> }
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>> and ...
>>>>>
>>>>>
>>>>>
>>>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>>>> public class sun.misc.Launcher {
>>>>>
>>>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>>>> private static java.net.URLStreamHandlerFactory factory;
>>>>>
>>>>> // Field descriptor #74 Lsun/misc/Launcher;
>>>>> private static sun.misc.Launcher launcher;
>>>>>
>>>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>>>> private java.lang.ClassLoader loader;
>>>>>
>>>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>>>> private static java.net.URLStreamHandler fileHandler;
>>>>>
>>>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>>>> // Stack: 1, Locals: 0
>>>>> public static sun.misc.Launcher getLauncher();
>>>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>> 3 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 42]
>>>>>
>>>>> // Method descriptor #84 ()V
>>>>> // Stack: 4, Locals: 5
>>>>> public Launcher();
>>>>> 0 aload_0 [this]
>>>>> 1 invokespecial java.lang.Object() [5]
>>>>> 4 invokestatic
>>>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>>>> sun.misc.Launcher$ExtClassLoader [6]
>>>>> 7 astore_1
>>>>> 8 goto 22
>>>>> 11 astore_2
>>>>> 12 new java.lang.InternalError [8]
>>>>> 15 dup
>>>>> 16 ldc <String "Could not create extension class loader"> [9]
>>>>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>> 21 athrow
>>>>> 22 aload_0 [this]
>>>>> 23 aload_1
>>>>> 24 invokestatic
>>>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>>>> : java.lang.ClassLoader [11]
>>>>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>> [12]
>>>>> 30 goto 44
>>>>> 33 astore_2
>>>>> 34 new java.lang.InternalError [8]
>>>>> 37 dup
>>>>> 38 ldc <String "Could not create application class loader"> [13]
>>>>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>> 43 athrow
>>>>> 44 invokestatic java.lang.Thread.currentThread() :
>>>>> java.lang.Thread [14]
>>>>> 47 aload_0 [this]
>>>>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>> [12]
>>>>> 51 invokevirtual
>>>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) :
>>>>> void [15]
>>>>> 54 ldc <String "java.security.manager"> [16]
>>>>> 56 invokestatic
>>>>> java.lang.System.getProperty(java.lang.String) : java.lang.String [17]
>>>>> 59 astore_2
>>>>> 60 aload_2
>>>>> 61 ifnull 168
>>>>> 64 aconst_null
>>>>> 65 astore_3
>>>>> 66 ldc <String ""> [18]
>>>>> 68 aload_2
>>>>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>>> boolean [19]
>>>>> 72 ifne 84
>>>>> 75 ldc <String "default"> [20]
>>>>> 77 aload_2
>>>>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>>> boolean [19]
>>>>> 81 ifeq 95
>>>>> 84 new java.lang.SecurityManager [21]
>>>>> 87 dup
>>>>> 88 invokespecial java.lang.SecurityManager() [22]
>>>>> 91 astore_3
>>>>> 92 goto 130
>>>>> 95 aload_0 [this]
>>>>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>> [12]
>>>>> 99 aload_2
>>>>> 100 invokevirtual
>>>>> java.lang.ClassLoader.loadClass(java.lang.String) : java.lang.Class
>>>>> [23]
>>>>> 103 invokevirtual java.lang.Class.newInstance() :
>>>>> java.lang.Object [24]
>>>>> 106 checkcast java.lang.SecurityManager [21]
>>>>> 109 astore_3
>>>>> 110 goto 130
>>>>> 113 astore 4
>>>>> 115 goto 130
>>>>> 118 astore 4
>>>>> 120 goto 130
>>>>> 123 astore 4
>>>>> 125 goto 130
>>>>> 128 astore 4
>>>>> 130 aload_3
>>>>> 131 ifnull 141
>>>>> 134 aload_3
>>>>> 135 invokestatic
>>>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) :
>>>>> void [29]
>>>>> 138 goto 168
>>>>> 141 new java.lang.InternalError [8]
>>>>> 144 dup
>>>>> 145 new java.lang.StringBuilder [30]
>>>>> 148 dup
>>>>> 149 invokespecial java.lang.StringBuilder() [31]
>>>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>>>> 154 invokevirtual
>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>> java.lang.StringBuilder [33]
>>>>> 157 aload_2
>>>>> 158 invokevirtual
>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>> java.lang.StringBuilder [33]
>>>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>>>> java.lang.String [34]
>>>>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>> 167 athrow
>>>>> 168 return
>>>>> Exception Table:
>>>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>>>> [pc: 95, pc: 110] -> 113 when :
>>>>> java.lang.IllegalAccessException
>>>>> [pc: 95, pc: 110] -> 118 when :
>>>>> java.lang.InstantiationException
>>>>> [pc: 95, pc: 110] -> 123 when :
>>>>> java.lang.ClassNotFoundException
>>>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>>>> Line numbers:
>>>>> [pc: 0, line: 47]
>>>>> [pc: 4, line: 51]
>>>>> [pc: 8, line: 55]
>>>>> [pc: 11, line: 52]
>>>>> [pc: 12, line: 53]
>>>>> [pc: 22, line: 59]
>>>>> [pc: 30, line: 63]
>>>>> [pc: 33, line: 60]
>>>>> [pc: 34, line: 61]
>>>>> [pc: 44, line: 66]
>>>>> [pc: 54, line: 69]
>>>>> [pc: 60, line: 70]
>>>>> [pc: 64, line: 71]
>>>>> [pc: 66, line: 72]
>>>>> [pc: 84, line: 73]
>>>>> [pc: 95, line: 76]
>>>>> [pc: 110, line: 81]
>>>>> [pc: 113, line: 77]
>>>>> [pc: 115, line: 81]
>>>>> [pc: 118, line: 78]
>>>>> [pc: 120, line: 81]
>>>>> [pc: 123, line: 79]
>>>>> [pc: 125, line: 81]
>>>>> [pc: 128, line: 80]
>>>>> [pc: 130, line: 83]
>>>>> [pc: 134, line: 84]
>>>>> [pc: 141, line: 86]
>>>>> [pc: 168, line: 90]
>>>>>
>>>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>>>> // Stack: 1, Locals: 1
>>>>> public java.lang.ClassLoader getClassLoader();
>>>>> 0 aload_0 [this]
>>>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>>> 4 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 96]
>>>>>
>>>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>>>> // Stack: 4, Locals: 3
>>>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>>>> 0 new sun.security.action.GetPropertyAction [35]
>>>>> 3 dup
>>>>> 4 ldc <String "sun.boot.class.path"> [36]
>>>>> 6 invokespecial
>>>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>>>> 9 invokestatic
>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>> : java.lang.Object [38]
>>>>> 12 checkcast java.lang.String [39]
>>>>> 15 astore_0
>>>>> 16 aload_0
>>>>> 17 ifnull 43
>>>>> 20 aload_0
>>>>> 21 astore_2
>>>>> 22 new sun.misc.Launcher$1 [40]
>>>>> 25 dup
>>>>> 26 aload_2
>>>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>>>> 30 invokestatic
>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>> : java.lang.Object [38]
>>>>> 33 checkcast java.net.URL[] [42]
>>>>> 36 checkcast java.net.URL[] [42]
>>>>> 39 astore_1
>>>>> 40 goto 48
>>>>> 43 iconst_0
>>>>> 44 anewarray java.net.URL [43]
>>>>> 47 astore_1
>>>>> 48 new sun.misc.URLClassPath [44]
>>>>> 51 dup
>>>>> 52 aload_1
>>>>> 53 getstatic sun.misc.Launcher.factory :
>>>>> java.net.URLStreamHandlerFactory [3]
>>>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>>>> java.net.URLStreamHandlerFactory) [45]
>>>>> 59 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 319]
>>>>> [pc: 16, line: 321]
>>>>> [pc: 20, line: 322]
>>>>> [pc: 22, line: 323]
>>>>> [pc: 40, line: 330]
>>>>> [pc: 43, line: 331]
>>>>> [pc: 48, line: 333]
>>>>>
>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>> // Stack: 4, Locals: 3
>>>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 arraylength
>>>>> 2 anewarray java.net.URL [43]
>>>>> 5 astore_1
>>>>> 6 iconst_0
>>>>> 7 istore_2
>>>>> 8 iload_2
>>>>> 9 aload_0 [arg0]
>>>>> 10 arraylength
>>>>> 11 if_icmpge 29
>>>>> 14 aload_1
>>>>> 15 iload_2
>>>>> 16 aload_0 [arg0]
>>>>> 17 iload_2
>>>>> 18 aaload
>>>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>>>> java.net.URL [46]
>>>>> 22 aastore
>>>>> 23 iinc 2 1
>>>>> 26 goto 8
>>>>> 29 aload_1
>>>>> 30 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 337]
>>>>> [pc: 6, line: 338]
>>>>> [pc: 14, line: 339]
>>>>> [pc: 23, line: 338]
>>>>> [pc: 29, line: 345]
>>>>>
>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>> // Stack: 7, Locals: 7
>>>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 ifnull 197
>>>>> 4 iconst_0
>>>>> 5 istore_2
>>>>> 6 iconst_1
>>>>> 7 istore_3
>>>>> 8 iconst_0
>>>>> 9 istore 4
>>>>> 11 iconst_0
>>>>> 12 istore 5
>>>>> 14 aload_0 [arg0]
>>>>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>>> 18 iload 5
>>>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>> int) : int [48]
>>>>> 23 dup
>>>>> 24 istore 4
>>>>> 26 iconst_m1
>>>>> 27 if_icmpeq 42
>>>>> 30 iinc 3 1
>>>>> 33 iload 4
>>>>> 35 iconst_1
>>>>> 36 iadd
>>>>> 37 istore 5
>>>>> 39 goto 14
>>>>> 42 iload_3
>>>>> 43 anewarray java.io.File [49]
>>>>> 46 astore_1
>>>>> 47 iconst_0
>>>>> 48 dup
>>>>> 49 istore 4
>>>>> 51 istore 5
>>>>> 53 aload_0 [arg0]
>>>>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>>> 57 iload 5
>>>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>> int) : int [48]
>>>>> 62 dup
>>>>> 63 istore 4
>>>>> 65 iconst_m1
>>>>> 66 if_icmpeq 125
>>>>> 69 iload 4
>>>>> 71 iload 5
>>>>> 73 isub
>>>>> 74 ifle 101
>>>>> 77 aload_1
>>>>> 78 iload_2
>>>>> 79 iinc 2 1
>>>>> 82 new java.io.File [49]
>>>>> 85 dup
>>>>> 86 aload_0 [arg0]
>>>>> 87 iload 5
>>>>> 89 iload 4
>>>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>>>> java.lang.String [50]
>>>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>>>> 97 aastore
>>>>> 98 goto 116
>>>>> 101 aload_1
>>>>> 102 iload_2
>>>>> 103 iinc 2 1
>>>>> 106 new java.io.File [49]
>>>>> 109 dup
>>>>> 110 ldc <String "."> [52]
>>>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>>>> 115 aastore
>>>>> 116 iload 4
>>>>> 118 iconst_1
>>>>> 119 iadd
>>>>> 120 istore 5
>>>>> 122 goto 53
>>>>> 125 iload 5
>>>>> 127 aload_0 [arg0]
>>>>> 128 invokevirtual java.lang.String.length() : int [53]
>>>>> 131 if_icmpge 156
>>>>> 134 aload_1
>>>>> 135 iload_2
>>>>> 136 iinc 2 1
>>>>> 139 new java.io.File [49]
>>>>> 142 dup
>>>>> 143 aload_0 [arg0]
>>>>> 144 iload 5
>>>>> 146 invokevirtual java.lang.String.substring(int) :
>>>>> java.lang.String [54]
>>>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>>>> 152 aastore
>>>>> 153 goto 171
>>>>> 156 aload_1
>>>>> 157 iload_2
>>>>> 158 iinc 2 1
>>>>> 161 new java.io.File [49]
>>>>> 164 dup
>>>>> 165 ldc <String "."> [52]
>>>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>>>> 170 aastore
>>>>> 171 iload_2
>>>>> 172 iload_3
>>>>> 173 if_icmpeq 194
>>>>> 176 iload_2
>>>>> 177 anewarray java.io.File [49]
>>>>> 180 astore 6
>>>>> 182 aload_1
>>>>> 183 iconst_0
>>>>> 184 aload 6
>>>>> 186 iconst_0
>>>>> 187 iload_2
>>>>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>>>>> int, java.lang.Object, int, int) : void [55]
>>>>> 191 aload 6
>>>>> 193 astore_1
>>>>> 194 goto 202
>>>>> 197 iconst_0
>>>>> 198 anewarray java.io.File [49]
>>>>> 201 astore_1
>>>>> 202 aload_1
>>>>> 203 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 350]
>>>>> [pc: 4, line: 351]
>>>>> [pc: 8, line: 352]
>>>>> [pc: 14, line: 354]
>>>>> [pc: 30, line: 355]
>>>>> [pc: 33, line: 356]
>>>>> [pc: 42, line: 358]
>>>>> [pc: 47, line: 359]
>>>>> [pc: 53, line: 361]
>>>>> [pc: 69, line: 362]
>>>>> [pc: 77, line: 363]
>>>>> [pc: 101, line: 366]
>>>>> [pc: 116, line: 368]
>>>>> [pc: 125, line: 371]
>>>>> [pc: 134, line: 372]
>>>>> [pc: 156, line: 374]
>>>>> [pc: 171, line: 377]
>>>>> [pc: 176, line: 378]
>>>>> [pc: 182, line: 379]
>>>>> [pc: 191, line: 380]
>>>>> [pc: 194, line: 382]
>>>>> [pc: 197, line: 383]
>>>>> [pc: 202, line: 389]
>>>>>
>>>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>>>> // Stack: 2, Locals: 2
>>>>> static java.net.URL getFileURL(java.io.File arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 invokevirtual java.io.File.getCanonicalFile() :
>>>>> java.io.File [56]
>>>>> 4 astore_0 [arg0]
>>>>> 5 goto 9
>>>>> 8 astore_1
>>>>> 9 aload_0 [arg0]
>>>>> 10 invokestatic
>>>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) : java.net.URL
>>>>> [57]
>>>>> 13 areturn
>>>>> 14 astore_1
>>>>> 15 new java.lang.InternalError [8]
>>>>> 18 dup
>>>>> 19 invokespecial java.lang.InternalError() [59]
>>>>> 22 athrow
>>>>> Exception Table:
>>>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>>>> Line numbers:
>>>>> [pc: 0, line: 396]
>>>>> [pc: 5, line: 397]
>>>>> [pc: 9, line: 400]
>>>>> [pc: 14, line: 401]
>>>>> [pc: 15, line: 403]
>>>>>
>>>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>>>> // Stack: 1, Locals: 0
>>>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>>>> 0 getstatic sun.misc.Launcher.factory :
>>>>> java.net.URLStreamHandlerFactory [3]
>>>>> 3 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 37]
>>>>>
>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>> // Stack: 1, Locals: 1
>>>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 invokestatic
>>>>> sun.misc.Launcher.getClassPath(java.lang.String) : java.io.File[] [2]
>>>>> 4 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 37]
>>>>>
>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>> // Stack: 1, Locals: 1
>>>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>>>> 0 aload_0 [arg0]
>>>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>>>>> java.net.URL[] [1]
>>>>> 4 areturn
>>>>> Line numbers:
>>>>> [pc: 0, line: 37]
>>>>>
>>>>> // Method descriptor #84 ()V
>>>>> // Stack: 3, Locals: 0
>>>>> static {};
>>>>> 0 new sun.misc.Launcher$Factory [60]
>>>>> 3 dup
>>>>> 4 aconst_null
>>>>> 5 invokespecial
>>>>> sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
>>>>> 8 putstatic sun.misc.Launcher.factory :
>>>>> java.net.URLStreamHandlerFactory [3]
>>>>> 11 new sun.misc.Launcher [62]
>>>>> 14 dup
>>>>> 15 invokespecial sun.misc.Launcher() [63]
>>>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>> 21 return
>>>>> Line numbers:
>>>>> [pc: 0, line: 38]
>>>>> [pc: 11, line: 39]
>>>>>
>>>>> Inner classes:
>>>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>>>> info: #62 sun/misc/Launcher
>>>>> inner name: #65 Factory, accessflags: 10 private static],
>>>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>>>>> class info: #62 sun/misc/Launcher
>>>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>>>>> class info: #62 sun/misc/Launcher
>>>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>>>> inner name: #0, accessflags: 8 static]
>>>>>
>>>>> regards
>>>>> Steve
>>>>>
>>>>>
>>>>> Sven Efftinge wrote:
>>>>>> Hi Bill,
>>>>>>
>>>>>> sorry, I've no idea why the workflow terminates silently.
>>>>>> It seems that for some yet unkown reason the exception is not
>>>>>> printed on the console.
>>>>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>>>>> checkbox in the run configuration) in order to find out where,
>>>>>> when and why it terminates?
>>>>>>
>>>>>> Sorry, I couldn't help more.
>>>>>>
>>>>>> Sven
>>>>>>
>>>>>> Bill Hinge schrieb:
>>>>>>> Hi
>>>>>>>
>>>>>>> I originally posted to the tmf newsgroup but I suspect I should have
>>>>>>> posted here? I have been experimenting further and this post is
>>>>>>> updated
>>>>>>>
>>>>>>> I have created a GMF editor based on multiple linked ecore files and
>>>>>>> my GMF editor creates a shared EMF-GMF editor domain in a single
>>>>>>> file.
>>>>>>>
>>>>>>> I have set up an action to call a workflow from my GMF UI and it
>>>>>>> appears
>>>>>>> to be configured correctly but doesn't actually produce anything.
>>>>>>> (ie
>>>>>>> it's called from java using WorkFlowRunner().... The intention is to
>>>>>>> call the workflow on my editor's model files which will be in
>>>>>>> their own
>>>>>>> project directory.
>>>>>>>
>>>>>>> As part of my testing I'm manually testing by running the
>>>>>>> workflow from
>>>>>>> the project explorer (right click run as MWE). I have set up a
>>>>>>> runtime
>>>>>>> config but when I run I get no errors and no output. I get a message
>>>>>>> 'terminated' on top of the console window.
>>>>>>>
>>>>>>> I am also seeing a lot of messages
>>>>>>> "Could not acquire children from extension:
>>>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but
>>>>>>> these don't seem to timed with my test runs so I'm not sure if
>>>>>>> they are related.
>>>>>>>
>>>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>>>
>>>>>>> <?xml version="1.0"?>
>>>>>>> <workflow>
>>>>>>> <property name="workspace_loc" value="./" />
>>>>>>> <property name="eclipse_home" value="../" />
>>>>>>> <property name="model"
>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>>>> <property name="src-gen"
>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>> <property name="out" value="out" />
>>>>>>>
>>>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>>>> <platformUri value="../" />
>>>>>>> <RegisterEcoreFile
>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>>>> <RegisterEcoreFile
>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>>>> </bean>
>>>>>>> <component
>>>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>
>>>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>>>> <modelSlot value="model"/>
>>>>>>> <uri value="${model}"/>
>>>>>>> <firstElementOnly value="false" />
>>>>>>> </component>
>>>>>>>
>>>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>>>> <metaModel id="mm"
>>>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>>>> <expand value="Demo::Main FOR model" />
>>>>>>> <outlet path="${src-gen}"/>
>>>>>>> </component>
>>>>>>> </workflow>
>>>>>>>
>>>>>>>
>>>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>>>
>>>>>>> I have put a copy set of my model ecore files in com.xx.yy.ui/model/
>>>>>>> (contract.ecore etc) and I have put a test copy of the GMF editor
>>>>>>> model
>>>>>>> output default2.ngoss in /templates
>>>>>>>
>>>>>>> (once I get this running manually I'll be using a call from java)
>>>>>>>
>>>>>>>
>>>>>>> When I run the workflow it gets as far as and stops
>>>>>>>
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO:
>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO:
>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO: running workflow:
>>>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>>>
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>> prepare
>>>>>>> INFO:
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>>> setPlatformUri
>>>>>>> INFO: Registering platform uri
>>>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>>> addRegisterEcoreFile
>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
>>>>>>> '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
>>>>>>> addRegisterEcoreFile
>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>>>> >
>>>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>>>> org.eclipse.core.resources,
>>>>>>> org.eclipse.ui,
>>>>>>> org.eclipse.emf.codegen,
>>>>>>> org.eclipse.ui.ide,
>>>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF
>>>>>>> book,
>>>>>>> tried various combinations of the above but am stuck. Any idea
>>>>>>> what I'm
>>>>>>> doing wrong please?
>>>>>>>
>>>>>>> regards
>>>>>>> Steve
|
|
|
Re: first time problem running workflow (mwe 0.7.0) [message #621073 is a reply to message #137882] |
Wed, 01 July 2009 22:55 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Working now, got the answer on m2t group
(message Re: problem running xpand generator )
Would be nice if there were a way to reference ecore's
from referenced plugin's eg uml.ecore, notation.ecore
regards
Steve
Bill Hinge wrote:
> I originally posted this to m2t as I thought it was an Xpand problem
>
> I'm struggling through some workflow & xpand2 issues and I've got as far
> as the generator part.
>
> I have set up my gmf model in $model etc for my Reader and it is being
> read but I'm getting a fatal error at the generator.
>
> My xpand template is quite simple at this stage
>
> «IMPORT ngoss»
> «IMPORT contract»
> «IMPORT sla»
>
>
> «DEFINE ngoss FOR contract::Contract»
> «ENDDEFINE»
>
>
> Note, even though I used code completion I'm getting those red error
> marks on my IMPORT's
>
> Here is part of my workflow
>
>
> <component class="org.eclipse.emf.mwe.utils.Reader">
> <firstElementOnly value="false" />
> <modelSlot value="model"/>
> <uri value="${model}"/>
>
> </component>
>
> <component class="org.eclipse.xpand2.Generator" id="generate">
> <metaModel id="mm"
> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
> <fileEncoding value="UTF-8"/>
> <expand value="Demos::ngoss FOR model" />
> <outlet path="${src-gen}"/>
> </component>
>
> Note it doesn't seem to matter if I use templates::Demos or not!
>
> Jul 1, 2009 3:17:40 PM
> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent
> invokeInternal
> SEVERE: Error in Component generate of type org.eclipse.xpand2.Generator:
> EvaluationException : No Definition
> 'templates::NewTemplateFile::ngoss for List' found!
> [23,50] on line 1 'EXPAND templates::NewTemplateFile::ngoss FOR model'
>
> Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner
> executeWorkflow
> SEVERE: Workflow interrupted. Reason: No Definition
> 'templates::NewTemplateFile::ngoss for List' found!
> Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: No Definition 'templates::NewTemplateFile::ngoss for
> List' found!(Element: EXPAND templates::NewTemplateFile::ngoss FOR
> model; Reported by: Generator(generate)
>
>
>
> IF I use the following template (done via code completion)
>
> «IMPORT ngoss»
> «IMPORT contract»
> «IMPORT sla»
>
>
> «DEFINE Main FOR NGOSS»
>
> «FILE author + ".ngoss_out"»
> «EXPAND bs FOREACH this.businessServices»
>
> «ENDFILE»
>
>
> «ENDDEFINE»
>
> «DEFINE bs FOR Contract»
>
> «Title»
> «ENDDEFINE»
>
> I get the following error
>
> SEVERE: mismatched input ''http://www.xx.com/2008/ngoss'' expecting
> Identifier on line 1
> org.eclipse.internal.xtend.xtend.parser.ParseException: mismatched input
> ''http://www.bt.com/2008/ngoss'' expecting Identifier on line 1
> at
> org.eclipse.internal.xpand2.parser.XpandParseFacade$3.handle Error(XpandParseFacade.java:77)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParseFacade$2.report Error(XpandParseFacade.java:66)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParser.identifier(Xp andParser.java:4326)
>
> at
> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .identifier(XpandLocationAddingParser.java:184)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParser.simpleType(Xp andParser.java:4251)
>
> at
> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .simpleType(XpandLocationAddingParser.java:274)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParser.anImport(Xpan dParser.java:368)
>
> at
> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .anImport(XpandLocationAddingParser.java:79)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParser.template(Xpan dParser.java:170)
>
> at
> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .template(XpandLocationAddingParser.java:289)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:44)
>
> at
> org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:31)
>
> at
> org.eclipse.xpand2.XpandExecutionContextImpl$1.parse(XpandEx ecutionContextImpl.java:92)
>
> at
> org.eclipse.xtend.expression.ResourceManagerDefaultImpl.load Resource(ResourceManagerDefaultImpl.java:70)
>
> at
> org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:193)
>
> at
> org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:186)
>
> at
> org.eclipse.xpand2.XpandExecutionContextImpl.findDefinition( XpandExecutionContextImpl.java:145)
>
> at
> org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefini tion(ExpandStatement.java:174)
>
> at
> org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInte rnal(ExpandStatement.java:167)
>
> at
> org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
> at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java: 334)
> at
> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent.invokeInternal(AbstractExpressionsUsingWorkflowCo mponent.java:191)
>
> at
> org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invok e(AbstractWorkflowComponent.java:118)
>
> at
> org.eclipse.emf.mwe.core.container.CompositeComponent.intern alInvoke(CompositeComponent.java:101)
>
> at
> org.eclipse.emf.mwe.core.container.CompositeComponent.invoke (CompositeComponent.java:86)
>
> at
> org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(Work flowRunner.java:412)
>
> at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.j ava:292)
> at
> org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner. java:239)
> Jul 1, 2009 4:29:04 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: mismatched input ''http://www.xx.com/2008/ngoss''
> expecting Identifier on line 1(Element: EXPAND Demo::ngoss FOR model;
> Reported by: Generator(NgossGenerate): generating 'Demo::ngoss FOR
> model' => ..//com.xx.yyy.ui/src-gen)
>
>
> regards
> Steve
>
>
>
>
>
> Bill Hinge wrote:
>> For now I have cheated and copied notation.ecore to my local directory
>> and put a reference to it
>>
>> <RegisterEcoreFile
>> value="${eclipse_home}/com.xx.yyy.ui/model/notation.ecore"/ >
>>
>> obviously not very elegant but it works, the following didn't though
>>
>> <uriMap
>> from="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
>>
>> to=" platform:/plugin/org.eclipse.gmf.runtime.notation.notation.e core "/>
>>
>>
>> Bill Hinge wrote:
>>> Sorry to answer my own post, hopefully someone may find it useful in
>>> future!
>>>
>>> The reason for the error below was that I was was linking by reference
>>> to uml.ecore and ecore.ecore and some attributes were badly set as uml
>>> definition of string as opposed to ecore string. A quick edit of the
>>> attribute type in the local ecore fixed that problem as a workaround.
>>>
>>>
>>> There were some other later issues with other namespaces not being found
>>> so I just added them via multiple calls of RegisterEcoreFile.
>>>
>>>
>>> However, since this is a mixed model and diagram file containing both
>>> model and GMF diagram info the workflow is now looking for
>>>
>>> Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation'
>>> not found
>>>
>>> as this is referenced in the gmf output file default2.ngoss
>>>
>>> Haven't worked out this one yet , any hints?
>>>
>>> steve
>>>
>>> Bill Hinge wrote:
>>>> To clarify, TestModel referred to below is a string value defined by my
>>>> ecore files as a legal String, it was created by my GMF-EMF editor so I
>>>> would be surprised if it weren't legal. Hence my question as to what
>>>> Reader I should use?
>>>>
>>>> Anyhow, made some progress I'm now failing on the Reader
>>>>
>>>> steve
>>>>
>>>> Bill Hinge wrote:
>>>>> Sven
>>>>>
>>>>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>>>>
>>>>> if I add to my dependencies I now get
>>>>>
>>>>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>>>>> 'TestModel' is not legal.
>>>>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>>>>> 4, 105)
>>>>>
>>>>>
>>>>> Should I be using a different Reader/Generator?
>>>>> (This is a single file GMF-EMF editor)
>>>>>
>>>>>
>>>>> regards
>>>>> Steve
>>>>>
>>>>>
>>>>> Bill Hinge wrote:
>>>>>> Hi Sven
>>>>>>
>>>>>>
>>>>>> I just tried this, must have had some fat fingered gremlins before
>>>>>> cause
>>>>>> it kept crashing
>>>>>>
>>>>>> works now...
>>>>>>
>>>>>> I get a classloader error -- source not found
>>>>>>
>>>>>>
>>>>>> } finally {
>>>>>> if (isChildmost) {
>>>>>> childmostCaller.remove();
>>>>>>
>>>>>> if ((c != null) && name.startsWith("org.apache.") &&
>>>>>> ( name.startsWith("org.apache.crimson.") ||
>>>>>> name.startsWith("org.apache.xalan.") ||
>>>>>> name.startsWith("org.apache.xml.") ||
>>>>>> name.startsWith("org.apache.xpath.") ) ) {
>>>>>> AccessController.doPrivileged(new
>>>>>> PrivilegedAction() {
>>>>>> public Object
>>>>>> run() { return
>>>>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ",
>>>>>> "true");
>>>>>> }});
>>>>>> }
>>>>>> }
>>>>>> // MacOSX Change END
>>>>>> }
>>>>>> }
>>>>>>
>>>>>>
>>>>>>
>>>>>> and ...
>>>>>>
>>>>>>
>>>>>>
>>>>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>>>>> public class sun.misc.Launcher {
>>>>>>
>>>>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>>>>> private static java.net.URLStreamHandlerFactory factory;
>>>>>>
>>>>>> // Field descriptor #74 Lsun/misc/Launcher;
>>>>>> private static sun.misc.Launcher launcher;
>>>>>>
>>>>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>>>>> private java.lang.ClassLoader loader;
>>>>>>
>>>>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>>>>> private static java.net.URLStreamHandler fileHandler;
>>>>>>
>>>>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>>>>> // Stack: 1, Locals: 0
>>>>>> public static sun.misc.Launcher getLauncher();
>>>>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>>> 3 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 42]
>>>>>>
>>>>>> // Method descriptor #84 ()V
>>>>>> // Stack: 4, Locals: 5
>>>>>> public Launcher();
>>>>>> 0 aload_0 [this]
>>>>>> 1 invokespecial java.lang.Object() [5]
>>>>>> 4 invokestatic
>>>>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>>>>> sun.misc.Launcher$ExtClassLoader [6]
>>>>>> 7 astore_1
>>>>>> 8 goto 22
>>>>>> 11 astore_2
>>>>>> 12 new java.lang.InternalError [8]
>>>>>> 15 dup
>>>>>> 16 ldc <String "Could not create extension class loader"> [9]
>>>>>> 18 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>>> 21 athrow
>>>>>> 22 aload_0 [this]
>>>>>> 23 aload_1
>>>>>> 24 invokestatic
>>>>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>>>>> : java.lang.ClassLoader [11]
>>>>>> 27 putfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>>> [12]
>>>>>> 30 goto 44
>>>>>> 33 astore_2
>>>>>> 34 new java.lang.InternalError [8]
>>>>>> 37 dup
>>>>>> 38 ldc <String "Could not create application class loader">
>>>>>> [13]
>>>>>> 40 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>>> 43 athrow
>>>>>> 44 invokestatic java.lang.Thread.currentThread() :
>>>>>> java.lang.Thread [14]
>>>>>> 47 aload_0 [this]
>>>>>> 48 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>>> [12]
>>>>>> 51 invokevirtual
>>>>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) :
>>>>>> void [15]
>>>>>> 54 ldc <String "java.security.manager"> [16]
>>>>>> 56 invokestatic
>>>>>> java.lang.System.getProperty(java.lang.String) : java.lang.String
>>>>>> [17]
>>>>>> 59 astore_2
>>>>>> 60 aload_2
>>>>>> 61 ifnull 168
>>>>>> 64 aconst_null
>>>>>> 65 astore_3
>>>>>> 66 ldc <String ""> [18]
>>>>>> 68 aload_2
>>>>>> 69 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>>>> boolean [19]
>>>>>> 72 ifne 84
>>>>>> 75 ldc <String "default"> [20]
>>>>>> 77 aload_2
>>>>>> 78 invokevirtual java.lang.String.equals(java.lang.Object) :
>>>>>> boolean [19]
>>>>>> 81 ifeq 95
>>>>>> 84 new java.lang.SecurityManager [21]
>>>>>> 87 dup
>>>>>> 88 invokespecial java.lang.SecurityManager() [22]
>>>>>> 91 astore_3
>>>>>> 92 goto 130
>>>>>> 95 aload_0 [this]
>>>>>> 96 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>>> [12]
>>>>>> 99 aload_2
>>>>>> 100 invokevirtual
>>>>>> java.lang.ClassLoader.loadClass(java.lang.String) :
>>>>>> java.lang.Class [23]
>>>>>> 103 invokevirtual java.lang.Class.newInstance() :
>>>>>> java.lang.Object [24]
>>>>>> 106 checkcast java.lang.SecurityManager [21]
>>>>>> 109 astore_3
>>>>>> 110 goto 130
>>>>>> 113 astore 4
>>>>>> 115 goto 130
>>>>>> 118 astore 4
>>>>>> 120 goto 130
>>>>>> 123 astore 4
>>>>>> 125 goto 130
>>>>>> 128 astore 4
>>>>>> 130 aload_3
>>>>>> 131 ifnull 141
>>>>>> 134 aload_3
>>>>>> 135 invokestatic
>>>>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) :
>>>>>> void [29]
>>>>>> 138 goto 168
>>>>>> 141 new java.lang.InternalError [8]
>>>>>> 144 dup
>>>>>> 145 new java.lang.StringBuilder [30]
>>>>>> 148 dup
>>>>>> 149 invokespecial java.lang.StringBuilder() [31]
>>>>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>>>>> 154 invokevirtual
>>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>>> java.lang.StringBuilder [33]
>>>>>> 157 aload_2
>>>>>> 158 invokevirtual
>>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>>> java.lang.StringBuilder [33]
>>>>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>>>>> java.lang.String [34]
>>>>>> 164 invokespecial java.lang.InternalError(java.lang.String) [10]
>>>>>> 167 athrow
>>>>>> 168 return
>>>>>> Exception Table:
>>>>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>>>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>>>>> [pc: 95, pc: 110] -> 113 when :
>>>>>> java.lang.IllegalAccessException
>>>>>> [pc: 95, pc: 110] -> 118 when :
>>>>>> java.lang.InstantiationException
>>>>>> [pc: 95, pc: 110] -> 123 when :
>>>>>> java.lang.ClassNotFoundException
>>>>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 47]
>>>>>> [pc: 4, line: 51]
>>>>>> [pc: 8, line: 55]
>>>>>> [pc: 11, line: 52]
>>>>>> [pc: 12, line: 53]
>>>>>> [pc: 22, line: 59]
>>>>>> [pc: 30, line: 63]
>>>>>> [pc: 33, line: 60]
>>>>>> [pc: 34, line: 61]
>>>>>> [pc: 44, line: 66]
>>>>>> [pc: 54, line: 69]
>>>>>> [pc: 60, line: 70]
>>>>>> [pc: 64, line: 71]
>>>>>> [pc: 66, line: 72]
>>>>>> [pc: 84, line: 73]
>>>>>> [pc: 95, line: 76]
>>>>>> [pc: 110, line: 81]
>>>>>> [pc: 113, line: 77]
>>>>>> [pc: 115, line: 81]
>>>>>> [pc: 118, line: 78]
>>>>>> [pc: 120, line: 81]
>>>>>> [pc: 123, line: 79]
>>>>>> [pc: 125, line: 81]
>>>>>> [pc: 128, line: 80]
>>>>>> [pc: 130, line: 83]
>>>>>> [pc: 134, line: 84]
>>>>>> [pc: 141, line: 86]
>>>>>> [pc: 168, line: 90]
>>>>>>
>>>>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>>>>> // Stack: 1, Locals: 1
>>>>>> public java.lang.ClassLoader getClassLoader();
>>>>>> 0 aload_0 [this]
>>>>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader [12]
>>>>>> 4 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 96]
>>>>>>
>>>>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>>>>> // Stack: 4, Locals: 3
>>>>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>>>>> 0 new sun.security.action.GetPropertyAction [35]
>>>>>> 3 dup
>>>>>> 4 ldc <String "sun.boot.class.path"> [36]
>>>>>> 6 invokespecial
>>>>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>>>>> 9 invokestatic
>>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>>> : java.lang.Object [38]
>>>>>> 12 checkcast java.lang.String [39]
>>>>>> 15 astore_0
>>>>>> 16 aload_0
>>>>>> 17 ifnull 43
>>>>>> 20 aload_0
>>>>>> 21 astore_2
>>>>>> 22 new sun.misc.Launcher$1 [40]
>>>>>> 25 dup
>>>>>> 26 aload_2
>>>>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>>>>> 30 invokestatic
>>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>>> : java.lang.Object [38]
>>>>>> 33 checkcast java.net.URL[] [42]
>>>>>> 36 checkcast java.net.URL[] [42]
>>>>>> 39 astore_1
>>>>>> 40 goto 48
>>>>>> 43 iconst_0
>>>>>> 44 anewarray java.net.URL [43]
>>>>>> 47 astore_1
>>>>>> 48 new sun.misc.URLClassPath [44]
>>>>>> 51 dup
>>>>>> 52 aload_1
>>>>>> 53 getstatic sun.misc.Launcher.factory :
>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>>>>> java.net.URLStreamHandlerFactory) [45]
>>>>>> 59 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 319]
>>>>>> [pc: 16, line: 321]
>>>>>> [pc: 20, line: 322]
>>>>>> [pc: 22, line: 323]
>>>>>> [pc: 40, line: 330]
>>>>>> [pc: 43, line: 331]
>>>>>> [pc: 48, line: 333]
>>>>>>
>>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>>> // Stack: 4, Locals: 3
>>>>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 arraylength
>>>>>> 2 anewarray java.net.URL [43]
>>>>>> 5 astore_1
>>>>>> 6 iconst_0
>>>>>> 7 istore_2
>>>>>> 8 iload_2
>>>>>> 9 aload_0 [arg0]
>>>>>> 10 arraylength
>>>>>> 11 if_icmpge 29
>>>>>> 14 aload_1
>>>>>> 15 iload_2
>>>>>> 16 aload_0 [arg0]
>>>>>> 17 iload_2
>>>>>> 18 aaload
>>>>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>>>>> java.net.URL [46]
>>>>>> 22 aastore
>>>>>> 23 iinc 2 1
>>>>>> 26 goto 8
>>>>>> 29 aload_1
>>>>>> 30 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 337]
>>>>>> [pc: 6, line: 338]
>>>>>> [pc: 14, line: 339]
>>>>>> [pc: 23, line: 338]
>>>>>> [pc: 29, line: 345]
>>>>>>
>>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>>> // Stack: 7, Locals: 7
>>>>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 ifnull 197
>>>>>> 4 iconst_0
>>>>>> 5 istore_2
>>>>>> 6 iconst_1
>>>>>> 7 istore_3
>>>>>> 8 iconst_0
>>>>>> 9 istore 4
>>>>>> 11 iconst_0
>>>>>> 12 istore 5
>>>>>> 14 aload_0 [arg0]
>>>>>> 15 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>>>> 18 iload 5
>>>>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>>> int) : int [48]
>>>>>> 23 dup
>>>>>> 24 istore 4
>>>>>> 26 iconst_m1
>>>>>> 27 if_icmpeq 42
>>>>>> 30 iinc 3 1
>>>>>> 33 iload 4
>>>>>> 35 iconst_1
>>>>>> 36 iadd
>>>>>> 37 istore 5
>>>>>> 39 goto 14
>>>>>> 42 iload_3
>>>>>> 43 anewarray java.io.File [49]
>>>>>> 46 astore_1
>>>>>> 47 iconst_0
>>>>>> 48 dup
>>>>>> 49 istore 4
>>>>>> 51 istore 5
>>>>>> 53 aload_0 [arg0]
>>>>>> 54 getstatic java.io.File.pathSeparator : java.lang.String [47]
>>>>>> 57 iload 5
>>>>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>>> int) : int [48]
>>>>>> 62 dup
>>>>>> 63 istore 4
>>>>>> 65 iconst_m1
>>>>>> 66 if_icmpeq 125
>>>>>> 69 iload 4
>>>>>> 71 iload 5
>>>>>> 73 isub
>>>>>> 74 ifle 101
>>>>>> 77 aload_1
>>>>>> 78 iload_2
>>>>>> 79 iinc 2 1
>>>>>> 82 new java.io.File [49]
>>>>>> 85 dup
>>>>>> 86 aload_0 [arg0]
>>>>>> 87 iload 5
>>>>>> 89 iload 4
>>>>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>>>>> java.lang.String [50]
>>>>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>>>>> 97 aastore
>>>>>> 98 goto 116
>>>>>> 101 aload_1
>>>>>> 102 iload_2
>>>>>> 103 iinc 2 1
>>>>>> 106 new java.io.File [49]
>>>>>> 109 dup
>>>>>> 110 ldc <String "."> [52]
>>>>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>>>>> 115 aastore
>>>>>> 116 iload 4
>>>>>> 118 iconst_1
>>>>>> 119 iadd
>>>>>> 120 istore 5
>>>>>> 122 goto 53
>>>>>> 125 iload 5
>>>>>> 127 aload_0 [arg0]
>>>>>> 128 invokevirtual java.lang.String.length() : int [53]
>>>>>> 131 if_icmpge 156
>>>>>> 134 aload_1
>>>>>> 135 iload_2
>>>>>> 136 iinc 2 1
>>>>>> 139 new java.io.File [49]
>>>>>> 142 dup
>>>>>> 143 aload_0 [arg0]
>>>>>> 144 iload 5
>>>>>> 146 invokevirtual java.lang.String.substring(int) :
>>>>>> java.lang.String [54]
>>>>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>>>>> 152 aastore
>>>>>> 153 goto 171
>>>>>> 156 aload_1
>>>>>> 157 iload_2
>>>>>> 158 iinc 2 1
>>>>>> 161 new java.io.File [49]
>>>>>> 164 dup
>>>>>> 165 ldc <String "."> [52]
>>>>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>>>>> 170 aastore
>>>>>> 171 iload_2
>>>>>> 172 iload_3
>>>>>> 173 if_icmpeq 194
>>>>>> 176 iload_2
>>>>>> 177 anewarray java.io.File [49]
>>>>>> 180 astore 6
>>>>>> 182 aload_1
>>>>>> 183 iconst_0
>>>>>> 184 aload 6
>>>>>> 186 iconst_0
>>>>>> 187 iload_2
>>>>>> 188 invokestatic java.lang.System.arraycopy(java.lang.Object,
>>>>>> int, java.lang.Object, int, int) : void [55]
>>>>>> 191 aload 6
>>>>>> 193 astore_1
>>>>>> 194 goto 202
>>>>>> 197 iconst_0
>>>>>> 198 anewarray java.io.File [49]
>>>>>> 201 astore_1
>>>>>> 202 aload_1
>>>>>> 203 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 350]
>>>>>> [pc: 4, line: 351]
>>>>>> [pc: 8, line: 352]
>>>>>> [pc: 14, line: 354]
>>>>>> [pc: 30, line: 355]
>>>>>> [pc: 33, line: 356]
>>>>>> [pc: 42, line: 358]
>>>>>> [pc: 47, line: 359]
>>>>>> [pc: 53, line: 361]
>>>>>> [pc: 69, line: 362]
>>>>>> [pc: 77, line: 363]
>>>>>> [pc: 101, line: 366]
>>>>>> [pc: 116, line: 368]
>>>>>> [pc: 125, line: 371]
>>>>>> [pc: 134, line: 372]
>>>>>> [pc: 156, line: 374]
>>>>>> [pc: 171, line: 377]
>>>>>> [pc: 176, line: 378]
>>>>>> [pc: 182, line: 379]
>>>>>> [pc: 191, line: 380]
>>>>>> [pc: 194, line: 382]
>>>>>> [pc: 197, line: 383]
>>>>>> [pc: 202, line: 389]
>>>>>>
>>>>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>>>>> // Stack: 2, Locals: 2
>>>>>> static java.net.URL getFileURL(java.io.File arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 invokevirtual java.io.File.getCanonicalFile() :
>>>>>> java.io.File [56]
>>>>>> 4 astore_0 [arg0]
>>>>>> 5 goto 9
>>>>>> 8 astore_1
>>>>>> 9 aload_0 [arg0]
>>>>>> 10 invokestatic
>>>>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) :
>>>>>> java.net.URL [57]
>>>>>> 13 areturn
>>>>>> 14 astore_1
>>>>>> 15 new java.lang.InternalError [8]
>>>>>> 18 dup
>>>>>> 19 invokespecial java.lang.InternalError() [59]
>>>>>> 22 athrow
>>>>>> Exception Table:
>>>>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>>>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 396]
>>>>>> [pc: 5, line: 397]
>>>>>> [pc: 9, line: 400]
>>>>>> [pc: 14, line: 401]
>>>>>> [pc: 15, line: 403]
>>>>>>
>>>>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>>>>> // Stack: 1, Locals: 0
>>>>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>>>>> 0 getstatic sun.misc.Launcher.factory :
>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>> 3 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 37]
>>>>>>
>>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>>> // Stack: 1, Locals: 1
>>>>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 invokestatic
>>>>>> sun.misc.Launcher.getClassPath(java.lang.String) : java.io.File[] [2]
>>>>>> 4 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 37]
>>>>>>
>>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>>> // Stack: 1, Locals: 1
>>>>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>>>>> 0 aload_0 [arg0]
>>>>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[]) :
>>>>>> java.net.URL[] [1]
>>>>>> 4 areturn
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 37]
>>>>>>
>>>>>> // Method descriptor #84 ()V
>>>>>> // Stack: 3, Locals: 0
>>>>>> static {};
>>>>>> 0 new sun.misc.Launcher$Factory [60]
>>>>>> 3 dup
>>>>>> 4 aconst_null
>>>>>> 5 invokespecial
>>>>>> sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
>>>>>> 8 putstatic sun.misc.Launcher.factory :
>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>> 11 new sun.misc.Launcher [62]
>>>>>> 14 dup
>>>>>> 15 invokespecial sun.misc.Launcher() [63]
>>>>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>>> 21 return
>>>>>> Line numbers:
>>>>>> [pc: 0, line: 38]
>>>>>> [pc: 11, line: 39]
>>>>>>
>>>>>> Inner classes:
>>>>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>>>>> info: #62 sun/misc/Launcher
>>>>>> inner name: #65 Factory, accessflags: 10 private static],
>>>>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader, outer
>>>>>> class info: #62 sun/misc/Launcher
>>>>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>>>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader, outer
>>>>>> class info: #62 sun/misc/Launcher
>>>>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>>>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>>>>> inner name: #0, accessflags: 8 static]
>>>>>>
>>>>>> regards
>>>>>> Steve
>>>>>>
>>>>>>
>>>>>> Sven Efftinge wrote:
>>>>>>> Hi Bill,
>>>>>>>
>>>>>>> sorry, I've no idea why the workflow terminates silently.
>>>>>>> It seems that for some yet unkown reason the exception is not
>>>>>>> printed on the console.
>>>>>>> Did you try the debug mode (don't forget to flag the "Java Debug"
>>>>>>> checkbox in the run configuration) in order to find out where,
>>>>>>> when and why it terminates?
>>>>>>>
>>>>>>> Sorry, I couldn't help more.
>>>>>>>
>>>>>>> Sven
>>>>>>>
>>>>>>> Bill Hinge schrieb:
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> I originally posted to the tmf newsgroup but I suspect I should
>>>>>>>> have
>>>>>>>> posted here? I have been experimenting further and this post is
>>>>>>>> updated
>>>>>>>>
>>>>>>>> I have created a GMF editor based on multiple linked ecore files
>>>>>>>> and
>>>>>>>> my GMF editor creates a shared EMF-GMF editor domain in a single
>>>>>>>> file.
>>>>>>>>
>>>>>>>> I have set up an action to call a workflow from my GMF UI and it
>>>>>>>> appears
>>>>>>>> to be configured correctly but doesn't actually produce
>>>>>>>> anything. (ie
>>>>>>>> it's called from java using WorkFlowRunner().... The intention
>>>>>>>> is to
>>>>>>>> call the workflow on my editor's model files which will be in
>>>>>>>> their own
>>>>>>>> project directory.
>>>>>>>>
>>>>>>>> As part of my testing I'm manually testing by running the
>>>>>>>> workflow from
>>>>>>>> the project explorer (right click run as MWE). I have set up a
>>>>>>>> runtime
>>>>>>>> config but when I run I get no errors and no output. I get a
>>>>>>>> message
>>>>>>>> 'terminated' on top of the console window.
>>>>>>>>
>>>>>>>> I am also seeing a lot of messages
>>>>>>>> "Could not acquire children from extension:
>>>>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but
>>>>>>>> these don't seem to timed with my test runs so I'm not sure if
>>>>>>>> they are related.
>>>>>>>>
>>>>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>>>>
>>>>>>>> <?xml version="1.0"?>
>>>>>>>> <workflow>
>>>>>>>> <property name="workspace_loc" value="./" />
>>>>>>>> <property name="eclipse_home" value="../" />
>>>>>>>> <property name="model"
>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>>>>> <property name="src-gen"
>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>> <property name="out" value="out" />
>>>>>>>>
>>>>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>>>>> <platformUri value="../" />
>>>>>>>> <RegisterEcoreFile
>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>>>>> <RegisterEcoreFile
>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>>>>> </bean>
>>>>>>>> <component
>>>>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>>
>>>>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>>>>> <modelSlot value="model"/>
>>>>>>>> <uri value="${model}"/>
>>>>>>>> <firstElementOnly value="false" />
>>>>>>>> </component>
>>>>>>>>
>>>>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>>>>> <metaModel id="mm"
>>>>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>>>>> <expand value="Demo::Main FOR model" />
>>>>>>>> <outlet path="${src-gen}"/>
>>>>>>>> </component>
>>>>>>>> </workflow>
>>>>>>>>
>>>>>>>>
>>>>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>>>>
>>>>>>>> I have put a copy set of my model ecore files in
>>>>>>>> com.xx.yy.ui/model/
>>>>>>>> (contract.ecore etc) and I have put a test copy of the GMF
>>>>>>>> editor model
>>>>>>>> output default2.ngoss in /templates
>>>>>>>>
>>>>>>>> (once I get this running manually I'll be using a call from java)
>>>>>>>>
>>>>>>>>
>>>>>>>> When I run the workflow it gets as far as and stops
>>>>>>>>
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO:
>>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>>
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO:
>>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>>
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO: running workflow:
>>>>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>>>>
>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>> prepare
>>>>>>>> INFO:
>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup setPlatformUri
>>>>>>>> INFO: Registering platform uri
>>>>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterEcoreFile
>>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss'
>>>>>>>> from '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterEcoreFile
>>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>>>>> >
>>>>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>>>>> org.eclipse.core.resources,
>>>>>>>> org.eclipse.ui,
>>>>>>>> org.eclipse.emf.codegen,
>>>>>>>> org.eclipse.ui.ide,
>>>>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF
>>>>>>>> book,
>>>>>>>> tried various combinations of the above but am stuck. Any idea
>>>>>>>> what I'm
>>>>>>>> doing wrong please?
>>>>>>>>
>>>>>>>> regards
>>>>>>>> Steve
|
|
| |
Re: first time problem running workflow (mwe 0.7.0) [message #621075 is a reply to message #137911] |
Thu, 02 July 2009 13:16 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Perhaps I used the wrong terminology.
What I meant was that my created DSL has ERefeferences to UML Class
entity etc so that I may load UML classes from a .uml file into my DSL.
As such I needed to put something like
<RegisterEcoreFile value="./model/UML.ecore"/> in my workflow having
put a copy of UML.ecore in local dir. I thought it better to register(?)
this by pointing to the plugin containing the ecore directly. However, I
don't know if this is possible?
I'm new to this workflow so I've possibly misunderstood something
regards
Steve
Krzysztof Kowalczyk wrote:
> Bill Hinge pisze:
>> Would be nice if there were a way to reference ecore's
>> from referenced plugin's eg uml.ecore, notation.ecore
>>
>
> I am concerned with that statement.
> AFAIK you should not point to uml.ecore in your workflow, but use
> UmlMetamodel. In case of notation.ecore, you most probably should point
> to generatedPackage, not the ecore file. I can be wrong on that though ;)
>
> If you have problems with referencing other models from your ecore
> model, then emf newsgroup is the place to ask.
>
> Regards,
> Krzysztof Kowalczyk
|
|
| | |
Re: first time problem running workflow (mwe 0.7.0) [message #621078 is a reply to message #137936] |
Thu, 02 July 2009 21:26 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Krzysztof,
my previous post has been submitted to fast. Actually a platform:/plugin
uri will not help you, because the workflow does not know about
registered plugins etc.
I didn't find another solution than you. It seems you really have to be
evil and copy the genmodel. Maybe somebody else knows the trick how to
avoid this?
Regards,
Sebastian
Am 02.07.2009 22:46 Uhr, schrieb Krzysztof Kowalczyk:
> I don't know how to do all the things right so I added TMF news group
> and believe that somebody will help with the rest.
>
> > What I meant was that my created DSL has ERefeferences to UML Class
> > entity etc so that I may load UML classes from a .uml file into my DSL.
> >
> > As such I needed to put something like
> >
> > <RegisterEcoreFile value="./model/UML.ecore"/> in my workflow having
> > put a copy of UML.ecore in local dir. I thought it better to register(?)
> > this by pointing to the plugin containing the ecore directly. However, I
> > don't know if this is possible?
>
> Don't do that, some projects does include changes in code generated
> from ecore models. AFAIK UML project is one of them so you should use
> generated code not the dynamic version IMHO. Unfortunately UML need
> different handling in most cases (its own metamodel, its own setup etc.)
>
> What you need is to register the generated UML model by registering the
> generated EPackage:
>
> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
> <registerGeneratedEPackage value="org.eclipse.uml2.uml.UMLPackage"/>
> </bean>
>
> You also need small change like that in your Xtext workflow:
>
> <fragment
> class="org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment "
> genModels="platform:/plugins/org.eclipse.uml2.uml/model/UML.genmodel "
> />
>
> But actually this will not work (I never liked uri), can somebody
> correct that? Is the copying genmodel and using "platform:/resource/"
> instead, the only solution? It works, but is pure evil IMO ;)
>
> Regards,
> Krzysztof Kowalczyk
|
|
| |
Re: first time problem running workflow (mwe 0.7.0) [message #621080 is a reply to message #137900] |
Thu, 02 July 2009 22:37 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
By the way, I managed to resolve the need for the notation.ecore. I
misread the GMF book and interpreted it that I must have
firstElementOnly=false if I have multiple roots in my file. Obviously
I don't want to parse diag info so if I remove this flag (default=true)
I remove the need to deal with notation.ecore.
I'm still getting a termination from an exception with no error message
associated with it when running in debugger (occasional memory violation
with f5)
I'm trying a bit of refactoring to see if it helps
regards
Steve
PS thanks for the great info
Bill Hinge wrote:
> Working now, got the answer on m2t group
> (message Re: problem running xpand generator )
>
> Would be nice if there were a way to reference ecore's
> from referenced plugin's eg uml.ecore, notation.ecore
>
> regards
> Steve
>
>
> Bill Hinge wrote:
>> I originally posted this to m2t as I thought it was an Xpand problem
>>
>> I'm struggling through some workflow & xpand2 issues and I've got as far
>> as the generator part.
>>
>> I have set up my gmf model in $model etc for my Reader and it is being
>> read but I'm getting a fatal error at the generator.
>>
>> My xpand template is quite simple at this stage
>>
>> «IMPORT ngoss»
>> «IMPORT contract»
>> «IMPORT sla»
>>
>>
>> «DEFINE ngoss FOR contract::Contract»
>> «ENDDEFINE»
>>
>>
>> Note, even though I used code completion I'm getting those red error
>> marks on my IMPORT's
>>
>> Here is part of my workflow
>>
>>
>> <component class="org.eclipse.emf.mwe.utils.Reader">
>> <firstElementOnly value="false" />
>> <modelSlot value="model"/>
>> <uri value="${model}"/>
>>
>> </component>
>>
>> <component class="org.eclipse.xpand2.Generator" id="generate">
>> <metaModel id="mm"
>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>> <fileEncoding value="UTF-8"/>
>> <expand value="Demos::ngoss FOR model" />
>> <outlet path="${src-gen}"/>
>> </component>
>>
>> Note it doesn't seem to matter if I use templates::Demos or not!
>>
>> Jul 1, 2009 3:17:40 PM
>> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent
>> invokeInternal
>> SEVERE: Error in Component generate of type org.eclipse.xpand2.Generator:
>> EvaluationException : No Definition
>> 'templates::NewTemplateFile::ngoss for List' found!
>> [23,50] on line 1 'EXPAND templates::NewTemplateFile::ngoss FOR
>> model'
>>
>> Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner
>> executeWorkflow
>> SEVERE: Workflow interrupted. Reason: No Definition
>> 'templates::NewTemplateFile::ngoss for List' found!
>> Jul 1, 2009 3:17:40 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
>> SEVERE: [ERROR]: No Definition 'templates::NewTemplateFile::ngoss for
>> List' found!(Element: EXPAND templates::NewTemplateFile::ngoss FOR
>> model; Reported by: Generator(generate)
>>
>>
>>
>> IF I use the following template (done via code completion)
>>
>> «IMPORT ngoss»
>> «IMPORT contract»
>> «IMPORT sla»
>>
>>
>> «DEFINE Main FOR NGOSS»
>>
>> «FILE author + ".ngoss_out"»
>> «EXPAND bs FOREACH this.businessServices»
>>
>> «ENDFILE»
>>
>>
>> «ENDDEFINE»
>>
>> «DEFINE bs FOR Contract»
>>
>> «Title»
>> «ENDDEFINE»
>>
>> I get the following error
>>
>> SEVERE: mismatched input ''http://www.xx.com/2008/ngoss'' expecting
>> Identifier on line 1
>> org.eclipse.internal.xtend.xtend.parser.ParseException: mismatched
>> input ''http://www.bt.com/2008/ngoss'' expecting Identifier on line 1
>> at
>> org.eclipse.internal.xpand2.parser.XpandParseFacade$3.handle Error(XpandParseFacade.java:77)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParseFacade$2.report Error(XpandParseFacade.java:66)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParser.identifier(Xp andParser.java:4326)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .identifier(XpandLocationAddingParser.java:184)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParser.simpleType(Xp andParser.java:4251)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .simpleType(XpandLocationAddingParser.java:274)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParser.anImport(Xpan dParser.java:368)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .anImport(XpandLocationAddingParser.java:79)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParser.template(Xpan dParser.java:170)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandLocationAddingParser .template(XpandLocationAddingParser.java:289)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:44)
>>
>> at
>> org.eclipse.internal.xpand2.parser.XpandParseFacade.file(Xpa ndParseFacade.java:31)
>>
>> at
>> org.eclipse.xpand2.XpandExecutionContextImpl$1.parse(XpandEx ecutionContextImpl.java:92)
>>
>> at
>> org.eclipse.xtend.expression.ResourceManagerDefaultImpl.load Resource(ResourceManagerDefaultImpl.java:70)
>>
>> at
>> org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:193)
>>
>> at
>> org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(Xp andExecutionContextImpl.java:186)
>>
>> at
>> org.eclipse.xpand2.XpandExecutionContextImpl.findDefinition( XpandExecutionContextImpl.java:145)
>>
>> at
>> org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefini tion(ExpandStatement.java:174)
>>
>> at
>> org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInte rnal(ExpandStatement.java:167)
>>
>> at
>> org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
>> at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java: 334)
>> at
>> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent.invokeInternal(AbstractExpressionsUsingWorkflowCo mponent.java:191)
>>
>> at
>> org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invok e(AbstractWorkflowComponent.java:118)
>>
>> at
>> org.eclipse.emf.mwe.core.container.CompositeComponent.intern alInvoke(CompositeComponent.java:101)
>>
>> at
>> org.eclipse.emf.mwe.core.container.CompositeComponent.invoke (CompositeComponent.java:86)
>>
>> at
>> org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(Work flowRunner.java:412)
>>
>> at
>> org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.j ava:292)
>> at
>> org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner. java:239)
>> Jul 1, 2009 4:29:04 PM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
>> SEVERE: [ERROR]: mismatched input ''http://www.xx.com/2008/ngoss''
>> expecting Identifier on line 1(Element: EXPAND Demo::ngoss FOR model;
>> Reported by: Generator(NgossGenerate): generating 'Demo::ngoss FOR
>> model' => ..//com.xx.yyy.ui/src-gen)
>>
>>
>> regards
>> Steve
>>
>>
>>
>>
>>
>> Bill Hinge wrote:
>>> For now I have cheated and copied notation.ecore to my local directory
>>> and put a reference to it
>>>
>>> <RegisterEcoreFile
>>> value="${eclipse_home}/com.xx.yyy.ui/model/notation.ecore"/ >
>>>
>>> obviously not very elegant but it works, the following didn't though
>>>
>>> <uriMap
>>> from="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
>>>
>>> to=" platform:/plugin/org.eclipse.gmf.runtime.notation.notation.e core "/>
>>>
>>>
>>> Bill Hinge wrote:
>>>> Sorry to answer my own post, hopefully someone may find it useful in
>>>> future!
>>>>
>>>> The reason for the error below was that I was was linking by reference
>>>> to uml.ecore and ecore.ecore and some attributes were badly set as uml
>>>> definition of string as opposed to ecore string. A quick edit of the
>>>> attribute type in the local ecore fixed that problem as a workaround.
>>>>
>>>>
>>>> There were some other later issues with other namespaces not being
>>>> found
>>>> so I just added them via multiple calls of RegisterEcoreFile.
>>>>
>>>>
>>>> However, since this is a mixed model and diagram file containing both
>>>> model and GMF diagram info the workflow is now looking for
>>>>
>>>> Package with uri 'http://www.eclipse.org/gmf/runtime/1.0.2/notation'
>>>> not found
>>>>
>>>> as this is referenced in the gmf output file default2.ngoss
>>>>
>>>> Haven't worked out this one yet , any hints?
>>>>
>>>> steve
>>>>
>>>> Bill Hinge wrote:
>>>>> To clarify, TestModel referred to below is a string value defined
>>>>> by my
>>>>> ecore files as a legal String, it was created by my GMF-EMF editor
>>>>> so I
>>>>> would be surprised if it weren't legal. Hence my question as to what
>>>>> Reader I should use?
>>>>>
>>>>> Anyhow, made some progress I'm now failing on the Reader
>>>>>
>>>>> steve
>>>>>
>>>>> Bill Hinge wrote:
>>>>>> Sven
>>>>>>
>>>>>> Seems to be some issue with org.antlr.runtime.CharStream not found?
>>>>>>
>>>>>> if I add to my dependencies I now get
>>>>>>
>>>>>> SEVERE: org.eclipse.emf.ecore.xmi.IllegalValueException: Value
>>>>>> 'TestModel' is not legal.
>>>>>> ( file:///Users/steveorobec/DSL/eclipseRc4/workspace//com.xx.y yy.ui/templates/default2.ngoss,
>>>>>> 4, 105)
>>>>>>
>>>>>>
>>>>>> Should I be using a different Reader/Generator?
>>>>>> (This is a single file GMF-EMF editor)
>>>>>>
>>>>>>
>>>>>> regards
>>>>>> Steve
>>>>>>
>>>>>>
>>>>>> Bill Hinge wrote:
>>>>>>> Hi Sven
>>>>>>>
>>>>>>>
>>>>>>> I just tried this, must have had some fat fingered gremlins
>>>>>>> before cause
>>>>>>> it kept crashing
>>>>>>>
>>>>>>> works now...
>>>>>>>
>>>>>>> I get a classloader error -- source not found
>>>>>>>
>>>>>>>
>>>>>>> } finally {
>>>>>>> if (isChildmost) {
>>>>>>> childmostCaller.remove();
>>>>>>>
>>>>>>> if ((c != null) && name.startsWith("org.apache.") &&
>>>>>>> ( name.startsWith("org.apache.crimson.") ||
>>>>>>> name.startsWith("org.apache.xalan.") ||
>>>>>>> name.startsWith("org.apache.xml.") ||
>>>>>>> name.startsWith("org.apache.xpath.") ) ) {
>>>>>>> AccessController.doPrivileged(new
>>>>>>> PrivilegedAction() {
>>>>>>> public Object
>>>>>>> run() { return
>>>>>>> System.setProperty("apple.lang.DisableCompatibilityClasspath ",
>>>>>>> "true");
>>>>>>> }});
>>>>>>> }
>>>>>>> }
>>>>>>> // MacOSX Change END
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> and ...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> // Compiled from Launcher.java (version 1.5 : 49.0, super bit)
>>>>>>> public class sun.misc.Launcher {
>>>>>>>
>>>>>>> // Field descriptor #72 Ljava/net/URLStreamHandlerFactory;
>>>>>>> private static java.net.URLStreamHandlerFactory factory;
>>>>>>>
>>>>>>> // Field descriptor #74 Lsun/misc/Launcher;
>>>>>>> private static sun.misc.Launcher launcher;
>>>>>>>
>>>>>>> // Field descriptor #76 Ljava/lang/ClassLoader;
>>>>>>> private java.lang.ClassLoader loader;
>>>>>>>
>>>>>>> // Field descriptor #78 Ljava/net/URLStreamHandler;
>>>>>>> private static java.net.URLStreamHandler fileHandler;
>>>>>>>
>>>>>>> // Method descriptor #80 ()Lsun/misc/Launcher;
>>>>>>> // Stack: 1, Locals: 0
>>>>>>> public static sun.misc.Launcher getLauncher();
>>>>>>> 0 getstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>>>> 3 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 42]
>>>>>>>
>>>>>>> // Method descriptor #84 ()V
>>>>>>> // Stack: 4, Locals: 5
>>>>>>> public Launcher();
>>>>>>> 0 aload_0 [this]
>>>>>>> 1 invokespecial java.lang.Object() [5]
>>>>>>> 4 invokestatic
>>>>>>> sun.misc.Launcher$ExtClassLoader.getExtClassLoader() :
>>>>>>> sun.misc.Launcher$ExtClassLoader [6]
>>>>>>> 7 astore_1
>>>>>>> 8 goto 22
>>>>>>> 11 astore_2
>>>>>>> 12 new java.lang.InternalError [8]
>>>>>>> 15 dup
>>>>>>> 16 ldc <String "Could not create extension class loader"> [9]
>>>>>>> 18 invokespecial java.lang.InternalError(java.lang.String)
>>>>>>> [10]
>>>>>>> 21 athrow
>>>>>>> 22 aload_0 [this]
>>>>>>> 23 aload_1
>>>>>>> 24 invokestatic
>>>>>>> sun.misc.Launcher$AppClassLoader.getAppClassLoader(java.lang .ClassLoader)
>>>>>>> : java.lang.ClassLoader [11]
>>>>>>> 27 putfield sun.misc.Launcher.loader :
>>>>>>> java.lang.ClassLoader [12]
>>>>>>> 30 goto 44
>>>>>>> 33 astore_2
>>>>>>> 34 new java.lang.InternalError [8]
>>>>>>> 37 dup
>>>>>>> 38 ldc <String "Could not create application class loader">
>>>>>>> [13]
>>>>>>> 40 invokespecial java.lang.InternalError(java.lang.String)
>>>>>>> [10]
>>>>>>> 43 athrow
>>>>>>> 44 invokestatic java.lang.Thread.currentThread() :
>>>>>>> java.lang.Thread [14]
>>>>>>> 47 aload_0 [this]
>>>>>>> 48 getfield sun.misc.Launcher.loader :
>>>>>>> java.lang.ClassLoader [12]
>>>>>>> 51 invokevirtual
>>>>>>> java.lang.Thread.setContextClassLoader(java.lang.ClassLoader ) :
>>>>>>> void [15]
>>>>>>> 54 ldc <String "java.security.manager"> [16]
>>>>>>> 56 invokestatic
>>>>>>> java.lang.System.getProperty(java.lang.String) : java.lang.String
>>>>>>> [17]
>>>>>>> 59 astore_2
>>>>>>> 60 aload_2
>>>>>>> 61 ifnull 168
>>>>>>> 64 aconst_null
>>>>>>> 65 astore_3
>>>>>>> 66 ldc <String ""> [18]
>>>>>>> 68 aload_2
>>>>>>> 69 invokevirtual java.lang.String.equals(java.lang.Object)
>>>>>>> : boolean [19]
>>>>>>> 72 ifne 84
>>>>>>> 75 ldc <String "default"> [20]
>>>>>>> 77 aload_2
>>>>>>> 78 invokevirtual java.lang.String.equals(java.lang.Object)
>>>>>>> : boolean [19]
>>>>>>> 81 ifeq 95
>>>>>>> 84 new java.lang.SecurityManager [21]
>>>>>>> 87 dup
>>>>>>> 88 invokespecial java.lang.SecurityManager() [22]
>>>>>>> 91 astore_3
>>>>>>> 92 goto 130
>>>>>>> 95 aload_0 [this]
>>>>>>> 96 getfield sun.misc.Launcher.loader :
>>>>>>> java.lang.ClassLoader [12]
>>>>>>> 99 aload_2
>>>>>>> 100 invokevirtual
>>>>>>> java.lang.ClassLoader.loadClass(java.lang.String) :
>>>>>>> java.lang.Class [23]
>>>>>>> 103 invokevirtual java.lang.Class.newInstance() :
>>>>>>> java.lang.Object [24]
>>>>>>> 106 checkcast java.lang.SecurityManager [21]
>>>>>>> 109 astore_3
>>>>>>> 110 goto 130
>>>>>>> 113 astore 4
>>>>>>> 115 goto 130
>>>>>>> 118 astore 4
>>>>>>> 120 goto 130
>>>>>>> 123 astore 4
>>>>>>> 125 goto 130
>>>>>>> 128 astore 4
>>>>>>> 130 aload_3
>>>>>>> 131 ifnull 141
>>>>>>> 134 aload_3
>>>>>>> 135 invokestatic
>>>>>>> java.lang.System.setSecurityManager(java.lang.SecurityManage r) :
>>>>>>> void [29]
>>>>>>> 138 goto 168
>>>>>>> 141 new java.lang.InternalError [8]
>>>>>>> 144 dup
>>>>>>> 145 new java.lang.StringBuilder [30]
>>>>>>> 148 dup
>>>>>>> 149 invokespecial java.lang.StringBuilder() [31]
>>>>>>> 152 ldc <String "Could not create SecurityManager: "> [32]
>>>>>>> 154 invokevirtual
>>>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>>>> java.lang.StringBuilder [33]
>>>>>>> 157 aload_2
>>>>>>> 158 invokevirtual
>>>>>>> java.lang.StringBuilder.append(java.lang.String) :
>>>>>>> java.lang.StringBuilder [33]
>>>>>>> 161 invokevirtual java.lang.StringBuilder.toString() :
>>>>>>> java.lang.String [34]
>>>>>>> 164 invokespecial java.lang.InternalError(java.lang.String)
>>>>>>> [10]
>>>>>>> 167 athrow
>>>>>>> 168 return
>>>>>>> Exception Table:
>>>>>>> [pc: 4, pc: 8] -> 11 when : java.io.IOException
>>>>>>> [pc: 22, pc: 30] -> 33 when : java.io.IOException
>>>>>>> [pc: 95, pc: 110] -> 113 when :
>>>>>>> java.lang.IllegalAccessException
>>>>>>> [pc: 95, pc: 110] -> 118 when :
>>>>>>> java.lang.InstantiationException
>>>>>>> [pc: 95, pc: 110] -> 123 when :
>>>>>>> java.lang.ClassNotFoundException
>>>>>>> [pc: 95, pc: 110] -> 128 when : java.lang.ClassCastException
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 47]
>>>>>>> [pc: 4, line: 51]
>>>>>>> [pc: 8, line: 55]
>>>>>>> [pc: 11, line: 52]
>>>>>>> [pc: 12, line: 53]
>>>>>>> [pc: 22, line: 59]
>>>>>>> [pc: 30, line: 63]
>>>>>>> [pc: 33, line: 60]
>>>>>>> [pc: 34, line: 61]
>>>>>>> [pc: 44, line: 66]
>>>>>>> [pc: 54, line: 69]
>>>>>>> [pc: 60, line: 70]
>>>>>>> [pc: 64, line: 71]
>>>>>>> [pc: 66, line: 72]
>>>>>>> [pc: 84, line: 73]
>>>>>>> [pc: 95, line: 76]
>>>>>>> [pc: 110, line: 81]
>>>>>>> [pc: 113, line: 77]
>>>>>>> [pc: 115, line: 81]
>>>>>>> [pc: 118, line: 78]
>>>>>>> [pc: 120, line: 81]
>>>>>>> [pc: 123, line: 79]
>>>>>>> [pc: 125, line: 81]
>>>>>>> [pc: 128, line: 80]
>>>>>>> [pc: 130, line: 83]
>>>>>>> [pc: 134, line: 84]
>>>>>>> [pc: 141, line: 86]
>>>>>>> [pc: 168, line: 90]
>>>>>>>
>>>>>>> // Method descriptor #86 ()Ljava/lang/ClassLoader;
>>>>>>> // Stack: 1, Locals: 1
>>>>>>> public java.lang.ClassLoader getClassLoader();
>>>>>>> 0 aload_0 [this]
>>>>>>> 1 getfield sun.misc.Launcher.loader : java.lang.ClassLoader
>>>>>>> [12]
>>>>>>> 4 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 96]
>>>>>>>
>>>>>>> // Method descriptor #88 ()Lsun/misc/URLClassPath;
>>>>>>> // Stack: 4, Locals: 3
>>>>>>> public static sun.misc.URLClassPath getBootstrapClassPath();
>>>>>>> 0 new sun.security.action.GetPropertyAction [35]
>>>>>>> 3 dup
>>>>>>> 4 ldc <String "sun.boot.class.path"> [36]
>>>>>>> 6 invokespecial
>>>>>>> sun.security.action.GetPropertyAction(java.lang.String) [37]
>>>>>>> 9 invokestatic
>>>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>>>> : java.lang.Object [38]
>>>>>>> 12 checkcast java.lang.String [39]
>>>>>>> 15 astore_0
>>>>>>> 16 aload_0
>>>>>>> 17 ifnull 43
>>>>>>> 20 aload_0
>>>>>>> 21 astore_2
>>>>>>> 22 new sun.misc.Launcher$1 [40]
>>>>>>> 25 dup
>>>>>>> 26 aload_2
>>>>>>> 27 invokespecial sun.misc.Launcher$1(java.lang.String) [41]
>>>>>>> 30 invokestatic
>>>>>>> java.security.AccessController.doPrivileged(java.security.Pr ivilegedAction)
>>>>>>> : java.lang.Object [38]
>>>>>>> 33 checkcast java.net.URL[] [42]
>>>>>>> 36 checkcast java.net.URL[] [42]
>>>>>>> 39 astore_1
>>>>>>> 40 goto 48
>>>>>>> 43 iconst_0
>>>>>>> 44 anewarray java.net.URL [43]
>>>>>>> 47 astore_1
>>>>>>> 48 new sun.misc.URLClassPath [44]
>>>>>>> 51 dup
>>>>>>> 52 aload_1
>>>>>>> 53 getstatic sun.misc.Launcher.factory :
>>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>>> 56 invokespecial sun.misc.URLClassPath(java.net.URL[],
>>>>>>> java.net.URLStreamHandlerFactory) [45]
>>>>>>> 59 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 319]
>>>>>>> [pc: 16, line: 321]
>>>>>>> [pc: 20, line: 322]
>>>>>>> [pc: 22, line: 323]
>>>>>>> [pc: 40, line: 330]
>>>>>>> [pc: 43, line: 331]
>>>>>>> [pc: 48, line: 333]
>>>>>>>
>>>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>>>> // Stack: 4, Locals: 3
>>>>>>> private static java.net.URL[] pathToURLs(java.io.File[] arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 arraylength
>>>>>>> 2 anewarray java.net.URL [43]
>>>>>>> 5 astore_1
>>>>>>> 6 iconst_0
>>>>>>> 7 istore_2
>>>>>>> 8 iload_2
>>>>>>> 9 aload_0 [arg0]
>>>>>>> 10 arraylength
>>>>>>> 11 if_icmpge 29
>>>>>>> 14 aload_1
>>>>>>> 15 iload_2
>>>>>>> 16 aload_0 [arg0]
>>>>>>> 17 iload_2
>>>>>>> 18 aaload
>>>>>>> 19 invokestatic sun.misc.Launcher.getFileURL(java.io.File) :
>>>>>>> java.net.URL [46]
>>>>>>> 22 aastore
>>>>>>> 23 iinc 2 1
>>>>>>> 26 goto 8
>>>>>>> 29 aload_1
>>>>>>> 30 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 337]
>>>>>>> [pc: 6, line: 338]
>>>>>>> [pc: 14, line: 339]
>>>>>>> [pc: 23, line: 338]
>>>>>>> [pc: 29, line: 345]
>>>>>>>
>>>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>>>> // Stack: 7, Locals: 7
>>>>>>> private static java.io.File[] getClassPath(java.lang.String arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 ifnull 197
>>>>>>> 4 iconst_0
>>>>>>> 5 istore_2
>>>>>>> 6 iconst_1
>>>>>>> 7 istore_3
>>>>>>> 8 iconst_0
>>>>>>> 9 istore 4
>>>>>>> 11 iconst_0
>>>>>>> 12 istore 5
>>>>>>> 14 aload_0 [arg0]
>>>>>>> 15 getstatic java.io.File.pathSeparator : java.lang.String
>>>>>>> [47]
>>>>>>> 18 iload 5
>>>>>>> 20 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>>>> int) : int [48]
>>>>>>> 23 dup
>>>>>>> 24 istore 4
>>>>>>> 26 iconst_m1
>>>>>>> 27 if_icmpeq 42
>>>>>>> 30 iinc 3 1
>>>>>>> 33 iload 4
>>>>>>> 35 iconst_1
>>>>>>> 36 iadd
>>>>>>> 37 istore 5
>>>>>>> 39 goto 14
>>>>>>> 42 iload_3
>>>>>>> 43 anewarray java.io.File [49]
>>>>>>> 46 astore_1
>>>>>>> 47 iconst_0
>>>>>>> 48 dup
>>>>>>> 49 istore 4
>>>>>>> 51 istore 5
>>>>>>> 53 aload_0 [arg0]
>>>>>>> 54 getstatic java.io.File.pathSeparator : java.lang.String
>>>>>>> [47]
>>>>>>> 57 iload 5
>>>>>>> 59 invokevirtual java.lang.String.indexOf(java.lang.String,
>>>>>>> int) : int [48]
>>>>>>> 62 dup
>>>>>>> 63 istore 4
>>>>>>> 65 iconst_m1
>>>>>>> 66 if_icmpeq 125
>>>>>>> 69 iload 4
>>>>>>> 71 iload 5
>>>>>>> 73 isub
>>>>>>> 74 ifle 101
>>>>>>> 77 aload_1
>>>>>>> 78 iload_2
>>>>>>> 79 iinc 2 1
>>>>>>> 82 new java.io.File [49]
>>>>>>> 85 dup
>>>>>>> 86 aload_0 [arg0]
>>>>>>> 87 iload 5
>>>>>>> 89 iload 4
>>>>>>> 91 invokevirtual java.lang.String.substring(int, int) :
>>>>>>> java.lang.String [50]
>>>>>>> 94 invokespecial java.io.File(java.lang.String) [51]
>>>>>>> 97 aastore
>>>>>>> 98 goto 116
>>>>>>> 101 aload_1
>>>>>>> 102 iload_2
>>>>>>> 103 iinc 2 1
>>>>>>> 106 new java.io.File [49]
>>>>>>> 109 dup
>>>>>>> 110 ldc <String "."> [52]
>>>>>>> 112 invokespecial java.io.File(java.lang.String) [51]
>>>>>>> 115 aastore
>>>>>>> 116 iload 4
>>>>>>> 118 iconst_1
>>>>>>> 119 iadd
>>>>>>> 120 istore 5
>>>>>>> 122 goto 53
>>>>>>> 125 iload 5
>>>>>>> 127 aload_0 [arg0]
>>>>>>> 128 invokevirtual java.lang.String.length() : int [53]
>>>>>>> 131 if_icmpge 156
>>>>>>> 134 aload_1
>>>>>>> 135 iload_2
>>>>>>> 136 iinc 2 1
>>>>>>> 139 new java.io.File [49]
>>>>>>> 142 dup
>>>>>>> 143 aload_0 [arg0]
>>>>>>> 144 iload 5
>>>>>>> 146 invokevirtual java.lang.String.substring(int) :
>>>>>>> java.lang.String [54]
>>>>>>> 149 invokespecial java.io.File(java.lang.String) [51]
>>>>>>> 152 aastore
>>>>>>> 153 goto 171
>>>>>>> 156 aload_1
>>>>>>> 157 iload_2
>>>>>>> 158 iinc 2 1
>>>>>>> 161 new java.io.File [49]
>>>>>>> 164 dup
>>>>>>> 165 ldc <String "."> [52]
>>>>>>> 167 invokespecial java.io.File(java.lang.String) [51]
>>>>>>> 170 aastore
>>>>>>> 171 iload_2
>>>>>>> 172 iload_3
>>>>>>> 173 if_icmpeq 194
>>>>>>> 176 iload_2
>>>>>>> 177 anewarray java.io.File [49]
>>>>>>> 180 astore 6
>>>>>>> 182 aload_1
>>>>>>> 183 iconst_0
>>>>>>> 184 aload 6
>>>>>>> 186 iconst_0
>>>>>>> 187 iload_2
>>>>>>> 188 invokestatic
>>>>>>> java.lang.System.arraycopy(java.lang.Object, int,
>>>>>>> java.lang.Object, int, int) : void [55]
>>>>>>> 191 aload 6
>>>>>>> 193 astore_1
>>>>>>> 194 goto 202
>>>>>>> 197 iconst_0
>>>>>>> 198 anewarray java.io.File [49]
>>>>>>> 201 astore_1
>>>>>>> 202 aload_1
>>>>>>> 203 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 350]
>>>>>>> [pc: 4, line: 351]
>>>>>>> [pc: 8, line: 352]
>>>>>>> [pc: 14, line: 354]
>>>>>>> [pc: 30, line: 355]
>>>>>>> [pc: 33, line: 356]
>>>>>>> [pc: 42, line: 358]
>>>>>>> [pc: 47, line: 359]
>>>>>>> [pc: 53, line: 361]
>>>>>>> [pc: 69, line: 362]
>>>>>>> [pc: 77, line: 363]
>>>>>>> [pc: 101, line: 366]
>>>>>>> [pc: 116, line: 368]
>>>>>>> [pc: 125, line: 371]
>>>>>>> [pc: 134, line: 372]
>>>>>>> [pc: 156, line: 374]
>>>>>>> [pc: 171, line: 377]
>>>>>>> [pc: 176, line: 378]
>>>>>>> [pc: 182, line: 379]
>>>>>>> [pc: 191, line: 380]
>>>>>>> [pc: 194, line: 382]
>>>>>>> [pc: 197, line: 383]
>>>>>>> [pc: 202, line: 389]
>>>>>>>
>>>>>>> // Method descriptor #94 (Ljava/io/File;)Ljava/net/URL;
>>>>>>> // Stack: 2, Locals: 2
>>>>>>> static java.net.URL getFileURL(java.io.File arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 invokevirtual java.io.File.getCanonicalFile() :
>>>>>>> java.io.File [56]
>>>>>>> 4 astore_0 [arg0]
>>>>>>> 5 goto 9
>>>>>>> 8 astore_1
>>>>>>> 9 aload_0 [arg0]
>>>>>>> 10 invokestatic
>>>>>>> sun.net.www.ParseUtil.fileToEncodedURL(java.io.File) :
>>>>>>> java.net.URL [57]
>>>>>>> 13 areturn
>>>>>>> 14 astore_1
>>>>>>> 15 new java.lang.InternalError [8]
>>>>>>> 18 dup
>>>>>>> 19 invokespecial java.lang.InternalError() [59]
>>>>>>> 22 athrow
>>>>>>> Exception Table:
>>>>>>> [pc: 0, pc: 5] -> 8 when : java.io.IOException
>>>>>>> [pc: 9, pc: 13] -> 14 when : java.net.MalformedURLException
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 396]
>>>>>>> [pc: 5, line: 397]
>>>>>>> [pc: 9, line: 400]
>>>>>>> [pc: 14, line: 401]
>>>>>>> [pc: 15, line: 403]
>>>>>>>
>>>>>>> // Method descriptor #96 ()Ljava/net/URLStreamHandlerFactory;
>>>>>>> // Stack: 1, Locals: 0
>>>>>>> static synthetic java.net.URLStreamHandlerFactory access$100();
>>>>>>> 0 getstatic sun.misc.Launcher.factory :
>>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>>> 3 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 37]
>>>>>>>
>>>>>>> // Method descriptor #92 (Ljava/lang/String;)[Ljava/io/File;
>>>>>>> // Stack: 1, Locals: 1
>>>>>>> static synthetic java.io.File[] access$200(java.lang.String arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 invokestatic
>>>>>>> sun.misc.Launcher.getClassPath(java.lang.String) : java.io.File[]
>>>>>>> [2]
>>>>>>> 4 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 37]
>>>>>>>
>>>>>>> // Method descriptor #90 ([Ljava/io/File;)[Ljava/net/URL;
>>>>>>> // Stack: 1, Locals: 1
>>>>>>> static synthetic java.net.URL[] access$300(java.io.File[] arg0);
>>>>>>> 0 aload_0 [arg0]
>>>>>>> 1 invokestatic sun.misc.Launcher.pathToURLs(java.io.File[])
>>>>>>> : java.net.URL[] [1]
>>>>>>> 4 areturn
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 37]
>>>>>>>
>>>>>>> // Method descriptor #84 ()V
>>>>>>> // Stack: 3, Locals: 0
>>>>>>> static {};
>>>>>>> 0 new sun.misc.Launcher$Factory [60]
>>>>>>> 3 dup
>>>>>>> 4 aconst_null
>>>>>>> 5 invokespecial
>>>>>>> sun.misc.Launcher$Factory(sun.misc.Launcher$1) [61]
>>>>>>> 8 putstatic sun.misc.Launcher.factory :
>>>>>>> java.net.URLStreamHandlerFactory [3]
>>>>>>> 11 new sun.misc.Launcher [62]
>>>>>>> 14 dup
>>>>>>> 15 invokespecial sun.misc.Launcher() [63]
>>>>>>> 18 putstatic sun.misc.Launcher.launcher : sun.misc.Launcher [4]
>>>>>>> 21 return
>>>>>>> Line numbers:
>>>>>>> [pc: 0, line: 38]
>>>>>>> [pc: 11, line: 39]
>>>>>>>
>>>>>>> Inner classes:
>>>>>>> [inner class info: #60 sun/misc/Launcher$Factory, outer class
>>>>>>> info: #62 sun/misc/Launcher
>>>>>>> inner name: #65 Factory, accessflags: 10 private static],
>>>>>>> [inner class info: #67 sun/misc/Launcher$AppClassLoader,
>>>>>>> outer class info: #62 sun/misc/Launcher
>>>>>>> inner name: #68 AppClassLoader, accessflags: 8 static],
>>>>>>> [inner class info: #69 sun/misc/Launcher$ExtClassLoader,
>>>>>>> outer class info: #62 sun/misc/Launcher
>>>>>>> inner name: #70 ExtClassLoader, accessflags: 8 static],
>>>>>>> [inner class info: #40 sun/misc/Launcher$1, outer class info: #0
>>>>>>> inner name: #0, accessflags: 8 static]
>>>>>>>
>>>>>>> regards
>>>>>>> Steve
>>>>>>>
>>>>>>>
>>>>>>> Sven Efftinge wrote:
>>>>>>>> Hi Bill,
>>>>>>>>
>>>>>>>> sorry, I've no idea why the workflow terminates silently.
>>>>>>>> It seems that for some yet unkown reason the exception is not
>>>>>>>> printed on the console.
>>>>>>>> Did you try the debug mode (don't forget to flag the "Java
>>>>>>>> Debug" checkbox in the run configuration) in order to find out
>>>>>>>> where, when and why it terminates?
>>>>>>>>
>>>>>>>> Sorry, I couldn't help more.
>>>>>>>>
>>>>>>>> Sven
>>>>>>>>
>>>>>>>> Bill Hinge schrieb:
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> I originally posted to the tmf newsgroup but I suspect I should
>>>>>>>>> have
>>>>>>>>> posted here? I have been experimenting further and this post is
>>>>>>>>> updated
>>>>>>>>>
>>>>>>>>> I have created a GMF editor based on multiple linked ecore
>>>>>>>>> files and
>>>>>>>>> my GMF editor creates a shared EMF-GMF editor domain in a
>>>>>>>>> single file.
>>>>>>>>>
>>>>>>>>> I have set up an action to call a workflow from my GMF UI and
>>>>>>>>> it appears
>>>>>>>>> to be configured correctly but doesn't actually produce
>>>>>>>>> anything. (ie
>>>>>>>>> it's called from java using WorkFlowRunner().... The intention
>>>>>>>>> is to
>>>>>>>>> call the workflow on my editor's model files which will be in
>>>>>>>>> their own
>>>>>>>>> project directory.
>>>>>>>>>
>>>>>>>>> As part of my testing I'm manually testing by running the
>>>>>>>>> workflow from
>>>>>>>>> the project explorer (right click run as MWE). I have set up a
>>>>>>>>> runtime
>>>>>>>>> config but when I run I get no errors and no output. I get a
>>>>>>>>> message
>>>>>>>>> 'terminated' on top of the console window.
>>>>>>>>>
>>>>>>>>> I am also seeing a lot of messages
>>>>>>>>> "Could not acquire children from extension:
>>>>>>>>> com.xx.dsl.yyy.diagram.resourceContent" in the error log but
>>>>>>>>> these don't seem to timed with my test runs so I'm not sure if
>>>>>>>>> they are related.
>>>>>>>>>
>>>>>>>>> this is my workflow is as follows (running on OS X 10.5.7)
>>>>>>>>>
>>>>>>>>> <?xml version="1.0"?>
>>>>>>>>> <workflow>
>>>>>>>>> <property name="workspace_loc" value="./" />
>>>>>>>>> <property name="eclipse_home" value="../" />
>>>>>>>>> <property name="model"
>>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
>>>>>>>>> <property name="src-gen"
>>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>>> <property name="out" value="out" />
>>>>>>>>>
>>>>>>>>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
>>>>>>>>> <platformUri value="../" />
>>>>>>>>> <RegisterEcoreFile
>>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
>>>>>>>>> <RegisterEcoreFile
>>>>>>>>> value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
>>>>>>>>> </bean>
>>>>>>>>> <component
>>>>>>>>> class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
>>>>>>>>> directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
>>>>>>>>>
>>>>>>>>> <component class="org.eclipse.emf.mwe.utils.Reader">
>>>>>>>>> <modelSlot value="model"/>
>>>>>>>>> <uri value="${model}"/>
>>>>>>>>> <firstElementOnly value="false" />
>>>>>>>>> </component>
>>>>>>>>>
>>>>>>>>> <component class="org.eclipse.xpand2.Generator">
>>>>>>>>> <metaModel id="mm"
>>>>>>>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
>>>>>>>>> <expand value="Demo::Main FOR model" />
>>>>>>>>> <outlet path="${src-gen}"/>
>>>>>>>>> </component>
>>>>>>>>> </workflow>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
>>>>>>>>>
>>>>>>>>> I have put a copy set of my model ecore files in
>>>>>>>>> com.xx.yy.ui/model/
>>>>>>>>> (contract.ecore etc) and I have put a test copy of the GMF
>>>>>>>>> editor model
>>>>>>>>> output default2.ngoss in /templates
>>>>>>>>>
>>>>>>>>> (once I get this running manually I'll be using a call from java)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> When I run the workflow it gets as far as and stops
>>>>>>>>>
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO:
>>>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>>>
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO: (c) 2005-2009 openarchitectureware.org and contributors
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO:
>>>>>>>>> ------------------------------------------------------------ --------------------------
>>>>>>>>>
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO: running workflow:
>>>>>>>>> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>>>>>>>>>
>>>>>>>>> Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner
>>>>>>>>> prepare
>>>>>>>>> INFO:
>>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup setPlatformUri
>>>>>>>>> INFO: Registering platform uri
>>>>>>>>> '/Users/steveorobec/DSL/eclipseRc4/workspace'
>>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterEcoreFile
>>>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss'
>>>>>>>>> from '..//com.bt.kalashnikov.ui/model/ngoss.ecore'
>>>>>>>>> Jun 30, 2009 4:20:37 PM
>>>>>>>>> org.eclipse.emf.mwe.utils.StandaloneSetup addRegisterEcoreFile
>>>>>>>>> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract'
>>>>>>>>> from '..//com.xx.yyy.ui/model/contract.ecore'
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I have the following dependencies in my manifest (belt & braces)
>>>>>>>>> >
>>>>>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>>>>>> org.eclipse.core.resources,
>>>>>>>>> org.eclipse.ui,
>>>>>>>>> org.eclipse.emf.codegen,
>>>>>>>>> org.eclipse.ui.ide,
>>>>>>>>> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
>>>>>>>>> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
>>>>>>>>> org.eclipse.xpand;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.check.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
>>>>>>>>> org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>>>>>>>>> >
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I have looked at the OAW docs, source etc plus the Eclipse GMF
>>>>>>>>> book,
>>>>>>>>> tried various combinations of the above but am stuck. Any idea
>>>>>>>>> what I'm
>>>>>>>>> doing wrong please?
>>>>>>>>>
>>>>>>>>> regards
>>>>>>>>> Steve
|
|
| |
Re: first time problem running workflow (mwe 0.7.0) [message #621082 is a reply to message #138002] |
Fri, 03 July 2009 10:06 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------010409080708050806070800
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sven,
EMF can even deal with accessing deeply nested jars:
A connection that can access an entry in an archive, and then
recursively an entry in that archive, and so on. For example, it can
be used just like jar: or zip:, only the archive paths can repeat,
e.g.,
archive:file:///c:/temp/example.zip!/org/example/nested.zip! /org/example/deeply-nested.html
The general recursive pattern is
archive:$nestedURL${/!$archivePath$}+
So the nested URL for the example above is
file:///c:/temp/example.zip
Since the nested URL may itself contain archive schemes, the
subsequence of the archive paths that should be associated with the
nested URL is determined by finding the nth archive separator, i.e.,
the nth !/, where n is the number of ":"s before the first "/" of
the nested URL, i.e., the number of nested schemes. For example, for
a more complex case where the nested URL is itself an archive-based
scheme, e.g.,
archive:jar:file:///c:/temp/example.zip!/org/example/nested. zip!/org/example/deeply-nested.html
the nested URL is correctly parsed to skip to the second archive
separator as jar:file:///c:/temp/example.zip!/org/example/nested.zip
Sven Efftinge wrote:
> Don't copy the genmodel but use a file URI which points to the
> genmodel in the jar.
> Don't know the exact syntax, but I guess you'll find it by looking
> into the code and JavaDocs of EMF's URI class.
>
> It's something like this as I remember:
>
> file:/my/absolute/path/org.eclipse.uml2.uml.jar!/model/UML.g enmodel
>
> Sven
>
> Krzysztof Kowalczyk schrieb:
>> Sebastian Zarnekow pisze:
>>> Hi Krzysztof,
>>>
>>> my previous post has been submitted to fast. Actually a
>>> platform:/plugin uri will not help you, because the workflow does
>>> not know about registered plugins etc.
>> I know that unfortunately. In xtext we have:
>>
>> import "http://www.eclipse.org/uml2/3.0.0/UML"
>>
>> and in workflow we have:
>>
>> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup"
>> platformUri="${runtimeProject}/.."
>> >
>> <registerGeneratedEPackage value="org.eclipse.uml2.uml.UMLPackage"/>
>> </bean>
>> ...
>> <fragment
>> class="org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment "
>> genModels="platform:/resource/myproject/UML.genmodel"
>> />
>>
>> and I got a feeling that something is bad here :(
>>
>> As I understand this is an osgi/ eclipse plugins stuff that workflow
>> ignores. In active workbench, uri:
>> "http://www.eclipse.org/uml2/3.0.0/UML" allow to find both the
>> genmodel and the epackage. Maybe there is a way to dump registered
>> metamodels and make them visible to the workflow? Or handle the
>> "platform:/plugin" uri somehow? Model and genmodel should be visible
>> to workflow without copying as they are already on classpath.
>>
>> Regards,
>> Krzysztof Kowalczyk
--------------010409080708050806070800
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Sven,<br>
<br>
EMF can even deal with accessing deeply nested jars:<br>
<blockquote>
<p>A connection that can access an entry in an archive, and then
recursively an entry in that archive, and so on. For example, it can be
used just like jar: or zip:, only the archive paths can repeat, e.g., </p>
<pre> archive:<a class="moz-txt-link-freetext" href=" file:///c:/temp/example.zip!/org/example/nested.zip!/org/exa mple/deeply-nested.html"> file:///c:/temp/example.zip!/org/example/nested.zip!/org/exa mple/deeply-nested.html</a>
</pre>
The general recursive pattern is
<pre> archive:$nestedURL${/!$archivePath$}+
</pre>
So the nested URL for the example above is
<pre> <a class="moz-txt-link-freetext" href="file:///c:/temp/example.zip">file:///c:/temp/example.zip</a>
</pre>
<p>Since the nested URL may itself contain archive schemes, the
subsequence of the archive paths that should be associated with the
nested URL is determined by finding the nth archive separator, i.e.,
the nth !/, where n is the number of ":"s before the first "/" of the
nested URL, i.e., the number of nested schemes. For example, for a more
complex case where the nested URL is itself an archive-based scheme,
e.g., </p>
<pre> archive:<a class="moz-txt-link-freetext" href=" jar:file:///c:/temp/example.zip!/org/example/nested.zip!/org /example/deeply-nested.html"> jar:file:///c:/temp/example.zip!/org/example/nested.zip!/org /example/deeply-nested.html</a>
</pre>
the nested URL is correctly parsed to skip to the second archive
separator as <a class="moz-txt-link-freetext" href="jar:file:///c:/temp/example.zip!/org/example/nested.zip">jar:file:///c:/temp/example.zip!/org/example/nested.zip</a><br>
</blockquote>
<br>
<br>
Sven Efftinge wrote:
<blockquote cite="mid:h2kh2n$adb$1@build.eclipse.org" type="cite">Don't
copy the genmodel but use a file URI which points to the genmodel in
the jar.
<br>
Don't know the exact syntax, but I guess you'll find it by looking into
the code and JavaDocs of EMF's URI class.
<br>
<br>
It's something like this as I remember:
<br>
<br>
<a class="moz-txt-link-freetext" href=" file:/my/absolute/path/org.eclipse.uml2.uml.jar!/model/UML.g enmodel "> file:/my/absolute/path/org.eclipse.uml2.uml.jar!/model/UML.g enmodel </a>
<br>
<br>
Sven
<br>
<br>
Krzysztof Kowalczyk schrieb:
<br>
<blockquote type="cite">Sebastian Zarnekow pisze:
<br>
<blockquote type="cite">Hi Krzysztof,
<br>
<br>
my previous post has been submitted to fast. Actually a
platform:/plugin uri will not help you, because the workflow does not
know about registered plugins etc.
<br>
</blockquote>
I know that unfortunately. In xtext we have:
<br>
<br>
import <a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/uml2/3.0.0/UML">"http://www.eclipse.org/uml2/3.0.0/UML"</a>
<br>
<br>
and in workflow we have:
<br>
<br>
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup"
<br>
platformUri="${runtimeProject}/.."
<br>
>
<br>
<registerGeneratedEPackage
value="org.eclipse.uml2.uml.UMLPackage"/>
<br>
</bean>
<br>
....
<br>
<fragment
<br>
class="org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment "
<br>
genModels="platform:/resource/myproject/UML.genmodel "
<br>
/>
<br>
<br>
and I got a feeling that something is bad here :(
<br>
<br>
As I understand this is an osgi/ eclipse plugins stuff that workflow
ignores. In active workbench, uri:
<a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/uml2/3.0.0/UML">"http://www.eclipse.org/uml2/3.0.0/UML"</a> allow to find both the genmodel
and the epackage. Maybe there is a way to dump registered metamodels
and make them visible to the workflow? Or handle the "platform:/plugin"
uri somehow? Model and genmodel should be visible to workflow without
copying as they are already on classpath.
<br>
<br>
Regards,
<br>
Krzysztof Kowalczyk
<br>
</blockquote>
</blockquote>
</body>
</html>
--------------010409080708050806070800--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: first time problem running workflow (mwe 0.7.0) [message #621084 is a reply to message #138027] |
Sat, 04 July 2009 00:21 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Krzysztof,
Normally platform:/plugin/<bundle-id>/<path-in-bundle> does the trick,
at least in an Equinox runtime.
Krzysztof Kowalczyk wrote:
>
>> file:/my/absolute/path/org.eclipse.uml2.uml.jar!/model/UML.g enmodel
>
> absolute path would make a problem in team environment, is there any
> ${property} or a way to get the absolute path to a plugin on runtime?
>
> I actually did not have time yet to play with Xtext (the end of
> studies), but it look great :)
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: first time problem running workflow (mwe 0.7.0) [message #621117 is a reply to message #137988] |
Sat, 11 July 2009 00:00 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
By the way (put here in case I forget in future ;)
If anyone gets stuck with the error in the Reader
Jul 11, 2009 12:53:09 AM org.eclipse.emf.mwe.core.WorkflowRunner
executeWorkflow
SEVERE: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
'children' not found. (....
caused by GMF notation.ecore not being read even though it exists
locally in your workspace (strangely it seems to work with one project)
baffled me for hours this did! Once done you can delete the local copy
of notation.ecore
The answer is ...
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
::
::
::
<registerGeneratedEPackage value="org.eclipse.uml2.uml.UMLPackage"/>
<registerGeneratedEPackage
value="org.eclipse.gmf.runtime.notation.NotationPackage"/>
</bean>
regards
Steve
|
|
| |
Re: first time problem running workflow (mwe 0.7.0) [message #621119 is a reply to message #138422] |
Sun, 12 July 2009 13:47 |
Bill Hinge Messages: 156 Registered: July 2009 |
Senior Member |
|
|
Krzysztof Kowalczyk wrote:
> > The answer is ...
>> <registerGeneratedEPackage
>> value="org.eclipse.uml2.uml.UMLPackage"/>
>> <registerGeneratedEPackage
>> value="org.eclipse.gmf.runtime.notation.NotationPackage"/>
>>
>
> I told to use generated EPackage (if there exist one) instead of ecore
> file, didn't I? ;)
>
> Generated metamodel can contain and in some cases need to contain
> handwritten logic (e.g. derived properties).
> A problem in MWE can occur with types, identity and some strange errors
> if one component is creating ecore model with generated package, and
> other use ecore file to handle the same model in the same workflow.
>
> Regards,
> Krzysztof Kowalczyk
Thanks Krzysztof, you did but I was just being specific to point out
that the useful package bit for notation was called NotationPackage.
steve
|
|
|
Goto Forum:
Current Time: Sat Dec 21 15:12:46 GMT 2024
Powered by FUDForum. Page generated in 0.08000 seconds
|