Project

General

Profile

« Previous | Next » 

Revision 8013

use ObjectFormatCache.getInstance().getFormat() instead of the CN service (the MN does not typically act as a CN!)

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
56 56
import org.dataone.client.CNode;
57 57
import org.dataone.client.D1Client;
58 58
import org.dataone.client.MNode;
59
import org.dataone.client.ObjectFormatCache;
59 60
import org.dataone.client.auth.CertificateManager;
60 61
import org.dataone.client.formats.ObjectFormatInfo;
61 62
import org.dataone.configuration.Settings;
......
1793 1794

  
1794 1795
		try {
1795 1796
			// can only transform metadata, really
1796
			ObjectFormat objectFormat = ObjectFormatService.getInstance().getFormat(sysMeta.getFormatId());
1797
			ObjectFormat objectFormat = ObjectFormatCache.getInstance().getFormat(sysMeta.getFormatId());
1797 1798
			if (objectFormat.getFormatType().equals("METADATA")) {
1798 1799
				// transform
1799 1800
				DBTransform transformer = new DBTransform();

Also available in: Unified diff