GithubHelp home page GithubHelp logo

Repositories init fail about redis-om-spring HOT 12 CLOSED

redis avatar redis commented on June 14, 2024
Repositories init fail

from redis-om-spring.

Comments (12)

daveish avatar daveish commented on June 14, 2024 1

@bsbodden It works with spring-data-redis repositories, see additional reproducer.

from redis-om-spring.

bsbodden avatar bsbodden commented on June 14, 2024

@luxia7758 here's a standalone working example with Document Repos. https://github.com/redis-developer/redis-om-spring-skeleton-app See if that works for you and then adjust yours to match. If your repo is public you can also point me to it and I can clone it and give it a try.

from redis-om-spring.

luxia7758 avatar luxia7758 commented on June 14, 2024

@luxia7758 here's a standalone working example with Document Repos. https://github.com/redis-developer/redis-om-spring-skeleton-app See if that works for you and then adjust yours to match. If your repo is public you can also point me to it and I can clone it and give it a try.

Thanks for your reply. I tried your url for redis-om-spring-skeleton-app, and it returns 404. I had just created a empty repo named redis-om-spring-demo and give you access. You are free to clone now.

from redis-om-spring.

bsbodden avatar bsbodden commented on June 14, 2024

@luxia7758 can you put a reproducer in that repo and I can investigate? Thanks!

from redis-om-spring.

daveish avatar daveish commented on June 14, 2024

@bsbodden I have the same problem. This happens when I add spring-cloud-stream as dependency.
As soon as I remove the dependency, it works.

Here is a reproducer repo

from redis-om-spring.

bsbodden avatar bsbodden commented on June 14, 2024

@bsbodden I have the same problem. This happens when I add spring-cloud-stream as dependency. As soon as I remove the dependency, it works.

Here is a reproducer repo

Thanks for the reproducer, I started investigating "Spring Cloud Stream" with Redis (Spring Data Redis) and it seems the two projects aren't currently compatible, see:

I will investigate further since high-level Streams-support If one of the features we are planning

from redis-om-spring.

daveish avatar daveish commented on June 14, 2024

@bsbodden You're welcome!
I imported spring-cloud-stream to use it with the kafka-binder btw., I had no intention of using the redis-binder.
The two dependencies (spring-cloud-stream and redis-om-spring) should not clash in my opinion.

I think the problem lies with the RedisDocumentRepositoryFactoryBean constructor. It states that the RedisModulesOperations parameter is ambiguous.

from redis-om-spring.

bsbodden avatar bsbodden commented on June 14, 2024

@bsbodden You're welcome! I imported spring-cloud-stream to use it with the kafka-binder btw., I had no intention of using the redis-binder. The two dependencies (spring-cloud-stream and redis-om-spring) should not clash in my opinion.

I think the problem lies with the RedisDocumentRepositoryFactoryBean constructor. It states that the RedisModulesOperations parameter is ambiguous.

Can you do a quick test with just Spring Data Redis instead of Redis OM Spring, that might give us a clue. On the meantime I'll try to see if an explicit declaration of RedisModulesOperations does the trick.

from redis-om-spring.

bsbodden avatar bsbodden commented on June 14, 2024

@bsbodden It works with spring-data-redis repositories, see additional reproducer.

No luck so far, tried a bunch of techniques to deal with ambiguity in the injection process but no luck so far. I'll make a new release as soon as I can find a solution.

from redis-om-spring.

daveish avatar daveish commented on June 14, 2024

I made it work, I will submit a PR.

from redis-om-spring.

bsbodden avatar bsbodden commented on June 14, 2024

Awesome! Thanks, David (@daveish) ! I will check the PR now.

from redis-om-spring.

daveish avatar daveish commented on June 14, 2024

I opened another PR. I did some boy scouting while I was at it.

See #38

Cheers!

from redis-om-spring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.