Error with Binder addValueChangeListener

Hi,

I have a simple GUI with save the changes to the backend, after editing.
Until now there are only some Checkbox Fields in the GUI.

Binder<SettingsDto> binder = new Binder<>(); binder.setBean(backendService.getSettings()); binder.addValueChangeListener(event -> { backendService.update(binder.getBean()); }); This works fine in Livesystem, but in Selenium Test I get the following error.
I don’t know what the problem ist.

[font=courier new]




java.lang.RuntimeException: Internal error - please report at



com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:523) at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:211) at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:174) at com.vaadin.data.Binder.fireValueChangeEvent(Binder.java:2362) at com.vaadin.data.Binder.access$1300(Binder.java:96) at com.vaadin.data.Binder$BindingImpl.handleFieldValueChange(Binder.java:933) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510) at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:211) at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:174) at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1029) at com.vaadin.ui.AbstractField.setValue(AbstractField.java:144) at com.vaadin.ui.CheckBox.setValue(CheckBox.java:137) at com.vaadin.ui.CheckBox.lambda$new$bc87caa$1(CheckBox.java:63) at …


Caused by: java.lang.IllegalAccessException: Class com.vaadin.event.ListenerMethod can not access a member of class com.vaadin.data.HasValue$ValueChangeListener with modifiers “private static”
at
sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102) at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296) at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288) at java.lang.reflect.Method.invoke(Method.java:491) at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:518) … 67 more
[/font]