payara / ecosystem-support

Placeholder repository to handle community requests for the Payara Platform ecosystem tools
3 stars 2 forks source link

javax.ejb.TransactionRolledbackLocalException when running against Micro and embedded #18

Closed hantsy closed 1 year ago

hantsy commented 3 years ago

Currently, I am trying to add testing codes to the cargo tracker application.

https://github.com/hantsy/cargotracker/

The tests which are passed with Payara managed container failed with Micro and embedded container, there a lot of EJB transaction exception.

javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: javax.ws.rs.ProcessingException: 
java.net.ConnectException: Connection refused (Connection refused)

The complete logging can be found there.

https://github.com/hantsy/cargotracker/runs/1789325545

Not sure what is missing in the micro and embedded config?

lprimak commented 3 years ago

Not sure what's going on with Micro, but embedded with Java 11 requires all sorts of JDK 9+ related arguments. Not sure what they are you are just going to have to experiment

hantsy commented 3 years ago

I was using Java 11 to run the testing codes.

https://github.com/hantsy/cargotracker/blob/master/.github/workflows/it-with-arq-payara-embedded.yml#L24

lprimak commented 3 years ago

Can you try with 2.4-SNAPSHOT please?

hantsy commented 3 years ago

https://github.com/hantsy/cargotracker/pull/28

It seems there are more breaks due to payara/ecosystem-support#15

fturizo commented 1 year ago

We're sorry but this issue fell through the cracks in the past years, please re-test with the current version of the plugin to make sure the issue is still present and if that is the case, raise a new issue with a more complete report.