Skip to Content
0
Former Member
Nov 16, 2005 at 09:46 AM

meRepMeta.xml doesn't work for MAM 2.5

28 Views

I have a problem with my meRepMeta.xml.

Background: Before we used WAS 6.20 and MAM 2.0. Exporting the XML file for our upload SYncBO and added to the original meRepMeta.xml worked well. At least the following code worked were Z_EPC is the name of our own SyncBO id:

...
private static SyncBoDataFacade dataFacade;
private static SyncBoDescriptorFacade descFacade;

public static boolean saveImageFile(){
		
dataFacade = SmartSyncRuntime.getInstance().getSyncBoDataFacade(VisibilityType.SEPARATED); 
descFacade = SmartSyncRuntime.getInstance().getSyncBoDescriptorFacade();
SyncBoDescriptor descr = descFacade.getSyncBoDescriptor("Z_EPC"); 
SyncBo imgBo; 
   try {imgBo = dataFacade.createEmptySyncBo(descr);} 
	catch (ModificationNotAllowedException e) { 
				   e.printStackTrace(); 
				   return false;}
...

No we have upgraded to WAS 6.40 and MAM to version 2.5. The exported meRepMeta.xml from the WAS 6.40 system looks like this:

...
<SyncBO id="Z_EPC" version="3" type="upload" allowCreate="true" allowModify="false" allowDelete="false" reqDirectSync="false">
<TopStructure name="TOP">
<Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
<Field name="USER_NAME" type="C" length="12" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
<Field name="FORMAT" type="C" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
<Field name="TIME_STAMP" type="N" length="12" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
<Field name="OBJ_TYPE" type="C" length="2" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
<Field name="OBJ_NUM" type="N" length="12" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
<Field name="ITEM_NO" type="N" length="5" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
<Field name="RESOURCE" type="N" length="15" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
<Field name="NAME" type="C" length="128" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
<ChildStructure name="010">
<Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
<Field name="SEQ_NUM" type="N" length="16" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
<Field name="DATA" type="C" length="252" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="modify">false</Input> 
  </Field>
  </ChildStructure>
  </TopStructure>
  </SyncBO>
...

Running MAM with the code on top will not work. If I change the "Z_EPC" to the existing MAM25 SyncBO, "MAM25_005" for example, the code works.

SyncBoDescriptor descr = descFacade.getSyncBoDescriptor("MAM25_005");

Is it something wrong with the meRepMeta file or has it to do with something else?

Kind Regards,

Daniel Guldbrandsen