<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Problems in adding an element</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'm guessing here, but types Element and Document
are not necessarily from JDOM. Both types could come from different
libraries, so it depends on what you have in your imports section. My
guess is that one of the two are coming from Xalan or Xerces (which ever is
applicable), and that you are trying to add a vendor specific Element type to a
JDOM document, or vice versa.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=sushil.aggarwal@FMR.COM
href="mailto:sushil.aggarwal@FMR.COM">Aggarwal, Sushil</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jdom-interest@jdom.org
href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, January 10, 2005 2:58
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [jdom-interest] Problems in
adding an element</DIV>
<DIV><BR></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hi,</FONT>
<BR>
<FONT face="Courier New"
color=#000000 size=2>Element</FONT><FONT face="Courier New" size=2>
</FONT><FONT face="Courier New" color=#000000 size=2>objRoot</FONT><FONT
face="Courier New" size=2> </FONT><FONT face="Courier New" color=#000000
size=2>=</FONT><FONT face="Courier New" size=2><B> </B></FONT><B><FONT
face="Courier New" color=#7f0055 size=2>new</FONT></B><FONT face="Courier New"
size=2> </FONT><FONT face="Courier New" color=#000000
size=2>Element(</FONT><FONT face="Courier New" color=#000000
size=2>"Request"</FONT><FONT face="Courier New" color=#000000 size=2>);</FONT>
<BR>
<FONT face="Courier New"
color=#000000 size=2>Document</FONT><FONT face="Courier New" size=2>
</FONT><FONT face="Courier New" color=#000000 size=2>objDocument</FONT><FONT
face="Courier New" size=2> </FONT><FONT face="Courier New" color=#000000
size=2>=</FONT><FONT face="Courier New" size=2></FONT><B> <FONT
face="Courier New" color=#7f0055 size=2>new</FONT></B><FONT face="Courier New"
size=2> </FONT><FONT face="Courier New" color=#000000
size=2>Document(objRoot);</FONT>
<BR>
<BR>
<FONT face="Courier New"
color=#000000 size=2>Element</FONT><FONT face="Courier New" size=2>
</FONT><FONT face="Courier New" color=#000000
size=2>objRequestType</FONT><FONT face="Courier New" size=2> </FONT><FONT
face="Courier New" color=#000000 size=2>=</FONT><FONT face="Courier New"
size=2></FONT><B> <FONT face="Courier New" color=#7f0055
size=2>new</FONT></B><FONT face="Courier New" size=2> </FONT><FONT
face="Courier New" color=#000000 size=2>Element(</FONT><FONT
face="Courier New" color=#000000 size=2>"Request_Type"</FONT><FONT
face="Courier New" color=#000000 size=2>);</FONT>
<BR>
<FONT face="Courier New"
color=#000000 size=2>objRequestType.setText(</FONT><FONT face="Courier New"
color=#000000 size=2>"DEFAULT"</FONT><FONT face="Courier New" color=#000000
size=2>);</FONT> <BR>
<FONT face="Courier New"
color=#000000 size=2>objRoot.addContent(objRequestType);</FONT> </P>
<P> <FONT face="Courier New"
color=#000000 size=2>This code gives me a runtime error on the JSP page with
the new JDOM api i.e. 1.0</FONT>
<BR> <FONT face="Courier New"
color=#000000 size=2>Error 500 :</FONT> <FONT
face="Times New Roman">Incompatible argument to method
</FONT><BR> <FONT face=Arial
size=2>Kindly provide what I am doing wrong or missing?</FONT> </P><BR>
<P><B><FONT face="Times New Roman" color=#000080 size=2>Thanks &
Regards,</FONT></B> <BR><B><FONT face="Times New Roman" color=#000080
size=2>Sushil Aggarwal</FONT></B> </P><BR>
<P><SPAN lang=en-us><I><FONT face=Tahoma color=#0000ff size=2>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>
<P>
<HR>
<P></P>_______________________________________________<BR>To control your
jdom-interest
membership:<BR>http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</BLOCKQUOTE></BODY></HTML>