[ https://issues.apache.org/jira/browse/SOLR-13606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16879390#comment-16879390 ]
Erick Erickson commented on SOLR-13606: --------------------------------------- Thanks for letting us know and _especially_ putting the resolution in the Jira for posterity. That may save someone else from going down that rabbit-hole. And I fully sympathize with beating your head against a wall all day only to wake up the next day thinking "I should have checked that yesterday" ;) > DateTimeFormatter Exception on Create Core > ------------------------------------------ > > Key: SOLR-13606 > URL: https://issues.apache.org/jira/browse/SOLR-13606 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: Server > Affects Versions: 8.1.1 > Environment: Red Hat 8.0 > Java 11 > Solr 8.1.1 > Reporter: Joseph Krauss > Priority: Critical > Labels: newbie > > I have a fresh install of RH 8.0 with Java 11 JDK and I've run into an issue > with Solr 8.0.0 and 8.1.1 when attempting to create a core. I'm guessing > here, but the error appears to be an issue with the date format. From what > I've read Java date parser is expecting a period between seconds and > milliseconds? Hopefully, there's something simple I overlooked when I > configured the environment for solr. > Caused by: java.time.format.DateTimeParseException: Text > '2019-07-03T20:00:{color:#FF0000}00.050Z{color}' > Oracle Corporation OpenJDK 64-Bit Server VM 11.0.3 11.0.3+7-LTS > org.apache.solr.common.SolrException: Error CREATEing SolrCore 'testarms': > Unable to create core [testarms] Caused by: null > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1187) > at > org.apache.solr.handler.admin.CoreAdminOperation.lambda$static$0(CoreAdminOperation.java:92) > at > org.apache.solr.handler.admin.CoreAdminOperation.execute(CoreAdminOperation.java:360) > at > org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:396) > at > org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:180) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199) > at > org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:796) > at > org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:762) > at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:522) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:397) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) > at > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220) > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) > at > org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) > at org.eclipse.jetty.server.Server.handle(Server.java:502) > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) > at > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) > at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) > at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) > at > org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) > at java.base/java.lang.Thread.run(Thread.java:834) > Caused by: org.apache.solr.common.SolrException: Unable to create core > [testarms] > at > org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1259) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1148) > ... 44 more > Caused by: org.apache.solr.common.SolrException: Bad or unsupported pattern: > java.time.format.DateTimeFormatter$ClassicFormat@4afdfaec > at org.apache.solr.core.SolrCore.<init>(SolrCore.java:1057) > at org.apache.solr.core.SolrCore.<init>(SolrCore.java:883) > at > org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1238) > ... 45 more > Caused by: org.apache.solr.common.SolrException: Bad or unsupported pattern: > java.time.format.DateTimeFormatter$ClassicFormat@4afdfaec > at > org.apache.solr.update.processor.ParseDateFieldUpdateProcessorFactory.validateFormatter(ParseDateFieldUpdateProcessorFactory.java:217) > at > org.apache.solr.update.processor.ParseDateFieldUpdateProcessorFactory.init(ParseDateFieldUpdateProcessorFactory.java:189) > at org.apache.solr.core.PluginBag.initInstance(PluginBag.java:104) > at org.apache.solr.core.PluginBag.createPlugin(PluginBag.java:142) > at org.apache.solr.core.PluginBag.init(PluginBag.java:277) > at org.apache.solr.core.PluginBag.init(PluginBag.java:266) > at org.apache.solr.core.SolrCore.<init>(SolrCore.java:983) > ... 47 more > Caused by: java.time.format.DateTimeParseException: Text > '2019-07-03T20:00:00.050Z' could not be parsed: null > at > java.base/java.time.format.DateTimeFormatter.createError(DateTimeFormatter.java:2017) > at > java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1920) > at > org.apache.solr.update.processor.ParseDateFieldUpdateProcessorFactory.parseInstant(ParseDateFieldUpdateProcessorFactory.java:230) > at > org.apache.solr.update.processor.ParseDateFieldUpdateProcessorFactory.validateFormatter(ParseDateFieldUpdateProcessorFactory.java:214) > ... 53 more > Caused by: java.lang.NullPointerException > at > java.base/java.time.format.DateTimeFormatterBuilder$PrefixTree.prefixLength(DateTimeFormatterBuilder.java:4527) > at > java.base/java.time.format.DateTimeFormatterBuilder$PrefixTree.add0(DateTimeFormatterBuilder.java:4396) > at > java.base/java.time.format.DateTimeFormatterBuilder$PrefixTree.add(DateTimeFormatterBuilder.java:4391) > at > java.base/java.time.format.DateTimeFormatterBuilder$ZoneTextPrinterParser.getTree(DateTimeFormatterBuilder.java:4138) > at > java.base/java.time.format.DateTimeFormatterBuilder$ZoneIdPrinterParser.parse(DateTimeFormatterBuilder.java:4249) > at > java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2360) > at > java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2360) > at > java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2360) > at > java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2370) > at > java.base/java.time.format.DateTimeFormatter.parseUnresolved0(DateTimeFormatter.java:2107) > at > java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2036) > at > java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1916) > ... 55 more -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org