From: Ian I. <ian...@k-...> - 2004-02-18 08:11:32
|
Oh...sorry.. in addition to this, the exception below looks like it is caused by not having the correct database name sent with the search request? We should add a note to the bug-list since the diagnostic should be properly displayed as well as the add info. If might be worth your adding log4j to the classpath? Do you know what the correct database name for that target is? If you let me have it, I'll test things out this end. Cheers, Ian. On Tue, 2004-02-17 at 22:42, Raja Kannappan wrote: > Thanks Ian and Thelmo for helping out. > > I saw the posting. It seems like I should start with > com.k_int.z3950.IRClient package. But it seems like there is a big > difference between the way ZClient and TestClient are implemented. All > of our test servers and loc server works fine with ZClient, but only loc > server works with TestClient. Our servers do not work with TestClient. > That is one of the reasons, why I initially thought of extending > SynchronousOriginBean instead of Z3950Origin. Do you know why this is > happening? > > Below is the error message I'm getting when I connect to our server > using TestClient. It works fine with ZClient though. Is there a way I > can make it work with TestClient? > > C:\sirsi>java com.k_int.z3950.IRClient.TestClient www.libraryhq.com 210 > usmarc Unicorn "@attrset bib-1 @attr 1=1016 america" > JZKit/IR Test z39.50 client $Revision: 1.39 $ > Using IR Interfaces : Information Retrieval Classes 1.2.1 Knowledge > Integration > Ltd. > Connecting to www.libraryhq.com on port 210 > java.lang.ClassNotFoundException: org.apache.log4j.Category > at java.net.URLClassLoader$1.run(URLClassLoader.java:198) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:186) > at java.lang.ClassLoader.loadClass(ClassLoader.java:299) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) > at java.lang.ClassLoader.loadClass(ClassLoader.java:255) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:140) > at > com.k_int.util.LoggingFacade.LogContextFactory.<clinit>(Unknown Source) > at com.k_int.codec.util.OIDRegister.<clinit>(Unknown Source) > at com.k_int.z3950.IRClient.TestClient.main(TestClient.java:66) > Unable to find codec class : > com.k_int.OpenRequest.isoill.gen.ILL_APDU_Delivery_ > Info.APDU_Delivery_Info_codec > Z3950Origin::Z3950Origin() (1 active) > init {default_element_set_name=F, service_short_name=demo, > default_record_syntax > =usmarc, service_long_name=demo, ServicePort=210, > ServiceHost=www.libraryhq.com} > > Searching > Z3950Origin::createTask(...,observers) > TIME: Sub Fragment source reset > Default record syntax name is usmarc=usmarc > Returning Z3950 search task > Z3950SearchTask::evaluateQuery(60000) > Z3950Origin::evaluateTask(...,observers) > Query as RPN Is : @attrset bib-1 @attr 1=1016 "america" > Association is not yet active, queue the search for later > Assoc is null.... Create new association > Create association and message adapter > Calling ZEndpoint.start() > evaluateQuery is waiting for up to 60000 ms task status complete or > failure > Bringing assoc up........Active Z Thread counter = 1 > My thread priority : 5 > My isDaemon: false > Attempting to connect to www.libraryhq.com:210 > Connect completed OK, send init request (nodelay=false, timeout=0, > linger=-1) > Not using z-authentication > encodeAndSend... > Sent init request > Connect completed OK, Listening for incoming PDUs > Waiting for data on input stream..... > Notifiy observers > notifyAPDUEvent > Incoming PDU refid: null > Processing init response from demo > Incoming refid is NULL! > Implementation ID : Unicorn Standard 2003 > Implementation Name : SIRSI Corporation > Implementation Version : 3.0 > Target supports named result sets > Target claims scan support > Target does not support concurrent operations > Sending outstanding query, task=19058102 > Sending search request with ID: 19058102:srch recsyn is usmarc > Sending search request with refid: 19058102:srch > ssub, lslb,mspn and setname=0, 1, 1 and 19058102 > RootNode, default attrset = bib-1 > 19533676 Single Term : america attrs : [null:1:1016] > encodeAndSend... > enqueue outbound apdu > sendPending() > Sending queued apdu > sendPending() > Yield to other threads.... > Waiting for data on input stream..... > Notifiy observers > notifyAPDUEvent > Incoming PDU refid: 19058102:srch > Search Response - Reference ID : 19058102:srch > Search Result : false > Result Count : 0 > Num Records Returned : 0 > Next RS position : 0 > Z3950SearchTask::setFragmentCount(0) > TIME: Number of fragments has changed to 0 > NonSurrogate diagnostics > Diagnostic (demo): 100 addinfo: > com.k_int.gen.Z39_50_APDU_1995.addinfo_inline14_ > type@89cf1e > Search failure..... > sendPending() > Yield to other threads.... > Private task status: Searching > Z3950SearchTask::elements() > Waiting for data on input stream..... > ReadAheadEumeration::ReadAheadEumeration(source,10,default_record_syntax > :null:de > fault_element_set_name) > Dumping result set > ReadAheadEumeration::hasMoreElements() > Z3950SearchTask::destroyTask() > Z3950Origin::destroy() > ZEndpoint::shutdown() > encodeAndSend... > java.net.SocketException: socket closed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:183) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:201) > 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 Sourc > e) > at com.k_int.codec.runtime.BERInputStream.sequenceBegin(Unknown > Source) > at > com.k_int.gen.Z39_50_APDU_1995.InitializeRequest_codec.serialize(Init > ializeRequest_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:759) > java.net.SocketException: socket closed - hostname=www.libraryhq.com > notifyAPDUEvent > Incoming PDU refid: null > End of ZEndpoint listening thread for host www.libraryhq.com active z > thread cou > nter=0 > Waiting for assoc thread... > Done waiting for assoc thread... > > -----Original Message----- > From: Thelmo Loisio [mailto:the...@em...] > Sent: Tuesday, February 17, 2004 2:38 AM > To: Raja Kannappan > Cc: jzj...@li... > Subject: Re: FW: [Jzjkit-user] Multiple connections > > On Mon, 2004-02-16 at 20:33, Raja Kannappan wrote: > > I use JZKit version 1.2. In this, I see that only > SynchronousOriginBean > > and Z3950Origin uses ZEndpoint. So, Do I need to use Z3950Origin i.e > > extend > > Z3950Origin in my application to have all the complex tasks done? If > > not, can you tell me the class which I should extend? > > > > Just search in the archive of this MLs for a post by Ian about: "Which > package to use". |