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)
  • Sonar
  • SONAR-2208

undefined method `getSystemLoadAverage'

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.5
  • Fix Version/s: 2.7
  • Component/s: Administration
  • Labels:
    None
  • Environment:
    Hide
    JVM Vendor Sun Microsystems Inc.
    JVM Name Java HotSpot(TM) Server VM
    JVM Version 1.5.0_22-b03
    Java Version 1.5.0_22-b03
    Java Home C:\Program Files\Java\jdk1.5.0_22\jre
    JIT Compiler -
    Application Server Container jetty/6.1.24
    Show
    JVM Vendor Sun Microsystems Inc. JVM Name Java HotSpot(TM) Server VM JVM Version 1.5.0_22-b03 Java Version 1.5.0_22-b03 Java Home C:\Program Files\Java\jdk1.5.0_22\jre JIT Compiler - Application Server Container jetty/6.1.24

Description

Following Error is written to the logfile when opening the System Info

ERROR rails undefined method `getSystemLoadAverage' for #<#<Class:01x77608>:0x40850c>

The page shows:
System Load Average (last minute) N/A

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Evgeny Mandrikov added a comment - 18/Feb/11 3:27 AM

Hi Michael,
Could you please also specify version of Windows, which you use?

Show
Evgeny Mandrikov added a comment - 18/Feb/11 3:27 AM Hi Michael, Could you please also specify version of Windows, which you use?
Hide
Permalink
Simon Brandhof added a comment - 18/Feb/11 3:30 AM - edited

Indeed this method of java.lang.management.OperatingSystemMXBean has been added in Java 1.6 : see http://download.oracle.com/javase/6/docs/api/java/lang/management/OperatingSystemMXBean.html#getSystemLoadAverage()

Show
Simon Brandhof added a comment - 18/Feb/11 3:30 AM - edited Indeed this method of java.lang.management.OperatingSystemMXBean has been added in Java 1.6 : see http://download.oracle.com/javase/6/docs/api/java/lang/management/OperatingSystemMXBean.html#getSystemLoadAverage()
Hide
Permalink
Simon Brandhof added a comment - 18/Feb/11 3:32 AM

I suggest to not log error when this method call fails. Value will still be N/A on Java 5 runtimes.

Show
Simon Brandhof added a comment - 18/Feb/11 3:32 AM I suggest to not log error when this method call fails. Value will still be N/A on Java 5 runtimes.
Hide
Permalink
Evgeny Mandrikov added a comment - 18/Feb/11 3:46 AM

FYI: since this code was placed directly in ruby-script, it wasn't detected by animal-sniffer during compatibility check.

Show
Evgeny Mandrikov added a comment - 18/Feb/11 3:46 AM FYI: since this code was placed directly in ruby-script, it wasn't detected by animal-sniffer during compatibility check.

People

  • Assignee:
    Simon Brandhof
    Reporter:
    Michael Schaaf
Vote (0)
Watch (0)

Dates

  • Created:
    18/Feb/11 3:16 AM
    Updated:
    18/Mar/11 8:22 AM
    Resolved:
    22/Feb/11 9:42 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.