# Upgraded to 5.7.0 and getting nullPointerExceptions

**URL:** <https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [September 7, 2018, 12:21pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105 "2018-09-07T12:21:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 12:21pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/1 "2018-09-07T12:21:04Z")

</div>

Downloaded the latest version of Katalon and am now seeing the error below. Any help is appreciated!

java.lang.NullPointerException

at com.kms.katalon.dal.fileservice.manager.ProjectFileServiceManager.migrateLegacyGlobalVariable(ProjectFileServiceManager.java:97)

at com.kms.katalon.dal.fileservice.manager.ProjectFileServiceManager.openProjectWithoutClasspath(ProjectFileServiceManager.java:78)

at com.kms.katalon.dal.fileservice.manager.ProjectFileServiceManager.openProject(ProjectFileServiceManager.java:61)

at com.kms.katalon.dal.fileservice.dataprovider.ProjectFileServiceDataProvider.openProject(ProjectFileServiceDataProvider.java:24)

at com.kms.katalon.controller.ProjectController.openProject(ProjectController.java:94)

at com.kms.katalon.execution.console.ConsoleMain.getProject(ConsoleMain.java:249)

at com.kms.katalon.execution.console.ConsoleMain.findProject(ConsoleMain.java:155)

at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:90)

at com.kms.katalon.console.application.Application.runConsole(Application.java:74)

at com.kms.katalon.core.application.Application.runConsole(Application.java:72)

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

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)

at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [September 7, 2018, 12:48pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/2 "2018-09-07T12:48:17Z")

</div>

ZS,

What was your previous version of Katalon? I imagine the devs will want to know that.

---

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 1:02pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/3 "2018-09-07T13:02:51Z")

</div>

I think the one just before 5.7.0 as I had installed it recently

---

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 1:22pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/4 "2018-09-07T13:22:00Z")

</div>

To give this some context:

I have an image which is using the katalon studio image: [https://github.com/katalon-studio/docker-images](https://github.com/katalon-studio/docker-images) and I’ve downloaded my project files in that image.

on my local I’m calling a script which looks like:

```auto
katalon_opts='-retry=0 -statusDelay=15 -testSuiteCollectionPath="Test Suites/TS_RegressionTest"docker run --rm -v my/local/project/root/dir:/katalon/katalon/source:ro -v /my/local/report/dir:/katalon/katalon/report -e KATALON_OPTS="$katalon_opts" MyDockerImageIn the previous version of Katalon Studio I kept getting the error /Test Suites/TS_RegressionTest not foundSo I thought it may be an issue with the version I'm using, maybe it doesn't support test suite collections (because it worked with normal test suites)and I upgraded it to the latest version. Now the same command to run the shell script above is resulting in the exception I posted.Hope this helps?

```

---

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 1:27pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/5 "2018-09-07T13:27:19Z")

</div>

no idea what’s happened to the styling above! apologies but I can’t edit the post!

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [September 7, 2018, 1:29pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/6 "2018-09-07T13:29:25Z")

</div>

Are you using sample project?

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [September 7, 2018, 1:30pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/7 "2018-09-07T13:30:18Z")

</div>

Use the Settings/cog top right of the post (the Edit link at the bottom has issues).

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [September 7, 2018, 1:32pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/8 "2018-09-07T13:32:00Z")

</div>

