calvez / xcoaitoolkit

Automatically exported from code.google.com/p/xcoaitoolkit
0 stars 0 forks source link

Error http: 500 - when view recordlist #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years 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?

Original issue reported on code.google.com by atkins...@gmail.com on 22 Jun 2012 at 6:15

GoogleCodeExporter commented 9 years 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.<init>(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

Original comment by atkins...@gmail.com on 22 Jun 2012 at 7:08

GoogleCodeExporter commented 9 years ago
In Jira as http://extensiblecatalog.lib.rochester.edu:8080/browse/OAI-31 

Original comment by rc...@library.rochester.edu on 26 Jun 2012 at 1:26