Hi,

On 18/12/15 04:39, Tiago Delboni wrote:
Hi!

I'm working on upgrading DSpace from 1.8.2 to 5.4. I guess was able to put everything working but the statistics. Everytime I click the Statistics menu, in JSPUI, DSpace come out with a Internal Server Error.
Bellow is the relevant part gattered from dspace.log. Any ideas how to fix it?

Also, I would like to know if I can keep the historical statistics I have on 1.8.x. What I did, trying to achieve this, was to copy the contents from [dspace1.8]/log and [dspace1.8]/solr/statistics/data to [dspace5.4] and ran [dspace5.4]/bin/dspace solr-reindex-statistics.

The statistics page you're referring to (compare http://demo.dspace.org/jspui/statistics) is not related to the Solr-based usage statistics at all. Instead, this page is showing the legacy statistics populated from the log files and the .dat / .html files generated from the log files via the stat-* commands listed in the "Legacy statistics" section here: https://wiki.duraspace.org/display/DSDOC5x/Command+Line+Operations#CommandLineOperations-Legacystatistics

My guess is that you didn't copy over the contents of the report directory (that holds these .dat and .html files); looking at the code at the line below supports that. The location of the report directory is configured in dspace.cfg:
https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace/config/dspace.cfg#L1741

So you might like to check what you have yours set to and copy the directory across from your 1.8 [dspace] directory tree to your 5.x directory tree.

2015-12-17 13:15:12,864 WARN  org.dspace.app.webui.servlet.InternalErrorServlet @ :session_id=0CFF63BC0604F2B56DD0EE375E575ED9:internal_error:-- URL Was: https://dspace-novo.almg.gov.br/jspui/statistics
-- Method: GET
-- Parameters were:

java.lang.NullPointerException
        at org.dspace.app.webui.servlet.StatisticsServlet.showStatistics(StatisticsServlet.java:121)


https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/StatisticsServlet.java#L121

cheers,
Andrea
-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120


--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to