NumberFormatException on Tomcat 7.0.21 + atmosphere-runtime-0.8-20110928.211312-65.jar

classic Classic list List threaded Threaded
2 messages Options
ale
Reply | Threaded
Open this post in threaded view
|

NumberFormatException on Tomcat 7.0.21 + atmosphere-runtime-0.8-20110928.211312-65.jar

ale
This post has NOT been accepted by the mailing list yet.
When upgrade to atmosphere-runtime-0.8-20110928.211312-65.jar I get this exception:

Stacktrace
20110929 032013920 INFO [Thread-22] o.a.c.AtmosphereServlet [AtmosphereServlet.java:533] initializing atmosphere framework: 0.8-SNAPSHOT
20110929 032013922 INFO [Thread-22] o.a.c.AtmosphereServlet [AtmosphereServlet.java:408] using default broadcaster class: class org.atmosphere.cpr.DefaultBroadcaster
20110929 032013939 INFO [Thread-22] o.a.c.AtmosphereServlet [AtmosphereServlet.java:871] successfully loaded handler: com.s4s.server.mensajero.AtmosphereHandler@2b7632 mapped to context-path: /api/gwt/comet
20110929 032014031 ERROR [Thread-22] o.a.c.AtmosphereServlet [AtmosphereServlet.java:574] failed to initialize atmosphere framework
java.lang.NumberFormatException: For input string: " Tomcat/7"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) ~[na:1.6.0_26]
        at java.lang.Integer.parseInt(Integer.java:449) ~[na:1.6.0_26]
        at java.lang.Integer.valueOf(Integer.java:554) ~[na:1.6.0_26]
        at org.atmosphere.container.Servlet30CometSupportWithWebSocket.<init>(Servlet30CometSupportWithWebSocket.java:76) ~[atmosphere-runtime-0.8-20110928.211312-65.jar:0.8-SNAPSHOT]
        at org.atmosphere.cpr.DefaultCometSupportResolver.defaultCometSupport(DefaultCometSupportResolver.java:171) ~[atmosphere-runtime-0.8-20110928.211312-65.jar:0.8-SNAPSHOT]
        at org.atmosphere.cpr.DefaultCometSupportResolver.resolve(DefaultCometSupportResolver.java:217) ~[atmosphere-runtime-0.8-20110928.211312-65.jar:0.8-SNAPSHOT]
        at org.atmosphere.cpr.DefaultCometSupportResolver.resolve(DefaultCometSupportResolver.java:231) ~[atmosphere-runtime-0.8-20110928.211312-65.jar:0.8-SNAPSHOT]
        at org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:966) ~[atmosphere-runtime-0.8-20110928.211312-65.jar:0.8-SNAPSHOT]
        at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:567) ~[atmosphere-runtime-0.8-20110928.211312-65.jar:0.8-SNAPSHOT]
        at com.google.inject.servlet.ServletDefinition.init(ServletDefinition.java:117) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.ManagedServletPipeline.init(ManagedServletPipeline.java:82) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:102) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:172) [guice-servlet-3.0.jar:na]
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273) [catalina.jar:7.0.16]
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254) [catalina.jar:7.0.16]
        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372) [catalina.jar:7.0.16]
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98) [catalina.jar:7.0.16]
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584) [catalina.jar:7.0.16]
        at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262) [catalina.jar:7.0.16]
        at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257) [catalina.jar:7.0.16]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_26]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_26]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_26]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]


Configuration
        serve("/api/gwt/*", "/api/rest/*").with(GuiceManagedAtmosphereServlet.class, new HashMap<String, String>() {
                {
                        put("org.atmosphere.cpr.CometSupport.maxInactiveActivity", String.valueOf(TimeUnit.SECONDS.toMillis(10)));
                        put(AtmosphereServlet.PROPERTY_NATIVE_COMETSUPPORT, "true");
                        put(AtmosphereServlet.DISABLE_ONSTATE_EVENT, "true");
                        put(AtmosphereServlet.PROPERTY_SERVLET_MAPPING, "/api/rest/*");
                        put(PackagesResourceConfig.PROPERTY_PACKAGES, "com.rest.package");
                }
        });

With atmosphere-runtime-0.8-xx-59.jar works fine.
Reply | Threaded
Open this post in threaded view
|

Re: NumberFormatException on Tomcat 7.0.21 + atmosphere-runtime-0.8-20110928.211312-65.jar

jfarcand
Administrator
OK fixed. Next time please use the new google group mailling list

http://groups.google.com/group/atmosphere-framework