You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by heaven <ah...@gmail.com> on 2013/04/29 10:01:51 UTC

Re: Shard update error when using DIH

Hi, seems like I have exactly the same error:

Apr 28, 2013 11:41:57 PM org.apache.solr.common.SolrException log
SEVERE: null:java.lang.UnsupportedOperationException
        at
org.apache.lucene.queries.function.FunctionValues.longVal(FunctionValues.java:46)
        at
org.apache.solr.update.VersionInfo.getVersionFromIndex(VersionInfo.java:201)
        at
org.apache.solr.update.UpdateLog.lookupVersion(UpdateLog.java:714)
        at
org.apache.solr.update.VersionInfo.lookupVersion(VersionInfo.java:184)
        at
org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:567)
        at
org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:346)
        at
org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:100)
        at
org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:246)
        at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:173)
        at
org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92)
        at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1817)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:639)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
        at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
        at org.eclipse.jetty.server.Server.handle(Server.java:365)
        at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
        at
org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
        at
org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
        at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:948)
        at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
        at
org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
        at
org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
        at java.lang.Thread.run(Thread.java:679)

My setup is http://oi43.tinypic.com/1fco40.jpg

Am I missing something during configuration process?

Best,
Alex



--
View this message in context: http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059729.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Re: Re: Re: Shard update error when using DIH

Posted by heaven <ah...@gmail.com>.
Thank you all, guys.
 
Your advises work great and I don't see any errors in Solr logs anymore.
 
Best,
Alex

Monday 29 April 2013, you wrote:


On 29 April 2013 14:55, heaven <[hidden email][1]> wrote: > Got these errors 
after switching the field type to long: >      *  *crm-test:* > 
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: > 
Unknown fieldtype 'long' specified on field _version_ 

You have probably edited your schema. The default one has <fieldType 
name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" 
positionIncrementGap="0"/> towards the top of the file. 

Regards, Gora 




--------------------
*If you reply to this email, your message will be added to the discussion below:* 
http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059740.html[2] 
To unsubscribe from Shard update error when using DIH, click here[3].

NAML[4] 



--------
[1] /user/SendEmail.jtp?type=node&node=4059740&i=0
[2] http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059740.html
[3] 
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe
_by_code&node=4035502&code=YWhlYXZlbjg3QGdtYWlsLmNvbXw0MDM1NTAyfDE3
MDI0ODI4OTY=
[4] 
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_view
er&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.B
asicNamespace-nabble.view.web.template.NabbleNamespace-
nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21
nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-
send_instant_email%21nabble%3Aemail.naml




--
View this message in context: http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4061812.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Re: Re: Re: Shard update error when using DIH

Posted by heaven <ah...@gmail.com>.
Whoops, yes, that works.
Will check if that helped to fix the original error now.

Monday 29 April 2013, you wrote:


On 29 April 2013 14:55, heaven <[hidden email][1]> wrote: > Got these errors 
after switching the field type to long: >      *  *crm-test:* > 
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: > 
Unknown fieldtype 'long' specified on field _version_ 

You have probably edited your schema. The default one has <fieldType 
name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" 
positionIncrementGap="0"/> towards the top of the file. 

Regards, Gora 




--------------------
*If you reply to this email, your message will be added to the discussion below:* 
http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059740.html[2] 
To unsubscribe from Shard update error when using DIH, click here[3].

NAML[4] 



--------
[1] /user/SendEmail.jtp?type=node&node=4059740&i=0
[2] http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059740.html
[3] 
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe
_by_code&node=4035502&code=YWhlYXZlbjg3QGdtYWlsLmNvbXw0MDM1NTAyfDE3
MDI0ODI4OTY=
[4] 
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_view
er&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.B
asicNamespace-nabble.view.web.template.NabbleNamespace-
nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21
nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-
send_instant_email%21nabble%3Aemail.naml




--
View this message in context: http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059743.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Re: Re: Shard update error when using DIH

Posted by Gora Mohanty <go...@mimirtech.com>.
On 29 April 2013 14:55, heaven <ah...@gmail.com> wrote:
> Got these errors after switching the field type to long:
>      *  *crm-test:*
> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
> Unknown fieldtype 'long' specified on field _version_

You have probably edited your schema. The default one has
<fieldType name="long" class="solr.TrieLongField" precisionStep="0"
omitNorms="true" positionIncrementGap="0"/>
towards the top of the file.

Regards,
Gora

Re: Re: Re: Shard update error when using DIH

Posted by heaven <ah...@gmail.com>.
Got these errors after switching the field type to long:
     *  *crm-test:* 
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: 
Unknown fieldtype 'long' specified on field _version_ 
     *  *crm-prod:* 
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: 
Unknown fieldtype 'long' specified on field _version_ 
     *  *crm-dev:* 
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: 
Unknown fieldtype 'long' specified on field _version_ 

Monday 29 April 2013, you wrote:


You have 

    <field name="_version_" type="string" indexed="true" stored="true" 
multiValued="false" /> 

--- I think this needs to be "long". 




--------------------
*If you reply to this email, your message will be added to the discussion below:* 
http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059735.html[1] 
To unsubscribe from Shard update error when using DIH, click here[2].

NAML[3] 



--------
[1] http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059735.html
[2] 
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe
_by_code&node=4035502&code=YWhlYXZlbjg3QGdtYWlsLmNvbXw0MDM1NTAyfDE3
MDI0ODI4OTY=
[3] 
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_view
er&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.B
asicNamespace-nabble.view.web.template.NabbleNamespace-
nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21
nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-
send_instant_email%21nabble%3Aemail.naml




--
View this message in context: http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059739.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Re: Shard update error when using DIH

Posted by Raymond Wiker <rw...@gmail.com>.
You have

    <field name="_version_" type="string" indexed="true" stored="true"
multiValued="false" />

--- I think this needs to be "long".

Re: Re: Shard update error when using DIH

Posted by heaven <ah...@gmail.com>.
Yes, here is the full schema: http://pastebin.com/pFPbD749[1]

On Mon, Apr 29, 2013 at 10:01 AM, heaven <[hidden email][2]> wrote: 






--------------------
*If you reply to this email, your message will be added to the discussion below:* 
http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059732.html[3] 
To unsubscribe from Shard update error when using DIH, click here[4].

NAML[5] 



--------
[1] http://pastebin.com/pFPbD749
[2] /user/SendEmail.jtp?type=node&node=4059732&i=0
[3] http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059732.html
[4] 
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe
_by_code&node=4035502&code=YWhlYXZlbjg3QGdtYWlsLmNvbXw0MDM1NTAyfDE3
MDI0ODI4OTY=
[5] 
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_view
er&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.B
asicNamespace-nabble.view.web.template.NabbleNamespace-
nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21
nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-
send_instant_email%21nabble%3Aemail.naml




--
View this message in context: http://lucene.472066.n3.nabble.com/Shard-update-error-when-using-DIH-tp4035502p4059733.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Shard update error when using DIH

Posted by Raymond Wiker <rw...@gmail.com>.
On Mon, Apr 29, 2013 at 10:01 AM, heaven <ah...@gmail.com> wrote:

> Hi, seems like I have exactly the same error:
>
> Apr 28, 2013 11:41:57 PM org.apache.solr.common.SolrException log
> SEVERE: null:java.lang.UnsupportedOperationException
>         at
>
> org.apache.lucene.queries.function.FunctionValues.longVal(FunctionValues.java:46)
>         at
>
> org.apache.solr.update.VersionInfo.getVersionFromIndex(VersionInfo.java:201)
>         at
>

Shot in the dark: does your schema have a field named _version_ ?