Stephane, I'll send you my latest jars (including source) via separate email.
I'm sorry about the current state of my repository. I've had rebuilding it on
my list for a while now. I'll try to set aside some time to finish it soon.
The particular problem you ran into compiling comes from my support of several
database systems under the SRW interface. You don't have all the classes
necessary to build a system that supports my Pears database. I've split those
files out into separate packages, but you're still picking them up.
1) As to the stack traces...
The first one doesn't seem to include an SRW reference in it, so I'm hoping
that it isn't really my problem. But, I will admit that the early version of
my DSpace code was not returning contexts to the pool. It's possible that the
version you have still has that bug. No one has ever reported that particular
problem to me, but hopefully the new jars will solve it. The second stack
trace certainly looks like my context leaking bug.
The NullPointerException is happening while building an html file that lists
all your available databases. I believe that building that file has to be
explicitly asked for in the new version of SRW, so that problem should go away.
I'd be interested in tracking it down if it continues to happen.
2) SRW doesn't know about "full text" searching in DSpace. It is simply
searching your default index. I have this vague impression that that is a bug
that I've fixed. Let's see if the new jars fix the problem.
3) I know I've fixed that bug. It may well have been a configuration problem
in the CQL parser. I'll send along my latest DSpace configuration file.
4) We may have to fiddle with that one a little bit. I know we've gotten that
stuff working for the Finns. There were code changes necessary that you'll get
with the new jar. It is also critical that you configure the tomcat server
correctly.
In <tomcat>/conf/server.xml, you see a line that configures your connection for
port 8080 (or 80). It is important that it sets URIEncoding="UTF-8". The
element should look like this:
<Connector port="8080"
maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
URIEncoding="UTF-8" />
I guess the upshot of all this is that I need to make sure that the repository
and build scripts are brought up-to-date.
Ralph
> -----Original Message-----
> From: Tellier, Stephane [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 03, 2007 9:07 AM
> To: LeVan,Ralph
> Cc: [email protected]
> Subject: Building and using OCLC Research SRW Server for DSpace
>
> Hi again Ralph,
>
> I've decided to send this email to the DSpace community since in a
> previous email of that group you mentionned that other people seems to use
> this tool in their DSpace solutions, so maybe some people here can bring
> ideas to my problems.
>
> I figured out that it wasn't finally a good idea to execute the "ant
> checkout" command because it seems to bring out new class versions that
> used packages and classes which aren't present in the cvs repository. By
> not doing so I was able to build successfully the SRW.
>
> Here is our environment :
>
> Windows XP
> DSpace 1.4.1
> JDK 1.4.2
> Tomcat 5.5 (fixed for UTF-8 as requested by the DSpace installation)
> PostgreSQL 8.2
> SRW server installed on the same Tomcat
> All installed in the same machine (it's a DEV environment)
>
> Now I've done some tests with the interface and I've come up with the
> following problems and concerns :
>
> 1) I have frequently an error in the DSpace log :
> ERROR org.dspace.core.Context @ An I/O error occured while sending to the
> backend.
> Exception: java.net.SocketException: Socket closed
> Stack Trace:
> java.net.SocketException: Socket closed
> at java.net.SocketOutputStream.socketWrite(Unknown Source)
> at java.net.SocketOutputStream.write(Unknown Source)
> at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
> at java.io.BufferedOutputStream.flush(Unknown Source)
> at org.postgresql.core.PGStream.flush(PGStream.java:508)
> at
> org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.java:6
> 75)
> at
> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:19
> 0)
> at
> org.postgresql.jdbc2.AbstractJdbc2Connection.executeTransactionCommand(Abs
> tractJdbc2Connection.java:653)
> at
> org.postgresql.jdbc2.AbstractJdbc2Connection.rollback(AbstractJdbc2Connect
> ion.java:690)
> at
> org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConnection
> .java:265)
> at
> org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConnection
> .java:265)
> at
> org.apache.commons.dbcp.PoolingDriver$PoolGuardConnectionWrapper.rollback(
> PoolingDriver.java:348)
> at org.dspace.core.Context.abort(Context.java:251)
> at org.dspace.core.Context.finalize(Context.java:384)
> at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
> at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
> at java.lang.ref.Finalizer.access$100(Unknown Source)
> at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
>
> I've never had this error when using the standard DSpace interface. After
> a certain amount of tests with the SRW interface, this error happens and
> after that, the interface is no more able to execute a process:
> ERROR ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase @
> org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool
> exhausted
> org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool
> exhausted
> at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:183)
> at java.sql.DriverManager.getConnection(Unknown Source)
> at java.sql.DriverManager.getConnection(Unknown Source)
> at
> org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.jav
> a:718)
> at org.dspace.core.Context.<init>(Context.java:105)
> at
> ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase.doRequest(SRWLuceneDatabase
> .java:349)
> at
> gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl.scanOperation(SRWSoap
> BindingImpl.java:329)
> at
> gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingSkeleton.scanOperation(SRW
> SoapBindingSkeleton.java:147)
> at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:3
> 88)
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java
> :283)
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.jav
> a:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> at ORG.oclc.os.SRW.SRWServlet.processMethodRequest(SRWServlet.java:1388)
> at ORG.oclc.os.SRW.SRWServlet.doGet(SRWServlet.java:297)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.jav
> a:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> onFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> Chain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> java:178)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
> 26)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> 05)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> va:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148
> )
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proces
> sConnection(Http11BaseProtocol.java:664)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.j
> ava:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollower
> WorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
> ava:684)
> at java.lang.Thread.run(Unknown Source)
>
> And I'm getting also this error when executing some search in the SRW
> interface :
> ERROR ORG.oclc.os.SRW.SRWServletInfo @ java.lang.NullPointerException
> java.lang.NullPointerException
> at ORG.oclc.os.SRW.Utilities.findFile(Utilities.java:255)
> at ORG.oclc.os.SRW.Utilities.openInputStream(Utilities.java:371)
> at ORG.oclc.os.SRW.SRWServletInfo.buildDbList(SRWServletInfo.java:87)
> at ORG.oclc.os.SRW.SRWServletInfo.buildDbList(SRWServletInfo.java:68)
> at
> ORG.oclc.os.SRW.SRWServletInfo.makeIndexDotHtml(SRWServletInfo.java:339)
> at ORG.oclc.os.SRW.SRWServletInfo.setSRWStuff(SRWServletInfo.java:380)
> at ORG.oclc.os.SRW.SRWServlet.processMethodRequest(SRWServlet.java:1154)
> at ORG.oclc.os.SRW.SRWServlet.doGet(SRWServlet.java:297)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.jav
> a:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> onFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> Chain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> java:178)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
> 26)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> 05)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> va:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148
> )
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proces
> sConnection(Http11BaseProtocol.java:664)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.j
> ava:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollower
> WorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
> ava:684)
> at java.lang.Thread.run(Unknown Source)
>
> 2) I've tried to do a "full-text" search, meaning a search that is
> supposed to check in all the fields (title, author, description, etc.) and
> also in the files contents, with this URL, as explained in the SRU OCLC
> web site :
> http://localhost/SRW/search/DSpace?query=architecture&version=1.1&operatio
> n=searchRetrieve&recordSchema=info%3Asrw%2Fschema%2F1%2Fdc-
> v1.1&maximumRecords=10&startRecord=1&recordPacking=xml
> <http://localhost/SRW/search/DSpace?query=architecture&version=1.1&operati
> on=searchRetrieve&recordSchema=info%3Asrw%2Fschema%2F1%2Fdc-
> v1.1&maximumRecords=10&startRecord=1&recordPacking=xml>
> It always returns me 0 results which is wrong because in the DSpace
> interface, I have at least 5 results when searching for "architecture" in
> the simple search (left of screen).
>
> 3) I've tried using the "any" operator with the SRW interface, which is
> suppose to do a "OR" operation between the words, but it doesn't seem to
> work well.
>
> 4) I've tried searching for "stéphane" in the contributor field, but it
> returns 0 results, while searching for "stephane" returns 3 results. The
> field's content in the database is "Tellier, Stéphane" with "é". This
> works perfectly well in our DSpace interface : we're using the Lucene
> extension for french language.
>
> I know it's a lot of things, but for our project, those concerns are
> important and we can't afford to use this tool if we can't find a way to
> correct this. It is an absolute necessity for our DSpace implementation to
> have a web service for requesting the DSpace content outside of the DSpace
> interface (we're using a federated search engine). We are open for testing
> and even for contributing if some of the problems are not fixed yet.
>
> Thanks for any clues and help.
>
> ________________________________
>
> De: Tellier, Stephane
> Date: lun. 2007-04-02 16:51
> À: [EMAIL PROTECTED]
> Objet : Building OCLC Research SRW Server 2.0
>
>
> Hi Ralph,
>
> I'm actually trying the SRW tool for an implementation to our DSpace
> project. When we try to build the jars with "ant war", we're getting
> errors about missing packages and classes :
>
> package ORG.oclc.ber does not exist
> package ORG.oclc.RecordHandler does not exist
> package ORG.oclc.util does not exist
> cannot resolve symbol :
> HandleSGML
> MalformedRecordException
> DataDir
> src\ORG\oclc\os\SRW\SRWDatabaseImpl.java:259:
> recordIterator(long,int,java.lang.String,gov.loc.www.zing.srw.ExtraDataTyp
> e) in ORG.oclc.os.SRW.QueryResult cannot be applied to
> (long,int,java.lang.String)
>
> We have made a "ant checkout" to be sure that we had the most recent
> version.
> Also, is the SRW can output the results in XML? I presume it can, since
> its an SRW...
>
> Thanks for your help.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech