<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>Problems in adding an element</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#000000" SIZE=2 FACE="Courier New">Element</FONT><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">objRoot</FONT><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT SIZE=2 FACE="Courier New"><B> </B></FONT><B><FONT COLOR="#7F0055" SIZE=2 FACE="Courier New">new</FONT></B><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">Element(</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">&quot;Request&quot;</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">);</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#000000" SIZE=2 FACE="Courier New">Document</FONT><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">objDocument</FONT><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT SIZE=2 FACE="Courier New"></FONT><B> <FONT COLOR="#7F0055" SIZE=2 FACE="Courier New">new</FONT></B><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">Document(objRoot);</FONT>

<BR>&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;&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; <FONT COLOR="#000000" SIZE=2 FACE="Courier New">Element</FONT><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">objRequestType</FONT><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT SIZE=2 FACE="Courier New"></FONT><B> <FONT COLOR="#7F0055" SIZE=2 FACE="Courier New">new</FONT></B><FONT SIZE=2 FACE="Courier New"> </FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">Element(</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">&quot;Request_Type&quot;</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">);</FONT>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&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; <FONT COLOR="#000000" SIZE=2 FACE="Courier New">objRequestType.setText(</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">&quot;DEFAULT&quot;</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">);</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#000000" SIZE=2 FACE="Courier New">objRoot.addContent(objRequestType);</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#000000" SIZE=2 FACE="Courier New">This code gives me a runtime error on the JSP page with the new JDOM api i.e. 1.0</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#000000" SIZE=2 FACE="Courier New">Error 500 :</FONT> <FONT FACE="Times New Roman">Incompatible argument to method </FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">Kindly provide what I am doing wrong or missing?</FONT>
</P>
<BR>

<P><B><FONT COLOR="#000080" SIZE=2 FACE="Times New Roman">Thanks &amp; Regards,</FONT></B>

<BR><B><FONT COLOR="#000080" SIZE=2 FACE="Times New Roman">Sushil Aggarwal</FONT></B>
</P>
<BR>

<P><SPAN LANG="en-us"><I><FONT COLOR="#0000FF" SIZE=2 FACE="Tahoma">Any comments or statements made in this email are not necessarily those of Fidelity Business Services India Pvt. Ltd. or any of the Fidelity Investments group companies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Fidelity Business Services India Pvt. Ltd. may be subject to our monitoring procedures.</FONT></I></SPAN></P>
<BR>

</BODY>
</HTML>