Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-user] (no subject)

Dear Loic,

there is an a FAQ entry about null pointer exceptions (NPEs) while executing a transformation, have you checked it?

Besides that, if possible, it would help us if you can attach the Java code, so we can look at it (I assume you modified it a bit so that it matches your transformation).

Best regards,

Am 07.02.2017 um 23:48 schrieb loic.gammaitoni@xxxxxxxxx:

Dear mailing list readers,

I’m interested in measuring the time needed by Henshin to execute a transformation (see attached cdrefinement.henshin) on a given xmi model ( size10.xmi conforming to CD.ecore). The transformation works great when running through eclipse but unfortunately I can’t see any log of the time it took to be computed.
I thus tried my luck in developing a small java application running the transformation and printing out the time taken and can’t get rid of a NullPointerException...
Here is the stacktrace: (note that I simply reused the code given in the henshin interpreter web page)

Exception in thread "main" java.lang.NullPointerException

                at org.eclipse.emf.ecore.impl.EClassImpl.getFeatureID(

                at org.eclipse.emf.ecore.impl.DynamicEObjectImpl.eDerivedStructuralFeatureID(

                at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(

                at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(

                at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(

                at org.eclipse.emf.henshin.interpreter.impl.ChangeImpl$AttributeChangeImpl.applyAndReverse(

                at org.eclipse.emf.henshin.interpreter.impl.ChangeImpl$CompoundChangeImpl.applyAndReverse(

                at org.eclipse.emf.henshin.interpreter.impl.RuleApplicationImpl.undo(

                at org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.undo(

                at org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.executeSequentialUnit(

                at org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.doExecute(

                at org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.execute(

                at Interpreter.interpret(

                at Main.main(

Do you have any idea what causes this error ?

Also, is there a way to get the time taken by henshin to execute a transformation directly in eclipse ( without having to program anything )






henshin-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top