Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-1333

Class Cast Exception on weblog settings page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Tomcat 5.5.20, hibernate 3.2
    • Browser Version:
      all
    • Database:
      mySQL 5.0.27
    • JDK Version:
      1.5.0_09
    • O/S Version:
      Win 2K Advanced Server

      Description

      Class Cast Exception (java.lang.Long) when an integer value appears in referer table, dayHits field, means no access to the settings page for a weblog after a comment is made.

      Source code appears to cast an Integer at line 393 in HibernateRefererManagerImpl.java, but exception says it's a Long. Tweeking DB setup made no difference, but making fields nullable and null appears to work, albeit at the expense of hit counting.

        Attachments

          Activity

            People

            • Assignee:
              roller_unassigned Roller Unassigned
              Reporter:
              nostrodecus declan mcgarry
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: