I ran into the same IOException error in Part II posted by quite a few groups already. Then I examined my output for Part I again (which is identical to Marc's post), and I found out that all links that are local to Dr. Lee's home directory http://www.cs.cmu.edu/~petel, such as contact.html, papers/pcc/pcc.html and students.html are causing the three IOExceptions, and their URL are messed up by the URL(URL context, String h) constructor called in PageHref.java.
So I changed the line into href = new URL(context.toString() + "/" + h); And then my part I output links are all good links, and part II has no more Exceptions.
I am interested in knowing other students' methods in solving this problem. |