eXtensibleCatalog / OAI-Toolkit

Synchronize MARC metadata in most ILSs with XC
5 stars 1 forks source link

Error http: 500 - when view recordlist #114

Closed patrickzurek closed 8 years ago

patrickzurek commented 8 years ago

JIRA issue created by: rcook Originally opened: 2012-06-26 09:22 AM

Issue body: Was GC issue http://code.google.com/p/xcoaitoolkit/issues/detail?id=92

Reported by atkins245, Jun 22 (3 days ago)

What steps will reproduce the problem?

  1. Install OAIToolkit
  2. Run sample
  3. Goto localhost:8080/OAItoolkit/

What is the expected output? What do you see instead? Error 500 Expect to see the list of 10 sample records

What version of the product are you using? On what operating system? OAI 1.08, linux:openSUSE 12.1 64 bit, Tomcat 6.033, Java JDK 1.6_u32

Please provide any additional information below.

I saw in /var/log/tomcat6/catalina.out a line: INFO: Deploying web application archive OAIToolkit.war log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly. ApplInfo::init(/srv/tomcat6/bin) --->>>> Note below ApplInfo::init(OAIToolkit)

Notes: in my system - it should be /usr/share/tomcat6/bin because $CATALINA_HOME is /usr/share/tomcat6

Comment 2 by atkins...@gmail.com, Jun 19 (2 days ago)

localhost log: Jun 19, 2012 12:49:34 PM org.apache.catalina.core.ApplicationContext log INFO: InitializerServlet: The Name for webapp Dir is OAIToolkit Jun 19, 2012 12:49:34 PM org.apache.catalina.core.ApplicationContext log INFO: InitializerServlet: The new Tomcat/bin directory is /srv/tomcat6/webapps/OAIToolkit Jun 19, 2012 12:49:34 PM org.apache.catalina.core.ApplicationContext log INFO: InitializerServlet: The Tomcat/bin directory is /srv/tomcat6/bin Jun 19, 2012 12:49:34 PM org.apache.catalina.core.ApplicationContext log INFO: InitializerServlet: ERROR: The computed Tomcat/bin directory doesn't exist. Jun 19, 2012 12:49:34 PM org.apache.catalina.core.ApplicationContext log INFO: InitializerServlet: Initializer Servlet loaded, initializing ... Jun 19, 2012 12:52:23 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet action threw exception

The Tomcat/bin directory is /srv/tomcat6/bin??? I don't know where they get that information?

Delete comment Comment 1 by atkins245, Jun 22 (3 days ago)

I tried install OAI in windows XP, when I go to webpage, I can view OAI Identify settings ([tomcat]/bin/OAIToolkit.server.properties)- Read from configuration files. I also click Identify, List set and it display XML page for me. However, when I click ListRecords and all links below, listIdentifier and all links below, I still get error: http 500 type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

root cause

org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:177) org.apache.lucene.index.DirectoryReader.terms(DirectoryReader.java:650) org.apache.lucene.search.TermRangeTermEnum.(TermRangeTermEnum.java:93) org.apache.lucene.search.TermRangeQuery.getEnum(TermRangeQuery.java:135) org.apache.lucene.search.MultiTermQuery$ConstantScoreAutoRewrite.rewrite(MultiTermQuery.java:230) org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:371) org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:371) org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:272) org.apache.lucene.search.Query.weight(Query.java:100) org.apache.lucene.search.Searcher.createWeight(Searcher.java:147) org.apache.lucene.search.Searcher.search(Searcher.java:98) org.apache.lucene.search.Searcher.search(Searcher.java:108) info.extensiblecatalog.OAIToolkit.db.LuceneSearcher.search(LuceneSearcher.java:415) info.extensiblecatalog.OAIToolkit.db.LuceneSearcher.search(LuceneSearcher.java:400) info.extensiblecatalog.OAIToolkit.oai.dataproviders.LuceneFacadeDataProvider.prepareQuery(LuceneFacadeDataProvider.java:373) info.extensiblecatalog.OAIToolkit.api.Facade.handleRecordLists(Facade.java:666) info.extensiblecatalog.OAIToolkit.api.Facade.doCachedSearch(Facade.java:387) info.extensiblecatalog.OAIToolkit.api.Facade.doListRecords(Facade.java:357) info.extensiblecatalog.OAIToolkit.struts.action.OaiRequestAction.execute(OaiRequestAction.java:80) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

Therefore, there are two problemsL: in Linux, it not read the configurations files (as top report) in windows, can't read listrecords