[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] Re: [ATL] problem while saving output model

What makes my wonder is, even a "normal" transformation (with the ATL Launch cofiguration) won't work, and obviously can't work with the current implementation of the ASMExtractor, so does no one uses transformation in workspace, as no one has encountered this before ?


It sounds strange to mee too. I tried to reproduce the error you get but even if the path is wrong, I get a "Resource '<path>' does not exist." instead of your FileNotFoundException (i.e. "No such file or directory").


In fact, the extractor is used to adapt the loading process of the old RegularVM api to the new one. The ModelLoader has, for instance, a complex behaviour to decrypt uri's, that I don't want to break (to prevent compatibility issues). That explains why we remove the platform:/resource prefix: the ModelLoader recreates a correct uri using the modified path (see org.eclipse.m2m.atl.drivers.emf4atl.EMFModelLoader.realSave(ASMModel, String)).

So I can strongly simplify the implementation of the ASMExtractor (and injector too), making it more semantically correct, but I'm not sure it will solve your bug.

Could you report a bug about your issue ? Giving if possible the transformation project (eventually the java code you use to launch it).

Thanks in advance,

William

I hope this will help.
greetings, urs.


at last the stacktrace just pasted :

Thread [Worker-0] (Suspended) ASMExtractor.extract(IModel, String) line: 60 LauncherService.launch(String, IProgressMonitor, ILauncher, Map<String,String>, Map<String,String>, Map<String,String>, Map<String,String>, Map<String,Object>, Map<String,InputStream>, InputStream...) line: 140 AtlLaunchConfigurationDelegate.launch(ILaunchConfiguration, String, ILaunch, IProgressMonitor) line: 222 LaunchConfiguration.launch(String, IProgressMonitor, boolean, boolean) line: 853 LaunchConfiguration.launch(String, IProgressMonitor, boolean) line: 703 DebugUIPlugin.buildAndLaunch(ILaunchConfiguration, String, IProgressMonitor) line: 866 DebugUIPlugin$8.run(IProgressMonitor) line: 1069 Worker.run() line: 55