Throw NullPointerException when run from CMD

Hi @ti.wang01, @qatools

Please update to v7.7.2 for the fix.

Thanks

Hi @duyluong,
In fact, this issue is still reproducing on v7.7.2:
Start reloading plugins…
Katalon version: 7.7.2
Plugin info URL: https://store.katalon.com/api/products/ks?appVersion=7.7.2&appType=ENGINE&licenseType=ENTERPRISE

Fri Oct 16 11:23:23 CST 2020
java.lang.NullPointerException
** at com.kms.katalon.util.jdt.JDTUtil.findMethod(JDTUtil.java:47)**
** at com.kms.katalon.custom.parser.CustomKeywordParser.findJavadoc(CustomKeywordParser.java:299)**
** at com.kms.katalon.custom.parser.CustomKeywordParser.collectMethodJavadocs(CustomKeywordParser.java:292)**
** at com.kms.katalon.custom.parser.CustomKeywordParser.parseCustomKeywordFile(CustomKeywordParser.java:278)**
** at com.kms.katalon.custom.parser.CustomKeywordParser.parseProjectCustomKeywords(CustomKeywordParser.java:81)**
** at com.kms.katalon.controller.KeywordController.parseAllCustomKeywords(KeywordController.java:152)**
** at com.kms.katalon.activation.plugin.service.PluginService.refreshProjectClasspath(PluginService.java:402)**
** at com.kms.katalon.activation.plugin.service.PluginService.reloadPlugins(PluginService.java:231)**
** at com.kms.katalon.activation.plugin.handler.ConsoleModeReloadPluginsHandler.reload(ConsoleModeReloadPluginsHandler.java:22)**
** 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 com.kms.katalon.execution.console.ConsoleMain.reloadPlugins(ConsoleMain.java:384)**
** at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:311)**
** at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:37)**
** at com.kms.katalon.application.Application.runConsole(Application.java:125)**
** at com.kms.katalon.application.Application.start(Application.java:88)**
** at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)**
** at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)**
** at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)**
** at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)**
** at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)**
** 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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)**
** at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)**
** at org.eclipse.equinox.launcher.Main.run(Main.java:1519)**

1 Like

I am experiencing the same problem using KRE and version 7.7.2.

EDIT: Tried version 7.8.0, same problem.

Hi @Nilau,
Thank you for your report. We will have a look into this issue again.

I can confirm this issue with 7.7.2 as well

hallo @huynguyen

any update about this issue? i try at jenkins katalon v7.7.2

java.lang.NullPointerException
at com.kms.katalon.util.jdt.JDTUtil.findMethod(JDTUtil.java:47)
at com.kms.katalon.custom.parser.CustomKeywordParser.findJavadoc(CustomKeywordParser.java:299)
at com.kms.katalon.custom.parser.CustomKeywordParser.collectMethodJavadocs(CustomKeywordParser.java:292)
at com.kms.katalon.custom.parser.CustomKeywordParser.parseCustomKeywordFile(CustomKeywordParser.java:278)
at com.kms.katalon.custom.parser.CustomKeywordParser.parseProjectCustomKeywords(CustomKeywordParser.java:81)

Hi @ti.wang01, @yoyox98, @qatools, @Nilau, @clif.molina, @Alwan_Firdaus,
We have built the package 7.7.8.rc2 including the fix for this issue. Please download it at https://github.com/katalon-studio/katalon-studio/releases/tag/v7.7.8.rc2 and try again.

1 Like

hallo @huynguyen

thank you. i will try and soon to report it again

Glad to hear that, @Alwan_Firdaus. If the problem still persists, please share with us your whole project, via private messages, for further investigation.

sorry @huynguyen

this version just application of katalon? how if i want to update on docker image? because my problem when running on jenkins with docker image

this is my sample

Hi @Alwan_Firdaus,
We haven’t built the Docker image for this version, as it is still the release candidate. To have the fix available in the official release, I need to be confirmed that the fix actually works when you use the standalone KRE.

hallo @huynguyen

if i try in running in local with GUI, not from jenkins, the log is

WARN  com.kms.katalon.core.util.KeywordUtil    - com.fasterxml.aalto.WFCException: Illegal character (NULL, unicode 0) encountered: not valid in any content
 at [row,col {unknown-source}]: [897,284]
	at com.fasterxml.aalto.in.XmlScanner.reportInputProblem(XmlScanner.java:1333)
	at com.fasterxml.aalto.in.XmlScanner.throwNullChar(XmlScanner.java:1503)
	at com.fasterxml.aalto.in.XmlScanner.handleInvalidXmlChar(XmlScanner.java:1517)
	at com.fasterxml.aalto.in.ReaderScanner.finishCharacters(ReaderScanner.java:1820)
	at com.fasterxml.aalto.in.ReaderScanner.finishToken(ReaderScanner.java:152)
	at com.fasterxml.aalto.in.XmlScanner.getText(XmlScanner.java:546)
	at com.fasterxml.aalto.stax.StreamReaderImpl.getText(StreamReaderImpl.java:582)
	at com.kms.katalon.core.logging.XMLLoggerParser.readCharacters(XMLLoggerParser.java:300)
	at com.kms.katalon.core.logging.XMLLoggerParser.readRecord(XMLLoggerParser.java:176)
	at com.kms.katalon.core.logging.TestSuiteXMLLogParser.processFile(TestSuiteXMLLogParser.java:92)
	at com.kms.katalon.core.logging.TestSuiteXMLLogParser.readTestSuiteLogFromXMLFiles(TestSuiteXMLLogParser.java:58)
	at com.kms.katalon.core.reporting.ReportWriterUtil.generate(ReportWriterUtil.java:390)
	at com.kms.katalon.core.reporting.ReportWriterUtil.generate(ReportWriterUtil.java:395)
	at com.kms.katalon.core.reporting.ReportWriterUtil$generate.call(Unknown Source)
	at KatalonReportListener.exportKatalonReports(KatalonReportListener.groovy:32)
	at KatalonReportListener.invokeMethod(KatalonReportListener.groovy)
	at com.kms.katalon.core.context.internal.TestHooker.invokeMethod(TestHooker.java:111)
	at com.kms.katalon.core.context.internal.TestHooker.lambda$3(TestHooker.java:95)
	at com.kms.katalon.core.context.internal.TestHooker.invokeContextMethods(TestHooker.java:94)
	at com.kms.katalon.core.context.internal.TestListenerCollector.lambda$3(TestListenerCollector.java:88)
	at com.kms.katalon.core.context.internal.TestListenerCollector.handleListenerEvent(TestListenerCollector.java:85)
	at com.kms.katalon.core.context.internal.ExecutionEventManager.publicEvent(ExecutionEventManager.java:36)
	at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:98)
	at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
	at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
	at TempTestSuite1606190273957.run(TempTestSuite1606190273957.groovy:39)

@huynguyen

and the report “.html” not generate

Screen Shot 2020-11-24 at 11.08.55

Hi @Alwan_Firdaus,

Please share the execution0.log file to us in private chat

hi @duyluong @huynguyen

i see the problem after see the “execution0.log” … there is something in generate log, there is “NULL” like character, but if you copy and paste the line to another text edit, “NULL” character not present.

this the line error

Hello everyone

The issue of not being able to generate execution reports when WebUI.comment contains invalid XML characters is fixed in version 7.8.2, which is available for upgrade.

Learn more about this version.

Happy Testing

Jass

hi @Jass

thanks for update.
are you guys going to release an updated docker image for 7.8.2?

Hello @Alwan_Firdaus

Katalon Docker Image 7.8.2 is available for your usage.

Jass