jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Jetty
  • JETTY-107

Session Dump example produces an exception with 6.0.0rc3

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 6.0.0rc3
  • Fix Version/s: 6.0.0
  • Component/s: None
  • Labels:
    None
  • Environment:
    Running under Sun's 1.5.0-08 SDK under XenLinux 3 on Linux

Description

The example Session Dump servlet produces an exception

Accessing:

http://<jetty server>:8080/test/session/

after an initial unpack of the .zip produces the following:

HTTP ERROR: 500

com.acme.Counter

RequestURI=/test/session/

Powered by Jetty://
Caused by:

java.lang.ClassCastException: com.acme.Counter
at com.acme.SessionDump.doGet(SessionDump.java:117)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:443)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050)
at com.acme.TestFilter.doFilter(TestFilter.java:69)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:179)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:615)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
at org.mortbay.jetty.Server.handle(Server.java:269)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:678)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

Hardly a release show-stopper

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Greg Wilkins added a comment - 04/Sep/06 7:12 AM

the servlet has and assumption that all attributes are string!
So it will fail if it is run after other demos that set non string attributes!

Fixed for 6.0.0

Show
Greg Wilkins added a comment - 04/Sep/06 7:12 AM the servlet has and assumption that all attributes are string! So it will fail if it is run after other demos that set non string attributes! Fixed for 6.0.0

People

  • Assignee:
    Unassigned
    Reporter:
    Russell Howe
Vote (0)
Watch (0)

Dates

  • Created:
    04/Sep/06 5:21 AM
    Updated:
    04/Sep/06 7:12 AM
    Resolved:
    04/Sep/06 7:12 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.