cassandra.3.10版本应用的错误,求大神指点

james7808 发布于 2017/09/13 14:46
阅读 854
收藏 0

环境:

OS:windwos 7 64位

JDK:1.8.0_31

cassandra3.10

开发时用的驱动JAR包有:

cassandra-driver-core.3.3.0,jnr-ffi.2.1.6,guava.23.0,metrics-core.3.2.2,log4j.1.2.17,slf4j-log4j12.1.7.25;在启动是报错误如下:
错误信息1:
14:06:04.461 [main] DEBUG com.datastax.driver.core.Native - Could not load JNR C Library, native system calls through this library will not be available
java.lang.UnsatisfiedLinkError: unknown
at jnr.ffi.provider.jffi.NativeLibrary.loadNativeLibraries(NativeLibrary.java:87) ~[jnr-ffi-2.1.6.jar:na]
at jnr.ffi.provider.jffi.NativeLibrary.getNativeLibraries(NativeLibrary.java:70) ~[jnr-ffi-2.1.6.jar:na]
at jnr.ffi.provider.jffi.NativeLibrary.getSymbolAddress(NativeLibrary.java:49) ~[jnr-ffi-2.1.6.jar:na]
at jnr.ffi.provider.jffi.NativeLibrary.findSymbolAddress(NativeLibrary.java:59) ~[jnr-ffi-2.1.6.jar:na]
at jnr.ffi.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:158) ~[jnr-ffi-2.1.6.jar:na]
at jnr.ffi.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:89) ~[jnr-ffi-2.1.6.jar:na]
at jnr.ffi.provider.jffi.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:44) ~[jnr-ffi-2.1.6.jar:na]
at jnr.ffi.LibraryLoader.load(LibraryLoader.java:325) ~[jnr-ffi-2.1.6.jar:na]
at jnr.ffi.LibraryLoader.load(LibraryLoader.java:304) ~[jnr-ffi-2.1.6.jar:na]
at com.datastax.driver.core.Native$LibCLoader.<clinit>(Native.java:108) ~[cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Native.isGettimeofdayAvailable(Native.java:190) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.ClockFactory.newInstance(Clock.java:51) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.AbstractMonotonicTimestampGenerator.<init>(AbstractMonotonicTimestampGenerator.java:43) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.LoggingMonotonicTimestampGenerator.<init>(LoggingMonotonicTimestampGenerator.java:49) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.AtomicMonotonicTimestampGenerator.<init>(AtomicMonotonicTimestampGenerator.java:50) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.AtomicMonotonicTimestampGenerator.<init>(AtomicMonotonicTimestampGenerator.java:37) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.policies.Policies.defaultTimestampGenerator(Policies.java:121) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.policies.Policies$Builder.build(Policies.java:286) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Cluster$Builder.getConfiguration(Cluster.java:1317) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Cluster.<init>(Cluster.java:113) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Cluster.buildFrom(Cluster.java:178) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Cluster$Builder.build(Cluster.java:1335) [cassandra-driver-core-3.3.0.jar:na]
at com.luther.cassandra.factory.SessionRepository.getSession(SessionRepository.java:45) [classes/:na]
at com.luther.cassandra.factory.SessionRepository.main(SessionRepository.java:111) [classes/:na]
错误信息2:
i.n.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable
java.lang.ClassNotFoundException: jdk.internal.misc.Unsafe
at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_131]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_131]
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[na:1.8.0_131]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_131]
at io.netty.util.internal.PlatformDependent0$6.run(PlatformDependent0.java:290) ~[netty-common-4.0.47.Final.jar:4.0.47.Final]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_131]
at io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:283) ~[netty-common-4.0.47.Final.jar:4.0.47.Final]
at io.netty.util.internal.PlatformDependent.getSystemClassLoader(PlatformDependent.java:641) [netty-common-4.0.47.Final.jar:4.0.47.Final]
at io.netty.util.internal.PlatformDependent.isAndroid0(PlatformDependent.java:665) [netty-common-4.0.47.Final.jar:4.0.47.Final]
at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:65) [netty-common-4.0.47.Final.jar:4.0.47.Final]
at io.netty.util.Signal.<clinit>(Signal.java:31) [netty-common-4.0.47.Final.jar:4.0.47.Final]
at io.netty.util.concurrent.DefaultPromise.<clinit>(DefaultPromise.java:43) [netty-common-4.0.47.Final.jar:4.0.47.Final]
at io.netty.util.concurrent.GlobalEventExecutor.<init>(GlobalEventExecutor.java:44) [netty-common-4.0.47.Final.jar:4.0.47.Final]
at io.netty.util.concurrent.GlobalEventExecutor.<clinit>(GlobalEventExecutor.java:41) [netty-common-4.0.47.Final.jar:4.0.47.Final]
at com.datastax.driver.core.Connection$Factory.<init>(Connection.java:752) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1446) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Cluster.init(Cluster.java:159) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:330) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:305) [cassandra-driver-core-3.3.0.jar:na]
at com.datastax.driver.core.Cluster.connect(Cluster.java:247) [cassandra-driver-core-3.3.0.jar:na]
at com.luther.cassandra.factory.SessionRepository.getSession(SessionRepository.java:48) [classes/:na]
at com.luther.cassandra.factory.SessionRepository.main(SessionRepository.java:111) [classes/:na]

请教哪位大神指点一下

加载中
返回顶部
顶部