That error is because you need to copy your latest Lucene jar into the
<tomcat>/webapps/SRW/WEB-INF/lib directory.  The message is Lucene
telling you that the database was built with a newer version of Lucene
than the version trying to search that database.

But, fixing that will only get you to a new error.  I've just committed
a fix to the SRWDSpaceLucene code that addresses that issue.  If you
check out and build the latest code from the trunk, you should be good
for Dspace 1.7.  That new code has also been tested against Dspace 1.6
and still works there.

Thanks to Jose Blanco for spotting and reporting the error and to Hayden
Young of wijiti.com for the DSpace resources that allowed me to find and
fix the problem!

Ralph

> -----Original Message-----
> From: Haman Abel [mailto:[email protected]]
> Sent: Wednesday, February 16, 2011 4:46 AM
> To: [email protected]
> Subject: [Dspace-tech] ERROR
> ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase @
> java.lang.InstantiationException: Unknown format version: -9
> 
> Hello,
> 
> i am new to Dspace. I search the list and google for my issue, but
found
> not aids, so i am posting it here.
> I install it successfully on my pc (dspace 1.7.0, Ubuntu 64bit, tomcat
> 6.0.29, java 1.6.0_22).
> But while trying to search via my sru-interface i get the bellow
error.
> I try to reindex the data by calling: dspace index -r
> I then restart tomcat, but no change.
> Thank you for your help.
> 
> 
>   ERROR ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase @
> java.lang.InstantiationException: Unknown format version: -9
> java.lang.InstantiationException: Unknown format version: -9
>      at
> ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult.<init>(LuceneQueryRes
> ult.java:113)
>      at
> ORG.oclc.os.SRW.DSpaceLucene.SRWLuceneDatabase.getQueryResult(SRW
> LuceneDatabase.java:209)
>      at ORG.oclc.os.SRW.SRWDatabase.doRequest(SRWDatabase.java:598)
>      at
>
gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl.searchRetrieveOpera
> tion(SRWSoapBindingImpl.java:138)
>      at
>
gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingSkeleton.searchRetrieveO
> peration(SRWSoapBindingSkeleton.java:68)
>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:
> 39)
>      at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
I
> mpl.java:25)
>      at java.lang.reflect.Method.invoke(Method.java:597)
>      at
>
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java
:3
> 97)
>      at
>
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.ja
v
> a:186)
>      at
>
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323
)
>      at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava: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:454)
>      at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
>      at
> ORG.oclc.os.SRW.SRWServlet.processMethodRequest(SRWServlet.java:1501)
>      at ORG.oclc.os.SRW.SRWServlet.doGet(SRWServlet.java:375)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>      at
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
ava:32
> 7)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>      at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilter
> Chain.java:290)
>      at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.ja
> va:206)
>      at
>
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java
:164)
>      at
>
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
>      at
>
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter
.java:90)
>      at
>
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFi
lter.java:407)
>      at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilter
> Chain.java:235)
>      at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.ja
> va:206)
>      at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e
> .java:233)
>      at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.j
> ava:191)
>      at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:12
> 7)
>      at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
>      at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
ja
> va:109)
>      at
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
98)
>      at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
7)
>      at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Ht
> tp11Protocol.java:588)
>      at
>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>      at java.lang.Thread.run(Thread.java:662)
> 
> 
> 
>
------------------------------------------------------------------------
------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio
XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech



------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to