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

Upgrading to Spring Boot 2.4.4 results in "Failed to bind properties" #25881

Closed
vananiev opened this issue Apr 4, 2021 · 4 comments
Closed
Labels
for: external-project For an external project and not something we can fix

Comments

@vananiev
Copy link

vananiev commented Apr 4, 2021

I've update Spring Boot from 2.4.3 to 2.4.4 and got

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'investbook.report-backup-path' to java.nio.file.Path:
    Property: investbook.report-backup-path
    Value: ${user.home}/report-backups
    Origin: class path resource [application-dev.properties] - 55:33
    Reason: No converter found capable of converting from type [java.lang.String] to type [java.nio.file.Path]

for property

investbook.report-backup-path = ${user.home}/report-backups

Without ${user.home}

investbook.report-backup-path = report-backups

2.4.4 works well.

With 2.4.3 both property values works.

A similar issue, but for 2.4.2 and Duration (relates #25878).

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 4, 2021
vananiev added a commit to spacious-team/investbook that referenced this issue Apr 4, 2021
@scottfrederick
Copy link
Contributor

@vananiev This appears to be a duplicate of spring-projects/spring-framework#26702. Can you try using Spring Boot 2.4.4 but downgrading Spring Framework to 5.3.4 as was tested previously to see if that works?

@scottfrederick scottfrederick added the status: waiting-for-feedback We need additional information before we can continue label Apr 5, 2021
@vananiev
Copy link
Author

vananiev commented Apr 10, 2021

Yes, downgrading Spring Framework to 5.3.4 with pom.xml setting

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-framework-bom</artifactId>
            <version>5.3.4</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

solves the problem.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Apr 10, 2021
@philwebb
Copy link
Member

Closing as a duplicate of spring-projects/spring-framework#26702

@philwebb philwebb added for: external-project For an external project and not something we can fix and removed status: feedback-provided Feedback has been provided status: waiting-for-triage An issue we've not yet triaged labels Apr 11, 2021
@vananiev
Copy link
Author

#26702 tells about linux. If it matter, my problem occures on windows 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

4 participants