[OPEN-ILS-DEV] Error while implementing open-ils.actor.patron.update method.

Cloud Evergreen ILS cloudevergreenils at fanggle.com
Thu Mar 29 07:39:35 EDT 2012


Hello,

1.       We want to update Patron’s specific account data using API method
“open-ils.actor.patron.update” in Java using Apache XmlRpc Library.

2.       We have successfully retrieved patrons account data in JSON format
using API method “open-ils.actor.user.fleshed.retrieve” in Java.

a.       We have retrieved patron’s data in following format:-
http://pastie.org/3671985.

3.       At beginning we edited some value fields manually in retrieved
patron’s (JSON) data and sent it to “open-ils.actor.patron.update” method
as second parameter without changing JSON format.

a.       We got following error :-

                {__data__={status= *** Call to
[open-ils.actor.patron.update] failed for session
[1332771146.220234409.77914223052], thread trace [1]:

Not an ARRAY reference at
/usr/local/share/perl/5.10.1/OpenILS/Utils/Fieldmapper.pm line 281. ,
statusCode=500}, class__=OpenSRF::DomainObject::oilsMethodException}

4.     IRC people advised us to use some Fieldmapper in Java like there it
is in Perl (OpenILS::Utils::Fieldmapper). We tried to find Fieldmapper
implementation in Java but could not find any concrete solution for the
same. We also tried to manually update Patrons account data for R&D purpose
by changing JSON Format like it is given by IRC people.

a.       The Link given by IRC people : http://pastie.org/3628750

b.      Reformatted JSON data by us : http://pastie.org/3672098

 i.      We have set ischanged fields to “t” & isnew and isdeleted fields
to “f” in above paste.

c.       We got following error after sending above data to
“open-ils.actor.patron.update” method,

{__data__={status= *** Call to [open-ils.actor.patron.update] failed for
session [1332773582.1057814346.9380173992], thread trace [1]:

Can't call method "isnew" without a package or object reference at
/usr/local/share/perl/5.10.1/OpenILS/Application/Actor.pm line 345.

, statusCode=500}, __class__=OpenSRF::DomainObject::oilsMethodException}



Kindly help us to resolve issue.



Thanks,

Bala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20120329/06adc0b2/attachment.htm>


More information about the Open-ils-dev mailing list