zcwslnh / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

javamelody v1.21.0 requires jdk 1.6, when "displayed-counters" is used #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://download.oracle.com/javase/6/docs/api/java/lang/String.html#isEmpty%28%29
 is a JDK 1.6 call.

2010-10-31 21:05:20.732:WARN::failed javamelodyMonitoringFilter: 
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
2010-10-31 21:05:20.732:WARN::failed 
org.mortbay.jetty.webapp.WebAppContext@336f59{/tokenverify,file:/var/lib/hudson/
jetty-6.1.24/webapps/security-token-validate-ws-war-1.1.1-SNAPSHOT.war}: 
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
2010-10-31 21:05:20.740:INFO::Extract 
file:/var/lib/hudson/jetty-6.1.24/webapps/cometd.war to 
/tmp/Jetty_0_0_0_0_6666_cometd.war__cometd__.s1vcg5/webapp
2010-10-31 21:05:22.104:WARN::failed ContextHandlerCollection@f43dac: 
org.mortbay.util.MultiException[java.lang.NoSuchMethodError: 
java.lang.String.isEmpty()Z, java.lang.NoSuchMethodError: 
java.lang.String.isEmpty()Z, java.lang.NoSuchMethodError: 
java.lang.String.isEmpty()Z]
2010-10-31 21:05:22.108:INFO::Opened 
/var/lib/hudson/jetty-6.1.24/logs/2010_10_31.request.log
2010-10-31 21:05:22.108:WARN::failed HandlerCollection@fd025d: 
org.mortbay.util.MultiException[java.lang.NoSuchMethodError: 
java.lang.String.isEmpty()Z, java.lang.NoSuchMethodError: 
java.lang.String.isEmpty()Z, java.lang.NoSuchMethodError: 
java.lang.String.isEmpty()Z]
2010-10-31 21:05:22.108:WARN::Error starting handlers
org.mortbay.util.MultiException[java.lang.NoSuchMethodError: 
java.lang.String.isEmpty()Z, java.lang.NoSuchMethodError: 
java.lang.String.isEmpty()Z, java.lang.NoSuchMethodError: 
java.lang.String.isEmpty()Z]
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:148)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at org.mortbay.start.Main.invokeMain(Main.java:194)
        at org.mortbay.start.Main.start(Main.java:534)
        at org.mortbay.start.Main.start(Main.java:441)
        at org.mortbay.start.Main.main(Main.java:119)
2010-10-31 21:05:22.129:INFO::Started SelectChannelConnector@0.0.0.0:6666

Original issue reported on code.google.com by davidkar...@gmail.com on 31 Oct 2010 at 8:08

GoogleCodeExporter commented 9 years ago
You are right, javamelody should be compatible with jdk 1.5.
And this error happens when version 1.21.0 and the "displayed-counters" 
parameter are used with jdk 1.5.
It is now fixed in trunk of svn (revision 1367) and ready for next release 
(v1.22) in about a month.

To workaround the issue, you can either:
- use javamelody v1.20.0
- or use the new build I have made from trunk with the fix:
http://javamelody.googlecode.com/files/javamelody-20101101.jar
- or do not use the "displayed-counters" parameter (note that graphics and 
statistics for counters are now displayed automatically when they are used)

Thanks for the issue.

Original comment by evernat@free.fr on 1 Nov 2010 at 10:45