Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<surefire-plugin.version>3.2.3</surefire-plugin.version>
<lombok.version>1.18.30</lombok.version>
<beanutils.version>1.11.0</beanutils.version>
<commons-logging.version>1.2</commons-logging.version>
<build-helper-maven-plugin.version>3.5.0</build-helper-maven-plugin.version>
<fmt-maven-plugin.version>2.22</fmt-maven-plugin.version>
<postgresql-testcontainer.version>1.19.3</postgresql-testcontainer.version>
Expand All @@ -41,6 +42,16 @@
<artifactId>commons-beanutils</artifactId>
<version>${beanutils.version}</version>
</dependency>
<!-- beanutils 1.11 pulls commons-logging 1.3, which adds Log4jApiLogFactory. That class
references log4j-api, which is not a dependency here, and native image initialises it
at build time - the image build then fails with NoClassDefFoundError for
org/apache/logging/log4j/spi/LoggerAdapter. 1.2 is the version beanutils 1.9 used and
the commons-logging api is unchanged between them. -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons-logging.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/kryptokrauts/shared/BaseCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static Integer getTokenPrecision(String token) {
* below need a Hibernate session.
*/
@ActivateRequestContext
void populateCachesAtStartup(@Observes StartupEvent event) {
public void populateCachesAtStartup(@Observes StartupEvent event) {
long start = System.currentTimeMillis();
logger.info("Populating caches at startup");

Expand All @@ -109,7 +109,7 @@ void populateCachesAtStartup(@Observes StartupEvent event) {
logger.infof("Populating caches at startup took %s ms", System.currentTimeMillis() - start);
}

private void fillSafely(String name, Runnable refresh) {
protected void fillSafely(String name, Runnable refresh) {
try {
refresh.run();
} catch (Exception e) {
Expand Down
Loading