Re: Re: Error when using CheckClassAdapter

Amol Khanapurkar <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <OFF039EC23.FFD8D70F-ON652578D1.001B54A3-652578D1.001B943A@tcs.com>
Not just in ASM context, but I have experienced the
java.lang.NoSuchMethodError on Windows when java resolved to Microsoft VM
and on Linux when java resolved to gc java.

Explicitly pointing java to Sun Java or openJDK solved the problem for me.

Regards,
Amol

Amol Bhaskar Khanapurkar
Tata Consultancy Services
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty.	IT Services
			Business Solutions
			Outsourcing
____________________________________________


|------------>
| From:      |
|------------>
  >----------------------------------------------------------------------------------------------------------------------------------------|
  |Rémi Forax <[email protected]>                                                                                                          |
  >----------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >----------------------------------------------------------------------------------------------------------------------------------------|
  |Jayanga Wagaarachchi <[email protected]>                                                                                           |
  >----------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Cc:        |
|------------>
  >----------------------------------------------------------------------------------------------------------------------------------------|
  |[email protected]                                                                                                                             |
  >----------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >----------------------------------------------------------------------------------------------------------------------------------------|
  |07/17/2011 10:16 PM                                                                                                                     |
  >----------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >----------------------------------------------------------------------------------------------------------------------------------------|
  |[asm] Re: Error when using CheckClassAdapter                                                                                            |
  >----------------------------------------------------------------------------------------------------------------------------------------|





Not at runtime.

"Exception in thread "main" java.lang.NoSuchMethodError:
>org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V
>        at org.objectweb.asm.util.CheckClassAdapter.verify(Unknown Source)
"


Here you look for a ClassReader.accept(ClassVisitor,boolean)
but since ASM3 accept() takes an int as last parameter.

So in your classpath, you have a jar that contains a version of ASM2
before the ASM3 jars.

Rémi

On 07/17/2011 09:20 AM, Jayanga Wagaarachchi wrote:


      On Sun, Jul 17, 2011 at 7:53 PM, Remi Forax <[email protected]>
      wrote:
        Wild guess, you have updated asm.jar but not asm-util.jar?

      I have used asm-3.3.jar and asm-util-3.3.jar


      --
      Jayanga Wagaarachchi
      Computer Science and Engineering
      University of Moratuwa.

--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.