Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Failed to save model to platform:/resource(Error while running a qvto transformation)
icon9.gif  Failed to save model to platform:/resource [message #1000724] Tue, 15 January 2013 10:28 Go to next message
Tizio Caio is currently offline Tizio Caio
Messages: 2
Registered: January 2013
Junior Member
Hello, I m working to a model2model transformation with qvto.
I m just a beginner with this language, and i m still trying to better understand how it works.
I m trying to map a BPMN model in a BPEL model, but while i run my qvto file i get this error.
I'll post the code and the error, can you please tell what does this means, the code is very simple so i cant get where the problem could be.

Error:
org.eclipse.m2m.internal.qvt.oml.emf.util.EmfException: Failed to save model to platform:/resource/Bpmn2Bpel/transforms/output2.bpel

Code: (i cant use http://)
modeltype BPMN uses "httpworldwideweb.omg.org/spec/BPMN/20100524/MODEL-XMI";
modeltype BPEL uses "httpworldwidewebdocs.oasis-open.org/wsbpel/2.0/process/executable";

transformation Bpmn2Bpel(in ModelInput:BPMN,out OutputProcess:BPEL);

main() {
	log("A\n");

	ModelInput.objectsOfType(BPMN::Process)->map Proc2Proc();

	log("D\n");

}

mapping BPMN::Process::Proc2Proc():BPEL::Process{
log("start\n");
name:=self.name;
self.flowElements-> map Elements2Activity();
log("process name "+self.name);
log("fine\n");
}
mapping BPMN::FlowElement::Elements2Activity():BPEL::Activity{ //case switch per ogni tipo
																															 //di elemento 
	log("in E2A");
	log(self.name);
	log("out E2A");
}


As you can see, i m just trying to display the name of the objects.
Thanks in advance for your help. Tizio
Re: Failed to save model to platform:/resource [message #1000848 is a reply to message #1000724] Tue, 15 January 2013 14:35 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4097
Registered: July 2009
Senior Member
Hi

It looks like your problem is in the output specification of your launch
configuration.

Make sure you try the UNL2RDBMS example project and then compare your
launch with the example.

Regards

Ed Willink


On 15/01/2013 14:32, Tizio Caio wrote:
> Hello, I m working to a model2model transformation with qvto.
> I m just a beginner with this language, and i m still trying to better
> understand how it works.
> I m trying to map a BPMN model in a BPEL model, but while i run my
> qvto file i get this error.
> I'll post the code and the error, can you please tell what does this
> means, the code is very simple so i cant get where the problem could be.
>
> Error:
> org.eclipse.m2m.internal.qvt.oml.emf.util.EmfException: Failed to save
> model to platform:/resource/Bpmn2Bpel/transforms/output2.bpel
> Code: (i cant use http://)
>
> modeltype BPMN uses
> "httpworldwideweb.omg.org/spec/BPMN/20100524/MODEL-XMI";
> modeltype BPEL uses
> "httpworldwidewebdocs.oasis-open.org/wsbpel/2.0/process/executable";
>
> transformation Bpmn2Bpel(in ModelInput:BPMN,out OutputProcess:BPEL);
>
> main() {
> log("A\n");
>
> ModelInput.objectsOfType(BPMN::Process)->map Proc2Proc();
>
> log("D\n");
>
> }
>
> mapping BPMN::Process::Proc2Proc():BPEL::Process{
> log("start\n");
> name:=self.name;
> self.flowElements-> map Elements2Activity();
> log("process name "+self.name);
> log("fine\n");
> }
> mapping BPMN::FlowElement::Elements2Activity():BPEL::Activity{ //case
> switch per ogni tipo
>
> //di elemento log("in E2A");
> log(self.name);
> log("out E2A");
> }
>
> As you can see, i m just trying to display the name of the objects.
> Thanks in advance for your help. Tizio
Re: Failed to save model to platform:/resource [message #1000865 is a reply to message #1000848] Tue, 15 January 2013 15:09 Go to previous messageGo to next message
Tizio Caio is currently offline Tizio Caio
Messages: 2
Registered: January 2013
Junior Member
I fixed the problem. If i change the output model extension from output.bpel to output.model it works just fine. Can you please explain why?
Re: Failed to save model to platform:/resource [message #1000893 is a reply to message #1000865] Tue, 15 January 2013 16:24 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4097
Registered: July 2009
Senior Member
Hi

You probably have a Resource registered for *.model, and nothing for
*.bpel. Worse, you may have a text file registered for *.bpel.

Regards

Ed Willink

On 15/01/2013 15:09, Tizio Caio wrote:
> I fixed the problem. If i change the output model extension from
> output.bpel to output.model it works just fine. Can you please explain
> why?
Re: Failed to save model to platform:/resource [message #1246818 is a reply to message #1000724] Sat, 15 February 2014 13:39 Go to previous messageGo to next message
w j is currently offline w j
Messages: 1
Registered: February 2014
Junior Member
I met the same problem,could you tell me how to solve the problem?
Re: Failed to save model to platform:/resource [message #1247857 is a reply to message #1246818] Sun, 16 February 2014 18:00 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4097
Registered: July 2009
Senior Member
Hi

The thread contains the solution.

Regards

Ed Willink

On 16/02/2014 13:51, w j wrote:
> I met the same problem,could you tell me how to solve the problem?
Previous Topic:Stereotype not applied to the xmi output file !
Next Topic:Unit testing tools for QVTo?
Goto Forum:
  


Current Time: Sat Oct 25 07:14:35 GMT 2014

Powered by FUDForum. Page generated in 0.01802 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software