Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native #4244

broelandt ·

Hi,

I've installed QB10.0.11 on a fresh Centos 7 server that is using MariaDB as backend and running with JDK 1.8

But for some reasons I have this error that is spamming the log :

2020-05-29 08:47:17,364 [MeasurementPollingTask] ERROR oshi.software.os.linux.LinuxFileSystem - Failed to get file counts from statvfs. {}
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
        at com.sun.jna.Structure.setAlignType(Structure.java:280)
        at com.sun.jna.Structure.<init>(Structure.java:197)
        at com.sun.jna.Structure.<init>(Structure.java:193)
        at com.sun.jna.Structure.<init>(Structure.java:180)
        at com.sun.jna.Structure.<init>(Structure.java:172)
        at com.sun.jna.platform.linux.LibC$Statvfs.<init>(LibC.java:102)
        at oshi.software.os.linux.LinuxFileSystem.getFileStoreMatching(LinuxFileSystem.java:212)
        at oshi.software.os.linux.LinuxFileSystem.getFileStores(LinuxFileSystem.java:134)
        at com.pmease.quickbuild.plugin.measurement.core.sysinfo.oshi.OshiSystemInfo.getFileSystem(OshiSystemInfo.java:113)
        at com.pmease.quickbuild.plugin.measurement.core.supplier.DiskMetricsSupplier.getMonitorDisks(DiskMetricsSupplier.java:121)
        at com.pmease.quickbuild.plugin.measurement.core.supplier.DiskMetricsSupplier.collectMeasurements(DiskMetricsSupplier.java:77)
        at com.pmease.quickbuild.plugin.measurement.core.supplier.DiskMetricsSupplier.get(DiskMetricsSupplier.java:71)
        at com.pmease.quickbuild.plugin.measurement.core.supplier.DiskMetricsSupplier.get(DiskMetricsSupplier.java:28)
        at com.pmease.quickbuild.plugin.measurement.core.poller.MeasurementPollingTask.collectMetrics(MeasurementPollingTask.java:77)
        at com.pmease.quickbuild.plugin.measurement.core.poller.MeasurementPollingTask.execute(MeasurementPollingTask.java:55)
        at com.pmease.quickbuild.plugin.measurement.core.poller.MeasurementPollingTask.run(MeasurementPollingTask.java:107)
        at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52)
        at java.lang.Thread.run(Thread.java:748)

I searched a bit but none of the fix I tried worked :(

Any clue ?

Thanks.

  • replies 1
  • views 3041
  • stars 0
steveluo ADMIN ·

Hi@broelandt

I have tested with a fresh installed QuickBuild (10.0.11) on CentOS 7 box, it ran successfully both with Oracle JDK 8 and with OpenJDK 8. So what's your JDK? And how about running the latest QuickBuild (10.0.14) without any external database?