You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2019/07/14 10:13:00 UTC

[jira] [Commented] (SOLR-13631) Java 11 date parsing causing NPEs

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

Uwe Schindler commented on SOLR-13631:
--------------------------------------

This is for sure be caused by the fact that some Linux distributions using a different type of timezone data file shared with other packages. That's a antipattern but still done by some of them. I think Ubuntu gave up on this. You'd open an issue at the distribution, showing this with a simple test case. This is not a problem if Lucene.

> Java 11 date parsing causing NPEs
> ---------------------------------
>
>                 Key: SOLR-13631
>                 URL: https://issues.apache.org/jira/browse/SOLR-13631
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Ishan Chattopadhyaya
>            Assignee: Ishan Chattopadhyaya
>            Priority: Major
>
> Across all my machines with Fedora 30, I encounter 20+ test failures on master with the following NPEs. Same when starting Solr (it doesn't start up).
> {code}
>    [junit4]   2> Caused by: java.time.format.DateTimeParseException: Text '2019-07-14T07:09:13.341Z' could not be parsed: null
>    [junit4]   2> 	at java.base/java.time.format.DateTimeFormatter.createError(DateTimeFormatter.java:2017)
>    [junit4]   2> 	at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1920)
>    [junit4]   2> 	at org.apache.solr.update.processor.ParseDateFieldUpdateProcessorFactory.parseInstant(ParseDateFieldUpdateProcessorFactory.java:230)
>    [junit4]   2> 	at org.apache.solr.update.processor.ParseDateFieldUpdateProcessorFactory.validateFormatter(ParseDateFieldUpdateProcessorFactory.java:214)
>    [junit4]   2> 	... 44 more
> {code}
> Here are my environment details:
> OS: Fedora 30
> Java version:
> {code}
> [ishan@chromebox core] $ java -version
> openjdk version "11.0.3" 2019-04-16
> OpenJDK Runtime Environment 18.9 (build 11.0.3+7)
> OpenJDK 64-Bit Server VM 18.9 (build 11.0.3+7, mixed mode, sharing)
> {code}
> Kernel: 5.1.16-300.fc30.x86_64
> JDK was installed via "sudo dnf install java-11-openjdk-devel".



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org