BUG! exception in phase ‘semantic analysis’ in source unit

With Katalon 5.9.1 : while running the script getting below Error.

SLF4J: The requested version 1.7.16 by your slf4j binding is not compatible with [1.6]

ClassNode#getTypeClass for Script1543409072235 is called before the type class is set

How to resolve this Error ?

4 Likes

I am also facing the same issue in both 5.9.0 and 5.9.1. But haven’t faced this issue in 5.7.1

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.

2018-11-29 18:40:30.158 INFO k.katalon.core.main.TestCaseExecutor --------------------

2018-11-29 18:40:30.158 INFO k.katalon.core.main.TestCaseExecutor
-START Test Cases/QM/Individual_Performance_Testing/Copy_SQ_AIR_FCL_LCL_Quote_With_Latest_Rates

2018-11-29 18:40:31.531 ERROR k.katalon.core.main.TestCaseExecutor -:x: Test
Cases/QM/Individual_Performance_Testing/Copy_SQ_AIR_FCL_LCL_Quote_With_Latest_Rates
FAILED.

Reason:

BUG! exception in phase
‘semantic analysis’ in source unit
‘file:/C:/Users/nam/Automation_Script/Quote/Scripts/QM/Performance/1_Manage%20Quotation%20Menu_2/Script1542352189669.groovy’

ClassNode#getTypeClass for
Script1542352189669 is called before the type class is set

com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:252

Reason:e[0;39me[31mBUG! exception in phase 'semantic analysis' in source unit 'file:/C:/Users/nam/Automation_Script/Quote/Scripts/QM/Performance/1_Manage%20Quotation%20Menu_2/Script1542352189669.groovy' ClassNode#getTypeClass for Script1542352189669 is called before the type class is set e[0;39me[31m	at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:252)e[0;39me[31m	at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:181)e[0;39me[31m	at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:292)e[0;39me[31m	at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:185)e[0;39me[31m	at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:274)e[0;39me[31m	at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:183)e[0;39me[31m	at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:101)e[0;39me[31m	at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:71)e[0;39me[31m	at com.kms.katalon.core.ast.AstTestStepTransformation.getKeywordNameForStatement(AstTestStepTransformation.groovy:306)e[0;39me[31m	at com.kms.katalon.core.ast.AstTestStepTransformation.visit(AstTestStepTransformation.groovy:254)e[0;39me[31m	at com.kms.katalon.core.ast.AstTestStepTransformation.visit(AstTestStepTransformation.groovy:78)e[0;39me[31m	at com.kms.katalon.core.main.ScriptEngine.getScript(ScriptEngine.java:199)e[0;39me[31m	at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)e[0;39me[31m	at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)e[0;39me[31m	at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:321)e[0;39me[31m	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:312)e[0;39me[31m	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:291)e[0;39me[31m	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:283)e[0;39me[31m	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:222)e[0;39me[31m	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:106)e[0;39me[31m	at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword$_callTestCase_closure1.doCall(CallTestCaseKeyword.groovy:59)e[0;39me[31m	at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword$_callTestCase_closure1.call(CallTestCaseKeyword.groovy)e[0;39me[31m	at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:54)e[0;39me[31m	at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword.callTestCase(CallTestCaseKeyword.groovy:80)e[0;39me[31m	at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword.execute(CallTestCaseKeyword.groovy:44)e[0;39me[31m	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53)e[0;39me[31m	at com.kms.katalon.core.keyword.BuiltinKeywords.callTestCase(BuiltinKeywords.groovy:334)e[0;39me[31m	at Performance.run(Performance:18)

1 Like

Have same problem after update 5.8.X to 5.9.1 in some test cases

BUG! exception in phase ‘semantic analysis’ in source unit ‘file:/F:/D/Katalon/MainForRosagrostroy/Scripts/CurrentBugs/Chackmate/Script1535636558656.groovy’ ClassNode#getTypeClass for Script1535636558656 is called before the type class is set

at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:252)

at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:181)

at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:228)

at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:195)

at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:230)

at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:97)

at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:73)

at com.kms.katalon.core.ast.AstTestStepTransformation.getKeywordNameForStatement(AstTestStepTransformation.groovy:306)

at com.kms.katalon.core.ast.AstTestStepTransformation.visit(AstTestStepTransformation.groovy:254)

at com.kms.katalon.core.ast.AstTestStepTransformation.visit(AstTestStepTransformation.groovy:78)

at com.kms.katalon.core.main.ScriptEngine.getScript(ScriptEngine.java:199)

at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)

at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)

at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:321)

at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:312)

at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:291)

at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:283)

at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:222)

at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:106)

at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:97)

at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)

at TempTestCase1543559056395.run(TempTestCase1543559056395.groovy:22)

1 Like

I found possible solution. In some test cases me use functions. If remove word “static” before them this error is gone.

2 Likes

Hello Joël ANGEVELLE ,

Given solution is not working for me. I have tried in 5.9.1

1 Like

Have the same issue:

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.

