Error while runnning Corticon PreCompile Service

I want to convert the .ecore files to .xsd.As suggested by the team I have used precompileDecisionService to convert these files.However I m getting an error

File (C:testABC.ecore) does not point to an erf file.

Not sure whether I am using Correct method

Below is the Code that i am running

package com;


import com.corticon.eclipse.server.core.ICcServer;
import com.corticon.eclipse.server.core.impl.CcServerImpl;
import com.corticon.service.ccserver.exception.CcServerFileOrDirNotFoundException;
import com.corticon.service.ccserver.exception.CcServerInvalidArgumentException;
import com.corticon.service.ccserver.exception.CcServerInvalidDecisionServiceException;
import com.corticon.service.ccserver.exception.CcServerInvalidSandboxException;


public class TestPrecompile 
{
public static void main(String[] args) {
TestPrecompile TCP = new TestPrecompile();
TCP.checkPrecimplileService();
}


public void checkPrecimplileService()
{
try
{
ICcServer server = new CcServerImpl(); 
server.precompileDecisionService("C:testSAFE.ecore","SAFE.xsd","C:testSAFE.xsd",true);
}
catch(CcServerFileOrDirNotFoundException e)
{
e.printStackTrace();
}


catch(CcServerInvalidArgumentException e)
{
e.printStackTrace();

}
catch(CcServerInvalidDecisionServiceException e)
{
e.printStackTrace();

} catch (CcServerInvalidSandboxException e) {
e.printStackTrace();
}

}
}

Error Details

Starting Progress Corticon Server : 5.4.1.0 -b6506
Progress Corticon Server log level : DIAGNOSTIC
Progress Corticon Server log path : C:/Users/……./logs
Progress Corticon Server sandbox location : C:/Users/……./CcServerSandbox

com.corticon.service.ccserver.exception.CcServerInvalidArgumentException: CcServerImpl.precompileDecisionService()(…) File (C:testABC.ecore) does not point to an erf file.
Object state for: null: null
at com.corticon.eclipse.server.core.impl.CcServerImpl.precompileDecisionService(CcServerImpl.java:11874)
at com.corticon.eclipse.server.core.impl.CcServerImpl.precompileDecisionService(CcServerImpl.java:11826)
at com.TestPrecompile.checkPrecimplileService(TestPrecompile.java:25)
at com.TestPrecompile.main(TestPrecompile.java:16)

Plz help


Source: eclipse

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.