Z39.50: Can't call method "size" on an undefined value
Hi everybody, I eventually managed to have a Z39.50 client running here (Koha 2.2.0RC5 on RedHat 9.0). Looking at the log file, it seems that the client does connect to the (various) servers defined, since I can read lines such as: 10027/16 : Processing isbn=0691043655 at LIBRARY OF CONGRESS, WASHINGTON DC, USA z3950.loc.gov:7090 voyager MARC21 (6 forks) 10027/16 : 2 >> 10027/16 : creating and 10027/16 : working on results entry 62 10027/16 : connected to LIBRARY OF CONGRESS, WASHINGTON DC, USA However, after a search has been done, I get error messages such as: Can't call method "size" on an undefined value at /usr/local/koha/intranet/scripts/z3950daemon/processz3950queue line 277. I tried to edit the processz3950queue script, and line 277 is indeed where size() is first called: my $numresults=$rs->size(); (Line numbering may be different from your copies of processz3950queue, since I had to include the line: my $context = C4::Context->new("/etc/koha.conf"); as suggested in previous postings, to have processz3950queue working.) I believe that a search has been done, but the results cannot be retrieved and/or saved in Koha's database, because at this point the perl script generates the above error. In addition to that, and seemingly independently from that, processz3950queue enters a loop, with many lines like starting loop in the log file. I did specify export LIB5PERL=/usr/local/koha/intranet/modules and did start the Z39.50 client via ./z3950-daemon-launch.sh Any help? Thank you again in advance. Giuseppe.
However, after a search has been done, I get error messages such as:
Can't call method "size" on an undefined value at /usr/local/koha/intranet/scripts/z3950daemon/processz3950queue line 277.
Did a solution ever get suggested or found for the problem outlined below because I have it as well and have now hit a brick wall?
On Fri, Jan 28, 2005 at 03:25:34AM +0000, David White said:
However, after a search has been done, I get error messages such as:
Can't call method "size" on an undefined value at /usr/local/koha/intranet/scripts/z3950daemon/processz3950queue line 277.
Did a solution ever get suggested or found for the problem outlined below because I have it as well and have now hit a brick wall?
Hi David By any chance are you using Library of Congress for your z3950 server? I got this error when using them, but when I changed it to the National Library of New Zealand, it worked fine. I tried it with the National Library of Australia also, which also worked. It seems to be something that LOC's server is doing that the Net::Z3950 module doesnt like. If you have time could you try a different server and see if it works ? Chris -- Chris Cormack Programmer 027 4500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
Chris Cormack <chris@...> writes:
On Fri, Jan 28, 2005 at 03:25:34AM +0000, David White said:
However, after a search has been done, I get error messages such as:
Can't call method "size" on an undefined value at /usr/local/koha/intranet/scripts/z3950daemon/processz3950queue line 277.
By any chance are you using Library of Congress for your z3950 server? I got this error when using them, but when I changed it to the National Library of New Zealand, it worked fine. I tried it with the National Library of Australia also, which also worked.
It seems to be something that LOC's server is doing that the Net::Z3950 module doesnt like.
If you have time could you try a different server and see if it works ?
Chris
I've tried other Z39.50 servers and they seem to working fine. So yeah, it seems like there is something going on with LOC. It used to work so what's changed? And while we're on LOC, can someone direct me to or let me know step by step how I can get LOC call numbers displayed properly in the new version? Much obliged :)
participants (4)
-
Chris Cormack -
David -
David White -
Giuseppe.Angilella@ct.infn.it