flowable / flowable/flowable-engine

Got CannotCreateTransactionException when restarting with Spring DevTools

Open
#2,823 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

**Describe the bug**

I've set up Spring to restart automatically when changes are detected in the processes directory:

```yaml
devtools.restart:
additional-paths: /myproject/src/main/resources/processes
enabled: true
```

When I add new bpmn files or remove existing bpmn files in the processes directory, the change is detected by devtools and it tries to restart the service. But a `CannotCreateTransactionException` is raised every time from `2021-02-19 03:13:31.747 ERROR 287 --- [ange-detector-1] i.m.EventRegistryChangeDetectionRunnable : Exception while detecting event registry changes`:

`org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested
exception is java.sql.SQLException: HikariDataSource HikariDataSource (flowable) has been closed.`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.