Project

General

Profile

« Previous | Next » 

Revision 9831

Added by Jing Tao over 8 years ago

Replace the JiBXException by our own MashallingException.

View differences:

metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/SolrIndex.java
64 64
import org.dataone.cn.indexer.parser.SolrField;
65 65
import org.dataone.cn.indexer.solrhttp.SolrDoc;
66 66
import org.dataone.cn.indexer.solrhttp.SolrElementField;
67
import org.dataone.exceptions.MarshallingException;
67 68
import org.dataone.service.exceptions.NotFound;
68 69
import org.dataone.service.exceptions.NotImplemented;
69 70
import org.dataone.service.exceptions.ServiceFailure;
......
192 193
     */
193 194
    private Map<String, SolrDoc> process(String id, SystemMetadata systemMetadata, String objectPath)
194 195
                    throws IOException, SAXException, ParserConfigurationException,
195
                    XPathExpressionException, JiBXException, EncoderException, SolrServerException, NotImplemented, NotFound, UnsupportedType{
196
                    XPathExpressionException, MarshallingException, EncoderException, SolrServerException, NotImplemented, NotFound, UnsupportedType{
196 197

  
197 198
        // Load the System Metadata document
198 199
        ByteArrayOutputStream systemMetadataOutputStream = new ByteArrayOutputStream();
......
379 380
     */
380 381
    private synchronized void insert(Identifier pid, SystemMetadata systemMetadata, String objectPath) 
381 382
                    throws IOException, SAXException, ParserConfigurationException,
382
                    XPathExpressionException, SolrServerException, JiBXException, EncoderException, NotImplemented, NotFound, UnsupportedType {
383
                    XPathExpressionException, SolrServerException, MarshallingException, EncoderException, NotImplemented, NotFound, UnsupportedType {
383 384
        checkParams(pid, systemMetadata, objectPath);
384 385
        Map<String, SolrDoc> docs = process(pid.getValue(), systemMetadata, objectPath);
385 386
        

Also available in: Unified diff