Missing bean argument value: transactionOperations
See original GitHub issueHi, I have following simple repository that stopped working after migrating to M3 (it worked with M1 and M2).
@JdbcRepository(dialect = Dialect.POSTGRES)
public abstract class ApplicationRepository implements RxJavaCrudRepository<Application, UUID> {
public abstract Flowable<Application> findBySpaceId(@NotNull UUID spaceId);
}
Exception I get after calling the above method is:
ERROR [N] io.micronaut.http.server.netty.RoutingInBoundHandler - Unexpected error occurred: Error instantiating bean of type [io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations]
Message: Missing bean argument value: transactionOperations
Path Taken: new DefaultJdbcRepositoryOperations(String dataSourceName,DataSource dataSource,[TransactionOperations transactionOperations],ExecutorService executorService,BeanContext beanContext,List codecs)
Error instantiating bean of type [io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations]
I guess this is somehow related to change in transaction management. Is there a change in setup requirements?
Adding following dependency fixes the issue but I was expecting that no additional dependencies would be required:
<dependency>
<groupId>io.micronaut.data</groupId>
<artifactId>micronaut-data-spring</artifactId>
<version>${micronaut-data.version}</version>
</dependency>
In other repositories we are occasionaly using javax Transactions.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Micronaut Framework/questions - micronautfw/questions - Gitter
I'm getting Missing bean argument value: transactionOperations when doing a simple findAll . I'm using data:M3 and mn:1.2.4 with hibernate-jpa.
Read more >How to add a second datasource to a Micronaut project?
Micronaut - Error starting Micronaut server: Bean definition [org.hibernate. ... MetadataSources] Message: Missing bean argument value: ...
Read more >Management & Monitoring - Micronaut Documentation
When a collection of RateLimit beans are requested from the context, they are returned in ascending order based on the value in the...
Read more >Data Access - Spring
With the Spring Framework, only some of the bean definitions in your configuration file ... Parameter values are usually provided as variable arguments...
Read more >io.micronaut.inject.BeanDefinition Java Examples
getArgument (); String value = argument. ... argument, "@KafkaClient used on type missing generic argument values for Key and Value"); } String id ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Closing this since it is definitely an issue with the dependencies. If you have
micronaut-hibernate-jpa
declared in your dependencies please remove that.I had the same issue and I had both
implementation(“io.micronaut.data:micronaut-data-hibernate-jpa:2.2.4”)
and
implementation(“io.micronaut.data:micronaut-data-jdbc”)
in the dependencies closure. Removing the hibernate-jpa removed the error