Revision 5419
Added by berkley over 14 years ago
src/edu/ucsb/nceas/metacat/dataone/CrudService.java | ||
---|---|---|
822 | 822 |
Identifier identifier = new Identifier(); |
823 | 823 |
try |
824 | 824 |
{ |
825 |
//System.out.println("converting docid '" + docid + "' to a guid.");
|
|
825 |
System.out.println("converting docid '" + docid + "' to a guid."); |
|
826 | 826 |
if(docid == null || docid.trim().equals("") || docid.trim().equals("null")) |
827 | 827 |
{ |
828 | 828 |
continue; |
... | ... | |
832 | 832 |
} |
833 | 833 |
catch(Exception ex) |
834 | 834 |
{ //try to get the guid, if that doesn't work, just use the local id |
835 |
throw new ServiceFailure("1030", "Error getting guid for localId " + |
|
836 |
docid + ": " + ex.getMessage()); |
|
835 |
//throw new ServiceFailure("1030", "Error getting guid for localId " + |
|
836 |
// docid + ": " + ex.getMessage()); |
|
837 |
System.out.println("skipping log record since the docid is null"); |
|
838 |
continue; |
|
837 | 839 |
} |
838 | 840 |
|
839 | 841 |
le.setIdentifier(identifier); |
Also available in: Unified diff
fixed bug with log processing