This issue is fallout from the ASM upgrade.

I'm exploring with this guy whether cobertura can be used in such a way to not 
mix the two class paths which may solve this particular issue.

Begin forwarded message:

> From: Gradle <[email protected]>
> Subject: New reply: Cobertura instrumentation fails in Gradle 1.2
> Date: 13 September 2012 1:01:14 PM GMT+01:00
> To: Gradle <[email protected]>
> 
> Dan Stine replied to Cobertura instrumentation fails in Gradle 1.2, a problem 
> about Gradle.
> 
> I tried, but maybe I am not doing it correctly; please let me know! 
> 
> ASM is a dependency of my project via two paths. One is Cobertura, one is 
> tberglund's gradle-liquibase-plugin. 
> 
> I declared this to upgrade ASM for Cobertura: 
> 
> testRuntime module('net.sourceforge.cobertura:cobertura:1.9.4.1') { 
> dependency 'oro:oro:2.0.8' 
> dependency 'org.ow2.asm:asm:4.0' 
> dependency 'org.ow2.asm:asm-tree:4.0' 
> dependency 'log4j:log4j:1.2.9' 
> dependency 'org.apache.ant:ant:1.7.0' 
> } 
> 
> 
> And I commented out the gradle-liquibase-plugin dependency for the moment. 
> 
> But then Cobertura has an error, I think because it wants the old ASM (see 
> below). Unless I'm missing something, Cobertura itself would have to be 
> re-released for ASM 4. 
> 
> 
> [ant:cobertura-instrument] java.lang.NoClassDefFoundError: 
> org/objectweb/asm/ClassAdapter 
> [ant:cobertura-instrument] at java.lang.ClassLoader.defineClass1(Native 
> Method) 
> [ant:cobertura-instrument] at 
> java.lang.ClassLoader.defineClass(ClassLoader.java:791) 
> [ant:cobertura-instrument] at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) 
> [ant:cobertura-instrument] at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:449) 
> [ant:cobertura-instrument] at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:71) 
> [ant:cobertura-instrument] at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:361) 
> [ant:cobertura-instrument] at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
> [ant:cobertura-instrument] at 
> java.security.AccessController.doPrivileged(Native Method) 
> [ant:cobertura-instrument] at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:354) 
> [ant:cobertura-instrument] at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:423) 
> [ant:cobertura-instrument] at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) 
> [ant:cobertura-instrument] at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:356) 
> [ant:cobertura-instrument] at java.lang.Class.getDeclaredMethods0(Native 
> Method) 
> [ant:cobertura-instrument] at 
> java.lang.Class.privateGetDeclaredMethods(Class.java:2442) 
> [ant:cobertura-instrument] at java.lang.Class.getMethod0(Class.java:2685) 
> [ant:cobertura-instrument] at java.lang.Class.getMethod(Class.java:1620) 
> [ant:cobertura-instrument] at 
> sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:492) 
> [ant:cobertura-instrument] at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:484) 
> [ant:cobertura-instrument] Caused by: java.lang.ClassNotFoundException: 
> org.objectweb.asm.ClassAdapter 
> [ant:cobertura-instrument] at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:366) 
> [ant:cobertura-instrument] at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
> [ant:cobertura-instrument] at 
> java.security.AccessController.doPrivileged(Native Method) 
> [ant:cobertura-instrument] at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:354) 
> [ant:cobertura-instrument] at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:423) 
> [ant:cobertura-instrument] at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) 
> [ant:cobertura-instrument] at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:356) 
> [ant:cobertura-instrument] ... 18 more 
> [ant:cobertura-instrument] Exception in thread "main" 
> 
> Go look at this reply | Stop following this problem
> 
> 
> This message sent from the Gradle community on Get Satisfaction. 
> To unsubscribe or change your email settings, click here.
> 
> 
> ----------------
> Create a customer community for your company at GetSatisfaction.com.
> 

-- 
Luke Daley
Principal Engineer, Gradleware 
http://gradleware.com

Reply via email to