Project

General

Profile

« Previous | Next » 

Revision 9916

Added by Jing Tao about 8 years ago

Change the log information a little bit.

View differences:

src/edu/ucsb/nceas/metacat/DBEntityResolver.java
112 112
          // public ID is doctype
113 113
          if (publicId != null) {
114 114
            doctype = publicId;
115
            logMetacat.debug("DBEntityResolver.resolveEntity - in get type from publicId and doctype is: "
115
            logMetacat.debug("DBEntityResolver.resolveEntity - the publicId is not null, so the publicId is the doctype. The doctype is: "
116 116
                                     + doctype);
117 117
          // assume public ID (doctype) is docname
118 118
          } else {
119 119
            doctype = dhandler.getDocname();
120
            logMetacat.debug("DBEntityResolver.resolveEntity - there is not public id and in get type from the doc name and doctype is: "
120
            logMetacat.debug("DBEntityResolver.resolveEntity - the publicId is null and we treat the doc name(the root element name) as the doc type. The doctype is: "
121 121
                    + doctype);
122 122
          }
123 123
        }
......
135 135
        }
136 136
      }
137 137
    } else {
138
        logMetacat.debug("DBEntityResolver.resolveEntity - the handler is null");
138
        logMetacat.debug("DBEntityResolver.resolveEntity - the xml handler is null. So we can't find the doctype.");
139 139
    }
140 140

  
141 141
    // get System ID for doctype
......
143 143
      // look at db XML Catalog for System ID
144 144
      logMetacat.info("DBEntityResolver.resolveEntity - get systemId from doctype: " + doctype);
145 145
      dbSystemID = getDTDSystemID(doctype);
146
      logMetacat.info("DBEntityResolver.resolveEntity - The Systemid is: " + dbSystemID);
146
      logMetacat.info("DBEntityResolver.resolveEntity - The Systemid from xml_catalog table is: " + dbSystemID);
147 147
      if(dbSystemID == null) {
148
          throw new SAXException("The doctype "+doctype+" ,which was defined by a DTD document, isn't registered in Metacat. Please contact the operator of the Metacat");
148
          logMetacat.error("DBEntityResolver.resolveEntity - "+"The doctype: "+doctype+" , which was defined by a DTD document, isn't registered in Metacat. Please contact the operator of the Metacat");
149
          throw new SAXException("The doctype: "+doctype+" , which was defined by a DTD document, isn't registered in Metacat. Please contact the operator of the Metacat");
149 150
      }
150 151
      // check that it is accessible on our system before getting too far
151 152
      try {

Also available in: Unified diff