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 457 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: 7655
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 423 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: 7655
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 messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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
Re: Error on model to text transformation in Acceleo [message #1860047 is a reply to message #1807363] Thu, 13 July 2023 18:14 Go to previous message
Ayoub Ayoub is currently offline Ayoub AyoubFriend
Messages: 1
Registered: July 2023
Junior Member
Hi Mohammad Inayatullah,

I saw that you fixed your problem, could you tell me please how you did it because I have the same problem.

Regards.
Ayoub.
Previous Topic:[Acceleo] Problem when accessing a property of an instance of the meta-class PrimitiveType
Next Topic:[Acceleo] Generate code from SHACL Shapes
Goto Forum:
  


Current Time: Tue Apr 23 10:28:50 GMT 2024

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

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

Back to the top