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

Spring Plugin: Issue with Adding an Interface to SpringMVC #606

Open
homejim opened this issue Oct 21, 2024 · 6 comments
Open

Spring Plugin: Issue with Adding an Interface to SpringMVC #606

homejim opened this issue Oct 21, 2024 · 6 comments

Comments

@homejim
Copy link
Contributor

homejim commented Oct 21, 2024

springboot: 1.4.0.RELEASE
Action: Added an interface.
Problem: After adding, the request reports parameter errors. The error log is as follows:

    "timestamp": 1729508119180,
    "status": 500,
    "error": "Internal Server Error",
    "exception": "java.lang.IllegalArgumentException",
    "message": "Name for argument type [java.lang.Integer] not available, and parameter name information not found in class file either.",
    "path": "/role223"
}
@homejim
Copy link
Contributor Author

homejim commented Oct 21, 2024

@skybber
Copy link
Contributor

skybber commented Oct 21, 2024

Seems like caching problem, could you supply reporoducer?

@homejim
Copy link
Contributor Author

homejim commented Oct 21, 2024

I tried it, and springboot 1.4.6.RELEASE still reports errors. However, springboot 1.4.7.RELEASE does not have this issue. The corresponding versions are spring 4.3.8.RELEASE and spring 4.3.9.RELEASE. It seems that some classes were modified between these two versions.

@homejim
Copy link
Contributor Author

homejim commented Oct 21, 2024

https://github.com/homejim/spring-demo @skybber

After downloading:

Step1:Run directly.
Step2:Uncomment the test2 interface in TestController.
Step3: Request the interface test2.
Following these steps will reproduce the issue. If you change the version in pom.xml to 2.0.0.RELEASE, it runs well.

@skybber
Copy link
Contributor

skybber commented Oct 21, 2024

Thanks for the clarification, it wasn’t clear from the initial message what you meant by term 'interface.' Do you think it's necessary to fix this since the issue affects versions < 1.4.7-RELEASE and it's already fixed in the newer ones? What does @cvictory think about it?

@homejim
Copy link
Contributor Author

homejim commented Oct 22, 2024

Thanks for the clarification, it wasn’t clear from the initial message what you meant by term 'interface.' Do you think it's necessary to fix this since the issue affects versions < 1.4.7-RELEASE and it's already fixed in the newer ones? What does @cvictory think about it?

My initial judgment is that there might have been some changes in the caching of certain classes, which is why the older versions have issues. The fix should be relatively simple. If it is simple, I think we should adapt it to make hotswap more universally applicable.

If no one else addresses it, I will consider handling it when I have time.

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

No branches or pull requests

2 participants