The ATL Plugin creation wizard normally reflects the source/target metamodels that are detected when selecting the concerned transformation.
Maybe your problem comes from the loading/saving of the models (via calls to the generated "loadModels"/"saveModels" methods) before actually executing the transformation.
Checking the full detail of the stack trace could also help to identify the location of the error.
I'm still getting this error, I changed the files name (metamodels), however the error is the same.
The error is where you said, in LoadModels but I don't have any idea how to solve it.
Exception in thread "main" java.lang.NullPointerException
Is there another idea about what could be done to solve it?
Are you sure the URI (String) you are passing to the load method is actually correct?
If it is a file path, you have to check that your project class path or base directory is configured accordingly.
For instance in this example, the indicated base directory is a given project in the workspace.
Thanks Hugo, but I used this code and I got the same error. I really don't know what I'm doing wrong, I used the correct names.
I don't know if the problem could be because as I'm using 2 source metamodels in ATL and then I need to put a "name" to the second source metamodel, like:
IN: metamodel1, metamodel2: metamodelNew;
I'll try again using this code to solve the problem.