Skip to content

PathElementException: Could not resolve property 'ANumber' of 'model.Case' #3824

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

Open
aroc725 opened this issue Mar 31, 2025 · 3 comments
Open
Labels
status: feedback-provided Feedback has been provided status: waiting-for-triage An issue we've not yet triaged

Comments

@aroc725
Copy link

aroc725 commented Mar 31, 2025

One of the applications my team and I maintain has a “Case” model class with a String attribute named “aNumber”.

Adding a method named “findByANumber” to the associated repository interface results in multiple unit-test failures, with some tests failing due to the following error message:

PathElementException: Could not resolve property 'ANumber' of 'model.Case'

Does anyone know why this is happening, and if so, how to fix this ?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 31, 2025
@mp911de
Copy link
Member

mp911de commented Apr 7, 2025

If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem.
You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.

@mp911de mp911de added the status: waiting-for-feedback We need additional information before we can continue label Apr 7, 2025
@spring-projects-issues
Copy link

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Apr 14, 2025
@aroc725
Copy link
Author

aroc725 commented Apr 16, 2025

I've attached a ZIP file containing sample code for re-creating the error, by running tests.

Demo-Spring-Boot-App.zip

@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 status: feedback-reminder We've sent a reminder that we need additional information before we can continue labels Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback-provided Feedback has been provided status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

3 participants