> [ZS](https://forum.katalon.com/profile/10981/ZS) said:
> 
> To give this some context:
> 
> I have an image which is using the katalon studio image: [GitHub - katalon-studio/docker-images: Docker images for Katalon Studio and other frameworks](https://github.com/katalon-studio/docker-images) and I’ve downloaded my project files in that image.
> 
> on my local I’m calling a script which looks like:
> 
> ```auto
> katalon_opts='-retry=0 -statusDelay=15 -testSuiteCollectionPath="Test Suites/TS_RegressionTest"docker run --rm -v my/local/project/root/dir:/katalon/katalon/source:ro -v /my/local/report/dir:/katalon/katalon/report -e KATALON_OPTS="$katalon_opts" MyDockerImageIn the previous version of Katalon Studio I kept getting the error /Test Suites/TS_RegressionTest not foundSo I thought it may be an issue with the version I'm using, maybe it doesn't support test suite collections (because it worked with normal test suites)and I upgraded it to the latest version. Now the same command to run the shell script above is resulting in the exception I posted.Hope this helps?
> 
> ```

Are you using our sample project because you said you download your project files from that image?

---

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 1:35pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/9 "2018-09-07T13:35:21Z")

</div>

No I’m not using your sample project. I’ve got my own.

I meant I am using the katalon studio image as the base of another image which is being used in a container to download my project files as a jar file from the nexus repo

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [September 7, 2018, 1:36pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/10 "2018-09-07T13:36:36Z")

</div>

> [ZS](https://forum.katalon.com/profile/10981/ZS) said:
> 
> No I’m not using your sample project. I’ve got my own.
> 
> I meant I am using the katalon studio image as the base of another image which is being used in a container to download my project files as a jar file from the nexus repo

Can you send me your project?

---

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 1:39pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/11 "2018-09-07T13:39:17Z")

</div>

Unfortunately I can’t. Happy to go through the debugging steps you suggest

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [September 7, 2018, 1:41pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/12 "2018-09-07T13:41:26Z")

</div>

OK there is a **.prj** file within your project’s folder. Can you just copy for me the content from this file here?

---

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 1:46pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/13 "2018-09-07T13:46:03Z")

</div>

Sure. I’ve just omitted name and uuid.

```auto
<Project>
   <description></description>
   <tag></tag>
   <migratedVersion>5.7.0</migratedVersion>
   <pageLoadTimeout>0</pageLoadTimeout>
   <sourceContent>
      <sourceFolderList>
         <sourceFolderConfiguration>
            <url>Include/scripts/groovy</url>
         </sourceFolderConfiguration>
      </sourceFolderList>
      <systemFolderList>
         <systemFolderConfiguration>
            <url>Include/scripts/groovy</url>
         </systemFolderConfiguration>
         <systemFolderConfiguration>
            <url>Include/features</url>
         </systemFolderConfiguration>
      </systemFolderList>
   </sourceContent>
</Project>

```

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [September 7, 2018, 1:53pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/14 "2018-09-07T13:53:27Z")

</div>

> Sure. I’ve just omitted name and uuid.
> 
> ```auto
> <Project>
> 
> ```

5.7.0  
0  
  
  
  
Include/scripts/groovy  
  
  
  
  
Include/scripts/groovy  
  
  
Include/features

> ```auto
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
>   
> 
> ```

Change to \*\* 5.4.0\*\* will fix your problem\*\*.\*\*

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [September 7, 2018, 1:54pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/15 "2018-09-07T13:54:25Z")

</div>

However the main question is which Katalon Studio version you’ve used in your command before? And for now? You said you use our base image, so looks like its version is 5.4?

---

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 1:59pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/16 "2018-09-07T13:59:32Z")

</div>

That fixed it! It’s now back to the original bug

Test suite ‘/Test Suites/mytestsuite’ not found.

should I open a new thread for that?

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [September 7, 2018, 2:00pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/17 "2018-09-07T14:00:36Z")

</div>

> [ZS](https://forum.katalon.com/profile/10981/ZS) said:
> 
> That fixed it! It’s now back to the original bug
> 
> Test suite ‘/Test Suites/mytestsuite’ not found.
> 
> should I open a new thread for that?

Have you checked if you passed in the correct path of the Test Suite?

---

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 2:06pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/18 "2018-09-07T14:06:04Z")

</div>

One letter should’ve been in caps and it wasn’t! Wow…been trying to fix this since morning!

Thanks for your very prompt responses!

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [September 7, 2018, 2:09pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/19 "2018-09-07T14:09:35Z")

</div>

Ah, another question is which Katalon Studio version you’ve used in your command **before**? You said you use our base image, so looks like its version is 5.4?

It’s strange because if you upgraded your Katalon Studio to 5.7, then when you open your project it should not throw an error in this case.  
Is there any chance you use Katalon Studio 5.7 to open the project once, and Katalon Studio version used in your command is NOT 5.7? Just a guess

---

<div class="post-metadata">

**Author:** ![ZS1](https://avatars.discourse-cdn.com/v4/letter/z/90db22/32.png) [@ZS1](https://forum.katalon.com/u/ZS1)\
**Post date:** [September 7, 2018, 2:11pm UTC](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105/20 "2018-09-07T14:11:41Z")

</div>

I never got the error when i opened Katalon Studio. Just when I ran the commands.

[Next page](https://forum.katalon.com/t/upgraded-to-5-7-0-and-getting-nullpointerexceptions/13105.md?page=2)
