Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312380 - NPE in ATL when using "Discover UML model from KDM model"
Summary: NPE in ATL when using "Discover UML model from KDM model"
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.8.1   Edit
Assignee: Fabien Giquel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 315355 (view as bug list)
Depends on: 312553
Blocks:
  Show dependency tree
 
Reported: 2010-05-11 04:28 EDT by Nicolas Bros CLA
Modified: 2011-05-23 09:29 EDT (History)
5 users (show)

See Also:
fabien.giquel: helios+
fabien.giquel: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2010-05-11 04:28:46 EDT
- Install Eclipse 3.6M7 with MoDisco M7
- Import "org.eclipse.core.runtime" ("Import... > Plug-ins and Fragments", "Projects with source folders")
- Right click on the project and use "MoDisco > Discover KDM source model from container"
- The right-click on the "org.eclipse.core.runtime_Source.kdm" file that appeared and select "Discover UML model from KDM model"

You get the following error:

An internal error occurred during: "Convert KDM model to UML".

java.lang.NullPointerException
at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:354)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:173)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:130)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:78)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:251)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:173)
at org.eclipse.m2m.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:346)
at org.eclipse.m2m.atl.core.ui.vm.RegularVMLauncher.internalLaunch(RegularVMLauncher.java:253)
at org.eclipse.m2m.atl.core.ui.vm.RegularVMLauncher.launch(RegularVMLauncher.java:164)
at org.eclipse.gmt.modisco.kdm.uml2converter.KDMtoUML2Converter$1.run(KDMtoUML2Converter.java:218)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

But the UML file is created anyway, and opens in the UML editor.
Comment 1 Fabien Giquel CLA 2010-05-21 10:12:43 EDT
A fix has been commited.

About bug dependance : 312553 is more a problem of displaying a human understandable message on a atl execution issue.
The real cause of the problem was at the atl line :

for (detachedClass in thisModule->findExternalPackage().codeElement) {...

"thisModule->findExternalPackage()" was null in the case of a kdm.source model

Fabien.
Comment 2 Fabien Giquel CLA 2010-06-03 06:38:51 EDT
*** Bug 315355 has been marked as a duplicate of this bug. ***
Comment 3 Fabien Giquel CLA 2010-07-22 05:22:45 EDT
The fix has also been commited into 0.8 branch for Helios SR1.
Comment 4 Hugo Bruneliere CLA 2010-10-04 12:57:45 EDT
Bug fixed.