WARNING: Adding listeners with type Object is deprecated, event listener should extend SerializableEventListener

Hi,
Just upgraded to 7.2.17 (which I think updated vaadin) and coincidently started to use a popup dialog as per the developers manual section “3.5.6 Dialogs” part “2. Input dialog with a custom parameter:”

catalina.out is now showing:
Dec 15, 2021 4:43:08 PM com.vaadin.event.EventRouter addListener
WARNING: Adding listeners with type Object is deprecated, event listener should extend SerializableEventListener

I found this commit on the internet about this area of vaadin:

Looks like Cuba might need a tweak to “comply” with this change.

Thanks
Andrew

Hello,

thank you for reporting the problem! I’ve created an issue: cuba-platform/cuba#3252.

No Problem - Thank YOU!
Andrew

Hi,
I’ve installed 7.2.19 and I’m still seeing this error/warning message although it does appear less frequently I think:

26-Apr-2022 14:01:48.606 WARNING [https-openssl-nio-8443-exec-1] com.vaadin.event.EventRouter.addListener Adding listeners with type Object is deprecated, event listener should extend SerializableEventListener

Are there a few more classes need refactoring?

Thanks.

Andrew.

Hello!

I don’t see any uses of deprecated method in the CUBA. May be warning occurs from add-ons? Could share add-ons you use in the project?

Hello,

Yes you are right :grinning:

I did a test and found the errors (x4) appear when using the reporting add-on (also V7.2.19) and selecting edit button on a report.

Thank you.

Hello,
also in Maps addon (https://www.jmix.io/cuba-platform/marketplace/maps/) using cuba platform 7.2.19.

Thanks.

Regards,
Paolo

Hello,

thank you! I created an issue.

1 Like

Hi,
Is there an issue raised for Reports Add-On ?
Thanks
Andrew

Hello Andrew!

Reporting add-on does not provide its own components. It uses them from the CUBA web module. I did a little research and created an issue: cuba-platform/cuba#3268

Roman,
Great work.
Thank you.
Andrew