Exporting Test Suite Reports to html Error


#1

I am getting “Unable to export Test Suite Collection report” error. I have already downloaded and installed the latest version, but didn’t fix the issue.

Screenshot (135).png


#2

Please provide us Katalon Studio logs as well. You can open Katalon Studio logs from this menu: Help -> Error Log.

Regards


#3

!ENTRY org.eclipse.jface 4 0 2018-11-20 20:41:32.706

!MESSAGE java.lang.ArrayIndexOutOfBoundsException: -1

!STACK 0

java.lang.ArrayIndexOutOfBoundsException: -1

at java.util.ArrayList.elementData(ArrayList.java:422)

at java.util.ArrayList.get(ArrayList.java:435)

at com.kms.katalon.composer.integration.analytics.preferences.AnalyticsPreferencesPage.updateDataStore(AnalyticsPreferencesPage.java:411)

at com.kms.katalon.composer.integration.analytics.preferences.AnalyticsPreferencesPage.performOk(AnalyticsPreferencesPage.java:256)

at org.eclipse.jface.preference.PreferenceDialog$8.run(PreferenceDialog.java:905)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)

at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)

at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:889)

at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:230)

at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)

at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)

at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)

at org.eclipse.jface.window.Window.open(Window.java:794)

at com.kms.katalon.composer.project.handlers.SettingHandler.execute(SettingHandler.java:167)

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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)

at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)

at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)

at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)

at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)

at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)

at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)

at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)

at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:433)

at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:454)

at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem$3.handleEvent(AbstractContributionItem.java:482)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)

at com.kms.katalon.core.application.Application.internalRunGUI(Application.java:115)

at com.kms.katalon.core.application.Application.runGUI(Application.java:100)

at com.kms.katalon.core.application.Application.start(Application.java:60)

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)


#4

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-11-20 20:38:11.280

!MESSAGE

!STACK 0

java.io.FileNotFoundException: C:\Users\Admin\Downloads\Katalon_Studio_Windows_32-5.8.6\pawtreeTEST\Reports\pawTree\20181120_185211\20181120_185211-2090238189.html

at com.kms.katalon.composer.report.handlers.ExportTSCollectionHTMLReportHandler.execute(ExportTSCollectionHTMLReportHandler.java:84)

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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)

at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)

at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)

at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)

at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)

at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)

at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)

at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)

at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:433)

at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:454)

at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem$3.handleEvent(AbstractContributionItem.java:482)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)

at com.kms.katalon.core.application.Application.internalRunGUI(Application.java:115)

at com.kms.katalon.core.application.Application.runGUI(Application.java:100)

at com.kms.katalon.core.application.Application.start(Application.java:60)

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)

Warning: NLS unused message: Key in: com.kms.katalon.composer.webui.constants.composerWebuiMessages

Warning: NLS missing message: DIA_CONFIRM_INSTALL_WEBDRIVER in: com.kms.katalon.composer.webui.constants.composerWebuiMessages

Warning: NLS missing message: DIA_CONFIRM_INSTALL_WEBDRIVER_TITLE in: com.kms.katalon.composer.webui.constants.composerWebuiMessages

Warning: NLS unused message: Key in: com.kms.katalon.composer.report.constants.composerReportMessages

Warning: NLS unused message: Key in: com.kms.katalon.composer.webservice.constants.composerWebserviceMessages

Warning: NLS unused message: PA_LBL_REST_PARAMS in: com.kms.katalon.composer.webservice.constants.composerWebserviceMessages

Warning: NLS missing message: WIEW_TITLE_SWAGGER in: com.kms.katalon.composer.webservice.constants.composerWebserviceMessages

Warning: NLS missing message: WIEW_TITLE_WSDL in: com.kms.katalon.composer.webservice.constants.composerWebserviceMessages

Warning: NLS missing message: VIEW_DIA_MSG_CREATE_NEW_WEBSERVICE_REQ_SWAGGER in: com.kms.katalon.composer.webservice.constants.composerWebserviceMessages

