commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wayne <whwa...@gmail.com>
Subject Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(ZZ)V
Date Tue, 07 Jun 2011 09:25:09 GMT
Jörg:

   hi!
    I  list the classpath table as follow:

   <?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src/java"/>
	<classpathentry kind="src" path="src/resources"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry combineaccessrules="false" kind="src" path="/JPPF"/>
	<classpathentry kind="lib"
path="F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node.jar"/>
	<classpathentry kind="lib"
path="F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node-src.jar"/>
	<classpathentry kind="lib"
path="F:/jppfrun/JPPF-2.4-node/lib/log4j-1.2.15.jar"/>
	<classpathentry kind="lib"
path="F:/jppfrun/JPPF-2.4-node/lib/slf4j-api-1.6.1.jar"/>
	<classpathentry kind="lib"
path="F:/jppfrun/JPPF-2.4-node/lib/slf4j-log4j12-1.6.1.jar"/>
	<classpathentry kind="lib" path="C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1.jar"/>
	<classpathentry kind="lib" path="C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1-javadoc.jar"/>
	<classpathentry kind="lib" path="C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1-sources.jar"/>
	<classpathentry kind="lib" path="C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar"/>
	<classpathentry kind="lib" path="C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-api-1.1.1.jar"/>
	<classpathentry kind="lib" path="C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-tests.jar"/>
	<classpathentry kind="lib" path="C:/Documents and
Settings/whwayne/Desktop/jar/bcel-5.2/bcel-5.2/bcel-5.2.jar"/>
	<classpathentry kind="lib" path="C:/Documents and
Settings/whwayne/Desktop/jar/asm-4.0_RC1.jar"/>
	<classpathentry kind="output" path="classes"/>
</classpath>


I  try to use  the latest version of  ASM-4.0_RC1.jar. If I use bcel
library, I will meet
org.apache.bcel.verifier.exc.AssertionViolatedException, else if I use
ASM Transformer,
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter will be
thrown. I really
do not know how to do?

Wayne






2011/6/7 Jörg Schaible <joerg.schaible@scalaris.com>:
> Hi,
>
> wayne wrote:
>
>> Hi All:
>>
>> I use [javaflow] Ant task with ASM transformer
>> but it still terminates with java.lang.NoSuchMethodError:
>> org.objectweb.asm.ClassWriter.<init>(ZZ)V
>>
>>
>> Torsten mentioned the solution as follow:
>> (http://mail-archives.apache.org/mod_mbox/commons-
> user/200608.mbox/%3C98e4f1cd0608240555j5fd1ead9ma44d2f77ba7e73bc@mail.gmail.com%3E)
>>
>>
>>> For the task:
>>> I tried asm 2.2.3 and asm 3.0 RC1, but I always get this exception:
>>> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(ZZ)V
>>>
>>> I can't make any sense out of it.
>>
>> Looks like for some reason you have the wrong version of ASM in your
>> classpath?!
>
> Typically ASM versions are not compatible between major releases. Even
> worse, some 3rd party libraries contain silently some of the ASM classes
> without shading them. Can you therefore list your complete classpath here?
>
> Torsten: Which version of ASM is used by Javaflow?
>
> [snip]
>
> -
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message