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

LocalDate not supported #29

Open
Xsasan opened this issue Apr 12, 2023 · 0 comments
Open

LocalDate not supported #29

Xsasan opened this issue Apr 12, 2023 · 0 comments

Comments

@Xsasan
Copy link

Xsasan commented Apr 12, 2023

I have a ValueBean with managedAttribute of type LocalDate:

@ManagedAttribute
@Override
public LocalDate getMyDate() {
    return myDate;
}

@ManagedAttribute
public void setMyDate(final LocalDate myDate) {
    this.myDate = myDate;
}

The value in the JMX console is presented in the format yyyy-mm-dd. When I change the value, an exception is thrown:

Internal Server Error (500) - The server encountered an unexpected condition which prevented it from fulfilling the request

//

Caused by: java.lang.RuntimeException: Type java.time.LocalDate is not supported
	at org.jminix.console.resource.ValueParser.parse(ValueParser.java:87)
	at org.jminix.console.resource.AttributeResource.update(AttributeResource.java:191)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
//
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

1 participant