Skip to content
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

Upgrade to Atmosphere 2.4.2 #160

Closed
wants to merge 3 commits into from
Closed

Upgrade to Atmosphere 2.4.2 #160

wants to merge 3 commits into from

Conversation

payou
Copy link

@payou payou commented Feb 27, 2016

No description provided.

@@ -73,7 +74,19 @@ public void respond(IRequestCycle requestCycle)
{
WebApplication application = WebApplication.get();
Integer pageId = pageKey.getPageId();
Session.get().getPageManager().touchPage(new Page() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this is needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remember why.
I commit again

@@ -41,7 +41,7 @@
</repository>
</repositories>
<properties>
<atmosphere.version>2.2.8</atmosphere.version>
<atmosphere.version>2.4.2</atmosphere.version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.4.3 has been released in the meantime.

@martin-g
Copy link
Member

martin-g commented Mar 2, 2016

Ah, I didn't notice that you have updated the PR.
I'll test it locally and update to 2.4.3 if everything is OK.
Thank you!

@martin-g
Copy link
Member

martin-g commented Mar 6, 2016

There are some problems with the PR.
Initially its single unit test was failing.
I've fixed it by using again TesterBroadcaster.

Now deployment at Tomcat 8.x fails with:

java.lang.NullPointerException
    org.atmosphere.handler.ReflectorServletProcessor.loadServlet(ReflectorServletProcessor.java:104)
    org.atmosphere.handler.ReflectorServletProcessor.loadWebApplication(ReflectorServletProcessor.java:84)
    org.atmosphere.handler.ReflectorServletProcessor.init(ReflectorServletProcessor.java:172)
    org.atmosphere.cpr.AtmosphereFramework.initAtmosphereHandler(AtmosphereFramework.java:1732)
    org.atmosphere.cpr.AtmosphereFramework.initAtmosphereHandler(AtmosphereFramework.java:1721)
    org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:917)
    org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:838)
    org.atmosphere.cpr.AtmosphereFrameworkInitializer.configureFramework(AtmosphereFrameworkInitializer.java:75)
    org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:84)
    org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:80)
    org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:75)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)
    org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    java.lang.Thread.run(Thread.java:745)

Please take a look at branch https://github.com/apache/wicket/tree/pr-160-master and commit ebfa1bb

@martin-g
Copy link
Member

martin-g commented Mar 6, 2016

X-Ref: Atmosphere/atmosphere#2140

@MarcGiffing
Copy link

I've currently have problems with the lookup of the atmopshere.xml in an embedded tomcat.
Maybe the deprecated methods should be updated with the update of the latest atmosphere version.

EventBus.java:

private static Broadcaster lookupDefaultBroadcaster()
    {
        BroadcasterFactory factory = BroadcasterFactory.getDefault();
        if (factory == null)
        {
            throw new WicketRuntimeException(
                "There is no Atmosphere BroadcasterFactory configured. Did you include the "
                    + "atmosphere.xml configuration file and configured AtmosphereServlet?");
        }

The BroadcasterFactory.getDefault(); is deprecated and instead you should use:
org.atmosphere.cpr.AtmosphereConfig.resourcesFactory()

It's only a hint...I'm not sure if its related to my problem.

https://github.com/Atmosphere/atmosphere/wiki/Getting-BroadcasterFactory-and-AtmosphereResourceFactory-with-2.2-and-newer

With the release of Atmosphere 2.2.0, the static getters BroadcasterFactory.getDefault() and AtmosphereResourceFactory.getDefault() were deprecated, and from 2.3+ they are completely removed.

Okay...the static getters are still there ... :)

@BugHunterPhilosopher
Copy link

Good evening,

Any news with this PR, please? I'd really like it to join the wicket-7.x branch.

Thanks in advance.

@martin-g
Copy link
Member

martin-g commented Apr 9, 2016

Please try to make https://github.com/apache/wicket/tree/pr-160-master running againts latest Atmosphere version.
I've hit several issues with 2.4.x.

@martin-g
Copy link
Member

@payou Please close this PR! Wicket team decided to discontinue the support for Wicket-Atmosphere (see https://issues.apache.org/jira/browse/WICKET-6305). Thanks!

@payou payou closed this Feb 2, 2017
@payou
Copy link
Author

payou commented Feb 2, 2017

OK
Atmosphere is über complicated
So good luck with WebSocket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants