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:675)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:190)
 at 
org.postgresql.jdbc2.AbstractJdbc2Connection.executeTransactionCommand(AbstractJdbc2Connection.java:653)
 at 
org.postgresql.jdbc2.AbstractJdbc2Connection.rollback(AbstractJdbc2Connection.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.java: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(SRWSoapBindingImpl.java:329)
 at 
gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingSkeleton.scanOperation(SRWSoapBindingSkeleton.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:388)
 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.java: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.java:327)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.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:126)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: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.processConnection(Http11BaseProtocol.java:664)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java: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.java:327)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.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:126)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: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.processConnection(Http11BaseProtocol.java:664)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java: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&operation=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&operation=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.ExtraDataType) 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

Reply via email to