[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swarm-Support] NullPointerException
From: |
Min San T. Co |
Subject: |
[Swarm-Support] NullPointerException |
Date: |
Tue, 25 Mar 2003 14:15:59 -0500 (EST) |
Forget my previous posting. I found where the problem lies. I should
have named the file as SimpleSchool.scm instead of .sce. I guess I should
be careful with the typos in the tutorial.
On Tue, 25 Mar 2003, Min San T. Co wrote:
> Hi!
>
> I am following Charles Staelin's java swarm tutorial while building my own
> model. So far my model works upto SimpleSwarmBug2 (SimpleSwarmSchool2 in
> my case since I am modelling the educational system). However, I get:
>
> Exception in thread "main" java.lang.NullPointerException
> at StartSimpleSchool.main(StartSimpleSchool.java:35)
>
> when I create my SimpleSwarmSchool3. I am able to execute SimpleSwarmBug3
> without problems. But I have no idea why my SimpleSwarmSchool3 won't
> work.
>
> I am working in a linux environment.
>
> It seems that when I have
>
> modelSwarm = new ModelSwarm(Globals.env.globalZone);
>
> in my StartSimpleSchool.java, my program works perfectly. But when I use:
>
> modelSwarm =
> (ModelSwarm)Globals.env.lispAppArchiver.getWithZone$key(
> Globals.env.globalZone, "modelSwarm");
>
> and include a SimpleSchool.scm file, where I list down all the parameters
> and values that I need to set in my ModelSwarm class, I get an exception.
>
> I'll appreciate any replies and suggestions...
>
> min
>
>
>
>
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support
>