[Soot-list] "Error: ... read in from a classfile in which ... was expected"

Alexandre Bartel alexandre.bartel at cased.de
Mon Sep 21 02:32:13 EDT 2015


Hi Mayank,

You should give the /path/to/fluent-hc.target.test-classes/ to the 
-process-dir option. From the error message I guess you give the path
to the directory containing "fluent-hc.target.test-classes"? In that
case Soot interprets "fluent-hc.target.test-classes" as a package name
which is probably not what you want.

Best regards,
Alexandre

On Mon, 2015-09-21 at 00:06 +0530, Mayank Vachher wrote:
> Hi all,
> 
> I am trying to analyse the apache httpclient repository (
> https://github.com/apache/httpclient) with the help of soot. On using
> the -process-dir option on the folder, the following is the exception
> that I get:
> 
> Exception in thread "main" java.lang.RuntimeException: Error: class
> org.apache.http.client.fluent.TestFluent$1 read in from a classfile
> in which fluent-hc.target.test
> -classes.org.apache.http.client.fluent.TestFluent$1 was expected.
> 	at soot.coffi.Util.resolveFromClassFile(Util.java:90)
> 	at soot.CoffiClassSource.resolve(CoffiClassSource.java:39)
> 	at soot.SootResolver.bringToHierarchy(SootResolver.java:215)
> 	at soot.SootResolver.bringToSignatures(SootResolver.java:239)
> 	at
> soot.SootResolver.processResolveWorklist(SootResolver.java:154)
> 	at soot.SootResolver.resolveClass(SootResolver.java:124)
> 	at soot.Scene.loadClass(Scene.java:448)
> 	at soot.Scene.loadClassAndSupport(Scene.java:433)
> 	at soot.Scene.loadNecessaryClasses(Scene.java:1076)
> 	at soot.Main.run(Main.java:167)
> 	at soot.Main.main(Main.java:141)
> 	at modules.sootVariables.Driver.main(Driver.java:63)
> 
> Let me know if you need any more information/clarification, will be
> happy to provide it.
> 
> I did find this in [Soot-list]: https://mailman.cs.mcgill.ca/pipermai
> l/soot-list/2006-January/000486.html, but I have no clue how do I
> automate the process on a directory and whether it would work. Any
> help would be appreciated.
> 
> Thanks,
> Mayank Vachher
> IIIT Delhi
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list


More information about the Soot-list mailing list