-
Notifications
You must be signed in to change notification settings - Fork 5
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
WS-Push not working properly when Component not in first place #50
Comments
I can see indeed similar behavior with the provided steps to reproduce: If the servlet is renamed to Now several notes here:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the bug / feature
If the FixedVaadinServlet class is alphabetically not in first place as opposed to the other Components, push will only work with long polling and logs show exceptions. It seems that the OSGi integration kicks in too early expecting the Servlet service present on the OSGi registry
Minimal reproducible example
Rename FixedVaadinServlet class to ZFixedVaadinServlet
Expected behavior
No exceptions in the logs, and Websocket reporting: Websocket successfully opened in the Browser logs
Actual behavior
2021-05-27T16:49:30,453 | DEBUG | FelixStartLevel | ServletInitializationRequirements | 183 - eu.abeel.platform.rwa.vaadin.osgi - 1.0.0 | bundle eu.abeel.platform.rwa.vaadin.osgi:1.0.0 (183)[eu.abeel.platform.rwa.vaadin.osgi.internal.ServletInitializationRequirements(12)] : Disposing component (reason: 6)
2021-05-27T16:49:30,464 | ERROR | FelixStartLevel | Felix | 5 - org.ops4j.pax.logging.pax-logging-api - 2.0.9 | Bundle org.ops4j.pax.web.pax-web-extender-whiteboard [101] EventDispatcher: Error during dispatch. (java.lang.IllegalArgumentException: Servlet [eu.abeel.platform.rwa.vaadin.osgi.internal.ResourceServlet@77207485 is not currently registered in any context)
java.lang.IllegalArgumentException: Servlet [eu.abeel.platform.rwa.vaadin.osgi.internal.ResourceServlet@77207485 is not currently registered in any context
at org.ops4j.pax.web.service.spi.model.ServiceModel.removeServlet(ServiceModel.java:95) ~[?:?]
at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregisterServlet(HttpServiceStarted.java:424) ~[?:?]
at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregisterServlet(HttpServiceProxy.java:144) ~[?:?]
at org.ops4j.pax.web.extender.whiteboard.internal.element.ServletWebElement.unregister(ServletWebElement.java:129) ~[?:?]
at org.ops4j.pax.web.extender.whiteboard.internal.WebApplication.unregisterWebElement(WebApplication.java:417) ~[?:?]
at org.ops4j.pax.web.extender.whiteboard.internal.WebApplication.removeWebElement(WebApplication.java:214) ~[?:?]
at org.ops4j.pax.web.extender.whiteboard.internal.tracker.AbstractTracker.removedService(AbstractTracker.java:243) ~[?:?]
at org.ops4j.pax.web.extender.whiteboard.internal.tracker.AbstractTracker.removedService(AbstractTracker.java:44) ~[?:?]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:969) ~[osgi.core-7.0.0.jar:?]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:871) ~[osgi.core-7.0.0.jar:?]
at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341) ~[osgi.core-7.0.0.jar:?]
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:911) ~[osgi.core-7.0.0.jar:?]
at org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990) ~[org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4833) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.Felix.access$000(Felix.java:112) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:434) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:170) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:145) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:241) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.Felix.stopBundle(Felix.java:2820) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1557) [org.apache.felix.framework-6.0.4.jar:?]
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [org.apache.felix.framework-6.0.4.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
Versions:
The text was updated successfully, but these errors were encountered: