Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError: 'java.lang.String gears.GearsBuilder.getUpgradeData()'| at com.redislabs.WriteBehind.main(WriteBehind.java:93)| #99

Open
psilberk opened this issue Dec 20, 2022 · 2 comments

Comments

@psilberk
Copy link

Running the provided example in the readme, using redisfab/redisgearsjvm:edge and latest version of rghibernate creates an error that makes me suspect that the gears.GearsBuiilder class in the image is in a different version than rghibernate jar:

docker run -d --name my-redis-container -p 6379:6379 redisfab/redisgearsjvm:edge

git clone [email protected]:RedisGears/rghibernate.git
cd rghibernate
git submodule update --init --recursive
make build
// creates artifacts/release/rghibernate-master-jar-with-dependencies.jar
redis-cli -x RG.JEXECUTE com.redislabs.WriteBehind < ./artifacts/release/rghibernate-master-jar-with-dependencies.jar

(error) java.lang.NoSuchMethodError: 'java.lang.String gears.GearsBuilder.getUpgradeData()'| at com.redislabs.WriteBehind.main(WriteBehind.java:93)|

And in the docker image log:
1:M 20 Dec 2022 22:39:34.952 * JAVA_GEARS: RGHibernate 1.1.0

@jeswils-ap
Copy link

@psilberk Did you find a solution to this issue? Facing the same when trying to load this jar.

@psilberk
Copy link
Author

psilberk commented Sep 7, 2023

Hi @jeswils-ap I don't remember how I got there, but looking at my notes I see that using another image:
docker run -d --name my-redis-container -p 6379:6379 redislabs/redisgears
Worked!
Please let me know if it works for you as well, good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants