Project

General

Profile

« Previous | Next » 

Revision 9833

Added by Jing Tao almost 8 years ago

Replaced the JiBXException by MarshallingException.

View differences:

ReplicationService.java
75 75
import org.dataone.client.rest.RestClient;
76 76
import org.dataone.client.types.AutoCloseHttpClientInputStream;
77 77
import org.dataone.client.utils.HttpUtils;
78
import org.dataone.exceptions.MarshallingException;
78 79
import org.dataone.service.types.v1.Identifier;
79 80
import org.dataone.service.types.v2.SystemMetadata;
80 81
import org.dataone.service.util.DateTimeMarshaller;
81 82
import org.dataone.service.util.TypeMarshaller;
82
import org.jibx.runtime.JiBXException;
83 83
import org.xml.sax.InputSource;
84 84
import org.xml.sax.SAXException;
85 85
import org.xml.sax.XMLReader;
......
1146 1146
	}
1147 1147
	
1148 1148
	public static Hashtable<String, String> getDocumentInfoMap(String docid)
1149
			throws HandlerException, AccessControlException, JiBXException,
1149
			throws HandlerException, AccessControlException, MarshallingException,
1150 1150
			IOException, McdbException, SAXException {
1151 1151
		
1152 1152
		// Try get docid info from remote server
......
1174 1174
	 * @throws IOException
1175 1175
	 * @throws McdbException
1176 1176
	 */
1177
	public static String getDocumentInfo(String docid) throws AccessControlException, JiBXException, IOException, McdbException {
1177
	public static String getDocumentInfo(String docid) throws AccessControlException, MarshallingException, IOException, McdbException {
1178 1178
		StringBuffer sb = new StringBuffer();
1179 1179

  
1180 1180
		DocumentImpl doc = new DocumentImpl(docid);

Also available in: Unified diff