Skip to content

When Use spring session,javamelody-core-1.69.0.jar in Tomcat ,can't start webapp. in javamelody-1.63.0 hasn't this problem. #672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
llade opened this issue Sep 14, 2017 · 1 comment

Comments

@llade
Copy link

llade commented Sep 14, 2017

javamelody-core-1.69.0 error message:

Caused by: java.lang.IllegalStateException: Need to invoke method 'cleanupExpiredSessions' declared on target class 'RedisOperationsSessionRepository', but not found in any interface(s) of the exposed proxy type. Either pull the method up to an interface or switch to CGLIB proxies by enforcing proxy-target-class mode in your configuration.
at org.springframework.core.MethodIntrospector.selectInvocableMethod(MethodIntrospector.java:135)

spring session xml config:

<bean id="redisHttpSessionConfiguration"  class="org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration" >
	    <property name="maxInactiveIntervalInSeconds" value="7200" />
	</bean>
	<bean class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
	    <property name="hostName" value="${redis.server.ip}" />
	    <property name="port" value="${redis.server.port}" />
	    <property name="password" value="${redis.server.password}"/>
	    <property name="database" value="15"></property>
	</bean>
evernat added a commit that referenced this issue Sep 20, 2017
…, but only when using monitoring-spring-scheduled.xml
@evernat
Copy link
Member

evernat commented Sep 20, 2017

This is fixed by 4d944ab.
Now, methods having annotations Async and Scheduled are monitored only when adding the new net/bull/javamelody/monitoring-spring-scheduled.xml in the Spring context.

A new build including the fix is available for download at:
https://javamelody.ci.cloudbees.com/job/javamelody/net.bull.javamelody$javamelody-core/

@evernat evernat closed this as completed Sep 20, 2017
goldyliang pushed a commit to goldyliang/javamelody that referenced this issue Mar 17, 2022
…omatically, but only when using monitoring-spring-scheduled.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants