技术文章 - CS374709
InfluxDB 持久性提供程序读取/写入失败,在 ThingWorx Platform 上的 ApplicationLog 中记录“[1,018] 数据存储未知错误:[访问数据提供程序时发生错误。] java.lang.NullPointerException:null”
已修改: 11-Nov-2024
适用于
- ThingWorx Platform 9.3 to 9.6
- InfluxDB
说明
- 无法读取或写入数据到 InfluxDB 持久性提供程序
- 由于维护活动重新启动 ThingWorx 平台,并且 Influx 持久性提供程序无法重新连接
- 在与 InfluxDB 的连接中,我们的 ThingWorx SaaS 平台出现错误 1018
- InfluxDB 实例本身没有问题
- 无法从 InfluxDB 查询价值流数据
- 以下错误消息反复记录在位于 <ThingworxStorage>\logs 的 ThingWorx Platform 日志中:
- 应用程序日志
[L: ERROR] [O: ctpiInfluxdbDataExceptionTranslator] [I: ] [U: Administrator] [S: ] [P: ] [T: TWEventProcessor-9] [1,018] Data store unknown error: [Error occurred while accessing the data provider.]
- 错误日志
[L: ERROR] [O: EctpiInfluxdbDataExceptionTranslator] [I: ] [U: SuperUser] [S: ] [P: ] [T: TWEventProcessor-5] null [L: ERROR] [O: EcqlcLogger] [I: ] [U: SuperUser] [S: ] [P: ] [T: TWEventProcessor-5] [1,018] Data store unknown error: [Error occurred while accessing the data provider.] java.lang.NullPointerException: null at com.thingworx.persistence.influxdb.dao.InfluxdbValueStreamDao.getEntries(InfluxdbValueStreamDao.java:226) ... 45 common frames omitted Wrapped by: com.thingworx.common.exceptions.DataAccessException: [1,018] Data store unknown error: [Error occurred while accessing the data provider.] at com.thingworx.persistence.influxdb.InfluxdbDataExceptionTranslator.rethrowTranslated(InfluxdbDataExceptionTranslator.java:34) at com.thingworx.persistence.influxdb.dao.InfluxdbValueStreamDao.getEntries(InfluxdbValueStreamDao.java:239) at com.thingworx.persistence.influxdb.dataprovider.InfluxdbValueStreamDataProvider.queryValueCollections(InfluxdbValueStreamDataProvider.java:204) at com.thingworx.persistence.common.ValueStreamEngine.lambda$queryEntries$11(ValueStreamEngine.java:306) at com.thingworx.persistence.TransactionFactory.supplyInTransaction(TransactionFactory.java:182) ...
- 应用程序日志
这是文章 374709 的 PDF 版本,可能已过期。最新版本 CS374709