<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I used CVS to get the latest code. Finding the same 
problem: I get a "java.lang.ClassCastException: org.jdom.Element" exception when 
I try to cast the&nbsp;Attribute object. Below is the XML document, the source 
and the exception thrown. Any help would be most appreciated. Thanks, in 
advance. -Frank</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>--</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;!--</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Load 2.0 (alpha 1)<BR>(c) 2000 Frank Cohen. All 
rights reserved.<BR>&nbsp;This source code is licensed under terms described in 
the License.txt file.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Description:<BR>&nbsp; This file contains all 
needed configuration information for Load to operate</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>For more info check<BR>&nbsp;<A 
href="http://www.inbuilders.com/inbuilders/home.html?igid=G781&amp;rid=R4">http://www.inbuilders.com/inbuilders/home.html?igid=G781&amp;rid=R4</A><BR>&nbsp;or 
send email to <A 
href="mailto:fcohen@inclusioin.net">fcohen@inclusioin.net</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>--&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;load&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; &lt;!-- 
=================================================================== 
--&gt;<BR>&nbsp; &lt;!-- Initialization 
values&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
--&gt;<BR>&nbsp; &lt;!-- 
=================================================================== 
--&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; &lt;load_init_values&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;echo message="Starting Load 
2.0 alpha 1"/&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;property 
name="scripts_directory" value="./scripts"/&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;property name="accept_script_versions" value="2"/&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;property name="log.file" 
value="./load.log"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="log.append" 
value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="log.level" 
value="6"/&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;property name="url" 
value=""/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="cookieok" 
value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="bad_string" 
value=""/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="timeout" 
value="0"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="sleeptime" 
value="0"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="threadcount" 
value="0"/&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; &lt;/load_init_values&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;/load&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;!-- End of file --&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>--</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><A 
href="file://Title:">file://Title:</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Load<BR><A 
href="file://Version:">file://Version:</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
2.0<BR><A href="file://Copyright:">file://Copyright:</A>&nbsp;&nbsp;&nbsp; (c) 
2000 Frank Cohen. All rights reserved.<BR><A 
href="file://Author:">file://Author:</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Frank Cohen<BR><A 
href="file://Company:">file://Company:</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
INBuilders.com<BR>//<BR><A 
href="file://Description:">file://Description:</A><BR>// Commander executes the 
Load script<BR>// the script files is an XML format<BR>// definitions for the 
Load script are<BR>// self-documented in this class<BR>//<BR><A 
href="file://For">file://For</A> more info check<BR>// <A 
href="http://www.inbuilders.com/inbuilders/home.html?igid=G781&amp;rid=R4">http://www.inbuilders.com/inbuilders/home.html?igid=G781&amp;rid=R4</A><BR>// 
or send email to <A 
href="mailto:fcohen@inclusioin.net">fcohen@inclusioin.net</A><BR>//<BR>// This 
source code is licensed under terms described in the License.txt 
file.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>package load;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>import java.math.*;<BR>import java.io.*;<BR>import 
java.io.IOException;<BR>import java.util.*;<BR>import java.net.*;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>import org.jdom.*;<BR>import 
org.jdom.output.XMLOutputter;<BR>import org.jdom.JDOMException;<BR>import 
org.jdom.input.SAXBuilder;<BR>import org.jdom.input.DOMBuilder;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;/**<BR>&nbsp;* 
&lt;p&gt;&lt;code&gt;commander&lt;/code&gt;<BR>&nbsp;*&nbsp;&nbsp; Interprets 
the Load script, executes elements<BR>&nbsp;* &lt;/p&gt;<BR>&nbsp;*<BR>&nbsp;* 
@author Frank Cohen<BR>&nbsp;* @version 1.0<BR>&nbsp;*/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>public class commander {</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;// Instance of the JDOM XML object for the 
Load default settings file<BR>&nbsp; SAXBuilder load_info_builder = new 
SAXBuilder();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;//&nbsp; loadui object to display the UI 
elements<BR>&nbsp; private loadui uiframe;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;/** Load default setting file name 
*/<BR>&nbsp; private static final String default_settings = 
"load_info.xml";</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** &lt;code&gt;scriptsDir&lt;/code&gt; 
which directory to find the scripts **/<BR>&nbsp; public String scriptsDir = 
"./scripts/";</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** 
&lt;code&gt;acceptScriptVersions&lt;/code&gt; year of this version **/<BR>&nbsp; 
public int acceptScriptVersions = 2;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** &lt;code&gt;logFileName&lt;/code&gt; log 
file name **/<BR>&nbsp; public String logFileName = "./load.log";</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** 
&lt;code&gt;logFileAppendFlag&lt;/code&gt; if true, append new log entries to 
existing file **/<BR>&nbsp; public boolean logFileAppendFlag = 
true;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** &lt;code&gt;logLevel&lt;/code&gt; 
1-Informational, 6 Ludicrous **/<BR>&nbsp; public int logLevel = 6;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** &lt;code&gt;loadURL&lt;/code&gt; base 
URL to test **/<BR>&nbsp; public String loadURL = "";</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** &lt;code&gt;cookieOk&lt;/code&gt; if 
true, accept cookies from host **/<BR>&nbsp; public boolean cookieOk = 
true;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** &lt;code&gt;badString&lt;/code&gt; find 
this during a test and abort **/<BR>&nbsp; public String badString = 
"";</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** &lt;code&gt;timeoutValue&lt;/code&gt; 
milliseconds to timeout **/<BR>&nbsp; public int timeoutValue = 
60000;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** &lt;code&gt;sleepTime&lt;/code&gt; 
milliseconds to sleep between requests **/<BR>&nbsp; public int sleepTime = 
1000;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** &lt;code&gt;threadCount&lt;/code&gt; 
number of simulated users **/<BR>&nbsp; public int threadCount = 1;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /** Get and keep the reference to the loadui 
object */<BR>&nbsp; public void initialize_commander(loadui theframe)<BR>&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp; uiframe=theframe;<BR>&nbsp; }</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; /**<BR>&nbsp; * 
&lt;p&gt;&lt;code&gt;echo&lt;/code&gt;<BR>&nbsp; *&nbsp;&nbsp; Repeats the gaven 
String to the log and screen<BR>&nbsp; * &lt;/p&gt;<BR>&nbsp; */</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;public void echo(String theString)<BR>&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp; uiframe.show(theString);<BR>&nbsp; }</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; public void start()<BR>&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp; // Load the entire document into 
memory<BR>&nbsp;&nbsp;&nbsp; // from the network or file 
system<BR>&nbsp;&nbsp;&nbsp; try<BR>&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Gets the Load settings file, parses it 
into a DOM tree<BR>&nbsp;&nbsp;&nbsp;&nbsp; Document doc = 
load_info_builder.build( default_settings );</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // If there are no 
well-formedness errors,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // then no exception 
is thrown<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uiframe.show( default_settings + " 
is well formed.");</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;// Only read Load setting 
files<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Element load_set = 
doc.getRootElement();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( 
load_set.getName().equals("load") )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;// This is a load setting file so parse its 
contents</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;loadui.show( 
default_settings + " parsing contents");</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 
Within the load element is the load_init_values 
group<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // These are the elements we 
want to set the defaults for Load<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
List children = 
load_set.getChild("load_init_values").getMixedContent();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Iterator 
iterator = children.iterator();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
while (iterator.hasNext())<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Object o = 
iterator.next();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (o instanceof 
Element)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Element 
p = (Element) o;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 
echo elements are comments that get displayed in the 
UI<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( 
p.getName().equals("echo") 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;echo( p.getAttribute("message").getValue() 
);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 
property elements are simple name = value pairs that set 
a<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 
public variable in the commander 
object<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ( 
p.getName().equals("property") 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
List property_list = 
p.getAttributes();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Iterator property_iterator = property_list.iterator();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
echo( property_list.size() + " = property list size");</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
while ( property_iterator.hasNext() 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Object q = iterator.next();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Attribute r = (Attribute) q;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
echo(r.getName());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
echo(r.getValue());</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (q instanceof Attribute) { 
echo("attribute");}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (q instanceof Element) { echo("element&gt; " + ((Element) q).getName() 
);}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (q instanceof String) { echo("string");}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;loadui.show( default_settings + "does 
not appear to be a Load settings file");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; catch (JDOMException e) { // 
indicates a well-formedness or other error<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
uiframe.show( default_settings + " is not well 
formed.");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uiframe.show( e.getMessage() 
);<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp; }<BR>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>--</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Exception occurred during event 
dispatching:<BR>java.lang.ClassCastException: 
org.jdom.Element<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
load.commander.start(commander.java:159)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at 
load.loadui.buttonRun_actionPerformed(loadui.java:208)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at 
load.loadui$4.actionPerformed(loadui.java:124)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:10<BR>66)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra<BR>ctButton.java:1101)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel<BR>.java:378)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Compiled 
Code)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL<BR>istener.java:217)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at java.awt.Component.processMouseEvent(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.Component.processEvent(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.Container.processEvent(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.Component.dispatchEventImpl(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.Container.dispatchEventImpl(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.Component.dispatchEvent(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.LightweightDispatcher.retargetMouseEvent(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.LightweightDispatcher.processMouseEvent(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.LightweightDispatcher.dispatchEvent(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.Container.dispatchEventImpl(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.Window.dispatchEventImpl(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.Component.dispatchEvent(Compiled 
Code)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
java.awt.EventQueue.dispatchEvent(EventQueue.java:258)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>