java - NoSuchMethodError when using spf4j -


i'm trying use spf4j https://github.com/zolyfarkas/spf4j

i've tagged method with:

@jmxexport @performancemonitor(warnthresholdmillis=1, errorthresholdmillis=100, recordersource = recordersourceinstance.rs5m.class) 

and exception on it:

exception in thread "awt-eventqueue-0" java.lang.nosuchmethoderror: org.spf4j.perf.aspects.performancemonitoraspect.aspectof()lorg/spf4j/perf/aspects/performancemonitoraspect; 

i'm starting application eclipse jdk 1.7.0_55 -javaagent:depend/aspectj/1.8.6/lib/aspectjweaver-1.8.6.jar , aop-ajc.xml in src/meta-inf folder

<?xml version="1.0" encoding="utf-8"?> <aspectj> <aspects>     <aspect name="org.spf4j.perf.aspects.performancemonitoraspect" /> </aspects> <weaver options="-verbose">     <include within="com.*..*" /> </weaver> </aspectj> 

also jmx beans not visible in visualvm @ point. doing wrong?

also logged issue here: https://github.com/zolyfarkas/spf4j/issues/4

this happens when performancemonitoraspect not being weaved aspectj

adding include org..* weaving include lib aspects fixes issue.

<weaver options="-verbose -debug -showweaveinfo">     <include within="com.example..*" />     <include within="org..*" /> </weaver> 

for more detail see


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -