You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by chrome1235 <ke...@gmail.com> on 2013/03/13 23:01:55 UTC

Wicket Atmosphere with CryptoMapper gives exception.

Hi,

When I use the Atmosphere with CryptoMapper it gives
"org.atmosphere.cpr.AtmosphereMappingException"  
How can I solve this problem?
Thanks .
Kemal


Application Initilization Method:
	@Override
	protected void init() {
		super.init();
		initAtmosphere();
		IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(),
this);
		setRootRequestMapper(cryptoMapper);
	}

web.xml 

    <servlet>
        <servlet-name>AtmosphereApplication</servlet-name>
        <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
        <init-param>
            <param-name>applicationClassName</param-name>
           
<param-value>com.chrome.wicket.ext.atm.AtmosphereApplication</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.useWebSocket</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.useNative</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.sessionSupport</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
           
<param-name>org.atmosphere.cpr.CometSupport.maxInactiveActivity</param-name>
            <param-value>30000</param-value>
        </init-param>
        <init-param>
            <param-name>filterMappingUrlPattern</param-name>
            <param-value>/*</param-value>
        </init-param>
        <init-param>
           
<param-name>org.atmosphere.websocket.WebSocketProtocol</param-name>
           
<param-value>org.atmosphere.websocket.protocol.EchoProtocol</param-value>
        </init-param>
        <init-param>
           
<param-name>org.atmosphere.cpr.broadcastFilterClasses</param-name>
           
<param-value>org.apache.wicket.atmosphere.TrackMessageSizeFilter</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>AtmosphereApplication</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>



Exception:
org.atmosphere.cpr.AtmosphereMappingException: No AtmosphereHandler maps
request for /A7-TzylrsD0NeLU_GE2Phg/A7-56 at
org.atmosphere.cpr.AsynchronousProcessor.map(AsynchronousProcessor.java:370)
at
org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:206)
at
org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:166)
at
org.atmosphere.container.Jetty7CometSupport.service(Jetty7CometSupport.java:96)
at
org.atmosphere.container.JettyAsyncSupportWithWebSocket.service(JettyAsyncSupportWithWebSocket.java:70)
at
org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1307)
at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:293)
at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:279) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598) at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:350) at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Thread.java:662)




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-with-CryptoMapper-gives-exception-tp4657223.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket Atmosphere with CryptoMapper gives exception.

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

I think you should ask in Atmosphere mailing list.
The servlet mapping is on /* so I'm not sure why Atmosphere rejects the
request to /A7-TzylrsD0NeLU_GE2Phg/A7-56.
IMO it should accept and pass it to WicketFilter where the request path
will be decrypted and processed.


On Wed, Mar 13, 2013 at 11:01 PM, chrome1235 <ke...@gmail.com> wrote:

> Hi,
>
> When I use the Atmosphere with CryptoMapper it gives
> "org.atmosphere.cpr.AtmosphereMappingException"
> How can I solve this problem?
> Thanks .
> Kemal
>
>
> Application Initilization Method:
>         @Override
>         protected void init() {
>                 super.init();
>                 initAtmosphere();
>                 IRequestMapper cryptoMapper = new
> CryptoMapper(getRootRequestMapper(),
> this);
>                 setRootRequestMapper(cryptoMapper);
>         }
>
> web.xml
>
>     <servlet>
>         <servlet-name>AtmosphereApplication</servlet-name>
>         <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>         <init-param>
>             <param-name>applicationClassName</param-name>
>
> <param-value>com.chrome.wicket.ext.atm.AtmosphereApplication</param-value>
>         </init-param>
>         <init-param>
>             <param-name>org.atmosphere.useWebSocket</param-name>
>             <param-value>true</param-value>
>         </init-param>
>         <init-param>
>             <param-name>org.atmosphere.useNative</param-name>
>             <param-value>true</param-value>
>         </init-param>
>         <init-param>
>             <param-name>org.atmosphere.cpr.sessionSupport</param-name>
>             <param-value>true</param-value>
>         </init-param>
>         <init-param>
>
>
> <param-name>org.atmosphere.cpr.CometSupport.maxInactiveActivity</param-name>
>             <param-value>30000</param-value>
>         </init-param>
>         <init-param>
>             <param-name>filterMappingUrlPattern</param-name>
>             <param-value>/*</param-value>
>         </init-param>
>         <init-param>
>
> <param-name>org.atmosphere.websocket.WebSocketProtocol</param-name>
>
> <param-value>org.atmosphere.websocket.protocol.EchoProtocol</param-value>
>         </init-param>
>         <init-param>
>
> <param-name>org.atmosphere.cpr.broadcastFilterClasses</param-name>
>
>
> <param-value>org.apache.wicket.atmosphere.TrackMessageSizeFilter</param-value>
>         </init-param>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>
>     <servlet-mapping>
>         <servlet-name>AtmosphereApplication</servlet-name>
>         <url-pattern>/*</url-pattern>
>     </servlet-mapping>
>
>
>
> Exception:
> org.atmosphere.cpr.AtmosphereMappingException: No AtmosphereHandler maps
> request for /A7-TzylrsD0NeLU_GE2Phg/A7-56 at
>
> org.atmosphere.cpr.AsynchronousProcessor.map(AsynchronousProcessor.java:370)
> at
>
> org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:206)
> at
>
> org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:166)
> at
>
> org.atmosphere.container.Jetty7CometSupport.service(Jetty7CometSupport.java:96)
> at
>
> org.atmosphere.container.JettyAsyncSupportWithWebSocket.service(JettyAsyncSupportWithWebSocket.java:70)
> at
>
> org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1307)
> at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:293)
> at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:279)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598) at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
> at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
> at
>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
> at
>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
> at
>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
> at
>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
> at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> at
>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
> at
>
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
> at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
> at org.eclipse.jetty.server.Server.handle(Server.java:350) at
>
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
> at
>
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
> at
>
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at
>
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
> at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
> at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
> at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
> at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
> at java.lang.Thread.run(Thread.java:662)
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-with-CryptoMapper-gives-exception-tp4657223.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>