Import de fiches : erreur webservice workflow

  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:c47748c508a0db03eac82bc8b51d4b8e' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:c47748c508a0db03eac82bc8b51d4b8e' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:bd56a9dd5d8d2988b6cd3e6421376ed2' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour,\n<div><br></div>\n<div>J&#39;essaye d&#39;importer des fiches automatiquement à l&#39;aide d&#39;un script python avec le webservice d&#39;ori-oai-workflow 1.6.1.</div>\n<div>Mais lorsque je lance le script, j&#39;obtiens l&#39;erreur suivante dans les logs du workflow :</div>\n<div><br></div>\n<div>ERROR handler.DefaultFaultHandler invoke[35] - Fault occurred!</div>\n<div>java.lang.NullPointerException</div>\n<div><br></div>\n<div>Voici un exemple du code du script:</div>\n<div><br></div>\n<div>########</div>\n<div>from suds.client import Client</div>\n<div><br></div>\n<div>\n<div>url = &#39;<a href=\"http://xxxxxx/ori-oai-workflow/xfire/OriWorkflowService?WSDL\">http://xxxxxx/ori-oai-workflow/xfire/OriWorkflowService?WSDL</a>&#39;</div>\n<div>namespace = &#39;oaidc&#39;</div>\n<div>user = &#39;morgan.bohn&#39;</div>\n<div>filedc = &#39;le contenu de la ficher à importer&#39;</div>\n<div><br></div>\n<div>client = Client(url)</div>\n<div>idfiche = client.service.newWorkflowInstance(in0=filedc, in1=namespace, in2=user)</div>\n<div>########</div>\n<div><br></div>\n</div>\n<div><br></div>\n<div>Apparemment d&#39;autres personnes ont rencontré exactement le même problème, mais n&#39;ont pas eu de réponse : </div>\n<div><a href=\"http://www.ori-oai.org/Forums/20120416_Probleme_webservice_-_import_notices\">http://www.ori-oai.org/Forums/20120416_Probleme_webservice_-_import_notices</a></div>\n<div><br></div>\n<div><br></div>\n<div>Merci d&#39;avance pour toute aide</div>\n<div><br></div>\n<div>Cordialement,<br clear=\"all\">\n<div><br></div>\n<p>-- <br>Morgan Bohn<br>Pôle &quot;Développement, intégration et paramétrage&quot;<br><br />\nDépartement &quot;Services Métiers&quot;<br>Université de Strasbourg<br>\n</div>\n</div>\n', created = 1507756214, expire = 1507842614, headers = '', serialized = 0 WHERE cid = '4:bd56a9dd5d8d2988b6cd3e6421376ed2' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
1 message / 0 nouveaux
Dernière contribution
Anonyme
Import de fiches : erreur webservice workflow
Bonjour,

J'essaye d'importer des fiches automatiquement à l'aide d'un script python avec le webservice d'ori-oai-workflow 1.6.1.
Mais lorsque je lance le script, j'obtiens l'erreur suivante dans les logs du workflow :

ERROR handler.DefaultFaultHandler invoke[35] - Fault occurred!
java.lang.NullPointerException

Voici un exemple du code du script:

########
from suds.client import Client

namespace = 'oaidc'
user = 'morgan.bohn'
filedc = 'le contenu de la ficher à importer'

client = Client(url)
idfiche = client.service.newWorkflowInstance(in0=filedc, in1=namespace, in2=user)
########


Apparemment d'autres personnes ont rencontré exactement le même problème, mais n'ont pas eu de réponse : 


Merci d'avance pour toute aide

Cordialement,

--
Morgan Bohn
Pôle "Développement, intégration et paramétrage"

Département "Services Métiers"
Université de Strasbourg