workflow runner going out of space [message #654347] |
Tue, 15 February 2011 10:34 |
Ravi Kiran Messages: 41 Registered: December 2010 |
Member |
|
|
i am currently working on gmf .i am trying to invoke workflow.runner from my gmf context menu.
when i invoke workflow it's going out of memory. so i tried to debug it i found the following error.
execute workflow fails in the workflow runner.i found out that it was because of configuration errors in my workflow file
prepare(workFlowFile, theMonitor, theParams);
can you point out from my workflow file?
all my parameters seem to be fine but i m not sure where something has gone wrong.
xpand workflow works fine normally. when i try to invoke from gmf plugin its going out of memory
follwing is the error dump
------------------------------------------------------------ --------
Error while logging event loop exception:
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:188)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:580)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:550)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:481)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_LockClassLoader(ClasspathManager.java:469)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:449)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:393)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:469)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.java:338)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:232)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1197)
at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(RegistryReader.java:272)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:133)
at org.eclipse.m2t.type.emf.EmfRegistryMetaModel.allPackages(Em fRegistryMetaModel.java:210)
at org.eclipse.m2t.type.emf.EmfRegistryMetaModel$2.createNew(Em fRegistryMetaModel.java:182)
at org.openarchitectureware.workflow.util.Cache.get(Cache.java: 25)
at org.eclipse.m2t.type.emf.EmfRegistryMetaModel.getTypeForName (EmfRegistryMetaModel.java:238)
at org.openarchitectureware.expression.TypeSystemImpl.internalG etTypeForName(TypeSystemImpl.java:185)
at org.openarchitectureware.expression.TypeSystemImpl.getTypeFo rName(TypeSystemImpl.java:235)
at org.openarchitectureware.expression.TypeSystemImpl.getTypeFo rName(TypeSystemImpl.java:212)
at org.eclipse.m2t.type.emf.EmfRegistryMetaModel.getTypeForETyp edElement(EmfRegistryMetaModel.java:356)
at org.eclipse.m2t.type.emf.EClassType.getContributedFeatures(E ClassType.java:65)
at org.openarchitectureware.type.AbstractTypeImpl.getAllFeature s(AbstractTypeImpl.java:62)
at org.openarchitectureware.type.AbstractTypeImpl$1.createNew(A bstractTypeImpl.java:84)
at org.openarchitectureware.type.AbstractTypeImpl$1.createNew(A bstractTypeImpl.java:1)
Logging exception:
------------------------------------------------------------ -----
------------------------------------------------------------ ------------------------------------------------------------ ------------------------------------------------------------ ------
<?xml version="1.0"?>
<workflow>
<property name="model" value="C:\\Documents and Settings\\rtiragat\\runtime-EclipseApplication\\Automation\\ default.mist " />
<!--<property name="model" value="Automation/default.mist_diagram" />-->
<property name="src-gen" value="src-gen" />
<!-- set up EMF for standalone execution -->
<bean class="org.eclipse.mwe.emf.StandaloneSetup" >
<platformUri value=".."/>
<registerGeneratedEPackage value="mist.MistPackage"/>
<!-- Load GMF Notation package Don't load from model as it gives errors -->
<registerGeneratedEPackage value="org.eclipse.gmf.runtime.notation.NotationPackage"/>
</bean>
<!-- instantiate metamodel -->
<bean id="mm_emf" class="org.eclipse.m2t.type.emf.EmfRegistryMetaModel"/>
<!-- load model and store it in slot 'model' -->
<!--<component class="org.eclipse.mwe.emf.Reader">-->
<component class="org.openarchitectureware.emf.XmiReader">
<modelFile value="${model}"/>
<outputSlot value="model"/>
<firstElementOnly value="true"/>
<!--<model value="${model}"/>-->
<!-- <uri value="platform:/resource/${model}" />-->
<!--<modelSlot value="model" />-->
</component>
<!-- check model -->
<component class="oaw.check.CheckComponent">
<metaModel idRef="mm_emf"/>
<checkFile value="metamodel::Checks" />
<emfAllChildrenSlot value="model" />
</component>
<!-- generate code -->
<component class="org.openarchitectureware.xpand2.Generator">
<metaModel idRef="mm_emf"/>
<expand
value="template::Template::main FOR model" />
<outlet path="${src-gen}" >
<postprocessor class="org.openarchitectureware.xpand2.output.JavaBeautifier " />
</outlet>
</component>
</workflow>
workflow invoking
------------------------------------------------------------ ----
WorkflowRunner runner = new WorkflowRunner();
Bundle bundle=Platform.getBundle("com.genesyslabs.sipserver.mist.generator ");
URL wfUrl = bundle.getEntry("src/workflow/generator.oaw");
String wfFile = "";
try {
wfFile = FileLocator.toFileURL(wfUrl).getFile();
mb.setMessage(wfFile);
mb.open();
Map<String, String> properties = new HashMap<String, String>();
Map<String,?> slotMap = new HashMap<String,Object>();
//mb.setMessage(PlatformUI.getWorkbench().getActiveWorkbench Window().getActivePage().getActiveEditor().getTitle());
path=getDiagramFile(event);
properties.put("model","C:\\Documents and Settings\\rtiragat\\runtime-EclipseApplication\\Automation\\ default.mist ");
//mb.setMessage(path+"---diagram file path---");
//mb.open();
if(path!=null)
{
if(runner.prepare(wfFile,new org.openarchitectureware.workflow.monitor.NullProgressMonito r(),properties))
{
//isSuccess=runner.run(wfFile,new org.openarchitectureware.workflow.monitor.NullProgressMonito r(), properties, null);
//isSuccess=runner.run("C:\\Documents and Settings\\rtiragat\\workspace\\com.genesyslabs.sipserver.mis t.generator\\src\\workflow\\generator.oaw ",new org.openarchitectureware.workflow.monitor.NullProgressMonito r(), properties, null);
isSuccess=runner.run("C:/Documents and Settings/rtiragat/workspace/com.genesyslabs.sipserver.mist.g enerator/src/workflow/generator.oaw ",new org.openarchitectureware.workflow.monitor.NullProgressMonito r(), properties,slotMap);
}
}
if(isSuccess)
{
mb.setMessage("code generation succesfull !!!!");
}
else
{
mb.setMessage("code generation unsuccesfull !!!!");
}
mb.open();
}
catch (Exception e)
{
e.printStackTrace();
}
------------------------------------------------------------ ----
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02560 seconds