[Soot-list] Error on getMethodByName() in soot

Marjan Radi marjan.radi at yahoo.com
Mon Jun 22 13:21:56 EDT 2015


Dear Steven,
I followed your instruction but still I got the same error. Is there any thing else that I can do to resolve this issue?
Regards,Marjan

 


     On Monday, June 22, 2015 3:56 AM, Steven Arzt <Steven.Arzt at cased.de> wrote:
   

 <!--#yiv4107413637 _filtered #yiv4107413637 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv4107413637 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv4107413637 #yiv4107413637 p.yiv4107413637MsoNormal, #yiv4107413637 li.yiv4107413637MsoNormal, #yiv4107413637 div.yiv4107413637MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv4107413637 a:link, #yiv4107413637 span.yiv4107413637MsoHyperlink {color:blue;text-decoration:underline;}#yiv4107413637 a:visited, #yiv4107413637 span.yiv4107413637MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv4107413637 span.yiv4107413637E-MailFormatvorlage17 {font-family:"Calibri", "sans-serif";color:#1F497D;}#yiv4107413637 .yiv4107413637MsoChpDefault {font-size:10.0pt;} _filtered #yiv4107413637 {margin:70.85pt 70.85pt 2.0cm 70.85pt;}#yiv4107413637 div.yiv4107413637WordSection1 {}-->Hi Marjan,  It’s not a good idea to try and load custom classes before the basic ones are loaded into the Soot Scene. Try to call Scene.v().addBasicClass(…) after parsing the options, then run loadNecessaryClasses(), and then access your desired method.  Best regards,  Steven  Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA] Im Auftrag von Marjan Radi
Gesendet: Donnerstag, 18. Juni 2015 22:09
An: soot-list at cs.mcgill.ca
Betreff: [Soot-list] Error on getMethodByName() in soot  Hi Guys;  I am trying to set the entrypoint of my analysis in soot using :"Options.v().parse(args);SootClass c = Scene.v().forceResolve("ImageDownloaderTask", SootClass.BODIES);c.setApplicationClass();Scene.v().loadNecessaryClasses();SootMethod method = c.getMethodByName("downloadBitmap");List entryPoints = new ArrayList();entryPoints.add(method);Scene.v().setEntryPoints(entryPoints);PackManager.v().runPacks();" But I got following error:  Exception in thread "main" java.lang.RuntimeException: couldn't find method downloadBitmap(*) in ImageDownloaderTaskat soot.SootClass.getMethodByName(SootClass.java:549)  While I have "static Bitmap downloadBitmap(String url)" method inside "ImageDownloaderTask" class. I would be appreciated if anybody can help me.  Regards,Marjan   

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150622/04e8d2f2/attachment.html 


More information about the Soot-list mailing list