Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Getting NullPointerException while running JET Transformation Project in Eclipse(JET2Transformation)
Getting NullPointerException while running JET Transformation Project in Eclipse [message #1826886] Mon, 04 May 2020 05:10 Go to next message
Bhupali Baishya is currently offline Bhupali BaishyaFriend
Messages: 1
Registered: May 2020
Junior Member
I am developing an application on top of Eclipse utilizing JET.
My JET Transformation XML file looks like below-

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<inits id="N09FE010088811E9BBD787A845960DD4"
type="com.deepanwita.org.test.ft.aftsuite">
<group>
<tests>
<test path="/MyProject/test1.testsuite" />
</tests>
<browsers>
<browser name="chrome" />
</browsers>
</group>
</inits>



When I try to run the above XML using run button, I get bellow error-
java.lang.NullPointerException
at org.eclipse.jet.internal.launch.JET2TransformationDelegate.internalGetReferencedProjects(JET2TransformationDelegate.java:138)
at org.eclipse.jet.internal.launch.JET2TransformationDelegate.getReferencedWorkspaceProjects(JET2TransformationDelegate.java:104)
at org.eclipse.jet.internal.launch.JET2TransformationDelegate.getBuildOrder(JET2TransformationDelegate.java:84)
at org.eclipse.debug.core.model.LaunchConfigurationDelegate.saveBeforeLaunch(LaunchConfigurationDelegate.java:261)
at org.eclipse.debug.core.model.LaunchConfigurationDelegate.preLaunchCheck(LaunchConfigurationDelegate.java:214)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:840)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)




I have two options

Either handle null pointer Exception(better giving customed informative message) or
Disable the run button while XML editor is opened

Please guide me. Thanks
Re: Getting NullPointerException while running JET Transformation Project in Eclipse [message #1827077 is a reply to message #1826886] Wed, 06 May 2020 16:35 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6846
Registered: July 2009
Senior Member
Hi

I think there is a misunderstanding. JET is an M2T tool. It does not take an XML input, so I suspect that you are doing something a bit crazy and that is what the NPE is telling you.

Regards

Ed Willink
Previous Topic:Find property value over a set
Next Topic:[Acceleo] Remove trailing white spaces in generated Java wrapper
Goto Forum:
  


Current Time: Sat Sep 26 10:58:02 GMT 2020

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

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

Back to the top