Caught: java.lang.IllegalArgumentException: Cannot find test case ‘Test Cases/Login HRM’

java.lang.IllegalArgumentException: Cannot find test case ‘Test Cases/Login HRM’

at com.kms.katalon.core.testcase.TestCaseFactory.findTestCase(TestCaseFactory.java:72)

at com.kms.katalon.core.main.TestCaseExecutor.(TestCaseExecutor.java:87)

at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)

at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:97)

at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)

at TempTestCase1543584695416.run(TempTestCase1543584695416.groovy:22)

1 Like

In my case the bug was related to filepath with letter ø: C:\Users\øyvindDownloads\katalon

I created a new user with other username: C:\Users\development\Downloads\katalon then it worked.

1 Like

Alex said:

I found possible solution. In some test cases me use functions. If remove word “static” before them this error is gone.

Worked for me. Thanks!

1 Like

Hi,
i have the same issue, and all the fixed ideas above failed to me.
is it solved for anyone in another option/way? this is a very important issue for me.

TNX

1 Like

Same with me on Version 6.0.5 and no use of static keyword in the script at all.
Has someone able to resolve ?

1 Like

I am facing the same issue in Katalon 6.1.0 version ,I was using v 5.8.0 and i updated my katalon to latest release

1 Like

Remove static keyword from script and function also from test case file

1 Like

Hi Rahul_kansal,
Thank you for responding i tried by removing static keyword from script and test case . It didn’t work for me
I have one doubt, do i have to remove static keyword from imported classes

1 Like

This issue has been addressed in 6.1.2 beta.

3 Likes

Hi devalex88,
I downloaded latest beta version 6.1.2 and ran my test case.
I am running my test case using cucumber keywords
My Test File:
@RunWith(Cucumber. class)
@CucumberOptions(features = [“include/features/Moyo_Consumer/1.3Co_MyMoYos.feature”], glue = “”,tags=["@UnreadMoYoIndicationOnCategory"],
plugin =[“html:Reports”, “pretty”])
public class MyCucumberRunner {}
CucumberKW. runWithCucumberRunner(MyCucumberRunner.class)
Feature file: I have scenario and steps
Groovy File : I have written script inside groovy file
I am getting this Error:
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.
2019-04-11 15:25:07.905 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-04-11 15:25:07.920 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/New Test Case 1
2019-04-11 15:25:09.173 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/New Test Case 1 FAILED.
Reason:
BUG! exception in phase ‘semantic analysis’ in source unit ‘file:/C:/Users/Ramesh%20S%20Pujari/Katalon%20Studio/Lexin_Login_Project/Scripts/New%20Test%20Case%201/Script1554967903808.groovy’ ClassNode#getTypeClass for MyCucumberRunner is called before the type class is set
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:279)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:199)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:292)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:185)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:274)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:183)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:101)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:71)
at com.kms.katalon.core.ast.AstTestStepTransformation.getKeywordNameForStatement(AstTestStepTransformation.groovy:314)
at com.kms.katalon.core.ast.AstTestStepTransformation.visit(AstTestStepTransformation.groovy:262)
at com.kms.katalon.core.ast.AstTestStepTransformation.visit(AstTestStepTransformation.groovy:86)
at com.kms.katalon.core.main.ScriptEngine.getScript(ScriptEngine.java:199)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:336)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:327)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:306)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:298)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:232)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1554976503979.run(TempTestCase1554976503979.groovy:21)

2019-04-11 15:25:09.186 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/New Test Case 1

3 Likes

Dear Team,

Same issue i am also facing while running with cucumber.Can you please help me out

1 Like

2019-08-29 12:41:54.887 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/zObsolete/WIP/Cucumber/1_Login FAILED.
Reason:
BUG! exception in phase ‘semantic analysis’ in source unit ‘file:/C:/Users/rgurajala/Documents/FOCiS_OF_AF_JA/Scripts/zObsolete/WIP/Cucumber/1_Login/Script1566191712853.groovy’ ClassNode#getTypeClass for MyCucumberRunner is called before the type class is set
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:279)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:199)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:292)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:185)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:274)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:183)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:101)
at com.kms.katalon.core.ast.AstTextValueUtil.getTextValue(AstTextValueUtil.java:71)
at com.kms.katalon.core.ast.AstTestStepTransformation.getKeywordNameForStatement(AstTestStepTransformation.groovy:314)
at com.kms.katalon.core.ast.AstTestStepTransformation.visit(AstTestStepTransformation.groovy:262)
at com.kms.katalon.core.ast.AstTestStepTransformation.visit(AstTestStepTransformation.groovy:86)
at com.kms.katalon.core.main.ScriptEngine.getScript(ScriptEngine.java:199)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:336)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:327)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:306)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:298)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:232)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1567062709997.run(TempTestCase1567062709997.groovy:21)

2019-08-29 12:41:54.895 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/zObsolete/WIP/Cucumber/1_Login

1 Like

Hi @gurajalaravindra,

Please update Katalon Studio to the latest version v6.3.3.

Thanks

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.