Invalid content type when importing converted log files

240 views
Skip to first unread message

euler

unread,
Sep 28, 2015, 4:18:55 AM9/28/15
to DSpace Technical Support
Dear All,

I am trying to import converted log files into solr statistics using the command "dspace stats-log-importer -i [dspace]/log/dspace.log -m -s -v" but it seems the import is not completed because I received this error:

Exception: Invalid content type:
org.apache.http.ParseException: Invalid content type:
        at org.apache.http.entity.ContentType.parse(ContentType.java:233)
        at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSo
lrServer.java:496)
        at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServ
er.java:210)
        at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServ
er.java:206)
        at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(Ab
stractUpdateRequest.java:124)
        at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)
        at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)
        at org.dspace.statistics.util.StatisticsImporter.load(StatisticsImporter
.java:340)
        at org.dspace.statistics.util.StatisticsImporter.main(StatisticsImporter
.java:486)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.j
ava:226)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

Also, before this error occurred, the last line processed contains this:

Line:20150623065111672,view_item,11328,2015-06-23T06:51:11,anonymous

Does this mean that the import was unsuccessful or partially successful (The latest dspace log date I have is 2015-09-25)? Any advice on how to fix this? Is this resumable?

Thanks in advance and regards,
euler

Brendow Adriel

unread,
Mar 21, 2018, 12:58:11 PM3/21/18
to DSpace Technical Support
Try check oai.cfg if ip adress is correctly.
Reply all
Reply to author
Forward
0 new messages