Exception on page refresh

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Exception on page refresh

Joshua Partogi-2
Dear all,

Whenever I refresh the login page, I get this exception:
java.lang.ClassCastException: org.jsecurity.web.servlet.JSecurityHttpSession
        at org.mortbay.jetty.servlet.AbstractSessionManager.access(AbstractSessionManager.java:106)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:162)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
        at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:240)
        at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:252)
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1173)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:901)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
        at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382)
        at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)


I'm using the latest JSecurity 0.9 RC2.

--
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception on page refresh

Jeremy Haile
This was an issue with Jetty, which has been fixed in the most recent  
version.

Here's a forum thread discussing the issue: http://www.jsecurity.org/node/1045

Here's the Jetty JIRA issue: http://jira.codehaus.org/browse/JETTY-595


On Aug 25, 2008, at 1:09 AM, Joshua Partogi wrote:

> Dear all,
>
> Whenever I refresh the login page, I get this exception:
> java.lang.ClassCastException: org.jsecurity.web.servlet.JSecurityHttpSession
> at  
> org
> .mortbay
> .jetty
> .servlet.AbstractSessionManager.access(AbstractSessionManager.java:
> 106)
> at  
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 162)
> at  
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 722)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 404)
> at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
> at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
> at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel
> (InternalResourceView.java:240)
> at  
> org
> .springframework
> .web.servlet.view.AbstractView.render(AbstractView.java:252)
> at  
> org
> .springframework
> .web.servlet.DispatcherServlet.render(DispatcherServlet.java:1173)
> at  
> org
> .springframework
> .web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:901)
> at  
> org
> .springframework
> .web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
> at  
> org
> .springframework
> .web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:
> 571)
> at  
> org
> .springframework
> .web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at  
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1093)
> at  
> org
> .jsecurity
> .web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:
> 382)
> at  
> org
> .jsecurity
> .web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:
> 180)
> at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1084)
> at  
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 360)
> at  
> org
> .mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216)
> at  
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 181)
> at  
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 722)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 404)
> at  
> org
> .mortbay
> .jetty
> .handler
> .ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
> at  
> org
> .mortbay
> .jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at  
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 139)
> at org.mortbay.jetty.Server.handle(Server.java:324)
> at  
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 505)
> at org.mortbay.jetty.HttpConnection
> $RequestHandler.headerComplete(HttpConnection.java:828)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> at  
> org
> .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> 395)
> at org.mortbay.thread.BoundedThreadPool
> $PoolThread.run(BoundedThreadPool.java:450)
>
>
> I'm using the latest JSecurity 0.9 RC2.
>
> --
> Setting a new landmark.
> Blog: http://joshuajava.wordpress.com/
> Twitter: http://twitter.com/thejavafreak

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception on page refresh

Joshua Partogi-2
Thanks Jeremy. :-)

On Mon, Aug 25, 2008 at 12:17 PM, Jeremy Haile <[hidden email]> wrote:
> This was an issue with Jetty, which has been fixed in the most recent
> version.
>
> Here's a forum thread discussing the issue:
> http://www.jsecurity.org/node/1045
>
> Here's the Jetty JIRA issue: http://jira.codehaus.org/browse/JETTY-595

--
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Exception on page refresh

Jeremy Haile
No problem!  Let us know if you have any other problems integrating!


On Aug 25, 2008, at 1:41 AM, Joshua Partogi wrote:

> Thanks Jeremy. :-)
>
> On Mon, Aug 25, 2008 at 12:17 PM, Jeremy Haile <[hidden email]>  
> wrote:
>> This was an issue with Jetty, which has been fixed in the most recent
>> version.
>>
>> Here's a forum thread discussing the issue:
>> http://www.jsecurity.org/node/1045
>>
>> Here's the Jetty JIRA issue: http://jira.codehaus.org/browse/ 
>> JETTY-595
>
> --
> Setting a new landmark.
> Blog: http://joshuajava.wordpress.com/
> Twitter: http://twitter.com/thejavafreak

Loading...