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

Atmosphere on Tomcat/7.0.39 not Working with Servlet 3.0 Async API correctly #1144

Closed
confile opened this issue Jun 13, 2013 · 1 comment
Closed

Comments

@confile
Copy link

confile commented Jun 13, 2013

I figured out that Atmosphere 1.1.0 RC3 is not Working with Servlet 3.0 Async API correctly on Tomcat/7.0.39

I got this error:

2013-06-11 01:52:02,269 [http-bio-8080-exec-4] WARN  websocket.DefaultWebSocketProcessor  - Failed invoking AtmosphereFramework.doCometSupport()

Message: Null charset name

    Line | Method

->>  467 | lookup         in java.nio.charset.Charset

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|    540 | forName        in     ''

|     39 | <init> . . . . in test.ChatListenerService$1

|     38 | doGet          in test.ChatListenerService$$EO8PHbI8

|     21 | onRequest . .  in     ''

|    237 | action         in org.atmosphere.cpr.AsynchronousProcessor

|    164 | suspended . .  in     ''

|    137 | doService      in org.atmosphere.container.TomcatWebSocketUtil

|     61 | service . . .  in org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket

|   1572 | doCometSupport in org.atmosphere.cpr.AtmosphereFramework

|    434 | dispatch . . . in org.atmosphere.websocket.DefaultWebSocketProcessor

|    173 | open           in     ''

|     69 | onOpen . . . . in org.atmosphere.container.TomcatWebSocketHandler

|   1145 | runWorker      in java.util.concurrent.ThreadPoolExecutor

|    615 | run . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker

^    722 | run            in java.lang.Thread

2013-06-11 01:52:02,272 [http-bio-8080-exec-4] WARN  protocol.SimpleHttpProtocol  - java.lang.IllegalArgumentException: Null charset name Status 500 Message Server Error

I fixed it with the following in my web.xml:

    <init-param>
      <param-name>org.atmosphere.useNative</param-name>
      <param-value>true</param-value>
  </init-param>

Then it is working. What is wrong with the Servlet 3.0 Async API?

@jfarcand
Copy link
Member

Please use the mailing list :-) All samples works as expected, so something is wrong in your config.

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

No branches or pull requests

2 participants