Revision 6468
Added by ben leinfelder over 12 years ago
MetacatHandler.java | ||
---|---|---|
1857 | 1857 |
|
1858 | 1858 |
// handle inserts |
1859 | 1859 |
try { |
1860 |
// create the system metadata |
|
1860 | 1861 |
sysMeta = createSystemMetadata(newdocid, user, groups); |
1862 |
|
|
1863 |
// save it to the map |
|
1861 | 1864 |
HazelcastService.getInstance().getSystemMetadataMap().put(sysMeta.getIdentifier(), sysMeta); |
1862 | 1865 |
|
1863 | 1866 |
} catch ( McdbDocNotFoundException dnfe ) { |
... | ... | |
3003 | 3006 |
|
3004 | 3007 |
// manage it in the store |
3005 | 3008 |
HazelcastService.getInstance().getSystemMetadataMap().put(sm.getIdentifier(), sm); |
3006 |
|
|
3007 | 3009 |
|
3008 | 3010 |
} catch (Exception ee) { |
3009 | 3011 |
// If the file did not exist before this method was |
... | ... | |
3514 | 3516 |
throws McdbException, McdbDocNotFoundException, SQLException, |
3515 | 3517 |
IOException, AccessionNumberException, ClassNotFoundException, |
3516 | 3518 |
InsufficientKarmaException, ParseLSIDException, PropertyNotFoundException, |
3517 |
BaseException, NoSuchAlgorithmException, JiBXException |
|
3519 |
BaseException, NoSuchAlgorithmException, JiBXException, Exception
|
|
3518 | 3520 |
{ |
3519 | 3521 |
logMetacat.debug("MetacatHandler.createSystemMetadata() called."); |
3520 | 3522 |
logMetacat.debug("provided localId: " + localId); |
... | ... | |
3692 | 3694 |
} |
3693 | 3695 |
|
3694 | 3696 |
// update the values |
3695 |
HazelcastService.getInstance().getSystemMetadataMap().put(dataSysMeta.getIdentifier(), dataSysMeta);
|
|
3697 |
HazelcastService.getInstance().getSystemMetadataMap().put(dataSysMeta.getIdentifier(), dataSysMeta); |
|
3696 | 3698 |
|
3697 | 3699 |
} catch ( McdbDocNotFoundException mdnf) { |
3698 | 3700 |
mdnf.printStackTrace(); |
... | ... | |
3736 | 3738 |
} catch ( XPathExpressionException xpee ) { |
3737 | 3739 |
logMetacat.debug("There was a problem searching the EML document. " + |
3738 | 3740 |
"The error message was: " + xpee.getMessage()); |
3739 |
} catch ( Exception e ) { |
|
3740 |
logMetacat.debug("There was a problem creating System Metadata. " + |
|
3741 |
"The error message was: " + e.getMessage()); |
|
3742 |
} // end try() |
|
3741 |
} |
|
3743 | 3742 |
|
3744 | 3743 |
} // end if() |
3745 | 3744 |
|
Also available in: Unified diff
catch runtime exceptions that arise from hazelcast storage errors in the system metadata map