繁体   English   中英

WSO2 AS服务器传递日期以创建Solr日期时出错

[英]WSO2 AS server Error when passing date to create solr date

我配置了4台服务器,但是当我尝试将应用服务器添加到exlipse时,在控制台上出现此错误:

ERROR {org.wso2.carbon.registry.indexing.solr.SolrClient} - Error when passing date to create solr date format.java.text.ParseException: Unparseable date: "Sun Dec 13 21:19:56 GMT+01:00 2015" 

我在CentOS中使用WSO2 API Manager 10.0遇到了同样的问题。 它与服务器似乎不支持的JVM使用的语言环境有关。

作为一种解决方法,我解决了它更改JVM区域的问题,在wso2server.sh中向JVM添加了下一个参数:

 -Duser.region=US \

您不需要安装WSO2产品。 只需解压缩Windows的运行[WSO2_Product] / bin / wso2server .bat或Linux的.sh。

要在启动之前仅在同一服务器上运行它们,请在[WSO2_Product] /repository/conf/carbon.xml中更改偏移值。示例:

<!-- Ports offset. This entry will set the value of the ports defined below to
 the define value + Offset.
 e.g. Offset=2 and HTTPS port=9443 will set the effective HTTPS port to 9445
 -->
<Offset>1</Offset>

在这种情况下,端口将偏移到9444和9764,偏移= 0(9443和9763)

只有region-Option对我不起作用。 我添加了以下选项:

-Duser.region=US -Duser.country=US -Duser.language=us

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM