Code Monkey home page Code Monkey logo

Comments (3)

jangalinski avatar jangalinski commented on July 27, 2024

Update: compiles after I

  • renamed to FixtureExecutionResult expectDispatchedCommands in saga tests and
  • added spring-messaging dependency to "query"

But when running the embedded example, I now get this exception when I trigger a transfer:

javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
        at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:282) ~[spring-orm-4.3.5.RELEASE.jar:4.3.5.RELEASE]
        at com.sun.proxy.$Proxy122.persist(Unknown Source) ~[na:na]
        at org.axonframework.eventhandling.saga.repository.jpa.JpaSagaStore.insertSaga(JpaSagaStore.java:260) ~[axon-core-3.0.jar:3.0]
        at org.axonframework.eventhandling.saga.repository.AnnotatedSagaRepository.storeSaga(AnnotatedSagaRepository.java:217) ~[axon-core-3.0.jar:3.0]
        at org.axonframework.eventhandling.saga.repository.AnnotatedSagaRepository.lambda$doCreateInstance$3(AnnotatedSagaRepository.java:138) ~[axon-core-3.0.jar:3.0]
        at org.axonframework.messaging.unitofwork.MessageProcessingContext.notifyHandlers(MessageProcessingContext.java:68) ~[axon-core-3.0.jar:3.0]
        at org.axonframework.messaging.unitofwork.BatchingUnitOfWork.lambda$notifyHandlers$2(BatchingUnitOfWork.java:131) ~[axon-core-3.0.jar:3.0]

see https://github.com/jangalinski/AxonBank/tree/switch_to_30final

from axonbank.

jvanderkallen avatar jvanderkallen commented on July 27, 2024

Hi. I updated the project to use version 3.0 of Axon Framework.

from axonbank.

langkcc avatar langkcc commented on July 27, 2024

hi,I use version 3.0.4 of Axon Framework.and occur same exception.are you fixed?how?thank you.

from axonbank.

Related Issues (16)

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.