Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Internal Error occured during " launching SampleTest.java" TestNG class(TestNG class wont run - Internal Error)
Internal Error occured during " launching SampleTest.java" TestNG class [message #1779838] Sun, 14 January 2018 09:21 Go to next message
abhinav venkata is currently offline abhinav venkataFriend
Messages: 1
Registered: January 2018
Junior Member
I am unable to run my TestNG class , It throws Internal Error occured during " launching SampleTest.java" source not specified , Please help troubleshoot issue

Stack Trace:

java.lang.IllegalStateException: source not specified
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:813)
at org.testng.eclipse.util.param.ParameterSolver.getParserNode(ParameterSolver.java:135)
at org.testng.eclipse.util.param.ParameterSolver.parseParameterNames(ParameterSolver.java:125)
at org.testng.eclipse.util.param.ParameterSolver.solveParameters(ParameterSolver.java:112)
at org.testng.eclipse.util.param.ParameterSolver.getParameterNames(ParameterSolver.java:90)
at org.testng.eclipse.util.param.ParameterSolver.solveParameters(ParameterSolver.java:59)
at org.testng.eclipse.ui.util.ConfigurationHelper.getLaunchSuites(ConfigurationHelper.java:422)
at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.createVMRunner(TestNGLaunchConfigurationDelegate.java:296)
at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.launchTypes(TestNGLaunchConfigurationDelegate.java:161)
at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.launch(TestNGLaunchConfigurationDelegate.java:91)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
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)
Re: Internal Error occured during " launching SampleTest.java" TestNG class [message #1779839 is a reply to message #1779838] Sun, 14 January 2018 11:40 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29599
Registered: July 2009
Senior Member
Looking at the code for ASTParser.createAST:
	public ASTNode createAST(IProgressMonitor monitor) {
		SubMonitor subMonitor = SubMonitor.convert(monitor, 1);
		ASTNode result = null;
		try {
			if (this.rawSource == null && this.typeRoot == null) {
				throw new IllegalStateException("source not specified"); //$NON-NLS-1$
			}
			result = internalCreateAST(subMonitor.split(1));
		} finally {
			// reset to defaults to allow reuse (and avoid leaking)
			initializeDefaults();
		}
		return result;
	}
it's clear that none of the ASTParser.setSource methods have been called to initialize the parser. But everything below that point in the stack is org.testng and unless some other user knows what TestNG is doing I can't help with that. Perhaps https://groups.google.com/forum/#!forum/testng-users would be a better place to ask.
Previous Topic:Eclipse Openhab installation failed
Next Topic:Subclipse problem
Goto Forum:
  


Current Time: Mon Oct 22 08:31:03 GMT 2018

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

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

Back to the top