Acceder code extraction ACP

cancel
Showing results for 
Search instead for 
Did you mean: 
loicb
Member II

Acceder code extraction ACP

Bonjour,

J'aimerais savoir ou je peu trouver le code alfresco permettant l'extraction et l'importation d'archives ACP. En effet, j'utilise ACP Generator que j'ai modifier selon mon modele de données mais au moment de l'import, alfresco me renvoie une erreur :

failed to import package at line 114, column 22 due to erreur: for input string ""

Lorsque je regarde mon fichier XML à cette ligne, c'est une balise </cm:content>.

J'aimerais donc savoir ou je peu acceder au code d'extraction des meta données des archives pour voir à quoi est due cette erreur. Si quelqu'un sais ou il se trouve et comment y accéder…

Merci d'avance.
2 Replies
rguinot
Customer

Re: Acceder code extraction ACP

postez la partie pertinente du XML peut être que quelqu'un verra l'erreur…
loicb
Member II

Re: Acceder code extraction ACP

voila mon code xml généré. l'erreur est :
failed to import package at line 115, column 22 due to erreur: for input string ""

<?xml version="1.0" encoding="UTF-8"?>
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0">
  <cm:folder xmlns="" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:app="http://www.alfresco.org/model/application/1.0" xmlns:d="http://www.alfresco.org/model/dictionary/1.0" xmlns:sys="http://www.alfresco.org/model/system/1.0" xmlns:alf="http://www.alfresco.org" xmlns:ver="http://www.alfresco.org/model/versionstore/1.0" xmlns:my="my.new.model" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:bpm="http://www.alfresco.org/model/bpm/1.0" xmlns:wca="http://www.alfresco.org/model/wcmappmodel/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:fm="http://www.alfresco.org/model/forum/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns:reg="http://www.alfresco.org/system/registry/1.0" xmlns:rule="http://www.alfresco.org/model/rule/1.0" xmlns:wcm="http://www.alfresco.org/model/wcmmodel/1.0" xmlns:wcmwf="http://www.alfresco.org/model/wcmworkflow/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:usr="http://www.alfresco.org/model/user/1.0" xmlns:view="http://www.alfresco.org/view/repository/1.0" xmlns:act="http://www.alfresco.org/model/action/1.0" xmlns:wf="http://www.alfresco.org/model/workflow/1.0" xmlns:custom="custom.model" view:childName="cm:content2">
    <view:properties>
      <app:icon>space-icon-default</app:icon>
      <cm:name>content2</cm:name>
      <sys:store-protocol>workspace</sys:store-protocol>
      <sys:store-identifier>SpacesStore</sys:store-identifier>
    </view:properties>
    <view:associations>
      <cm:contains>
        <cm:content view:childName="cm:sample.txt">
          <view:aspects>
            <cm:auditable></cm:auditable>
            <my:documentADV></my:documentADV>
            <my:contrat></my:contrat>
            <sys:referenceable></sys:referenceable>
            <cm:titled></cm:titled>
            <cm:author></cm:author>
          </view:aspects>
          <view:properties>
            <cm:name>sample.txt</cm:name>
            <sys:node-dbid></sys:node-dbid>
            <sys:store-identifier>SpacesStore</sys:store-identifier>
            <cm:title>sample.txt</cm:title>
            <cm:modified></cm:modified>
            <sys:node-uuid></sys:node-uuid>
            <cm:created></cm:created>
            <cm:author></cm:author>
            <cm:description></cm:description>
            <cm:creator>admin</cm:creator>
            <cm:modifier>admin</cm:modifier>
            <cm:content>contentUrl=importcontent\content0.txt|mimetype=text/plain|size=0|encoding=UTF-8|locale=fr_FR_</cm:content>
            <my:Nomclient>aaa</my:Nomclient>
            <my:Ville>aaa</my:Ville>
            <my:Adresse>aaa</my:Adresse>
            <my:Nomcomm>aaa</my:Nomcomm>
            <my:BUD>21</my:BUD>
            <my:OBS>false</my:OBS>
            <my:SecteurD>213</my:SecteurD>
            <my:NumSerieD>
              <view:values>
                <view:value>321231</view:value>
              </view:values>
            </my:NumSerieD>
            <my:TypeMachineD>
              <view:values>
                <view:value>32121321</view:value>
              </view:values>
            </my:TypeMachineD>
            <my:LocFiDll>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:LocFiDll>
            <my:CredBailDll>
              <view:values>
                <view:value>3213212</view:value>
              </view:values>
            </my:CredBailDll>
            <my:LocOCEFI>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:LocOCEFI>
            <my:CredBailOCEFI>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:CredBailOCEFI>
            <my:LocOce>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:LocOce>
            <my:MainOce>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:MainOce>
            <my:PretOce>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:PretOce>
            <my:LocFiOther>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:LocFiOther>
            <my:VenteOce>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:VenteOce>
            <my:VenteForml></my:VenteForml>
            <my:VentePOING>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:VentePOING>
            <my:MainPOING>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:MainPOING>
            <my:AvMainPOING>
              <view:values>
                <view:value></view:value>
              </view:values>
            </my:AvMainPOING>
            <sys:store-protocol>workspace</sys:store-protocol>
          </view:properties>
          <view:associations></view:associations>
        </cm:content>     //l'erreur se trouve ici, enfin voici la ligne 115 colonne 22 après >
      </cm:contains>
    </view:associations>
  </cm:folder>
</view:view>