[Soot-list] JastAdd NullPointer

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Wed Nov 10 07:44:22 EST 2010


Dear Frank,

I tried to reproduce the problem but can't. What exactly does your
"empty class" look like? What command line parameters do you use?

Cheers,
Eric


--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt



On 10 November 2010 07:59, Frank Otto <otto at ipd.uka.de> wrote:
> Hi list,
>
> I plan to develop analyses using the latest soot-2.4.0 runnable JAR. For
> this purpose, I have a main class ("empty" so far) referencing that JAR:
>
> import soot.*;
> public class MyAnalysis {
>        public static void main(String[] args) {
>                soot.Main.main(args);
>        }
> }
>
> When I run it for an empty test class (standard configuration, using the
> JastAdd frontend), I get the following NullPointerException:
>
>
> -----
> Soot started on Wed Nov 10 10:10:15 CET 2010 java.lang.NullPointerException
>        at
> soot.JastAddInitialResolver.resolveFromJavaFile(JastAddInitialResolver.java:
> 103)
>        at soot.JavaClassSource.resolve(JavaClassSource.java:57)
>        at soot.SootResolver.bringToHierarchy(SootResolver.java:194)
>        at soot.SootResolver.bringToSignatures(SootResolver.java:219)
>        at soot.SootResolver.processResolveWorklist(SootResolver.java:139)
>        at soot.SootResolver.resolveClass(SootResolver.java:124)
>        at soot.Scene.loadClass(Scene.java:425)
>        at soot.Scene.loadClassAndSupport(Scene.java:410)
>        at soot.Scene.loadNecessaryClass(Scene.java:1010)
>        at soot.Scene.loadNecessaryClasses(Scene.java:1024)
>        at soot.Main.run(Main.java:167)
>        at soot.Main.main(Main.java:141)
> -----
>
>
> When I run it with the -polyglot option, it works fine:
>
>
> -----
> Soot started on Wed Nov 10 11:54:08 CET 2010 Transforming Test...
> Writing to sootOutput\Test.class
> Soot finished on Wed Nov 10 11:54:09 CET 2010 Soot has run for 0 min. 1 sec.
> -----
>
>
> What did I do wrong with JastAdd? Sorry if this (probably simple) question
> was already discussed somewhere, I haven't found anything related...
>
> Thanks,
> Frank
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>


More information about the Soot-list mailing list