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"
<test path="/MyProject/test1.testsuite" />
<browser name="chrome" />

When I try to run the above XML using run button, I get bellow error-
at org.eclipse.jet.internal.launch.JET2TransformationDelegate.internalGetReferencedProjects(
at org.eclipse.jet.internal.launch.JET2TransformationDelegate.getReferencedWorkspaceProjects(
at org.eclipse.jet.internal.launch.JET2TransformationDelegate.getBuildOrder(
at org.eclipse.debug.core.model.LaunchConfigurationDelegate.saveBeforeLaunch(
at org.eclipse.debug.core.model.LaunchConfigurationDelegate.preLaunchCheck(
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(
at org.eclipse.debug.internal.ui.DebugUIPlugin$

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: 7627
Registered: July 2009
Senior Member

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.


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: Mon Oct 02 10:26:38 GMT 2023

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

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

Back to the top