Hi Marco,
this could really be problem, for instrumentation you have to have asm
and asm-tree on your classpath and the version is 2.2.1.
You can specify this jar to classpath just for instrumentation, they are
used neither during test running (you can use your existing asm and
asm-attr jars) nor report generation.
Jirka
marco.mistroni@... napsal(a):
>
> hello,
> well after a while i realized that problem might be with asm..
> i am using cobertura-1.9.
> in my project i have *already* following files
> - asm.jar (don#t know which version as the downloaded file has no version)
> - asm-attrs.jar
>
> so obviously those will clash with asm jars needed by cobertura..
> i think problem is my environment, i'll try to sort it out and
> eventually get back to the list if i m stuck
>
> thanks and regars
> marco
>
>
>
>
>
>
>
> *Internet*
> *Jiri.Mares@...*
>
> 07/09/2007 18:37
>
>
> To
> Marco MISTRONI
> cc
> cobertura-devel
> Subject
> Re: [Cobertura-devel] error wtih instrumented classes
>
>
>
>
>
>
>
> Hi,
>
> what version of cobertura and what version of asm are you using?
>
> Jirka
>
> marco.mistroni@... napsal(a):
> >
> > hi all,
> > i have a webapp developed using jdk 1.5.
> > currently we are using emma for test-coverage, but as we would like to
> > implement some sort of coverage-check, we
> > decided to try out cobertura.
> > Unfortunatley, while running coberturan in my ant task i got a nasty
> > exception and i havent been able
> > to find what is hte problem (especially because i have limited web
> > access @work)
> >
> > i'll appreciate if someone can help me out..
> > For every class that i am trying to instrument i am receiving this
> > exception :
> >
> > [cobertura-instrument] java.lang.IllegalArgumentException: Unknown
> > attribute typ
> > e Signature
> > [cobertura-instrument] at org.objectweb.asm.Attribute.put(Unknown
> Source)
> > [cobertura-instrument] at
> > org.objectweb.asm.ClassWriter.visitField(Unknown Sour
> > ce)
> > [cobertura-instrument] at
> > org.objectweb.asm.ClassAdapter.visitField(Unknown Sou
> > rce)
> > [cobertura-instrument] at org.objectweb.asm.ClassReader.accept(Unknown
> > Source)
> > [cobertura-instrument] at org.objectweb.asm.ClassReader.accept(Unknown
> > Source)
> > [cobertura-instrument] at
> > net.sourceforge.cobertura.instrument.Main.addInstrume
> > ntationToSingleClass(Main.java:358)
> > [cobertura-instrument] at
> > net.sourceforge.cobertura.instrument.Main.addInstrume
> > ntation(Main.java:416)
> > [cobertura-instrument] at
> > net.sourceforge.cobertura.instrument.Main.parseArgume
> > nts(Main.java:492)
> > [cobertura-instrument] at
> > net.sourceforge.cobertura.instrument.Main.main(Main.j
> >
> >
> > can anyone help me out pls?
> >
> > thanks in advance and regards
> > marco
> >
> >
> > This communication is confidential, may be privileged and is meant
> only for the intended recipient. If you are
> > not the intended recipient, please notify the sender by reply and
> delete this message from your system. Any
> > unauthorised dissemination, distribution or copying hereof is prohibited.
> > BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation
> UK Limited, BNP Paribas UK Limited,
> > BNP Paribas Commodity Futures Ltd and Investment Fund Services
> Limited are authorised and regulated by
> > the Financial Services Authority.
> > BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private
> Bank are authorised by the CECEI
> > and AMF. BNP Paribas London Branch, BNP Paribas Securities Services
> London Branch and BNP Paribas
> > Private Bank London Branch are regulated by the Financial Services
> Authority for the conduct of their UK
> > business. BNP Paribas Securities Services London Branch is also a
> member of the London Stock Exchange.
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems? Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Cobertura-devel mailing list
> > Cobertura-devel@...
> > https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>
>
> This communication is confidential, may be privileged and is meant only for the intended recipient. If you are
> not the intended recipient, please notify the sender by reply and delete this message from your system. Any
> unauthorised dissemination, distribution or copying hereof is prohibited.
> BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited,
> BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are authorised and regulated by
> the Financial Services Authority.
> BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are authorised by the CECEI
> and AMF. BNP Paribas London Branch, BNP Paribas Securities Services London Branch and BNP Paribas
> Private Bank London Branch are regulated by the Financial Services Authority for the conduct of their UK
> business. BNP Paribas Securities Services London Branch is also a member of the London Stock Exchange.
>
>
|