[prev in list] [next in list] [prev in thread] [next in thread]
List: soot-list
Subject: Re: [Soot-list] Scene.v().getMethod() unable to find the method
From: "Bodden, Eric" <eric.bodden () sit ! fraunhofer ! de>
Date: 2014-10-15 15:15:36
Message-ID: 5ED28C18-8367-4318-81FB-A89DEB1AAE07 () sit ! fraunhofer ! de
[Download RAW message or body]
Hi again.
You should not use loadClassAndSupport. It's really not recommended unless you really \
know what you are doing.
Try calling Scene.v().addBasicClass("Hooks") *before* you call soot.Main.main. That's \
the preferred way.
Cheers,
Eric
On 15.10.2014, at 12:23, Rashmi Mudduluru <mudduluru.rashmi@csa.iisc.ernet.in> wrote:
> Hi Eric,
>
> I am now able to load this class using
> Scene.v().loadClassAndSupport("Hooks").
> However, when I do this, soot is not able to load the classes that was
> earlier analyzing.
> (i.e) I have a class named Class1 which I am analyzing. On introducing
> this statement, "Scene.v().loadClassAndSupport("Hooks")" sott says that
> Class1 is a phantom class.
>
> > Hi Rashmi.
> >
> > Is the method "Hooks: void testing()" somehow known to Soot? Did you load
> > the class Hooks into the scene?
> >
> > Cheers,
> > Eric
> >
> > On 14.10.2014, at 19:32, Rashmi Mudduluru
> > <mudduluru.rashmi@csa.iisc.ernet.in> wrote:
> >
> > > Hi,
> > >
> > > I am instrumenting a java class file using soot.
> > > I want to insert a hook to a method after every assignment statement.
> > > I followed the instructions as given in the tutorial:
> > > http://www.sable.mcgill.ca/soot/tutorial/profiler2/profiler2.html
> > >
> > > I get the following Runtime error:
> > >
> > > Exception in thread "main" java.lang.RuntimeException: tried to get
> > > nonexistent method <Hooks: void testing()>
> > > at soot.Scene.getMethod(Scene.java:394)
> > > at Instrumentor.instrument(Instrumentor.java:60)
> > >
> > > Has anyone faced this issue before?
> > >
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > >
> > > _______________________________________________
> > > Soot-list mailing list
> > > Soot-list@CS.McGill.CA
> > > https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
> >
> > --
> > Prof. Eric Bodden, Ph.D., http://sse.ec-spride.de/ http://bodden.de/
> > Head of Secure Software Engineering at Fraunhofer SIT, TU Darmstadt and EC
> > SPRIDE
> > Tel: +49 6151 16-75422 Fax: +49 6151 869-127
> > Room B5.11, Fraunhofer SIT, Rheinstraße 75, 64295 Darmstadt
> >
> >
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
--
Prof. Eric Bodden, Ph.D., http://sse.ec-spride.de/ http://bodden.de/
Head of Secure Software Engineering at Fraunhofer SIT, TU Darmstadt and EC SPRIDE
Tel: +49 6151 16-75422 Fax: +49 6151 869-127
Room B5.11, Fraunhofer SIT, Rheinstraße 75, 64295 Darmstadt
["signature.asc" (signature.asc)]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQIcBAEBCAAGBQJUPo+YAAoJEBflvf1oEO7ROq4QAKhkw1HQN0znk8/CKCkeLOmJ
6nMrjCxHJztVElHrfRNiVWuVI3oG/+65l1irqKI2Ts4x0bEbXx9Fuj++/LL/+wIP
R7lEt6YoAXODDnlnVlH93ADYvyuHpT7Obhr+QNAu9fiOYm+qSJGMH5faJt+9fhi4
gAqqdv6RIfg0tECwAMBL4wHSr/Js0nF96g/26FQ3qq5J6sx9+7EeaDioh+Cl/Uuy
NN8IUvRqlcZ35FE7nEDkKocNoOj0xBM7q1wynfdpRPzgspkg93pePVrZrgZ9IS1h
Q2n5plyZWY2c+roNFBngM/74vPJ9uRsL8TL4W3AlFbIvb2773vdtDpDZvczCQ0mB
6WvI8dJDctajIvM301WE/tZElPXFJPfMEj8tl0kCmJSu5w7EtzV4hJbOS4LvF2Vc
5qv2FXzCYGtZWCz4XHrqTjGG0ha/Fg2X5c3fTHLowh0nCohOLCZy0AhG45gmUpwd
AFSy12/GNjewr0b9Ylxwzqt8sAVHXG3XeCMeCRcI45sniA0rFD0oVy4eDtAxpphh
jJqR/qM9CBvbQ8tqq5mxdyK9aLSidhkp+O8s7qLDXvIkadLnd3SgXqZo5tLRBGco
+Q8Uy4hDD8mVOPwHb6OytZzWp6Y8Lgq6b0QR+0IfqsNBekduXiQuZYCtztom3l0t
9I2s6O10/xD6wWuDLRHn
=2fKS
-----END PGP SIGNATURE-----
_______________________________________________
Soot-list mailing list
Soot-list@CS.McGill.CA
https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
--===============4481180246444936179==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic