Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Error on model to text transformation in Acceleo
Error on model to text transformation in Acceleo [message #1807266] Mon, 27 May 2019 09:35 Go to next message
Mohammad Inayatullah is currently offline Mohammad InayatullahFriend
Messages: 21
Registered: May 2019
Junior Member
I am beginner in Acceleo usage. i have written the bellow transformation code

[comment encoding = UTF-8 /]
[module generate('http://www.eclipse.org/uml2/5.0.0/UML')]


[template public generateElement(m : Model)]
[comment @main/]
[file (m.name, false, 'UTF-8')]

[m.name/]
Let me type some free text

[/file]
[/template]

When i run this i am getting the following error
"An exception occurred while dispatching debug events."

Exception stack track is

java.lang.NullPointerException
at org.eclipse.acceleo.internal.ide.ui.debug.model.AcceleoProcess.getAttribute(AcceleoProcess.java:56)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.deleteProcessTempFiles(LaunchingPlugin.java:1211)
at org.eclipse.jdt.internal.launching.LaunchingPlugin.handleDebugEvents(LaunchingPlugin.java:1203)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1137)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1171)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:444)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

index.php/fa/35640/0/

Can any on please guide me that how can i resolve this..

Thanks
  • Attachment: Error.PNG
    (Size: 125.69KB, Downloaded 80 times)
Re: Error on model to text transformation in Acceleo [message #1807291 is a reply to message #1807266] Mon, 27 May 2019 14:47 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6481
Registered: July 2009
Senior Member
Hi

Without a repro, it's hard to tell. I might guess that m.name is null, which might be because you didn't read the comments about initializing UML correctly in the generated main.

Try following a tutorial.

Regards

Ed Willink
Re: Error on model to text transformation in Acceleo [message #1807306 is a reply to message #1807291] Mon, 27 May 2019 22:49 Go to previous messageGo to next message
Mohammad Inayatullah is currently offline Mohammad InayatullahFriend
Messages: 21
Registered: May 2019
Junior Member
Thanks for your quick response.

I have removed the m.name but still the issue is existing.

index.php/fa/35645/0/

Can you please suggest me some good tutorial.

Thanks
  • Attachment: Error-2.PNG
    (Size: 104.13KB, Downloaded 59 times)
Re: Error on model to text transformation in Acceleo [message #1807315 is a reply to message #1807306] Tue, 28 May 2019 04:47 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6481
Registered: July 2009
Senior Member
Hi

Have you tried Googling "Acceleo tutorial"?

Regards

Ed Willink
Re: Error on model to text transformation in Acceleo [message #1807357 is a reply to message #1807315] Tue, 28 May 2019 13:09 Go to previous messageGo to next message
Mohammad Inayatullah is currently offline Mohammad InayatullahFriend
Messages: 21
Registered: May 2019
Junior Member
I am following this tutorial

https://www.youtube.com/watch?v=42jkrOWA9RE&t=155s

but as for as i am guessing the issue is in configuration of eclipse.
Re: Error on model to text transformation in Acceleo [message #1807363 is a reply to message #1807357] Tue, 28 May 2019 14:59 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6481
Registered: July 2009
Senior Member
Hi

Good luck with YouTube. Sometimes it can be useful for DIY difficulties but not for software. Read a real tutorial.

Regards

Ed Willink
Previous Topic:M2T Ecore2XML / Ecore2JSON Tutorial/Guide/Help
Next Topic:[Acceleo] For loop generate extra white line iterating on Set<Association>
Goto Forum:
  


Current Time: Tue Oct 15 11:51:54 GMT 2019

Powered by FUDForum. Page generated in 0.02519 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top