[Soot-list] Output option

Zeinab Lashkaripour lashkaripour at yahoo.com
Fri Jul 26 16:39:21 EDT 2013


Hi everyone,

I have used two different options for the output of Soot but, I have the problems below that I would be grateful if anyone could guide me:
Options used:
               "-p", "jb", "use-original-names:true",
               "-p", "tag.ln", "enabled",
               "-keep-line-number", //"enabled",
               "-src-prec", "java",
               "-output-dir", "..", 
               "-cp", "....",
               "-f", "class", "--app", 
               "-process-dir", "......."

I have also used "UnusedLocalEliminator.v().transform(body)" after my transformations.

   output: class
After getting the output results I wanted to take a look at
 the java code with JD-GUI. In this decompiler I don't get the original names that I think this is a problem not related to Soot, Is this correct?
I also see that the variables are somehow mixed. For example more than one variable have the same name. For example: paramString1. 
I have checked the Jimple code and I see no problem in it. Could this problem be from the decompiler?

I have attached both Jimple and java file.
Could anyone guide me please?

    output: dava
I also tried dava to get the java code of the related files that I have transformed and I get the exception in [1]. I don't know what the problem is, could anyone guide me please?
I even ran Soot from the cmd directly but got the error related to the classpath in [2] although the classpath contains the related jar file.

Regards,
Zeinab

[1]Exception in thread "main" java.lang.NullPointerException
    at soot.dava.toolkits.base.finders.LabeledBlockFinder.perform_ChildOrder(LabeledBlockFinder.java:94)
    at soot.dava.internal.SET.SETNode.find_LabeledBlocks(SETNode.java:215)
    at soot.dava.internal.SET.SETNode.find_LabeledBlocks(SETNode.java:212)
    at soot.dava.toolkits.base.finders.LabeledBlockFinder.find(LabeledBlockFinder.java:44)
    at soot.dava.DavaBody.<init>(DavaBody.java:329)
    at soot.dava.Dava.newBody(Dava.java:84)
    at
 soot.PackManager.runBodyPacks(PackManager.java:860)
    at soot.PackManager.runBodyPacks(PackManager.java:510)
    at soot.PackManager.runBodyPacks(PackManager.java:417)
    at soot.PackManager.runPacksNormally(PackManager.java:394)
    at soot.PackManager.runPacks(PackManager.java:335)
    at soot.Main.run(Main.java:198)
    at soot.Main.main(Main.java:141)
    at MyMain.main(MyMain.java:73)

[2]
java -jar soot-2.5.0.jar -pp -cp . -f dava --app classfile
Soot started on Sun Jul 28 00:47:47 IRDT 2013
Exception in thread "main" java.lang.RuntimeException: couldn't find class: java
x.servlet.jsp.JspFactory (is your soot-class-path set properly?)
        at soot.SootResolver.bringToHierarchy(SootResolver.java:205)
        at soot.SootResolver.bringToSignatures(SootResolver.java:239)
        at soot.SootResolver.bringToBodies(SootResolver.java:280)
        at soot.SootResolver.processResolveWorklist(SootResolver.java:150)
        at soot.SootResolver.resolveClass(SootResolver.java:124)
        at soot.Scene.loadClass(Scene.java:448)
        at soot.Scene.loadClassAndSupport(Scene.java:433)
        at soot.Scene.loadNecessaryClass(Scene.java:1053)
        at soot.Scene.loadNecessaryClasses(Scene.java:1067)
        at soot.Main.run(Main.java:167)
        at soot.Main.main(Main.java:141)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130726/1e8d656a/attachment-0001.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Class-Items Show.txt
Url: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130726/1e8d656a/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Jimple-Items Show.txt
Url: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130726/1e8d656a/attachment-0003.txt 


More information about the Soot-list mailing list