Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Internal Error occured during " launching" TestNG class(TestNG class wont run - Internal Error)
Internal Error occured during " launching" 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" source not specified , Please help troubleshoot issue

Stack Trace:

java.lang.IllegalStateException: source not specified
at org.eclipse.jdt.core.dom.ASTParser.createAST(
at org.testng.eclipse.util.param.ParameterSolver.getParserNode(
at org.testng.eclipse.util.param.ParameterSolver.parseParameterNames(
at org.testng.eclipse.util.param.ParameterSolver.solveParameters(
at org.testng.eclipse.util.param.ParameterSolver.getParameterNames(
at org.testng.eclipse.util.param.ParameterSolver.solveParameters(
at org.testng.eclipse.ui.util.ConfigurationHelper.getLaunchSuites(
at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.createVMRunner(
at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.launchTypes(
at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.launch(
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$
Re: Internal Error occured during " launching" 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: 31229
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)
		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!forum/testng-users would be a better place to ask.
Previous Topic:Eclipse Openhab installation failed
Next Topic:Subclipse problem
Goto Forum:

Current Time: Sat Jul 04 06:49:19 GMT 2020

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

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

Back to the top