Skip to content

LocalDate not supported #29

@Xsasan

Description

@Xsasan

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)
//

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions