[Soot-list] The Commandline of transform J2EE codes used by soot.
Bernhard Berger
berber at tzi.de
Fri Feb 15 13:55:07 EST 2013
Hi,
have you checked your class path? The Java front end tries to resolve a class and fails:
> 100 public Dependencies resolveFromJavaFile(SootClass sootclass) {
> 101 CompilationUnit u = classNameToCU.get(sootclass.getName());
> 102 HashSet<SootClass> types = new HashSet<SootClass>();
> 103 for(TypeDecl typeDecl : u.getTypeDecls()) {
> 104 collectTypeDecl(typeDecl, types);
> 105 }
The null pointer exeption in line 103 have to be the dereference of u. Perhaps we should add an additional check.
If you have a compiled version of your project you can also try to analyze the byte code.
Regards,
Bernhard
Am 10.02.2013 um 15:21 schrieb 周轩 <zhou_kkde at 163.com>:
> Dear technicist;
> Could you help me about the commandline of transform J2EE codes used by soot.
> My commandline is:
> java -cp soot-2.5.0.jar soot.Main -f J -cp .;D:\jre6\lib\rt.jar;D:\jre6\lib\resources.jar;D:\jre6\lib\jsse.jar;D:\jre6\lib\jce.jar;D:\jre6\lib\charsets.jar;D:\jre6\lib\ext\sunjce_provider.jar;D:\jre6\lib\ext\dnsns.jar;D:\jre6\lib\ext\localedata.jar;D:\jre6\lib\ext\sunmscapi.jar;D:\jre6\lib\ext\sunpkcs11.jar;D:\soot\javax.servlet_3.0.0.v201112011016.jar;D:\soot\javax.servlet.jsp_2.2.0.v201112011158.jar Login
>
> The red part is J2EE servlet packeg.But it will throw exception like this:
>
> Exception in thread "main" java.lang.NullPointerException
> at soot.JastAddInitialResolver.resolveFromJavaFile(JastAddInitialResolve
> r.java:103)
> at soot.JavaClassSource.resolve(JavaClassSource.java:57)
> 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.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)
>
> Could help me like this?Really thank you very much.
>
> A sincere student
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130215/4b372c92/attachment-0001.html
More information about the Soot-list
mailing list