Seite 1 von 1

Park3 Problem with debugging

Verfasst: 28. Jan 2008 11:42
von ojerag
HAllo,
i HAve the following proplems. I have design my Handler as stated in the script but
i have a problem while running my codes. i always recieve the following error message
java.lang.IllegalStateException: . Can some one give me an idea what the problem might be?
greet oj

Re: Park3 Problem with debugging

Verfasst: 28. Jan 2008 12:26
von Geek-O
Hi,

that kind of depends on the error message that follows the Exception name (for once, there is one!). If it is "no default stack defined", that would indicate that MundoCore could not read the XML configuration file.

It is given by the "Mundo.setConfigFile(String)" method (however, an ".xml" suffix is automatically appended, so use 'Mundo.readConfigFile("sender.conf")' if your config file is called "sender.conf.xml"), which must be called before "Mundo.init()". If no such command is given, the default is "node.conf.xml".
The file is searched in the current working directory if no path is given - for Eclipse, the CWD is the project path.

HTH,
G.

// Edit: That's setConfigFile(), not readConfigFile().

Re: Park3 Problem with debugging

Verfasst: 28. Jan 2008 12:49
von ojerag
Hey
Thanks for you Respond . but i can't still find the Method Mundo.readConfig(String). Is it support to have been
implemente in the Class Mundo? by importing org.mundo.rt.Mundo;?
thanks

Re: Park3 Problem with debugging

Verfasst: 28. Jan 2008 12:54
von Geek-O
Argh, discovered the error two minutes too late... See my edit.

setConfigFile() is a static method of the org.mundo.rt.Mundo class. I just imported org.mundo.rt.*, that way you don't have to worry about such things.

G.

Re: Park3 Problem with debugging

Verfasst: 28. Jan 2008 13:35
von ojerag
ok thanks just saw that.
oj