Skip to content

Issue with web socket notifications #907

Closed

Description

@ctron

I have an issue when running Hawkbit 0.3.0-M5, it fails to properly initialize the web socket notifications:

2019-11-04 17:01:44.531  INFO 1 --- [           main] org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereHandler com.vaadin.server.communication.PushAtmosphereHandler mapped to context-path: /*
2019-11-04 17:01:44.532  INFO 1 --- [           main] org.atmosphere.cpr.AtmosphereFramework   : Installed the following AtmosphereInterceptor mapped to AtmosphereHandler com.vaadin.server.communication.PushAtmosphereHandler
2019-11-04 17:01:44.540  INFO 1 --- [           main] org.atmosphere.util.IOUtils              : META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader
2019-11-04 17:01:44.565  INFO 1 --- [           main] org.atmosphere.cpr.AtmosphereFramework   : Atmosphere is using org.atmosphere.util.VoidAnnotationProcessor for processing annotation
2019-11-04 17:01:44.585  INFO 1 --- [           main] org.atmosphere.cpr.AtmosphereFramework   : Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol 
2019-11-04 17:01:44.602 ERROR 1 --- [           main] o.a.cpr.DefaultAsyncSupportResolver      : Failed to create comet support class: class org.atmosphere.container.Jetty9AsyncSupportWithWebSocket, error: null
2019-11-04 17:01:44.603 ERROR 1 --- [           main] o.a.cpr.DefaultAsyncSupportResolver      : Switching to BlockingIO

When opening the web page I always get a small red notification of "No data". In the log file I get:

2019-11-04 17:22:50.102  WARN 1 --- [tp2081964843-18] o.atmosphere.cpr.AsynchronousProcessor   : Websocket protocol not supported

Activity

  1. schabdo commented on Nov 4, 2019

    @schabdo
    Contributor

    I assume you are referring to this pop-up showing a message "No data":
    no-data

    This is not related to web sockets. It's indicating that there is no data available [cf. source]

  2. ctron commented on Nov 6, 2019

    @ctron
    Author

    But I still see the two errors I mentioned in the log. Or are they considered normal?

  3. schabdo commented on Nov 26, 2019

    @schabdo
    Contributor

    That's a tricky one. As far as I understood this message is caused by a combination of Jetty 9.3+ with Atmosphere version 2.2.9.vaadin2 (shipped with currently used Vaadin version). In this scenario Atmosphere's auto-detection of async container Servlet API won't work anymore (cf. Atmosphere/atmosphere#2242 and vaadin/framework#8135).

    But WebSocket push for hawkBit UI is still in place:

    org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereHandler com.vaadin.server.communication.PushAtmosphereHandler mapped to context-path: /*
    org.atmosphere.cpr.AtmosphereFramework   : Installed the following AtmosphereInterceptor mapped to AtmosphereHandler com.vaadin.server.communication.PushAtmosphereHandler
    ...
    org.atmosphere.cpr.AtmosphereFramework   : Installed AtmosphereInterceptor org.eclipse.hawkbit.ui.SpringSecurityAtmosphereInterceptor with priority AFTER_DEFAULT
    

    The error message should be fixed by #880 since this will upgrade Atmosphere as well

  4. linked a pull request that will close this issueMigrated Hawkbit UI to Vaadin 8 #980on Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions