Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4642

Atmosphere Modul not working on first page after Jetty restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.0.0-beta2
    • 6.0.0-beta3
    • wicket-atmosphere
    • Ubutnu 12.04 3.2.0-26-generic
      Embedded Jetty 8.1.3.v20120416

    Description

      After Jetty is started if the very first page being visited is a page with AtmosphereBehavior (using @Subscribe), for some reason by the time the page is being registered by EventBus (#registerPage(String trackingId, Page page)) the session is null and after the page has been rendered its not null any more thus having a different PageKey and so the events for the page are filtered out at line #140 or EventBus

      If you just add Session.get().bind() in the constructor method of your page, everything would work as expected.

      Attachments

        Activity

          People

            papegaaij Emond Papegaaij
            pausb Pouyan Zaxar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified