[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NullPointerException (2nd)



Sorry, I forgot to post the initial reply to the mailing list.
I'm using Soot 2.1.0 and jdk1.3.

The problem seems to be the CLASSPATH, which on my machine
includes the J2ME classes (CLDC and MIDP) required for my projects:

c:/java/soot-2.1.0/classes;.;C:\java\jasminclasses-sable-1.2.7.jar;
c:/java/j2me_cldc/api/classes.zip;c:/java/midp2.0fcs/build/win32/kvm/classes.zip;
 
When I remove the J2ME classes from CLASSPATH, Soot works fine on that simple
example I posted earlier, but rightly complains on files that use those classes;

Will there be a fix for this

Uwe 



----- Original Message -----
From: Ondrej LHOTAK <olhotak@sable.mcgill.ca>
Date: Wed, 25 Aug 2004 10:23:56 -0400
To: Uwe Dolinsky <u.dolinsky@iname.com>
Subject: Re: NullPointerException (2nd)

> On Wed, Aug 25, 2004 at 02:43:36PM +0100, Uwe Dolinsky wrote:
> > Hi,
> > 
> > Is Soot still being maintained? I'm interested in using it but
> > encountered lots of
> > NullPointerExceptions (which all seem related) on my project files.
> > I've narrowed down some code that causes a NullPointerException when
> > Soot is to optimize
> > the classfile:
> > 
> > public interface red {
> >     public static final byte[]  TEST = {0,0,0};
> > };
> 
> Which version of Soot are you using? I can't reproduce the problem with
> either the current Subversion trunk, or the last Soot release (2.1.0).
> 
> Ondrej
> 
> > 
> > The call stack is:
> > 
> > java.lang.NullPointerException
> >     at soot.jimple.toolkits.typing.TypeNode.<init>(TypeNode.java:91)
> >     at
> > soot.jimple.toolkits.typing.ClassHierarchy$ConstructorChooser.caseRefType(ClassHierarchy.java:238)
> >     at soot.RefType.apply(RefType.java:128)
> >     at
> > soot.jimple.toolkits.typing.ClassHierarchy$ConstructorChooser.typeNode(ClassHierarchy.java:231)
> >     at
> > soot.jimple.toolkits.typing.ClassHierarchy.typeNode(ClassHierarchy.java:127)
> >     at
> > soot.jimple.toolkits.typing.ClassHierarchy.<init>(ClassHierarchy.java:82)
> >     at
> > soot.jimple.toolkits.typing.ClassHierarchy.classHierarchy(ClassHierarchy.java:105)
> >     at
> > soot.jimple.toolkits.typing.TypeResolver.<init>(TypeResolver.java:153)
> >     at
> > soot.jimple.toolkits.typing.TypeResolver.resolve(TypeResolver.java:176)
> >     at
> > soot.jimple.toolkits.typing.TypeAssigner.internalTransform(TypeAssigner.java:58)
> >     at soot.BodyTransformer.transform(BodyTransformer.java:51)
> >     at soot.Transform.apply(Transform.java:88)
> >     at soot.JimpleBodyPack.applyPhaseOptions(JimpleBodyPack.java:68)
> >     at soot.JimpleBodyPack.internalApply(JimpleBodyPack.java:91)
> >     at soot.Pack.apply(Pack.java:113)
> >     at soot.coffi.CoffiMethodSource.getBody(CoffiMethodSource.java:115)
> >     at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:79)
> >     at soot.SootMethod.retrieveActiveBody(SootMethod.java:274)
> >     at soot.PackManager.runBodyPacks(PackManager.java:477)
> >     at soot.PackManager.runBodyPacks(PackManager.java:318)
> >     at soot.PackManager.runPacks(PackManager.java:278)
> >     at soot.Main.run(Main.java:180)
> >     at soot.Main.main(Main.java:154)
> > 
> > Thanks
> > Uwe
> > 

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm