cancel
Showing results for 
Search instead for 
Did you mean: 

getting groovy error when trying to run groovy script - EvictableCache

SOLVED
Contributor

getting groovy error when trying to run groovy script - EvictableCache

Any ideas how to fix this?

 

ERROR: java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.memoize.EvictableCache.getAndPut(Ljava/lang/Object;Lorg/codehaus/groovy/runtime/memoize/MemoizeCache$ValueProvider;)Ljava/lang/Object;

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Thank you for the details.

This is just for you to try the workaround and see. Of course, it may not be supported by SmartBear.

If an updated library is needed, rename the library under READYAPI_HOME/lib directory to something else so that it is not loaded and add the new library under READYAPI_HOME/bin/ext directory and restart the tool.


Regards,
Rao.

View solution in original post

11 REPLIES 11
Highlighted
Community Hero

Hi @lauravachon,

People are gonna struggle to help diagnose your issue without seeing the groovyscript that is failing.

Can you provide the groovyscript?

Cheers,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Contributor

This is really difficult since I would have to sanitize it. basically, I am trying to use a class from another jar

Highlighted
Contributor

 

import java.time.LocalDate;

import org.springframework.context.support.GenericApplicationContext
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner

def ctx = new GenericApplicationContext()
new ClassPathBeanDefinitionScanner(ctx).scan('')
ctx.refresh()

log.info ctx.beanDefinitionCount

Highlighted
Community Hero

Please provide more details:
1. version of readyapi
2. version & external jar files used
3. jdk version
4. what are you trying to achieve in the script?


Regards,
Rao.
Highlighted
Contributor

1. version of readyapi <- 3.0.0
2. version & external jar files used <- custom jar. will sanitize and provide a simpler project but right now, it seems the jar isn't even realling come into play yet. getting this error when simply trying to get the spring context
3. jdk version <- 1.8
4. what are you trying to achieve in the script? <- need to be able to read in and use classes in a spring boot jar. basically, the jar reads in csv files into h2 and provides access to various queries on the data

Highlighted
Contributor

attaching jar, project, and java source

Highlighted
Community Hero

Thank you for the details.

This is just for you to try the workaround and see. Of course, it may not be supported by SmartBear.

If an updated library is needed, rename the library under READYAPI_HOME/lib directory to something else so that it is not loaded and add the new library under READYAPI_HOME/bin/ext directory and restart the tool.


Regards,
Rao.

View solution in original post

Highlighted
Contributor

We do not have write access to the installation folders for any applications. So, I cannot do this.

 

Highlighted
Community Hero

Ok. However, if it is needed for the purpose of work, you get it done who has the access, isn't it?


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get a full Raw JMS request

Participate!

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors