[ 
https://issues.apache.org/jira/browse/SOLR-16673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17691884#comment-17691884
 ] 

Cesar Delgado commented on SOLR-16673:
--------------------------------------

That's interesting that the thing I thought would be the most problematic, the 
timestamp, doesn't seem to be an issue.  Cool.

The python code I'm using calls `json.dumps(status, default=str)`. At the 
moment I'm printing this out and copy/paste to the SchemaDesigner but I was 
thinking of using the same mechanism to post the JSON to Solr.  I can't find 
any docs on if there's a better way of doing this.  Maybe at the end of this we 
can find a place in the docs  to add more information. 

> Strange error when using Schema Designer
> ----------------------------------------
>
>                 Key: SOLR-16673
>                 URL: https://issues.apache.org/jira/browse/SOLR-16673
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Schema Designer
>    Affects Versions: 9.1.1
>            Reporter: Cesar Delgado
>            Priority: Major
>         Attachments: mastodon.json
>
>
> [~houston] created the Jira. Original text from the mailing-list message.
> I’ve been playing with trying to index some data from Mastodon and using the 
> Schema designer to help me figure out what’s going on. I’m running Solr 9.1.1 
> started with `./bin/solr -e cloud -noprompt` locally on an Intel Mac. Sadly 
> I’m getting the following strange error:
> {quote}==> example/cloud/node1/logs/solr.log <== 2023-02-20 00:10:46.043 
> ERROR (qtp195801026-32) [] o.a.s.a.AnnotatedApi Error executing command => 
> java.lang.NullPointerException: Cannot invoke "java.lang.Number.longValue()" 
> because "number" is null at 
> org.apache.solr.update.processor.ParseLongFieldUpdateProcessorFactory.parsePossibleLong(ParseLongFieldUpdateProcessorFactory.java:113)
>  java.lang.NullPointerException: Cannot invoke "java.lang.Number.longValue()" 
> because "number" is null at 
> org.apache.solr.update.processor.ParseLongFieldUpdateProcessorFactory.parsePossibleLong(ParseLongFieldUpdateProcessorFactory.java:113)
>  ~[?:?] at 
> org.apache.solr.handler.designer.DefaultSchemaSuggester.isIntOrLong(DefaultSchemaSuggester.java:355)
>  ~[?:?] at 
> org.apache.solr.handler.designer.DefaultSchemaSuggester.guessFieldType(DefaultSchemaSuggester.java:246)
>  ~[?:?] at 
> org.apache.solr.handler.designer.DefaultSchemaSuggester.suggestField(DefaultSchemaSuggester.java:168)
>  ~[?:?] at 
> org.apache.solr.handler.designer.SchemaDesignerAPI.analyzeInputDocs(SchemaDesignerAPI.java:890)
>  ~[?:?] at 
> org.apache.solr.handler.designer.SchemaDesignerAPI.analyze(SchemaDesignerAPI.java:705)
>  ~[?:?] at org.apache.solr.api.AnnotatedApi$Cmd.invoke(AnnotatedApi.java:315) 
> ~[?:?] at org.apache.solr.api.AnnotatedApi.call(AnnotatedApi.java:194) ~[?:?] 
> at org.apache.solr.api.V2HttpCall.handleAdmin(V2HttpCall.java:396) ~[?:?] at 
> org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:893)
>  ~[?:?] at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:584) 
> ~[?:?] at 
> org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:250)
>  ~[?:?] at 
> org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:218)
>  ~[?:?] at 
> org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257)
>  ~[?:?] at 
> org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227) 
> ~[?:?] at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:213)
>  ~[?:?] at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:195)
>  ~[?:?] at 
> org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) 
> ~[jetty-servlet-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)
>  ~[jetty-servlet-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552) 
> ~[jetty-servlet-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) 
> ~[jetty-security-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) 
> ~[jetty-servlet-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)
>  ~[jetty-rewrite-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.Server.handle(Server.java:516) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
>  ~[jetty-io-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) 
> ~[jetty-io-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) 
> ~[jetty-io-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> java.lang.Thread.run(Thread.java:1589) ~[?:?] 2023-02-20 00:10:46.043 INFO 
> (qtp195801026-32) [] o.a.s.s.HttpSolrCall [admin] webapp=null 
> path=/schema-designer/analyze 
> params=\{enableNestedDocs=false&languages=*&enableDynamicFields=true&configSet=mastodon&enableFieldGuessing=true&wt=json&_=1676851638237}
>  status=500 QTime=3634 2023-02-20 00:10:46.044 ERROR (qtp195801026-32) [] 
> o.a.s.s.HttpSolrCall java.lang.NullPointerException: Cannot invoke 
> "java.lang.Number.longValue()" because "number" is null => 
> java.lang.NullPointerException: Cannot invoke "java.lang.Number.longValue()" 
> because "number" is null at 
> org.apache.solr.update.processor.ParseLongFieldUpdateProcessorFactory.parsePossibleLong(ParseLongFieldUpdateProcessorFactory.java:113)
>  java.lang.NullPointerException: Cannot invoke "java.lang.Number.longValue()" 
> because "number" is null at 
> org.apache.solr.update.processor.ParseLongFieldUpdateProcessorFactory.parsePossibleLong(ParseLongFieldUpdateProcessorFactory.java:113)
>  ~[?:?] at 
> org.apache.solr.handler.designer.DefaultSchemaSuggester.isIntOrLong(DefaultSchemaSuggester.java:355)
>  ~[?:?] at 
> org.apache.solr.handler.designer.DefaultSchemaSuggester.guessFieldType(DefaultSchemaSuggester.java:246)
>  ~[?:?] at 
> org.apache.solr.handler.designer.DefaultSchemaSuggester.suggestField(DefaultSchemaSuggester.java:168)
>  ~[?:?] at 
> org.apache.solr.handler.designer.SchemaDesignerAPI.analyzeInputDocs(SchemaDesignerAPI.java:890)
>  ~[?:?] at 
> org.apache.solr.handler.designer.SchemaDesignerAPI.analyze(SchemaDesignerAPI.java:705)
>  ~[?:?] at org.apache.solr.api.AnnotatedApi$Cmd.invoke(AnnotatedApi.java:315) 
> ~[?:?] at org.apache.solr.api.AnnotatedApi.call(AnnotatedApi.java:194) ~[?:?] 
> at org.apache.solr.api.V2HttpCall.handleAdmin(V2HttpCall.java:396) ~[?:?] at 
> org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:893)
>  ~[?:?] at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:584) 
> ~[?:?] at 
> org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:250)
>  ~[?:?] at 
> org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:218)
>  ~[?:?] at 
> org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257)
>  ~[?:?] at 
> org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227) 
> ~[?:?] at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:213)
>  ~[?:?] at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:195)
>  ~[?:?] at 
> org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) 
> ~[jetty-servlet-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)
>  ~[jetty-servlet-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552) 
> ~[jetty-servlet-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) 
> ~[jetty-security-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) 
> ~[jetty-servlet-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)
>  ~[jetty-rewrite-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>  ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.Server.handle(Server.java:516) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) 
> ~[jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
>  ~[jetty-io-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) 
> ~[jetty-io-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) 
> ~[jetty-io-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
>  ~[jetty-util-9.4.48.v20220622.jar:9.4.48.v20220622] at 
> java.lang.Thread.run(Thread.java:1589) ~[?:?] 2023-02-20 00:10:46.737 INFO 
> (OverseerCollectionConfigSetProcessor-72095104618790912-localhost:8983_solr-n_0000000000)
>  [] o.a.s.c.OverseerTaskQueue Response ZK path: 
> /overseer/collection-queue-work/qnr-0000000008 doesn't exist. Requestor may 
> have disconnected from ZooKeeper 
> {quote}
> The JSON object I'm trying to use as a template is attached.[^mastodon.json]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to