ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/XMLReader/XMLPacketMaker.java
(Generate patch)

Comparing experimental/server/XMLReader/XMLPacketMaker.java (file contents):
Revision 1.10 by pjm2, Fri Nov 17 11:07:32 2000 UTC vs.
Revision 1.12 by pjm2, Fri Nov 17 12:44:47 2000 UTC

# Line 35 | Line 35 | public class XMLPacketMaker extends HandlerBase {
35              SAXParser saxParser = factory.newSAXParser();
36              saxParser.parse(xml, new XMLPacketParser(packet));
37  
38            // Print out the entire contents of the packet's HashMap.
39            System.out.println("XMLPacket contents: -");
40            packet.printAll();
41
38          }
39 +        catch (IOException e){
40 +            System.out.println("IOException: "+e);
41 +        }
42          catch (Throwable t) {
43 <            System.out.println("The recieved packet did not contain valid XML, so I'm gonna reject it.");
44 <            //t.printStackTrace ();
43 >            System.out.println("XMLPacketMaker - I just received an XML packet that did not contain valid XML.");
44 >            //System.out.println(e);
45 >            t.printStackTrace();
46 >            return null;
47          }
48          
49          return packet;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines