me0wster / javamelody

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

stacktrace during data collection with 1.46.0 and jrobin 1.5.14 #328

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?

> 1. Run javamelody 1.46.0 together with latest jrobin 1.5.14 (worked with 
1.45.0 and 1.46.0 works with jrobin 1.5.9)

produces stacktrace below.

----
     [exec] 2013-08-05 18:43:20,568 [main] WARN  net.bull.javamelody - exception while collecting data
        [exec] java.lang.NoSuchFieldError: readOnly
        [exec]  at net.bull.javamelody.RrdNioBackend.mapFile(RrdNioBackend.java:92) ~[javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.RrdNioBackend.<init>(RrdNioBackend.java:64) ~[javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.RrdNioBackendFactory.open(RrdNioBackendFactory.java:84) ~[javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at org.jrobin.core.RrdDb.<init>(RrdDb.java:228) ~[jrobin-1.5.14.jar:1.5.14]
        [exec]  at org.jrobin.core.RrdDb.<init>(RrdDb.java:202) ~[jrobin-1.5.14.jar:1.5.14]
        [exec]  at org.jrobin.core.RrdDb.<init>(RrdDb.java:265) ~[jrobin-1.5.14.jar:1.5.14]
        [exec]  at org.jrobin.core.RrdDbPool.requestRrdDb(RrdDbPool.java:99) ~[jrobin-1.5.14.jar:1.5.14]
        [exec]  at net.bull.javamelody.JRobin.addValue(JRobin.java:299) ~[javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.Collector.collectJRobinValues(Collector.java:449) [javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.Collector.collectJavaInformations(Collector.java:358) [javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.Collector.collect(Collector.java:297) [javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.Collector.collectWithoutErrors(Collector.java:284) [javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.Collector.collectLocalContextWithoutErrors(Collector.java:274) [javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.FilterContext.initCollect(FilterContext.java:230) ~[javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.FilterContext.<init>(FilterContext.java:101) ~[javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at net.bull.javamelody.MonitoringFilter.init(MonitoringFilter.java:111) ~[javamelody-core-1.46.0.jar:1.46.0]
        [exec]  at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118) ~[na:na]
        [exec]  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) ~[na:na]
        [exec]  at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:763) ~[na:na]
        [exec]  at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265) ~[na:na]
        [exec]  at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242) ~[na:na]
        [exec]  at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) ~[na:na]
        [exec]  at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494) ~[na:na]
        [exec]  at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:298) ~[jetty-maven-plugin-8.1.12.v20130726.jar:8.1.12.v20130726]
        [exec]  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) ~[na:na]
        [exec]  at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229) ~[na:na]
        [exec]  at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172) ~[na:na]
        [exec]  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) ~[na:na]
        [exec]  at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229) ~[na:na]
        [exec]  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) ~[na:na]
        [exec]  at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) ~[na:na]
        [exec]  at org.eclipse.jetty.server.Server.doStart(Server.java:282) ~[na:na]
        [exec]  at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65) ~[jetty-maven-plugin-8.1.12.v20130726.jar:8.1.12.v20130726]
        [exec]  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) ~[na:na]
        [exec]  at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520) ~[jetty-maven-plugin-8.1.12.v20130726.jar:8.1.12.v20130726]
        [exec]  at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365) ~[jetty-maven-plugin-8.1.12.v20130726.jar:8.1.12.v20130726]
        [exec]  at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523) ~[jetty-maven-plugin-8.1.12.v20130726.jar:8.1.12.v20130726]

--------

> What is the expected output? What do you see instead?

Collection fails, so all graphs are empty

What version of the product are you using? On what application server, JDK,
operating system?

Please provide any additional information below.

Original issue reported on code.google.com by pether.s...@gmail.com on 5 Aug 2013 at 4:46

GoogleCodeExporter commented 9 years ago
I am experiencing exactly the same errors on Tomcat 7.0.12, JDK 1.7.0_21 under 
Windows 7 - running javamelody 1.46.0 together with jrobin 1.5.12.

I have been upgrading the application from javamelody 1.45.0 / jrobin 1.5.12.

Please let me know if you need any more information.

Original comment by torsten....@gmail.com on 6 Aug 2013 at 1:57

GoogleCodeExporter commented 9 years ago
This issue was introduced by revision 3430 in javamelody 1.46.0, when using 
jrobin 1.5.12 or 1.5.14.

javamelody 1.46.0 works when using jrobin 1.5.9. And it is supposed to be used 
with jrobin 1.5.9 as documented and defined in maven's pom.xml, for all 
javamelody versions.

jrobin 1.5.9 can be downloaded from 
http://javamelody.googlecode.com/files/jrobin-1.5.9.jar or from 
http://search.maven.org/remotecontent?filepath=org/jrobin/jrobin/1.5.9/jrobin-1.
5.9.jar

But I will look at what needs to be changed in javamelody to make it work with 
both jrobin 1.5.9, 1.5.12 and 1.5.14.
For example, we don't really need in net.bull.javamelody.RrdNioBackend to read 
this "readOnly" field from org.jrobin.core.RrdFileBackend, because we know the 
value of the field would always be false in our context.

Original comment by evernat@free.fr on 7 Aug 2013 at 7:56

GoogleCodeExporter commented 9 years ago
This is fixed in trunk (revision 3464) and ready for the next release (1.47).
I have made a new build from the current trunk and it is available at:
https://javamelody.googlecode.com/files/javamelody-20130810.jar

Thanks

Original comment by evernat@free.fr on 10 Aug 2013 at 4:15

GoogleCodeExporter commented 9 years ago
Thanx, the javamelody-20130810.jar works excellent.

Original comment by pether.s...@gmail.com on 28 Aug 2013 at 10:32