[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [henshin-dev] Problem with rule-nesting
|
Hi Christian,
Thank you for your answer.
Now I can reproduce the NPE :
Exception in thread "main" java.lang.NullPointerException
at
org.eclipse.emf.henshin.interpreter.impl.ChangeImpl$ReferenceChangeImpl.applyAndReverse(ChangeImpl.java:230)
at
org.eclipse.emf.henshin.interpreter.impl.ChangeImpl$CompoundChangeImpl.applyAndReverse(ChangeImpl.java:470)
at
org.eclipse.emf.henshin.interpreter.impl.RuleApplicationImpl.execute(RuleApplicationImpl.java:106)
at
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.executeRule(UnitApplicationImpl.java:175)
at
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.doExecute(UnitApplicationImpl.java:99)
at
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.execute(UnitApplicationImpl.java:89)
at
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.executeSequentialUnit(UnitApplicationImpl.java:222)
at
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.doExecute(UnitApplicationImpl.java:103)
at
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.execute(UnitApplicationImpl.java:89)
at
org.eclipse.emf.henshin.interpreter.util.InterpreterUtil.executeOrDie(InterpreterUtil.java:254)
at org.eclipse.example.Left2Right.main(Left2Right.java:35)
The sources of my example are enclosed.
Regards,
Sebastien
Le 27/01/2015 19:11, Christian Krause a
écrit :
Hi Sebastien,
the save method you internally uses the method
ResourcesSet.createResource(), see
The JavaDoc reads: It delegates to the resource
factory registry to determine the correct factory, and then it uses that
factory to create the resource and adds it to the contents . If there is no registered
factory, null will be returned; when running
within Eclipse, a default XMI factory will be registered,
and this will never return null .
In your case, you are trying to
save the model into a file with the extension *.right. There
is no resource factory registered for this file extension.
You have two options: either register a resource factory for
the "right" extension, or save it as an *.xmi file.
Cheers,
Christian
_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/henshin-dev
--
|
Attachment:
Left2Right_src.zip
Description: Zip compressed data