I installed a Solr 8.1.1
on a centos 7
, openJdk11 and want to create a new core. But on creating i get an error message:
ERROR: Error CREATEing SolrCore 'myCore': Unable to create core [myCore] Caused by: null
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Bad or unsupported pattern: java.time.format.DateTimeFormatter$ClassicFormat@53ea7249"
2
Answers
Sample API to create a core is as mentioned below.
Using SolrJ API it would be someting like as below.
I had the same issue, somehow it is related to openJDK. I installed oracleJDK and set it as default java using
and selected oracleJDK home as default then used
It worked for me.
enter image description here