me0wster / javamelody

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

HV000041: Call to TraversableResolver.isReachable() threw an exception #396

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Integrate javamelody 1.50 into atlassian stash 2.12.0 
(https://www.atlassian.com) by installing jar/war and modifying web.xml
2. Try to create a new repository within stash
3. Failure: HV000041: Call to TraversableResolver.isReachable() threw an 
exception

What is the expected output? What do you see instead?
Expected creation of new repository - above error is shown instead.

Removing javamelody from stash again, stash works correctly again

What version of the product are you using? On what application server, JDK, 
operating system?
Tomcat delivered with STASH 2.12.0 on Java 1.7, Win 2008Server Sp1

Please provide any additional information below.

Contacted Atlassian support, which identified javamelody to be the culprit 
according the following stack trace:
---------------
Caused by: java.lang.IllegalStateException: java.lang.ClassNotFoundException: 
Can't find a delegate
        at net.bull.javamelody.JpaPersistence.guessDelegate(JpaPersistence.java:176) ~[javamelody-1.50.0.jar:na]
        at net.bull.javamelody.JpaPersistence.loadOrGuessDelegate(JpaPersistence.java:144) ~[javamelody-1.50.0.jar:na]
        at net.bull.javamelody.JpaPersistence.getProviderUtil(JpaPersistence.java:129) ~[javamelody-1.50.0.jar:na]
        at javax.persistence.Persistence$1.isLoaded(Persistence.java:111) ~[hibernate-jpa-2.1-api-1.0.0.Final.jar:1.0.0.Final]
        at org.hibernate.validator.internal.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:57) ~[hibernate-validator-4.3.1.Final.jar:4.3.1.Final]
        at org.hibernate.validator.internal.engine.resolver.DefaultTraversableResolver.isReachable(DefaultTraversableResolver.java:130) ~[hibernate-validator-4.3.1.Final.jar:4.3.1.Final]
        at org.hibernate.validator.internal.engine.resolver.SingleThreadCachedTraversableResolver.isReachable(SingleThreadCachedTraversableResolver.java:46) ~[hibernate-validator-4.3.1.Final.jar:4.3.1.Final]
        at org.hibernate.validator.internal.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:1221) ~[hibernate-validator-4.3.1.Final.jar:4.3.1.Final]
        ... 29 common frames omitted
Caused by: java.lang.ClassNotFoundException: Can't find a delegate
        ... 37 common frames omitted

Original issue reported on code.google.com by hoppfrosch on 28 Mar 2014 at 9:40

GoogleCodeExporter commented 9 years ago
Forgot to say: Monitoring pages within stash have been showed correctly 
(without error)

Original comment by hoppfrosch on 28 Mar 2014 at 9:41

GoogleCodeExporter commented 9 years ago
This is an issue probably since v1.50.

So you can try v1.49 as work around:
http://javamelody.googlecode.com/files/jira-javamelody-1.49.0.jar

Original comment by evernat@free.fr on 28 Mar 2014 at 9:28

GoogleCodeExporter commented 9 years ago
It's fixed in trunk (revision 3781) and ready for the next release (1.51).
Thanks.

Original comment by evernat@free.fr on 27 Apr 2014 at 12:30