[jdom-interest] NoSuch*Exceptions in JDOM
Ken Klose
ken.klose at imedium.com
Sun Jul 9 14:00:11 PDT 2000
I hope its not an intrusion for a JDOM newbie to pipe up in what seems like
a conversation between JDOM authors, but I must agree with Jason. I'm
generally one to take the "ivory tower" approach of refraining from
exceptions but if the DTD sames that <A> must contain <B> and <B> must
contain <C> than having a <B> Element that doesn't contain <C> IS
exceptional. As I developer I should be able to expect the document to be
well-formed and be forced by the compiler (through the exception) to handle
the case when it is not, and not have to debug some far-flung runtime
nullpointer exception (which will most assuredly happen the first time I
demo the thing for my boss).
Ken
> I'm still flexible. But let me say, I'm not swayed by the "ivory tower"
> question of "is this exceptional or not" but rather I'm swayed by use
> cases that make one approach more appealing than the other.
> Unfortunately, selecting either approach currently involves making
> certain use cases overly complicated. So, other things being equal, I'm
> currently supporting throwing exceptions because I just know returning
> null means there'll be a lot of damn NullPointerException errors,
> without any decent description of what went wrong. Sirtaj Singh Kang
> made some very compelling arguments along these lines.
>
> > Maybe it's time for a straw poll? Reply "null" or "throw"...
>
> How 'bout a web page for voting? Like evite.com except instead of
> saying you're attending or not, you vote yes or no? Gotta be a free
> vote page somewhere. Or we could use firedrop zaplets. Ha!
Received: from quicksender.evite.com (mailer01.evite.com [208.184.235.51])
by dorothy.denveronline.net (8.9.3/8.9.3) with SMTP id PAA10272
for <jdom-interest at jdom.org>; Sun, 9 Jul 2000 15:54:28 -0600 (MDT)
Message-ID: <XFUYMXFXQOWXJOIZWHZT at quicksender.evite.com>
X-Sender: alex at stinky.com
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="WRPFCZHCEIEDTIOJWHJJQNCSIWAYVV"
Date: Sun, 09 Jul 2000 14:53:43
To: jdom-interest at jdom.org
From: "Alex Chaffee" <alex at stinky.com>
Subject: [jdom-interest] Evite: getChild() should return null
Sender: jdom-interest-admin at jdom.org
Errors-To: jdom-interest-admin at jdom.org
X-BeenThere: jdom-interest at jdom.org
X-Mailman-Version: 2.0beta2
Precedence: bulk
List-Id: JDOM Mailing List for General Issues and Updates <jdom-interest.jdom.org>
--WRPFCZHCEIEDTIOJWHJJQNCSIWAYVV
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Come to this e-vite to vote on the null vs. exception issue
Hi!
I'd like to invite you to: getChild() should return null
Just click on the link below, and it will take you to my personal Evite
event page to see everyone's comments, RSVP, and get all the details.
http://www.evite.com/respond?iid=EHQTWPYBRCXEWEFGHOEO
Come to this e-vite to vote on the null vs. exception issue
Alex Chaffee
* * * * * * * * * * * * * * * * * * * * * * * * * *
HAVING TROUBLE?
If nothing happens when you click the link above, click it twice. If nothing
happens then please use your mouse to cut and paste the following address:
http://www.evite.com/respond?iid=EHQTWPYBRCXEWEFGHOEO
into your Web browser, then hit return. That will take you to the invite.
If you can't access the event page:
1. Go to http://www.evite.com/
2. Log in (if you are already a member) or sign up for an Evite account, using the
same email address the organizer used to contact you about this event.
3. Go to your "My Evite" inbox and click the event title to view your invite!
Still having trouble? Email support at evite.com
----------------------------------------------
Brought to you by Evite
Check out http://www.evite.com/ today.
Getting your friends together just got easier.
15151515
--WRPFCZHCEIEDTIOJWHJJQNCSIWAYVV
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<body marginwidth="0" leftmargin="0" marginheight="0" topmargin="0">
</head>
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="117" bgcolor="#99CC66"><img src="http://www.evite.com/html/emails/logoTop.gif" width="117" height="56"></td>
<td bgcolor="#99CC66" nowrap> </td>
<td bgcolor="#99CC66" colspan="2"><font face="Arial, Helvetica, sans-serif" size="4" color="#FFFF99"><b>You're
Invited!</b></font><font face="Arial, Helvetica, sans-serif" size="4" color="#FFFF99"></font></td>
</tr>
<tr>
<td width="117" bgcolor="#663399"> </td>
<td bgcolor="#663399"> </td>
<td width="100%" bgcolor="#663399" valign="middle" colspan=2><a href="http://www.evite.com/respond?iid=EHQTWPYBRCXEWEFGHOEO"><img src="http://www.evite.com/liveImage?eventID=IYTDXSAFHUMLPJYDZBPT" width="379" height="13" vspace="4" border=0></a></td>
</tr>
<tr>
<td colspan="2" valign="top" align="center"><a href="http://www.evite.com/respond?iid=EHQTWPYBRCXEWEFGHOEO"><img src="http://www.evite.com/html/emails/rightPicture.gif" width=153 height=154 border=0></a></td>
<td colspan="2" valign=top>
<br><br>
<font face="Arial, Helvetica, sans-serif" size="4"><b>getChild() should return null</b></font>
<font face="Arial, Helvetica, sans-serif" size="-1"><b> <br>
<br>
<font color="#663399">hosted by:</font> <font size="3"><br>
Alex Chaffee</font> <br>
<br>
<a href="http://www.evite.com/respond?iid=EHQTWPYBRCXEWEFGHOEO"><font color="#FF6600" size="3">To
see your invite & RSVP, click here!</font></a> </b> </font> <br>
<br><font face="Arial, Helvetica, sans-serif" size="-1">
<b>Come to this e-vite to vote on the null vs. exception issue<hr size=0>
<br>
-<font color="#663399">Alex Chaffee </font></b><br>
<b><img src="http://www.evite.com/html/emails/greenDots.gif" width="165" height="5" vspace="15"></b><br>
<br>
<b>HAVING TROUBLE?</b></font><br>
<font face="Arial, Helvetica, sans-serif" size="-1">
<p>If nothing happens when you click the link above, click it twice.
If nothing happens then use your mouse to cut
and paste the following address:<br>
<b>http://www.evite.com/respond?iid=EHQTWPYBRCXEWEFGHOEO</b><br>
into your Web browser, then hit return. That will take you to the invite.</p>
<p><b>If you can't access the event page: </b>:</p>
<p>1. Go to <a href="http://www.evite.com/">http://www.evite.com/</a><br>
2. Log in (if you are already a member) or sign up for an Evite account,
using the same email address the organizer used to contact you about this
event.<br>
3. Go to your "My Evite" inbox and click the event title to view your
invite!</p>
<p> Still having trouble? Email support at evite.com</p>
----------------------------------------------<br>
Brought to you by Evite <br>
Check out http://www.evite.com/ today. <br>
Getting your friends together just got easier.</font><br>
<br>
<p><font face="Arial, Helvetica, sans-serif" size="-1"><b><font color="#663399" size="3" >
</font></b></font> </p>
</td>
</tr>
</table>
<br>
<img width=1 height=1 src="http://www.evite.com/mailDetect?iid=EHQTWPYBRCXEWEFGHOEO">
<P>
<font color=white>14141414</font>
</body>
</html>
--WRPFCZHCEIEDTIOJWHJJQNCSIWAYVV--
Received: from rly-ip01.mx.aol.com (rly-ip01.mx.aol.com [205.188.156.49])
by dorothy.denveronline.net (8.9.3/8.9.3) with ESMTP id QAA10969
for <jdom-interest at jdom.org>; Sun, 9 Jul 2000 16:29:26 -0600 (MDT)
Received: from tot-wa.proxy.aol.com (tot-wa.proxy.aol.com [205.188.192.1])
by rly-ip01.mx.aol.com (8.8.8/8.8.8/AOL-5.0.0)
with ESMTP id SAA07568 for <jdom-interest at jdom.org>;
Sun, 9 Jul 2000 18:28:48 -0400 (EDT)
Received: from jfnote (AC8ABEB4.ipt.aol.com [172.138.190.180])
by tot-wa.proxy.aol.com (8.10.0/8.10.0) with SMTP id e69MSkI19372
for <jdom-interest at jdom.org>; Sun, 9 Jul 2000 18:28:47 -0400 (EDT)
Reply-To: <jfey at roottec.com>
From: "Juergen Fey" <jfey at roottec.com>
To: <jdom-interest at jdom.org>
Date: Mon, 10 Jul 2000 00:34:38 +0200
Message-ID: <NDBBKJLGADHEJNNCGKPDKELFFHAA.jfey at roottec.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Importance: Normal
X-Apparently-From: Robsmiler at aol.com
Subject: [jdom-interest] CVS problem?
Sender: jdom-interest-admin at jdom.org
Errors-To: jdom-interest-admin at jdom.org
X-BeenThere: jdom-interest at jdom.org
X-Mailman-Version: 2.0beta2
Precedence: bulk
List-Id: JDOM Mailing List for General Issues and Updates <jdom-interest.jdom.org>
Hi,
I am on the road with my win notebook. tried to checkout via CVS.
both jdom-contrib and jdom-test work but i can`t get the sources
of jdom/... besides the top dir of jdom.
i am using the win cvs version i got from www.jdom.org.
what is the problem?
Juergen Fey
More information about the jdom-interest
mailing list