Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in config preventing conversion of config property string to integer. #7549

Closed

Conversation

GeryNi
Copy link
Collaborator

@GeryNi GeryNi commented Dec 12, 2023

while trying to run some tests, the following error occured:

Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'thesaurusCacheMaxSize'; nested exception is java.lang.NumberFormatException: For input string: "\400000"

This point to the config-spring-geonetwork.xml configuration mapping which contains the following line:

 <property name="thesaurusCacheMaxSize" value="\${thesaurus.cache.maxsize}"/>

removing the '\' character which was preventing the conversion to an integer value.

 <property name="thesaurusCacheMaxSize" value="${thesaurus.cache.maxsize}"/>

@fxprunayre
Copy link
Member

The \ is needed to have the property set when the app start (and not when maven builds with resource filter). Your issue with test is probably not related to that. Tests works fine on CI. I think we can close @GeryNi ?

@fxprunayre
Copy link
Member

Closing for now @GeryNi unless you encountered this again. Let us know.

@fxprunayre fxprunayre closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants