|
Re: Internal Error occured during " launching SampleTest.java" TestNG class [message #1779839 is a reply to message #1779838] |
Sun, 14 January 2018 11:40 |
Ed Merks Messages: 33140 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.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.08149 seconds