[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swarm-Support] Swarm Suppport for Exceptions
From: |
durga bhavani |
Subject: |
[Swarm-Support] Swarm Suppport for Exceptions |
Date: |
Tue, 8 Nov 2005 13:55:36 -0800 (PST) |
Hello
I am not sure why I am getting this kind of Exceptions
Exception in thread "main" java.lang.NullPointerException
at GroupModelSwarm.activateIn(GroupModelSwarm.java:215)
at GroupObserver.activateIn(GroupObserver.java:316)
at StartSim.main(StartSim.java:19)
This part from GroupmodelSwarm is throwing Exception
public Activity activateIn (Swarm swarmContext)
{
super.activateIn (swarmContext);
modelSchedule.activateIn (this);
modelActions.activateIn(this);
return getActivity ();
}
This part from GroupObserverswarm is throwing Exception
public Activity activateIn (Swarm swarmContext)
{
super.activateIn (swarmContext);
groupModelSwarm.activateIn (this);
displaySchedule.activateIn (this);
return getActivity();
}
This part from main is throwing Exception
Globals.env.initSwarm ("Simulation of Work Group Using Swarm", "0.3.1",
"
address@hidden", args);
GroupObserver topLevelSwarm = new GroupObserver (Globals.env.globalZone);
Swarm swarm = new GroupModelSwarm(Globals.env.globalZone);
Globals.env.setWindowGeometryRecordName (topLevelSwarm, "topLevelSwarm");
topLevelSwarm.buildObjects();
topLevelSwarm.buildActions();
topLevelSwarm.activateIn(null);
topLevelSwarm.go ();
topLevelSwarm.drop ();
}
Someone please tell me why it is throwing exceptions
Thanks
Durga
Yahoo! FareChase - Search multiple travel sites in one click.
- [Swarm-Support] Swarm Suppport for Exceptions,
durga bhavani <=