Warning: NLS missing message: VIEW_DIA_MSG_CREATE_NEW_WEBSERVICE_REQ_WSDL in: com.kms.katalon.composer.webservice.constants.composerWebserviceMessages

Warning: NLS unused message: LBL_DLG_AUTHENTICATE_EMAIL in: com.kms.katalon.composer.integration.analytics.constants.composerIntegrationAnalyticsMessages

Warning: NLS unused message: MSG_INFO_DLG_AUTHENTICATE_ENTER_USERNAME_PASSWORD in: com.kms.katalon.composer.integration.analytics.constants.composerIntegrationAnalyticsMessages

Warning: NLS missing message: LBL_DLG_AUTHENTICATE_USERNAME in: com.kms.katalon.composer.integration.analytics.constants.composerIntegrationAnalyticsMessages

Warning: NLS missing message: MSG_INFO_DLG_AUTHENTICATE_ENTER_EMAIL_PASSWORD in: com.kms.katalon.composer.integration.analytics.constants.composerIntegrationAnalyticsMessages


#5

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-11-20 20:38:11.280

!MESSAGE

!STACK 0

java.io.FileNotFoundException: C:\Users\Admin\Downloads\Katalon_Studio_Windows_32-5.8.6\pawtreeTEST\Reports\ForDogs ForCats\20181120_185211\20181120_185211-1952253387.html

at com.kms.katalon.composer.report.handlers.ExportTSCollectionHTMLReportHandler.execute(ExportTSCollectionHTMLReportHandler.java:84)

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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)

at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)

at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)

at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)

at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)

at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)

at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)

at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)

at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:433)

at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:454)

at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem$3.handleEvent(AbstractContributionItem.java:482)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)

at com.kms.katalon.core.application.Application.internalRunGUI(Application.java:115)

at com.kms.katalon.core.application.Application.runGUI(Application.java:100)

at com.kms.katalon.core.application.Application.start(Application.java:60)

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)


#6

Tue Nov 20 20:11:49 CST 2018

java.lang.NullPointerException

at com.kms.katalon.core.reporting.JsSuiteModel.(JsSuiteModel.java:29)

at com.kms.katalon.core.reporting.ReportUtil.prepareHtmlContent(ReportUtil.java:295)

at com.kms.katalon.core.reporting.ReportUtil.writeHtmlReport(ReportUtil.java:284)

at com.kms.katalon.execution.launcher.ReportableLauncher.prepareReport(ReportableLauncher.java:179)

at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:77)

at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:171)

at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:135)

at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:65)

at java.lang.Thread.run(Thread.java:748)


#7

Tue Nov 20 20:11:49 CST 2018

java.lang.NullPointerException

at com.kms.katalon.core.reporting.JsSuiteModel.(JsSuiteModel.java:29)

at com.kms.katalon.core.reporting.ReportUtil.prepareHtmlContent(ReportUtil.java:295)

at com.kms.katalon.core.reporting.ReportUtil.writeHtmlReport(ReportUtil.java:284)

at com.kms.katalon.execution.launcher.ReportableLauncher.prepareReport(ReportableLauncher.java:179)

at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:77)

at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:171)

at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:135)

at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:65)

at java.lang.Thread.run(Thread.java:748)


#8

Hey Katalon Devs,

I’d like to report an occurrence of this issue while running a Test Suite myself. The time elapsed running the test were close to 6 hours and that implies two things -

  1. A lot of screenshots were taken while step execution. In my cause, we are looking at 500 screenshots. This means the report is fairly large in terms of number of pages.

  2. Katalon Studio has gotten much better in terms of stability cause I was not able to get it to run the same script before this update for more than 20 minutes without getting slapped with a SocketHangupException.

I am running this on a Windows 10 machine with 8 gigs of RAM and an i7th(4th Gen) processor. I’ve tried to export the report in PDF as well as HTML format but was served with the following error:

“Error test suite report” has encountered a problem. An internal error occurred during: “Export test suite report”.


.
.

Katalon Logs are as follows:

!ENTRY org.eclipse.core.jobs 4 2 2019-07-16 08:48:41.587
!MESSAGE An internal error occurred during: "Export test suite report".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
	at com.lowagie.text.pdf.codec.PngImage.decodeIdat(Unknown Source)
	at com.lowagie.text.pdf.codec.PngImage.getImage(Unknown Source)
	at com.lowagie.text.pdf.codec.PngImage.getImage(Unknown Source)
	at com.lowagie.text.pdf.codec.PngImage.getImage(Unknown Source)
	at com.lowagie.text.Image.getInstance(Unknown Source)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:1621)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:1094)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportFrame(JRPdfExporter.java:3065)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:1102)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportFrame(JRPdfExporter.java:3065)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:1102)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportFrame(JRPdfExporter.java:3065)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:1102)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:1057)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:921)
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:538)
	at net.sf.jasperreports.engine.JasperExportManager.exportToPdfFile(JasperExportManager.java:156)
	at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:504)
	at com.kms.katalon.core.pdf.AbstractPdfReportGenerator.exportToPDF(AbstractPdfReportGenerator.java:92)
	at com.kms.katalon.core.reporting.plugin.KatalonExportReportProvider.exportTestSuite(KatalonExportReportProvider.java:86)
	at com.kms.katalon.core.reporting.ExportReportProvider$exportTestSuite$0.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149)
	at Script1.run(Script1.groovy:1)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
	at com.kms.katalon.composer.report.platform.ExportReportProviderReflection.exportTestSuite(ExportReportProviderReflection.java:65)
	at com.kms.katalon.composer.report.handlers.ExportTestSuiteReportHandler$1.run(ExportTestSuiteReportHandler.java:78)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.core.jobs 4 2 2019-07-16 08:50:37.938
!MESSAGE An internal error occurred during: "Export test suite report".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOfRange(Arrays.java:3664)
	at java.lang.String.<init>(String.java:207)
	at org.apache.commons.lang.text.StrBuilder.toString(StrBuilder.java:2567)
	at org.apache.commons.lang.StringUtils.join(StringUtils.java:3402)
	at org.apache.commons.lang.StringUtils.join(StringUtils.java:3444)
	at com.kms.katalon.core.reporting.ReportWriterUtil.generateVars(ReportWriterUtil.java:58)
	at com.kms.katalon.core.reporting.ReportWriterUtil.writeLogRecordToHTMLFile(ReportWriterUtil.java:365)
	at com.kms.katalon.core.reporting.plugin.KatalonExportReportProvider.exportTestSuite(KatalonExportReportProvider.java:73)
	at com.kms.katalon.core.reporting.ExportReportProvider$exportTestSuite$0.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149)
	at Script1.run(Script1.groovy:1)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
	at com.kms.katalon.composer.report.platform.ExportReportProviderReflection.exportTestSuite(ExportReportProviderReflection.java:65)
	at com.kms.katalon.composer.report.handlers.ExportTestSuiteReportHandler$1.run(ExportTestSuiteReportHandler.java:78)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

#9

Hi,
Increase max memory : Unable to generate report


#10

Hi! Thanks all for helping. Regarding my first error(Java Heap Space), I have managed to allocate more memory(4GB) by making the changes in the config file(katalon.ini). However, that did NOT solve the problem. I still am facing the same issue while generating report in PDF or HTML.

I’ve also noticed a different type of error(XML Parse Error) today. I’ve added the details of the error below. Any help is much appreciated.

Environment Details
Test PC OS: Windows 10 Pro
Katalon Version: 6.2.1
Appium Version: 1.12.1
Test mobile device: Google Pixel XL running Android 9

Screenshot
XML_Stream_exception

Katalon Error Log

!ENTRY org.eclipse.core.jobs 4 2 2019-07-17 08:38:35.293
!MESSAGE An internal error occurred during: “Export test suite report”.
!STACK 0
java.io.IOException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[135789,1]
> Message: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
> at com.kms.katalon.core.reporting.plugin.KatalonExportReportProvider.exportTestSuite(KatalonExportReportProvider.java:97)
at com.kms.katalon.core.reporting.ExportReportProvider$exportTestSuite$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149)
at Script1.run(Script1.groovy:1)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
at com.kms.katalon.composer.report.platform.ExportReportProviderReflection.exportTestSuite(ExportReportProviderReflection.java:65)
at com.kms.katalon.composer.report.handlers.ExportTestSuiteReportHandler$1.run(ExportTestSuiteReportHandler.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[135789,1]
Message: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604)
at com.kms.katalon.core.logging.TestSuiteXMLLogParser.processFile(TestSuiteXMLLogParser.java:85)
at com.kms.katalon.core.logging.TestSuiteXMLLogParser.readTestSuiteLogFromXMLFiles(TestSuiteXMLLogParser.java:62)
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.plugin.KatalonExportReportProvider.exportTestSuite(KatalonExportReportProvider.java:64)
at com.kms.katalon.core.reporting.ExportReportProvider$exportTestSuite$0.call(Unknown Source)
at Script1.run(Script1.groovy:1)
… 3 more

!ENTRY org.eclipse.core.jobs 4 2 2019-07-17 09:03:17.147
!MESSAGE An internal error occurred during: “Export test suite report”.
!STACK 0
java.io.IOException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[135789,1]
> Message: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
> at com.kms.katalon.core.reporting.plugin.KatalonExportReportProvider.exportTestSuite(KatalonExportReportProvider.java:97)
at com.kms.katalon.core.reporting.ExportReportProvider$exportTestSuite$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149)
at Script1.run(Script1.groovy:1)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
at com.kms.katalon.composer.report.platform.ExportReportProviderReflection.exportTestSuite(ExportReportProviderReflection.java:65)
at com.kms.katalon.composer.report.handlers.ExportTestSuiteReportHandler$1.run(ExportTestSuiteReportHandler.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[135789,1]
Message: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604)
at com.kms.katalon.core.logging.TestSuiteXMLLogParser.processFile(TestSuiteXMLLogParser.java:85)
at com.kms.katalon.core.logging.TestSuiteXMLLogParser.readTestSuiteLogFromXMLFiles(TestSuiteXMLLogParser.java:62)
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.plugin.KatalonExportReportProvider.exportTestSuite(KatalonExportReportProvider.java:64)
at com.kms.katalon.core.reporting.ExportReportProvider$exportTestSuite$0.call(Unknown Source)
at Script1.run(Script1.groovy:1)
… 3 more

Event log

09:03:17.146 [Worker-113] WARN com.kms.katalon.core.reporting.plugin.KatalonExportReportProvider - javax.xml.stream.XMLStreamException: ParseError at [row,col]:[135789,1]
Message: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604)
at com.kms.katalon.core.logging.TestSuiteXMLLogParser.processFile(TestSuiteXMLLogParser.java:85)
at com.kms.katalon.core.logging.TestSuiteXMLLogParser.readTestSuiteLogFromXMLFiles(TestSuiteXMLLogParser.java:62)
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.plugin.KatalonExportReportProvider.exportTestSuite(KatalonExportReportProvider.java:64)
at com.kms.katalon.core.reporting.ExportReportProvider$exportTestSuite$0.call(Unknown Source)
at Script1.run(Script1.groovy:1)
at com.kms.katalon.composer.report.platform.ExportReportProviderReflection.exportTestSuite(ExportReportProviderReflection.java:65)
at com.kms.katalon.composer.report.handlers.ExportTestSuiteReportHandler$1.run(ExportTestSuiteReportHandler.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Note: Please let me know if there is anything else I could include next time I post about an error. I feel error fixes can be much easier and quicker if all the required information about it is made available.