# Errors while adding the libraries file into Katalon to connect the Cosmos DB using java codes

**URL:** <https://forum.katalon.com/t/errors-while-adding-the-libraries-file-into-katalon-to-connect-the-cosmos-db-using-java-codes/55476>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [June 7, 2021, 1:19pm UTC](https://forum.katalon.com/t/errors-while-adding-the-libraries-file-into-katalon-to-connect-the-cosmos-db-using-java-codes/55476 "2021-06-07T13:19:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shamimcse12](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shamimcse12/32/16103_2.png) [@shamimcse12](https://forum.katalon.com/u/shamimcse12)\
**Post date:** [June 7, 2021, 1:19pm UTC](https://forum.katalon.com/t/errors-while-adding-the-libraries-file-into-katalon-to-connect-the-cosmos-db-using-java-codes/55476/1 "2021-06-07T13:19:37Z")

</div>

I am trying to write the java codes in Katalon to connect the Cosmos DB.  
Code is written and library files also added successfully, but when trying to run the codes I am getting an error as "Building has encountered a problem ".

Invalid default: publicabstractjava.lang.Classorg.springframew[Katalon issue.zip](https://forum.katalon.com/uploads/short-url/rmvt5S5eey8rairNDOD8Jz5GBvh.zip) (121.5 KB) ork.context.annotation.ComponentScan.nameGenerator().  
when I restart the Katalon studio getting the below error and not able to access my existing Project, so manually I have to delete the” spring-boot-autoconfigure-2.4.5.jar” file from my local then only I am able to access my existing projects.  
please help with it,

attached here complete details.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [June 8, 2021, 2:32am UTC](https://forum.katalon.com/t/errors-while-adding-the-libraries-file-into-katalon-to-connect-the-cosmos-db-using-java-codes/55476/2 "2021-06-08T02:32:37Z")

</div>

Your zip file contained a message “Invalid default: public abstract java.lang.Class”. Taking this as key, I made a search in Google and found the followiing URL:

> <https://stackoverflow.com/questions/62174277/getting-exception-while-running-cucumber-with-junit-testng>

It tells:

> Errors about missing methods, or methods not being allowed where they are are typically caused by a mismatch of dependencies. So if you look at your pom you’ll see that you are using different versions of Cucumber. Additionally you are including transitive dependencies that you do not strictly need.

@shamimcse12

I guess, your code depends on the `spring-boot-autoconfigure-2.4.5.jar`, yes, but it is not enough. Possibly `spring-boot-autoconfigure-2.4.5.jar` depends on some other jars (could be a lot), which you haven’t imported into Katalon Studio. Therefore “Building has encountered problem” occurred.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [June 8, 2021, 2:37am UTC](https://forum.katalon.com/t/errors-while-adding-the-libraries-file-into-katalon-to-connect-the-cosmos-db-using-java-codes/55476/3 "2021-06-08T02:37:20Z")

</div>

How can you resolve external dependencies in Katalon Studio?

There are a few resources you can read.

- [https://docs.katalon.com/katalon-store/docs/publisher/resolve-external-dependencies.html](https://docs.katalon.com/katalon-store/docs/publisher/resolve-external-dependencies.html)
- [How to resolve external dependencies for a Plugin](http://forum.katalon.com/t/how-to-resolve-external-dependencies-for-a-plugin/21346)

Have a look at them and help yourself.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [June 8, 2021, 2:45am UTC](https://forum.katalon.com/t/errors-while-adding-the-libraries-file-into-katalon-to-connect-the-cosmos-db-using-java-codes/55476/4 "2021-06-08T02:45:16Z")

</div>

@shamimcse12

In the inital post you wrote descriptions in \*.docx file by MS Word, zip it and attached it to this Forum. I found this way of posting is annoying for readers. It forces readers to undownload the zip file, un zip it, open it with Word. … a long, long way to go. I am afraid that they would be discouraged to follow your topic.

If you are going to make another post, please study how to write it in the Markdown syntax just other people do here.

A tutorial of Markdown is here

- [https://commonmark.org/help/](https://commonmark.org/help/)
- [https://guides.github.com/features/mastering-markdown/](https://guides.github.com/features/mastering-markdown/)

---

<div class="post-metadata">

**Author:** ![shamimcse12](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shamimcse12/32/16103_2.png) [@shamimcse12](https://forum.katalon.com/u/shamimcse12)\
**Post date:** [June 9, 2021, 5:42am UTC](https://forum.katalon.com/t/errors-while-adding-the-libraries-file-into-katalon-to-connect-the-cosmos-db-using-java-codes/55476/5 "2021-06-09T05:42:34Z")

</div>

Thank you for your reply and solution.  
Could you please tell me the which othres jar i have to imported to run my cosmos db access code

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [June 9, 2021, 6:17am UTC](https://forum.katalon.com/t/errors-while-adding-the-libraries-file-into-katalon-to-connect-the-cosmos-db-using-java-codes/55476/6 "2021-06-09T06:17:03Z")

</div>

> [@shamimcse12](#):
>
> Could you please tell me the which othres jar i have to imported to run my cosmos db access code

No. It’s you who should answer to the question.

I have already mentioned which resources you should study.

- [https://docs.katalon.com/katalon-store/docs/publisher/resolve-external-dependencies.html](https://docs.katalon.com/katalon-store/docs/publisher/resolve-external-dependencies.html)
- [How to resolve external dependencies for a Plugin](http://forum.katalon.com/t/how-to-resolve-external-dependencies-for-a-plugin/21346)

If you do not understand these, sorry to say but, you would not be able to use your favorite DB in Katalon Studio.
