Ivan Masár created DS-1405:
------------------------------
Summary: stacktrace when browse indexes in DB don't match with
configured browse indexes
Key: DS-1405
URL: https://jira.duraspace.org/browse/DS-1405
Project: DSpace
Issue Type: Bug
Components: DSpace API
Affects Versions: 3.0
Reporter: Ivan Masár
This is one of the most commonly problems encountered in dspace-tech in the
long term.
When you configure browse indexes (webui.browse.index.*) in dspace.cfg and
forget to run index-init, you'll get the following stacktrace:
2012-11-28 15:39:13,905 INFO org.dspace.browse.BrowseEngine @
anonymous:session_id=1BC621649FBADF668F6EFB2157FF68D0:ip_addr=66.249.74.79:browse_by_value:focus=null
2012-11-28 15:39:13,925 ERROR org.dspace.browse.BrowseDAOPostgres @ caught
exception:
org.postgresql.util.PSQLException: ERROR: relation "bi_4_dis" does not exist
Position: 30
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:273)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at
org.dspace.storage.rdbms.DatabaseManager.query(DatabaseManager.java:284)
at
org.dspace.browse.BrowseDAOPostgres.doCountQuery(BrowseDAOPostgres.java:155)
at org.dspace.browse.BrowseEngine.getTotalResults(BrowseEngine.java:761)
at org.dspace.browse.BrowseEngine.browseByValue(BrowseEngine.java:450)
It would be more helpful to display an explanation what is wrong and how to fix
it (run index-init) with a link to the documentation:
https://wiki.duraspace.org/pages/viewpage.action?pageId=30218817
https://wiki.duraspace.org/display/DSDOC3x/Configuration
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel