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

java.lang.annotation.AnnotationFormatError: java.lang.IllegalArgumentException: Wrong type at constant pool index #256

Closed
robshep opened this issue Jul 10, 2018 · 8 comments

Comments

@robshep
Copy link

robshep commented Jul 10, 2018

Having just switched from jRebel to HotSwapAgent I get the following:

java.lang.annotation.AnnotationFormatError: java.lang.IllegalArgumentException: Wrong type at constant pool index

I'm using autoHotswap=true

I'm on a Mac using jdk1.8.0_172 with the alternate VM deployment of DCE.

The Spring plugin reloads the beans and then when i do a page refresh I get this error on the console.

@robshep
Copy link
Author

robshep commented Jul 10, 2018

Note: I'm not changing any Annotations for this, just method bodies of Spring MVC handlers that happen to have annotations.

@skybber
Copy link
Contributor

skybber commented Jul 10, 2018

Make sure you don't mix debug from IDE with autoHotswap=true. If not, please send better specification of your bug or make minimal test example project.

@robshep
Copy link
Author

robshep commented Jul 10, 2018

Yes, i'm running standalone outside of IDE as follows:

./mvnw clean spring-boot:run [...]

I'll prepare a test case, thanks

@MrABKhan
Copy link

Try JDK 8u144 along with it's equivalent DCEVM. Solved the issue for me.

@skybber
Copy link
Contributor

skybber commented Oct 27, 2018

Is this problem in JDK 8u152?

@robshep
Copy link
Author

robshep commented Nov 15, 2018

I'm using 1.8.0_172 and the issue still occurs many times a day.
I'm struggling to make a test case. I have a large application and haven't managed to identify the sequence of events, or specific scenario that provokes a fault.

@skybber
Copy link
Contributor

skybber commented Nov 15, 2018

Test case is not necessary. I'm pretty sure the problem is in current binaries but is already fixed in repository. The problem had been fixed in the past then unfortunately the fix was removed in 8u152, so 8u142 is the last fixed version. So we have to create new binaries!

@skybber
Copy link
Contributor

skybber commented Dec 5, 2018

This dcevm issue, should be fixed in dcevm repository.

@skybber skybber closed this as completed Dec 5, 2018
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

3 participants