Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-331

[FIX] Horrible Exception stack trace when database access becomes interrupted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.4b5-dev / CVS
    • None
    • Database
    • None
    • Operating System: Other
      Platform: Other
    • 20511

    Description

      This will happen when database access suddenly becomes unavailable. An example
      would be when Oracle returns org.apache.torque.TorqueException: "ORA-00020:
      maximum number of processes exceeded". The LoginException is not being trapped
      in the JetspeedSessionValidator.

      We should be displaying a more user friendly message.

      Relevant part of the stack trace:

      [05 Jun 2003 10:14:13 ERROR] - Turbine.handleException: Failed to get anonymous
      user: org.apache.jetspeed.services.security.UserException: Failed to retrieve
      user 'anon': Connection object was null. This could be due to a
      misconfiguration of the DataSourceFactory. Check the logs and Torque.properties
      to better determine the cause.
      [05 Jun 2003 10:14:13 ERROR] -
      org.apache.jetspeed.services.security.LoginException: Failed to get anonymous
      user: org.apache.jetspeed.services.security.UserException: Failed to retrieve
      user 'anon': Connection object was null. This could be due to a
      misconfiguration of the DataSourceFactory. Check the logs and Torque.properties
      to better determine the cause.
      at
      org.apache.jetspeed.services.security.turbine.TurbineAuthentication.getAnonymous
      User(TurbineAuthentication.java:222)
      at org.apache.jetspeed.services.JetspeedAuthentication.getAnonymousUser
      (JetspeedAuthentication.java:102)
      at org.apache.jetspeed.services.JetspeedSecurity.getAnonymousUser
      (JetspeedSecurity.java:174)
      at
      org.apache.jetspeed.modules.actions.TemplateSessionValidator.doPerform
      (TemplateSessionValidator.java:97)
      at
      org.apache.jetspeed.modules.actions.JetspeedSessionValidator.doPerform
      (JetspeedSessionValidator.java:103)

      Attachments

        Activity

          People

            morciuch@apache.org Mark Orciuch
            morciuch@apache.org Mark Orciuch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: