技术文章 - CS327994
在 ThingWorx Analytics Server 中创建数据集时收到 java.lang.ExceptionInInitializerError
已修改: 22-Dec-2022
适用于
- ThingWorx Analytics 8.5
说明
- 新建数据集报如下错误
java.lang.ExceptionInInitializerError 异常
- <ThingWorxAnalyticsServer>/data/logs/worker.log有
java.lang.RuntimeException: java.lang.ExceptionInInitializerError 错误
在 com.thingworx.analytics.data.service.AbstractDataServiceJob.run(AbstractDataServiceJob.java:79)
在 com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor$DempsyPersistentClusterWatcher.runJobUploadResultsAndCleanup(DempsyClusterJobExecutor.java:433)
在 com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor$DempsyPersistentClusterWatcher.execute(DempsyClusterJobExecutor.java:600)
在 com.thingworx.analytics.ccc.executor.PersistentTask.executeUntilWorks(PersistentTask.java:94)
在 com.thingworx.analytics.ccc.executor.PersistentTask.process(PersistentTask.java:60)
在 net.dempsy.cluster.zookeeper.ZookeeperSession$WatcherProxy.process(ZookeeperSession.java:232)
在 org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:533)
在 org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:508)
引起:java.lang.ExceptionInInitializerError: null
在 java.lang.J9VMInternals.ensureError (J9VMInternals.java:146)
在 java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:135)
在 com.thingworx.analytics.data.service.AbstractDataServiceJob.run(AbstractDataServiceJob.java:79)
在 com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor$DempsyPersistentClusterWatcher.runJobUploadResultsAndCleanup(DempsyClusterJobExecutor.java:433)
在 com.thingworx.analytics.ccc.job.dempsy.DempsyClusterJobExecutor$DempsyPersistentClusterWatcher.execute(DempsyClusterJobExecutor.java:600)
在 com.thingworx.analytics.ccc.executor.PersistentTask.executeUntilWorks(PersistentTask.java:94)
在 com.thingworx.analytics.ccc.executor.PersistentTask.process(PersistentTask.java:60)
在 net.dempsy.cluster.zookeeper.ZookeeperSession$WatcherProxy.process(ZookeeperSession.java:232)
在 org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:533)
在 org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:508)
引起:java.lang.ExceptionInInitializerError: null
在 java.lang.J9VMInternals.ensureError (J9VMInternals.java:146)
在 java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:135)
- <ThingWorxAnalyticsServer>/data/logs/async.log有
io.dropwizard.jersey.errors.LoggingExceptionMapper:处理请求时出错:865951d9144ac204
! java.lang.NullPointerException: 空
!在 org.apache.commons.lang3.SerializationUtils$ClassLoaderAwareObjectInputStream.<init>(SerializationUtils.java:299)
!在 org.apache.commons.lang3.SerializationUtils.clone(SerializationUtils.java:88)
...
导致:java.lang.NoClassDefFoundError:org.apache.hadoop.fs.FileSystem$Statistics(初始化失败)
!在 java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
!在 org.apache.hadoop.fs.FileSystem.getStatistics(FileSystem.java:3343)
!在 org.apache.hadoop.fs.FileSystem.initialize(FileSystem.java:204)
!在 org.apache.hadoop.fs.RawLocalFileSystem.initialize(RawLocalFileSystem.java:94)
!在 org.apache.hadoop.fs.LocalFileSystem.initialize(LocalFileSystem.java:47)
! java.lang.NullPointerException: 空
!在 org.apache.commons.lang3.SerializationUtils$ClassLoaderAwareObjectInputStream.<init>(SerializationUtils.java:299)
!在 org.apache.commons.lang3.SerializationUtils.clone(SerializationUtils.java:88)
...
导致:java.lang.NoClassDefFoundError:org.apache.hadoop.fs.FileSystem$Statistics(初始化失败)
!在 java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
!在 org.apache.hadoop.fs.FileSystem.getStatistics(FileSystem.java:3343)
!在 org.apache.hadoop.fs.FileSystem.initialize(FileSystem.java:204)
!在 org.apache.hadoop.fs.RawLocalFileSystem.initialize(RawLocalFileSystem.java:94)
!在 org.apache.hadoop.fs.LocalFileSystem.initialize(LocalFileSystem.java:47)
这是文章 327994 的 PDF 版本,可能已过期。最新版本 CS327994