From: Ian I. <ian...@k-...> - 2005-08-24 10:05:58
|
Yeah... this looks like a problem with the OID Register entry. I think the problem is that the newer source code uses a spring application context. I'll take a harder look later on today. Ian. On Wed, 2005-08-24 at 10:18 +0100, Stracchino, Peri wrote: > Hi > > Have used the new jar (version 2.0.1) to gain access to our > id/password autheniticated database. The authentication is now working > well, however a new problem seems to have been introduced which was > previously working correctly. Basically a null pointer exception is > now thrown when 'present' is called. > > This is definately a feature of the new jar, as I have tested it > against a database which does not require authentication, > using firstly the 2.0.0 jar and secondly the 2.0.1 jar. The error only > occurs with 2.0.1 - when 2.0.0 is used, the expected data is displayed > correctly. > > Are there perhaps other differences between the two jars that we need > to take account of when implementing our present method? > > Stack trace and implementation listings below: > > This is the stack trace; > > [java] 23-Aug-2005 16:43:36 > org.jzkit.search.provider.z3950.Z3950Origin incomingPresentResponse > [java] SEVERE: Unable to locate callback target or outstanding > operation info for refid 32820206:0 > [java] java.lang.NullPointerException > [java] at > org.jzkit.a2j.gen.AsnUseful.EXTERNAL_codec.serialize(EXTERNAL_codec.java:41) > [java] at > org.jzkit.a2j.codec.runtime.BEROutputStream.choice(BEROutputStream.java:295) > [java] at > org.jzkit.z3950.gen.v3.Z39_50_APDU_1995.record_inline13_codec.serialize(record_inline13_codec.java:52) > [java] at > org.jzkit.a2j.codec.runtime.BEROutputStream.explicit_tag(BEROutputStream.java:409) > [java] at > org.jzkit.z3950.gen.v3.Z39_50_APDU_1995.NamePlusRecord_codec.serialize(NamePlusRecord_codec.java:55) > [java] at > org.jzkit.a2j.codec.runtime.BEROutputStream.sequenceOf(BEROutputStream.java:435) > [java] at > org.jzkit.z3950.gen.v3.Z39_50_APDU_1995.responseRecords_inline11_codec.serialize(responseRecords_inline11_codec.java:46) > [java] at > org.jzkit.a2j.codec.runtime.BEROutputStream.choice(BEROutputStream.java:289) > [java] at > org.jzkit.z3950.gen.v3.Z39_50_APDU_1995.Records_codec.serialize(Records_codec.java:50) > [java] at > org.jzkit.z3950.gen.v3.Z39_50_APDU_1995.PresentResponse_codec.serialize(PresentResponse_codec.java:61) > [java] at > org.jzkit.a2j.codec.runtime.BEROutputStream.choice(BEROutputStream.java:289) > [java] at > org.jzkit.z3950.gen.v3.Z39_50_APDU_1995.PDU_codec.serialize(PDU_codec.java:70) > [java] at > org.jzkit.z3950.util.ZTargetEndpoint.encodeAndSend(ZTargetEndpoint.java:384) > [java] at > org.jzkit.z3950.server.ZServerAssociation.notifyPresentResult(ZServerAssociation.java:372) > [java] at test.JZKitBackend.present(JZKitBackend.java:105) > [java] at > org.jzkit.z3950.server.ZServerAssociation.incomingPresentRequest(ZServerAssociation.java:335) > [java] at > org.jzkit.z3950.util.GenericEventToTargetListenerAdapter.update(GenericEventToTargetListenerAdapter.java:66) > [java] at > java.util.Observable.notifyObservers(Observable.java:142) > [java] at > org.jzkit.z3950.util.ZTargetEndpoint.notifyAPDUEvent(ZTargetEndpoint.java:211) > [java] at > org.jzkit.z3950.util.ZTargetEndpoint.run(ZTargetEndpoint.java:419) > > > And this is the implementation we are using - which does work using > 2.0.0; > > public void present(BackendPresentResult bpr) { > try { > IRResultSet resultSet = > (IRResultSet)result_sets.get(bpr.result_set_name); > bpr.result_records = resultSet.getFragment(bpr.start, > bpr.count, bpr.archetype); > bpr.next_result_set_position = bpr.start + bpr.count; > bpr.assoc.notifyPresentResult(bpr); > } catch(Exception e) { > e.printStackTrace(); > } > } > > Hoping you can throw some light on this > > Peri > ************************************************************************** > > Experience the British Library online at www.bl.uk > > Help the British Library conserve the world's knowledge. Adopt a Book. > www.bl.uk/adoptabook > > The Library's St Pancras site is WiFI - enabled > > ************************************************************************** > > The information contained in this e-mail is confidential and may be > legally privileged. It is intended for the addressee(s) only. If you > are not the intended recipient, please delete this e-mail and notify > the pos...@bl... : The contents of this e-mail must not be > disclosed or copied without the sender's consent. > > The statements and opinions expressed in this message are those of the > author and do not necessarily reflect those of the British Library. > The British Library does not take any responsibility for the views of > the author. > > ************************************************************************** > |