Getting NullPointerException while running JET Transformation Project in Eclipse [message #1826886] |
Mon, 04 May 2020 01:10  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04151 seconds