Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-26

Config error when setting DiskUsagePattern option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • jcs-1.3
    • jcs-2.0-beta-1
    • Composite Cache
    • None

    Description

      If I set the DiskUsagePattern as documented it triggers an error.

      eg if I put this in cache.ccf:

      jcs.default.cacheattributes.DiskUsagePattern=UPDATE

      at JCS setup time I will see an error:

      WARNING: Failed to set property diskUsagePattern to value "UPDATE". Conversion to type [short] failed.

      It is documented that this should work at http://jakarta.apache.org/jcs/RegionProperties.html.

      I think this is a bug in CompositeCacheAttributes not behaving quite like a proper javabean - getDiskUsagePattern and setDiskUsagePattern treat the diskUsagePattern property as having different types.

      Attachments

        1. disk.usage.diff
          0.5 kB
          Michael Stevens

        Activity

          People

            asmuts Aaron Smuts
            mstevens Michael Stevens
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: