Hi Joachim,

looks like there are items without handle, resulting in the above
exception. Is that possible?


On 22 January 2013 16:21, Joachim Bingel <bin...@ids-mannheim.de> wrote:

>  Thanks João,
>
> the Solr query returns:
>
>  <response>
>   <lst name="responseHeader">
>  <int name="status">0</int>
> <int name="QTime">1</int>
>  <lst name="params">
>  <str name="sort">item.id asc</str>
> <str name="q">item.handle:10932/00-0166-14DE-96C0-2701-9</str>
>  </lst>
>   </lst>
>  <result name="response" numFound="0" start="0"/>
>  </response>
>
> which means Solr still has not found the item. I've set the logging level
> to FINEST and [dspace]/bin/dspace oai import gives me:
>
> Jan 22, 2013 5:16:42 PM org.apache.solr.core.SolrCore execute
> INFO: [oai] webapp=/solr path=/select
> params={fl=item.lastmodified&sort=item.lastmodified+desc,item.id+asc&q=*:*&wt=javabin&rows=1&version=2}
> hits=1 status=0 QTime=0
> Jan 22, 2013 5:16:43 PM
> org.apache.solr.update.processor.LogUpdateProcessor processAdd
> FINE: add (null)
> Jan 22, 2013 5:16:43 PM
> org.apache.solr.update.processor.LogUpdateProcessor finish
> INFO: {add=[(null)]} 0 14
> Jan 22, 2013 5:16:43 PM org.apache.solr.common.SolrException log
> SEVERE: org.apache.solr.common.SolrException: [doc=null] missing required
> field: item.handle
>         at
> org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:346)
>         at
> org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
>         at
> org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:115)
>         at
> org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:158)
>         at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79)
>         at
> org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)
> ...
>
>
> Does this tell you anything? Note that there is exactly 1 retrieved hit
> which is in accordance with the OAI webapp display, yet there are 31
> documents in the databse.
>
>
> On 01/22/2013 05:05 PM, João Melo wrote:
>
> Hi Joachim,
>
>  you'll need to low your log level to see the full stack trace (you're
> correct the solr log is dumped to catalina.out).
> if you are using the solr server from dspace access to the admin log panel
> (http://localhost:8080/solr/admin/logging - only supports local access).
>
>  But you could also try to query the solr server directly and see the
> output. In your case, try the following query:
>
>
> http://localhost:8080/solr/oai/select?sort=item.id+asc&q=item.handle:10932/00-0166-14DE-96C0-2701-9
>
>  Any error?
>
>
>
> On 22 January 2013 14:18, Joachim Bingel <bin...@ids-mannheim.de> wrote:
>
>>  Hi João,
>>
>> I feel stupid asking this, but where is the solr log? There's no log/
>> directory or .log files under [dspace]/solr nor under
>> [dspace]/webapps/[oai|solr]. All I've got is what's in the Catalina log:
>>
>> Jan 22, 2013 3:04:10 PM org.apache.solr.core.SolrCore execute
>> INFO: [oai] webapp=/solr path=/select
>> params={sort=item.id+asc&q=item.handle:10932/00-0166-14DE-96C0-2701-9&wt=javabin&
>> version=2}
>> hits=0 status=0 QTime=0
>>
>> This demonstrates how a request for an item with an existing identifier (can 
>> be reached in the XMLUI) fails (hits=0).
>>
>> Thanks for your help!
>> Joachim
>>
>>
>>
>>
>>
>> On 01/22/2013 03:05 PM, João Melo wrote:
>>
>>
>> On 22 January 2013 13:19, Joachim Bingel <bin...@ids-mannheim.de> wrote:
>>
>>> org.apache.solr.common.SolrException: Bad Request
>>>
>>
>> Hi Joachim,
>>
>>  your log information is too short. Please, look at the Solr log for the
>> full stack trace.
>>
>>
>>  --
>>    Thanks, João Melo (My Portfolio <http://www.lyncode.com/m/jmelo/>)
>> DSpace Department
>> *Lyncode*: Official 
>> website<http://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2F&sa=D&sntz=1&usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ>
>>  [image: Follow us on 
>> Facebook]<http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncode&sa=D&sntz=1&usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q>
>> <http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncode&sa=D&sntz=1&usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww>
>>
>>
>>
>>   --
>> Joachim Bingel
>> Institut für Deutsche Sprache, Zentrale Forschung
>> R5, 6-13, 68161 Mannheim+49 - (0)621-1581-456 | http://www.ids-mannheim.de
>>
>>
>
>
>  --
>    Thanks, João Melo (My Portfolio <http://www.lyncode.com/m/jmelo/>)
> DSpace Department
> *Lyncode*: Official 
> website<http://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2F&sa=D&sntz=1&usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ>
>  [image: Follow us on 
> Facebook]<http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncode&sa=D&sntz=1&usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q>
> <http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncode&sa=D&sntz=1&usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww>
>
>
>
> --
> Joachim Bingel
> Institut für Deutsche Sprache, Zentrale Forschung
> R5, 6-13, 68161 Mannheim+49 - (0)621-1581-456 | http://www.ids-mannheim.de
>
>


-- 
Thanks, João Melo (My Portfolio <http://www.lyncode.com/m/jmelo/>)
DSpace Department
*Lyncode*: Official
website<http://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2F&sa=D&sntz=1&usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ>
[image: Follow us on
Facebook]<http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncode&sa=D&sntz=1&usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q>
<http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncode&sa=D&sntz=1&usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to