[ZOOM] A fatal error occurred in Yaz: 10004 - Connection lost: pleazzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz!
amir.parsi at gmail.com
Fri Oct 15 12:29:46 CEST 2010
Thanks Mike. You are right. The problem was about the type of query.
Thank you very much.
On 10/15/10, Mike Taylor <mike at miketaylor.org.uk> wrote:
> On 15 October 2010 03:56, Amir Parsi <amir.parsi at gmail.com> wrote:
>> Dear List
>> I am a vb.net programmer. Could you please tell me what's wrong with this
>> Public Sub test2()
>> Dim ob1 As Connection = New
>> Zoom.Net.YazSharp.Connection("188.8.131.52", 210)
>> ob1.DatabaseName = "default"
>> ob1.Syntax = RecordSyntax.XML
>> Dim query As String = "water"
>> Dim q As Zoom.Net.YazSharp.CQLQuery = New CQLQuery(query)
>> Dim results As IResultSet
>> results = CType(ob1.Search(q), ResultSet)
>> End Sub
>> that causes "A fatal error occurred in Yaz: 10004 - Connection lost"
>> P.S. Everything is fine with yaz-client.
>> It's more than 10 days that I am trying to find the problem, but I
>> could not manage to.
> Sounds like you most likely have a problem with your server. Try
> checking its logs and seeing whether it couldn't handle the CQL query
> -- most Z39.50 servers only handle PQF queries. (Although your server
> is being very rude in just closing the connection instead of sending
> you a proper diagnostic.)
> Does your program would correctly when run against a known-good server
> like that of the Library of Congress at yaz-client
> z3950.loc.gov:7090/Voyager? Try using host="z3950.loc.gov",
> port=7090, DatabaseName="Voyager" as see whether all is well.
> You can see that the LoC server handles CQL queries by searching it
> with the trusty old YAZ command-line client (see transcript below).
> Try using that client against your server, and seeing whether that
> -- Mike.
> $ yaz-client z3950.loc.gov:7090/Voyager
> Sent initrequest.
> Connection accepted by v3 target.
> ID : 34
> Name : Voyager LMS - Z39.50 Server (YAZ Proxy)
> Version: 2006.5.2/184.108.40.206
> Options: search present
> Elapsed: 0.431250
> Z> que cql
> Z> find water
> Sent searchRequest.
> Received SearchResponse.
> Search was a success.
> Number of hits: 10000
> records returned: 0
> Elapsed: 1.706011
> Z> show 1
> Sent presentRequest (1+1).
> Records: 1
> [VOYAGER]Record type: USmarc
> 03932cjm 2200433 a 4500
> 001 15247076
> 005 20080908140556.0
> 007 sd fsngnnmmneu
> 008 080404s2006 nyumun| | mul d
> 010 $a 2008573828
> 024 1 $a 028947580980
> 028 02 $a B0006603-02 $b Universal Music
> 035 $a (OCoLC)ocm71826284
> 035 $a (OCoLC)71826284
> 040 $a JBO $c JBO $d FM0 $d OCLCQ $d DLC
> 042 $a lccopycat
> 050 00 $a SDB 76834
> 245 04 $a The #1 Baroque album $h [sound recording].
> 246 3 $a Number 1 Baroque album
> 246 3 $a Number one Baroque album
> 260 $a New York, N.Y. : $b Universal Music Classics Group, $c p2006.
> 300 $a 2 sound discs : $b digital ; $c 4 3/4 in.
> 500 $a Compact discs.
> 511 0 $a Various artists.
> 505 0 $a Disc 1: Arrival of the Queen of Sheba / Handel -- Canon in D
> / Pachelbel -- Sheep may safely graze / J.S. Bach -- Allegro from
> keyboard concerto in F "Italian" \ J.S. Bach -- Rondeau from Abdelazer
> / Henry Purcell -- Toccata from Toccata and fugue in D minor / J.S.
> Bach -- Gloria in excelsis from Gloria in D / Antonio Vivaldi --
> Siciliano from Concerto for oboe, strings, and continuo in D minor /
> J.S. Bach -- Stabat mater, Cuius animan, O quam tristis from Stabat
> Mater / Antonio Vivaldi -- La r�ejouissance from Music for the royal
> fireworks suite / George Frideric Handel -- Jesu, joy of man's
> desiring from Cantata / J.S. Bach -- Concerto grosso in G minor, op.
> 6, no. 8 / Arcangelo Corelli -- Affettuoso from Violin concerto no. 4
> in E / Georg Philipp Telemann -- Prelude in C from Well Tempered
> Clavier, Book I, no. 1 / J.S. Bach -- Allegro moderato from Violin
> concerto no. 1 in A minor / J.S. Bach -- Largo from Concerto for lute,
> 2 violins and continuo in D / Antonio Vivaldi -- Largo ma non tanto
> from Concerto for 2 violins, strings, and continuo in D minor / J.S.
> Bach -- Lascia ch'io pianga from Rinaldo / George Frideric Handel --
> Allegro from Violin concerto no. 1 in E, "Spring" (Four seasons) /
> Antonio Vivaldi -- Presto from Violin concerto no. 2 in G minor,
> "Summer" (Four seasons) / Antonio Vivaldi -- Disc 2: Adagio from Oboe
> concerto in D minor / Alessandro Marcello -- Air on a G string (Air
> from Orchestral suite no. 3 in D) / J.S. Bach -- Trumpet voluntary /
> Jeremiah Clarke -- I know that my Redeemer liveth from Messiah /
> George Frideric Handel -- Stabat mater / Giovanni Battista Pergolesi
> -- Hornpipe from Water music suite in D / George Frideric Handel --
> Adagio for strings and organ in G minor / Tomaso Albinoni -- Badinerie
> from Orchestral suite no. 2 in B minor / J.S. Bach -- Largo from
> Violin concerto no. 4 in F minor, "Winter" (Four seasons) / Antonio
> Vivaldi -- Miserere (excerpt) / Gregorio Allegri -- Hallelujah from
> Messiah / George Frideric Handel -- Le coucou from Troisi�eme suite /
> Louis-Claude Daquin -- Allegro from Brandenburg concerto no. 5 in D /
> J.S. Bach -- Aria from Goldberg variations / J.S. Bach -- When I am
> laid in earth from Dido and Aeneas / Henry Purcell -- Ombra mai f�u
> from Serse / George Frideric Handel -- Air from Water music suite in F
> / George Frideric Handel -- Nulla in mundo pax sincera / Antonio
> Vivaldi -- Zadok the priest from Coronation anthem no. 1 / George
> Frideric Handel.
> 500 $a "Decca: a Universal Music Company"--Disc.
> 650 0 $a Music $y 17th century.
> 650 0 $a Music $y 18th century.
> 650 0 $a Orchestral music.
> 650 0 $a Choral music.
> 650 0 $a Chamber music.
> 710 2 $a Academy of St. Martin-in-the-Fields.
> 710 2 $a Stuttgarter Kammerorchester.
> 710 2 $a Academy of Ancient Music (1973- )
> 710 2 $a Universal Music (Firm)
> 710 2 $a Decca Records (Firm)
> 906 $a 7 $b cbc $c copycat $d 2 $e ncip $f 20 $g y-genmusic
> 925 0 $a acquire $b 2 shelf copies $x policy default
> 955 $a vk80 2008-04-04 z-client $i vk80 2008-04-04 $e vk80
> 2008-05-23 Copy 2 to MBRS for shelf label $e vk79 2008-08-14 to MRBS
> for shelf label
> nextResultSetPosition = 2
> Elapsed: 0.145011
More information about the ZOOM