question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing bean argument value: transactionOperations

See original GitHub issue

Hi, 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:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
graemerochercommented, Oct 18, 2019

Closing this since it is definitely an issue with the dependencies. If you have micronaut-hibernate-jpa declared in your dependencies please remove that.

2reactions
ebomitalicommented, Feb 5, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found