Katalon Basic Report - Exception during start of test suite execution


#1

In old project which are using the previous version of the Katalon Basic Report
(before switching to Plugin-Version) won´t work with new Plugin-Version of Basic Report & Katalon.

Failed to auto configure default logger context
Reported exception:
ch.qos.logback.core.joran.spi.JoranException: Parser configuration error occurred
at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:86)
at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:57)
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:151)
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
at com.kms.katalon.core.main.LogbackConfigurator.overrideLogLevels(LogbackConfigurator.java:58)
at com.kms.katalon.core.main.LogbackConfigurator.init(LogbackConfigurator.java:35)
at com.kms.katalon.core.main.TestCaseMain.beforeStart(TestCaseMain.java:54)
at com.kms.katalon.core.main.TestCaseMain$beforeStart.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at TempTestSuite1562856641024.run(TempTestSuite1562856641024.groovy:33)
at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:265)
at groovy.lang.GroovyShell.run(GroovyShell.java:378)
at groovy.lang.GroovyShell.run(GroovyShell.java:367)
at groovy.ui.GroovyMain.processOnce(GroovyMain.java:589)
at groovy.ui.GroovyMain.run(GroovyMain.java:332)
at groovy.ui.GroovyMain.access$1400(GroovyMain.java:69)
at groovy.ui.GroovyMain$GroovyCommand.process(GroovyMain.java:291)
at groovy.ui.GroovyMain.processArgs(GroovyMain.java:134)
at groovy.ui.GroovyMain.main(GroovyMain.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:114)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:136)
Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:79)
… 34 more
16:50:45,127 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [C:\Tools\Katalon_Studio_Windows_64-6.2.1\configuration\org.eclipse.osgi\67\0.cp\resources\logback\logback-console.xml] at [file:/C:/Tools/Katalon_Studio_Windows_64-6.2.1/configuration/org.eclipse.osgi/67/0/.cp/resources/logback/logback-console.xml]
16:50:45,159 |-ERROR in ch.qos.logback.core.joran.event.SaxEventRecorder@93081b6 - Parser configuration error occurred java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
at java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
at at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:79)
at at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:57)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:151)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
at at com.kms.katalon.core.main.LogbackConfigurator.overrideLogLevels(LogbackConfigurator.java:58)
at at com.kms.katalon.core.main.LogbackConfigurator.init(LogbackConfigurator.java:35)
at at com.kms.katalon.core.main.TestCaseMain.beforeStart(TestCaseMain.java:54)
at at com.kms.katalon.core.main.TestCaseMain$beforeStart.call(Unknown Source)
at at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at at TempTestSuite1562856641024.run(TempTestSuite1562856641024.groovy:33)
at at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:265)
at at groovy.lang.GroovyShell.run(GroovyShell.java:378)
at at groovy.lang.GroovyShell.run(GroovyShell.java:367)
at at groovy.ui.GroovyMain.processOnce(GroovyMain.java:589)
at at groovy.ui.GroovyMain.run(GroovyMain.java:332)
at at groovy.ui.GroovyMain.access$1400(GroovyMain.java:69)
at at groovy.ui.GroovyMain$GroovyCommand.process(GroovyMain.java:291)
at at groovy.ui.GroovyMain.processArgs(GroovyMain.java:134)
at at groovy.ui.GroovyMain.main(GroovyMain.java:116)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at at java.lang.reflect.Method.invoke(Method.java:498)
at at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:114)
at at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:136)
SLF4J: The requested version 1.7.16 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.

Warning: Caught exception attempting to use SAX to load a SAX XMLReader
java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.XMLReaderWarning: Exception was: java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.XMLReader
Warning: I will print the stack trace then carry on using the default SAX parser

at org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:83)
at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894)
at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715)
at org.dom4j.io.SAXReader.read(SAXReader.java:435)
at org.dom4j.io.SAXReader.read(SAXReader.java:264)
at com.kms.katalon.core.testcase.TestCaseFactory.readTestCase(TestCaseFactory.java:79)
at com.kms.katalon.core.testcase.TestCaseFactory.findTestCase(TestCaseFactory.java:70)
at com.kms.katalon.core.main.TestCaseExecutor.(TestCaseExecutor.java:88)
at com.kms.katalon.core.main.TestCaseExecutor.(TestCaseExecutor.java:97)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:130)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:116)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:83)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:144)
at TempTestSuite1562856641024.run(TempTestSuite1562856641024.groovy:35)
at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:265)
at groovy.lang.GroovyShell.run(GroovyShell.java:378)
at groovy.lang.GroovyShell.run(GroovyShell.java:367)
at groovy.ui.GroovyMain.processOnce(GroovyMain.java:589)
at groovy.ui.GroovyMain.run(GroovyMain.java:332)
at groovy.ui.GroovyMain.access$1400(GroovyMain.java:69)
at groovy.ui.GroovyMain$GroovyCommand.process(GroovyMain.java:291)
at groovy.ui.GroovyMain.processArgs(GroovyMain.java:134)
at groovy.ui.GroovyMain.main(GroovyMain.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:114)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:136)
Caught: java.lang.IllegalArgumentException: Cannot find test case ‘Test Cases/Tickets/File_Incoming_AdminCheck/TMPTS-366’.
Reason:
‘org.dom4j.DocumentException: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader’
java.lang.IllegalArgumentException: Cannot find test case ‘Test Cases/Tickets/File_Incoming_AdminCheck/TMPTS-366’.
Reason:
‘org.dom4j.DocumentException: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader’
at com.kms.katalon.core.testcase.TestCaseFactory.readTestCase(TestCaseFactory.java:98)
at com.kms.katalon.core.testcase.TestCaseFactory.findTestCase(TestCaseFactory.java:70)
at com.kms.katalon.core.main.TestCaseExecutor.(TestCaseExecutor.java:88)
at com.kms.katalon.core.main.TestCaseExecutor.(TestCaseExecutor.java:97)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:130)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:116)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:83)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1562856641024.run(TempTestSuite1562856641024.groovy:35)
Picked up _JAVA_OPTIONS: -Xmx512M

If i´m using a later created project (already using the latest version of Katalon with Report Plugin) it works perfect. No issues, no exception.


#2

Did you use external jars?
We indeed need some information to find the cause, so, please send me .classpath file (you can find it in your project). Thanks so much


#3

Yes, we are using external jars:

  • ant-1.9.9.jar
  • groovy-2.5.0.jar
  • ojdbc7.ar

.classpath.zip (1.8 KB)


#4

@Christian_Gudrich please remove this file groovy-2.5.0.jar


#5

@Alice

This file doesn´t exist in the project or program folder.
Only “groovy-all-2.4.7.jar” exists. After removing it, it´s not possible to open any project successfully.


#6

Oh sorry my mistake, this text have been edited


#8

@Alice
Thank you … after removing also:

import com.gargoylesoftware.htmlunit.javascript.host.dom.Comment as Comment

it works now.

Thank you & BR
Christian


Test execution is failing on starting the test suite
#9

For me this remove file will work.

Thanks Alice


#10

my issue was gradle dependancies
i just uncommented the below
dependencies {
// sample dependencies
// rest-assured
//compile ‘io.rest-assured:rest-assured:3.2.0’
// JsonPath
//compile ‘io.rest-assured:json-path:3.2.0’
// XmlPath
//compile ‘io.rest-assured:json-path:3.2.0’
// JSON Schema Validation
//compile ‘io.rest-assured:json-schema-validator:3.2.0’
}


#11

Hi, I have the same issue. I attached classpath here. Can you check my project, please? I appreciate that. I tried to remove groovy files, but asked to remove manually from folder. So I did, but katalon still shows on the project settings. Also, I uncommented all dependencies from gradle. I am not sure if this is from Any help would be appreciated. Thank you.

classpathtextfile.txt (18.9 KB)


#12

Thank you Alice, It’s works for me