Getting java.lang.ClassNotFoundException when using Addon Proxy

  • 2 Replies
Hi Marat,

Thank you for the answer, I managed to create proper JAR and to upload it to the addon.

Now I have a new issue, after I try to execute locally, through runner class, my new test with reference to addon action:

GetResultCount getResultCountAction = ExampleAddon.getGetResultCount();
StepExecutionResult executeRes = helper.executeProxy(getResultCountAction);

I get the following error in my console:

21:23:28.167 [main] DEBUG - Starting development session...
21:23:33.613 [main] INFO - Development session initialized
21:23:33.644 [main] INFO - Development session connection established via
java.lang.NoClassDefFoundError: io/testproject/proxy/addon/io/testproject/examples/sdk/java/GetResultCount
Caused by: java.lang.ClassNotFoundException:
   at Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 1 more

Do you have any idea why this is happening?

« Last Edit: August 07, 2018, 16:51:09 pm by Marat Strelets »

Re: Re: Re: Using actions in test files
« Reply #1 on: July 31, 2018, 21:40:58 pm »
I am glad it helped,

How did you reference the Action proxy JAR?
Did you add it to your build.gradle file as a local JAR file or via Eclipse?
If you run the Gradle debug tasks, you have to reference the proxy JAR via Gradle as well.


Re: Re: Re: Using actions in test files
« Reply #2 on: August 01, 2018, 15:38:09 pm »
Locked due to inactivity.


Sitemap 1 2 3 4 5 6 7 8