Project

General

Profile

« Previous | Next » 

Revision 5454

Added by berkley almost 14 years ago

debug statements in dbsaxhandler

View differences:

src/edu/ucsb/nceas/metacat/DBSAXHandler.java
388 388
                        createDate, updateDate);
389 389
                }               
390 390
            } catch (Exception ane) {
391
                ane.printStackTrace();
392
                throw (new SAXException("Error in DBSaxHandler.startElement "
393
                        + action, ane));
391
                ane.printStackTrace(System.out);
392
                ane.printStackTrace(System.err);
393
                throw (new SAXException("Error in DBSaxHandler.startElement for action "
394
                        + action + " : " + ane.getMessage(), ane));
394 395
            }
395 396
        }
396 397

  
......
458 459
				currentTriple = new Triple();
459 460
			}
460 461
		} catch (PropertyNotFoundException pnfe) {
461
			pnfe.printStackTrace();
462
			throw (new SAXException("Error in DBSaxHandler.startElement " + action, pnfe));
462
			pnfe.printStackTrace(System.out);
463
			pnfe.printStackTrace(System.err);
464
			throw (new SAXException("Error in DBSaxHandler.startElement for action " + action +
465
			        " : " + pnfe.getMessage(), pnfe));
463 466
		}
464 467
	}               
465 468
    
src/edu/ucsb/nceas/metacat/replication/ReplicationService.java
912 912
			{
913 913
			  String guid = idman.getGUID(doc.getDocID(), doc.getRev());
914 914
			  sb.append("<guid>").append(guid).append("</guid>");
915
			  String smLocalId = idman.getSystemMetadataLocalId(guid);
916
			  if(smLocalId != null && !smLocalId.trim().equals(""))
917
			  {
918
			      sb.append("<systemmetadatalocalid>").append(smLocalId).append("</systemmetadatalocalid>");
919
			  }
915 920
			}
916 921
			catch(McdbDocNotFoundException e)
917 922
			{

Also available in: Unified diff