Can't getting the TestClient works

Help
Lun
2003-01-10
2003-03-10
  • Lun

    Lun - 2003-01-10

    Dear All,

    I just download JZKit 1.2 today and started to use it by trying the TestClient, below is the error message, really hope that someone can help me.
    ----------------------------------------------------------------------
    JZKit/IR Test z39.50 client $Revision: 1.38 $
    Using IR Interfaces : Information Retrieval Classes 1.2.1 Knowledge Integration Ltd.
    Connecting to demo.k-int.com on port 210
    0       [main] WARN  com.k_int.codec.util.OIDRegConfigurator  - Unable to find codec class : com.k_int.OpenRequest.isoill.gen.ILL_APDU_Delivery_Info.APDU_Delivery_Info_codec
    125     [main] DEBUG Z3950Origin  - Z3950Origin::Z3950Origin() (1 active)
    140     [main] DEBUG Z3950Origin  - init {default_element_set_name=F, service_short_name=demo, default_record_syntax=xml, service_long_name=demo, ServicePort=210, ServiceHost=demo.k-int.com}
    Searching
    140     [main] DEBUG Z3950Origin  - Z3950Origin::createTask(...,observers)
    TIME: Sub Fragment source reset
    156     [main] DEBUG Z3950SearchTask  - Default record syntax name is xml=xml
    156     [main] DEBUG Z3950Origin  - Returning Z3950 search task
    156     [main] DEBUG Z3950SearchTask  - Z3950SearchTask::evaluateQuery(60000)
    156     [main] DEBUG Z3950Origin  - Z3950Origin::evaluateTask(...,observers)
    187     [main] DEBUG Z3950Origin  - Query as RPN Is : @attrset bib-1 @attr 1=7 "0450410218"
    187     [main] DEBUG Z3950Origin  - Association is not yet active, queue the search for later
    187     [main] INFO  Z3950Origin  - Assoc is null.... Create new association
    187     [main] DEBUG Z3950Origin  - Create association and message adapter
    375     [main] DEBUG Z3950Origin  - Calling ZEndpoint.start()
    375     [main] DEBUG Z3950Origin  - evaluateQuery is waiting for up to 60000 ms task status complete or failure
    375     [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Bringing assoc up........Active Z Thread counter = 1
    375     [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - My thread priority : 5
    375     [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - My isDaemon: false
    375     [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Attempting to connect to demo.k-int.com:210
    2375    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Connect completed OK, send init request (nodelay=false, timeout=0, linger=-1)
    2390    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Not using z-authentication
    2390    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - encodeAndSend...
    2406    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Sent init request
    2406    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Connect completed OK, Listening for incoming PDUs
    2406    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Waiting for data on input stream.....
    2687    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Notifiy observers
    2687    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - notifyAPDUEvent
    2687    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Incoming PDU refid: null
    2687    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950Origin  - Processing init response from demo
    2687    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950Origin  -   Incoming refid is NULL!
    2687    [Z3950 Search Thread demo.k-int.com] INFO  Z3950Origin  -   Implementation ID : 81
    2687    [Z3950 Search Thread demo.k-int.com] INFO  Z3950Origin  -   Implementation Name : GFS/YAZ / Zebra Information Server
    2687    [Z3950 Search Thread demo.k-int.com] INFO  Z3950Origin  -   Implementation Version : YAZ 1.9.1 / Zebra 1.3.3
    2687    [Z3950 Search Thread demo.k-int.com] INFO  Z3950Origin  - Target supports named result sets
    2687    [Z3950 Search Thread demo.k-int.com] INFO  Z3950Origin  - Target claims scan support
    2687    [Z3950 Search Thread demo.k-int.com] INFO  Z3950Origin  - Target claims support for concurrent operations
    2687    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950Origin  - Sending outstanding query, task=3456720
    2687    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950Origin  - Sending search request with ID: 3456720:srch recsyn is xml
    2703    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Sending search request with refid: 3456720:srch
    2703    [Z3950 Search Thread demo.k-int.com] DEBUG RPNPrintVisitor  - RootNode, default attrset = bib-1
    2703    [Z3950 Search Thread demo.k-int.com] DEBUG RPNPrintVisitor  -     6372690 Single Term : 0450410218 attrs : [null:1:7]
    2750    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - encodeAndSend...
    2765    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Yield to other threads....
    2765    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Waiting for data on input stream.....
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Notifiy observers
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - notifyAPDUEvent
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Incoming PDU refid: 3456720:srch
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950Origin  - Search Response - Reference ID : 3456720:srch
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950Origin  -   Search Result : false
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950Origin  -   Result Count : 0
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950Origin  -   Num Records Returned : 0
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950Origin  -   Next RS position : 0
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG Z3950SearchTask  - Z3950SearchTask::setFragmentCount(0)
    TIME: Number of fragments has changed to 0
    3047    [Z3950 Search Thread demo.k-int.com] WARN  Z3950Origin  - Search failure.....
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Yield to other threads....
    3047    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Waiting for data on input stream.....
    Private task status: Searching
    3047    [main] DEBUG Z3950SearchTask  - Z3950SearchTask::elements()
    3062    [main] DEBUG ReadAheadEnumeration  - ReadAheadEumeration::ReadAheadEumeration(source,10,default_record_syntax:null:default_element_set_name)
    Dumping result set
    3062    [main] DEBUG ReadAheadEnumeration  - ReadAheadEumeration::hasMoreElements()
    3062    [main] DEBUG Z3950SearchTask  - Z3950SearchTask::destroyTask()
    3062    [main] DEBUG Z3950Origin  - Z3950Origin::destroy()
    3062    [main] DEBUG ZEndpoint  - ZEndpoint::shutdown()
    3062    [main] DEBUG ZEndpoint  - encodeAndSend...
    java.net.SocketException: JVM_recv in socket input stream read (code=10004)
        at java.net.SocketInputStream.socketRead(Native Method)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at com.k_int.codec.runtime.BERInputStream.read(Unknown Source)
        at com.k_int.codec.runtime.BERInputStream.decodeNextTag(Unknown Source)
        at com.k_int.codec.runtime.BERInputStream.tag_codec(Unknown Source)
        at com.k_int.codec.runtime.BERInputStream.constructedBegin(Unknown Source)
        at com.k_int.codec.runtime.BERInputStream.sequenceBegin(Unknown Source)
        at com.k_int.gen.Z39_50_APDU_1995.InitializeRequest_codec.serialize(InitializeRequest_codec.java:39)
        at com.k_int.codec.runtime.BERInputStream.implicit_tag(Unknown Source)
        at com.k_int.codec.runtime.BERInputStream.choice(Unknown Source)
        at com.k_int.gen.Z39_50_APDU_1995.PDU_codec.serialize(PDU_codec.java:61)
        at com.k_int.z3950.util.ZEndpoint.run(ZEndpoint.java:734)
    3062    [Z3950 Search Thread demo.k-int.com] INFO  ZEndpoint  - java.net.SocketException: JVM_recv in socket input stream read (code=10004) - hostname=demo.k-int.com
    3062    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - notifyAPDUEvent
    3062    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - Incoming PDU refid: null
    3062    [Z3950 Search Thread demo.k-int.com] DEBUG ZEndpoint  - End of ZEndpoint listening thread for host demo.k-int.com active z thread counter=0
    3062    [main] DEBUG Z3950Origin  - Waiting for assoc thread...
    3062    [main] DEBUG Z3950Origin  - Done waiting for assoc thread...
    -------------------------------------------------------------------------
    Best regards,
    Lun

     
    • Edwin Litterst

      Edwin Litterst - 2003-03-05

      I have exactly the same problem.
      Are there any solutions?

      Regards,
      Eddie

       
      • Lun

        Lun - 2003-03-06

        I guess you are using the "test-ir.sh", right? Try to use the target "bagel.indexdata.dk" instead of "demo.k-int.com".

        Best regards,
        Lun

         
    • Edwin Litterst

      Edwin Litterst - 2003-03-10

      No, I didn't use "test-ir.sh".
      But my problem was a version mismatch of the samples and the library itself I checked out the examples from cvs). The smaples are working now just fine - my own code still not.
      But this is only a problem of understanding the documentation. :-)

      Thanks for your help,
      Eddie

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks