Giter VIP home page Giter VIP logo

Comments (2)

eliasbalasis avatar eliasbalasis commented on May 28, 2024

after investigating atmoshpere server-side implementation

it seems that wAsync takes advantage of "org.atmosphere.cpr.allowQueryStreamAsPostOrGet" atmosphere servlet init parameter

I wasn't aware of this init parameter
I discovered it while investigating

I will try this, and let you know
however, consider documenting this somehow or providing some fix
perhaps an option in requestBuilder to take advantage of headers or query string respectively

from wasync.

eliasbalasis avatar eliasbalasis commented on May 28, 2024

according to comment in org.atmosphere.cpr.ApplicationConfig the org.atmosphere.cpr.allowQueryStreamAsPostOrGet atmosphere servlet init parameter defaults to true

anyway,
either with org.atmosphere.cpr.allowQueryStreamAsPostOrGet atmosphere servlet init parameter set to true
or without it at all
the behavior is same
an error occurs when matching context path for my atmosphere handler on server-side

04:27:20,043 ERROR stderr java.lang.StringIndexOutOfBoundsException: String index out of range: -1

04:27:20,043 ERROR stderr at java.lang.String.substring(String.java:1911)

04:27:20,044 ERROR stderr at org.atmosphere.util.DefaultEndpointMapper.map(DefaultEndpointMapper.java:134)

04:27:20,044 ERROR stderr at org.atmosphere.util.DefaultEndpointMapper.map(DefaultEndpointMapper.java:106)

04:27:20,044 ERROR stderr at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:204)

04:27:20,045 ERROR stderr at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:164)

04:27:20,045 ERROR stderr at org.atmosphere.container.JBossWebCometSupport.service(JBossWebCometSupport.java:112)

04:27:20,045 ERROR stderr at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1485)

04:27:20,045 ERROR stderr at org.atmosphere.cpr.AtmosphereServlet.event(AtmosphereServlet.java:422)

04:27:20,046 ERROR stderr at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterEvent(ApplicationFilterChain.java:458)

04:27:20,046 ERROR stderr at org.apache.catalina.core.ApplicationFilterChain.doFilterEvent(ApplicationFilterChain.java:364)

04:27:20,046 ERROR stderr at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)

04:27:20,046 ERROR stderr at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

04:27:20,047 ERROR stderr at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389)

04:27:20,047 ERROR stderr at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

04:27:20,047 ERROR stderr at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

04:27:20,047 ERROR stderr at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

04:27:20,048 ERROR stderr at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

04:27:20,048 ERROR stderr at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

04:27:20,048 ERROR stderr at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

04:27:20,048 ERROR stderr at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

04:27:20,048 ERROR stderr at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:880)

04:27:20,049 ERROR stderr at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:607)

04:27:20,049 ERROR stderr at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2036)

04:27:20,049 ERROR stderr at java.lang.Thread.run(Thread.java:722)

but I should be posting this as a new issue

closing....

from wasync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.