The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by thefnordling]

I guess now that the book's source is a sourceforge or jabberstudio or
whatever project this is kinda moot. :p but for those (like me) who need to
follow the code in the book letter for letter in order to understand what
they're doing this info may be helpful :p

when i downloaded the sample code from the manning site, i had a million and
10 different build problems. i think most of them stemmed from xerces
problems. the documentation i found suggested using xerces 2 to do the
builds. However, i couldn't find DefaultReaderFactory in the javadoc for
xerces 2. I did find it in xerces 1 (version 1.4.4), so i used that one and
it worked.

in the ch 3 source there are a bunch of classes that were not covered in the
book (com.metamech.io.*, com.metamach.jabber.ErrorTool,
com.metamach.jabber.JabberIDTest.java and a bunch of others). This was
confusing since they weren't covered in the book i didn't know what they were
for. :p

to clear up my confusion, i decided to just write all code in the book out in
textpad and package it myself, hoping it would work when i was done.

Most of the confusion i ran into came from differences in the a few
constructors in the text of the book & from the downloaded source, and
ambigous namespace for some classes (i used the wrong Attribute at first, the
right one is org.xml.sax.Attributes).

if anyone wants to see how i put the stuff together you can download it from
http://goatheckler.com/jim/

if iaian is upset i repackaged his stuff i'll take it down, and apologize :p
import-bot (20211) [Avatar] Offline
#2
Re: sample code hints (how i got it to work)
[Originally posted by iainshigeoka]

> when i downloaded the sample code from the manning site, i had a million and
> 10 different build problems. i think most of them stemmed from xerces
> problems. the documentation i found suggested using xerces 2 to do the
> builds. However, i couldn't find DefaultReaderFactory in the javadoc for
> xerces 2. I did find it in xerces 1 (version 1.4.4), so i used that one and
> it worked.

I apologize for these problems. There is a full source package that should
include all the proper versions of the libraries you need for compiling. I
know that there are alot of ways even that can fall apart though depending on
your classpath etc. I knew the hack around Xerces was going to be a source of
some problems but thought it would be the best choice given the popularity of
Xerces.

Now that JDK 1.4 has a SAX parser built in, it would be nice to go back and
just try getting it working with that parser instead (I think it uses the
Apache crimson parser).

> in the ch 3 source there are a bunch of classes that were not covered in the
> book (com.metamech.io.*, com.metamach.jabber.ErrorTool,
> com.metamach.jabber.JabberIDTest.java and a bunch of others). This was
> confusing since they weren't covered in the book i didn't know what they were
> for. :p

Yeah. I hoped that the tools would be more help than hinderance. Looks like
I was wrong. Sorry.

> to clear up my confusion, i decided to just write all code in the book out in
> textpad and package it myself, hoping it would work when i was done.
>
> Most of the confusion i ran into came from differences in the a few
> constructors in the text of the book & from the downloaded source, and
> ambigous namespace for some classes (i used the wrong Attribute at first, the
> right one is org.xml.sax.Attributes).
>
> if anyone wants to see how i put the stuff together you can download it from
> http://goatheckler.com/jim/
>
> if iain is upset i repackaged his stuff i'll take it down, and apologize :

That's awesome! I think its great that you're doing this. In fact, if you're
interested, once you get all the chapters repackaged to your liking, I'd be
happy to post it to the book website as an alternative version (giving you
full credit of course). One of my hopes was that people would take the code
and do whatever they wanted with it so I think this is just fantastic.

Thanks both for your work and for buying the book.

-iain
import-bot (20211) [Avatar] Offline
#3
Re: sample code hints (how i got it to work)
[Originally posted by alejandrogassmann]

hi,
i´m trying download the code from http://goatheckler.com/jim/, but isn´t online.

where i can download your package?
thanks
alex
> I guess now that the book's source is a sourceforge or jabberstudio or
> whatever project this is kinda moot. :p but for those (like me) who need to
> follow the code in the book letter for letter in order to understand what
> they're doing this info may be helpful :p
>
> when i downloaded the sample code from the manning site, i had a million and
> 10 different build problems. i think most of them stemmed from xerces
> problems. the documentation i found suggested using xerces 2 to do the
> builds. However, i couldn't find DefaultReaderFactory in the javadoc for
> xerces 2. I did find it in xerces 1 (version 1.4.4), so i used that one and
> it worked.
>
> in the ch 3 source there are a bunch of classes that were not covered in the
> book (com.metamech.io.*, com.metamach.jabber.ErrorTool,
> com.metamach.jabber.JabberIDTest.java and a bunch of others). This was
> confusing since they weren't covered in the book i didn't know what they were
> for. :p
>
> to clear up my confusion, i decided to just write all code in the book out in
> textpad and package it myself, hoping it would work when i was done.
>
> Most of the confusion i ran into came from differences in the a few
> constructors in the text of the book & from the downloaded source, and
> ambigous namespace for some classes (i used the wrong Attribute at first, the
> right one is org.xml.sax.Attributes).
>
> if anyone wants to see how i put the stuff together you can download it from
> http://goatheckler.com/jim/
>
> if iaian is upset i repackaged his stuff i'll take it down, and apologize :p
import-bot (20211) [Avatar] Offline
#4
Re: sample code hints (how i got it to work)
[Originally posted by micael]

I tried this site and got nothing. Has the url been changed?