JavaMelody 1.86.0 released

80 views
Skip to first unread message

Vernat Emeric

unread,
Nov 1, 2020, 11:49:58 AM11/1/20
to javam...@googlegroups.com

JavaMelody 1.86.0 was released. The release is available for download here:
https://github.com/javamelody/javamelody/releases

Release notes:

1.86.0

The Jenkins plugin, the JIRA, Confluence, Bamboo and Bitbucket plugin, the Liferay plugin, the Alfresco plugin, the Sonar plugin were also released. (Not yet for the Grails plugin)

bye, Emeric


Bryan Littlefield

unread,
Jan 14, 2021, 7:53:57 PM1/14/21
to javamelody
Hello,
We trying to get Liferay plugin 1.86 running with Liferay 7.2 sp2 , tomcat 9.0.33 & java 1.8.0_271.
It deploys fine, but when you try to access /monitoring it does not work, generating a "Filter exception" caused but missing ehcache CacheStatistics .
Do you know how we can work around this problem ?  
Thanks --Bryan
P.S.  Error message below:
2021-01-15 00:04:40.147 WARN  [http-nio-8080-exec-5][code_jsp:160] {code="500", msg="", uri=/monitoring}
javax.servlet.ServletException: Filter execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1594)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: net/sf/ehcache/management/CacheStatistics
at net.bull.javamelody.internal.model.CacheInformations.<init>(CacheInformations.java:77)
at net.bull.javamelody.internal.model.CacheInformations.buildCacheInformationsList(CacheInformations.java:175)
at net.bull.javamelody.internal.model.JavaInformations.<init>(JavaInformations.java:203)
at net.bull.javamelody.internal.web.MonitoringController.doActionIfNeededAndReport(MonitoringController.java:158)
at net.bull.javamelody.MonitoringFilter.doMonitoring(MonitoringFilter.java:408)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206)
at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)
at net.bull.javamelody.LiferayMonitoringFilter.doFilter(LiferayMonitoringFilter.java:109)
at sun.reflect.GeneratedMethodAccessor1312.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
at com.sun.proxy.$Proxy2125.doFilter(Unknown Source)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
... 18 more
Caused by: java.lang.ClassNotFoundException: net.sf.ehcache.management.CacheStatistics cannot be found by liferay-javamelody-hook_7.2.10.1
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:508)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:419)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:411)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:151)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 37 more


evernat

unread,
Jan 18, 2021, 3:59:20 PM1/18/21
to javamelody
Hi Bryan,

Yes, there is an issue with some versions of Liferay, including Liferay 7.2 DXP sp2, but excluding Liferay CE 7.3.0 GA1. See https://github.com/javamelody/liferay-javamelody/issues/14

In short, we are expecting from Liferay, that either Liferay exposes none of Ehcache classes, or Liferay exposes all Ehcache classes, but not half of them leaving us without knowing if we can use the Ehcache API.

bye,
Emeric
Reply all
Reply to author
Forward
0 new messages