High NoSuchMethodError count from Arc Event observers? #38076
Replies: 3 comments 4 replies
-
/cc @Ladicek (arc), @manovotn (arc), @mkouba (arc), @quarkusio/devtools (jbang) |
Beta Was this translation helpful? Give feedback.
-
There are events for scope [de]activation, or container readiness - this could in theory be observed by some other extension and not your own code perhaps? Otherwise IIRC, the notifiers created for this should be optimized to only fire events when there are observers for it. The stacktrace looks like this might be from the initialization of app context here? |
Beta Was this translation helpful? Give feedback.
-
@franz1981 pointed me to https://bugs.openjdk.org/browse/JDK-8161588 which shows the JDK uses exception for flow control caused by resolveOrNull. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For fun I was running with jfr enabled:
jbang --jfr=filename=profile.jfr,settings=profile hass-qli-early-access@maxandersen
this generates 28 NoSuchMethodError just to print out usage - this seem to be rooted in:
Stack Trace Count Percentage
void io.quarkus.arc.impl.EventImpl$ObserverExceptionHandler.() 2 7,14 %
If I do just a tad more like running actual code I goes to 72 NoSuchMethodError....
Whats weird is that I don't have an Event or observers in the user code at https://github.com/maxandersen/home-assistant-qli
...also shouldn't these no such method found be triggered at build time rather at runtime?
Beta Was this translation helpful? Give feedback.
All reactions