Getting java.io.StreamCorruptedException: invalid stream header: 00000000 while running script through CMD/ Jenkins


#1

Hi,

katalon -noSplash -runMode=console -consoleLog -noExit -projectPath=“C:\Users\a1kfatwc\Katalon Studio\Sample\Sample.prj” -retry=0 -testSuitePath=“Test Suites/Test” -executionProfile=“default” -browserType="Chrome"

I am getting following error when trying to run Suite from CMD.

Output/Error-

java.io.StreamCorruptedException: invalid stream header: 00000000
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:866)
at java.io.ObjectInputStream.(ObjectInputStream.java:358)
at com.kms.katalon.controller.ProjectController.getRecentProjects(ProjectController.java:188)
at com.kms.katalon.controller.ProjectController.addRecentProject(ProjectController.java:135)
at com.kms.katalon.controller.ProjectController.openProject(ProjectController.java:101)
at com.kms.katalon.execution.console.ConsoleMain.getProject(ConsoleMain.java:258)
at com.kms.katalon.execution.console.ConsoleMain.findProject(ConsoleMain.java:163)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:90)
at com.kms.katalon.console.application.Application.runConsole(Application.java:76)
at com.kms.katalon.core.application.Application.runConsole(Application.java:76)
at com.kms.katalon.core.application.Application.start(Application.java:59)
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)

Please let me know if any solution is available for this


#2

Hi @alok_oct92,

Please delete /config/.metadata/recent_project file and run KS again.

Thanks