[Soot-list] NullPointerException in retrieveActiveBody

Nitin Goel ernitingoel at hotmail.com
Wed Jan 31 14:31:40 EST 2007


Hi Michael/ Eric,

Thanks for your help. It worked, I was not adding the following statement

Scene.v().loadNecessaryClasses();

Which was not required in Soot 2.1.

Regards,
Nitin Goel


>From: mbatch at cs.mcgill.ca
>To: soot-list at sable.mcgill.ca
>Subject: RE: [Soot-list] NullPointerException in retrieveActiveBody
>Date: Tue, 30 Jan 2007 14:39:07 -0500 (EST)
>
> > Thanks for your quick reply. However I am not sure whether this is
> > related to class loading or not as when I remove the try catch block 
>from
> > my program Test123, it is working fine. Do you think that there can be 
>an
> > issue in class loading when I use try catch block in my class?
>
>It appears as though the first line of the method soot.AnySubType.v() is
>throwing the NullPointer:
>
>if( base.getAnySubType() == null )
>
>Which means the parameter "RefType base" is null in this case.
>
> >From your previous email, this suggests that either (or both) of:
>
>Scene.v().getRefType("java.lang.ClassFormatError")
>
>and
>
>Scene.v().getRefType("java.lang.Error")
>
>Are the cause of these null pointers. This means that the scene is unable
>to resolve java.lang.error or java.lang.classformaterror (or both).. which
>suggests you have a class path problem.
>
>Make sure the runtime jars are in your soot classpath. specifically:
><jre or jdk path>/lib/rt.jar, etc.
>
>Good luck,
>
>Michael
>
>_______________________________________________
>Soot-list mailing list
>Soot-list at sable.mcgill.ca
>http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list

_________________________________________________________________
Invite your Hotmail contacts to join your friends list with Windows Live 
Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us



More information about the Soot-list mailing list