Re: ASM fail with azureus (Vuze 4.2.0.8)
Rémi Forax <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Hi Pierre, it's not ASM, it's you :) A transformer is a weird beast, if you let an exception escape from a transformation, the VM disable the agent. Put a try/catch Throwable around the body of your method transform, you should find the runtime exception which cause you trouble. Rémi On 03/14/2011 05:05 PM, Pierre Caserta wrote > Hi, > I'm trying to instrument azureus using a javaagent and the asm > bytecode framework. > But a problem happen is in the 'transform' method, in the line : > ClassReader reader = new ClassReader(bytes); > This line silently fail everytimes (on all the classes) so > instrumentation can not be performed. > > I'm guessing it is a particularity of Azureus that makes asm fail at > instrumenting classes. > I tried my instrumentor on many software and it works everytimes. > > Does anyone know this problem and has an idea of how it can be solved ? > > Sincerely, > > Pierre Caserta > Nancy-Université INPL / LORIA, > Office C-121, > 615 Rue du Jardin Botanique, CS 20101 > 54603 VILLERS-LES-NANCY Cedex, FRANCE > Phone: (+33) (0)3 54 95 86 18 > Email: [email protected] > Web: www.loria.fr/~casertap
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