mac电脑nacos报少libjpcap.jnilib和jpcap.dll文件问题···

Blade 已结 2 1065
94759413
94759413 剑圣 2021-07-10 12:07

操作系统:mac 最新版本

代码:git刚下载的bladeX,只改了nacos地址;

nacos:2.0.1;

JDK:jdk1.8.0_291;

idea:2021版

JDK1.8报错了,但是能正常启动,启动后功能测试了一下也没发现什么问题,使用jdk11.0.8 没有报任何错误 只有警告在下边,

我目前猜测是我环境少libjpcap.jnilib和jpcap.dll文件是nacos用的,但我是mac啊要什么dll,没想明白;


还有个问题是 idea  jdk1.8 buiid时候 提示:java: 警告: 源发行版 11 需要目标发行版 11,  jdk11不会提示。

jdk1.8启动报错如下:

org.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was 
found [file:/Library/Java/Extensions/jpcap.dll]either use fromURL(final URL url, final List<UrlType> urlTypes) 
or use the static setDefaultURLTypes(final List<UrlType> urlTypes) 
or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.
	at org.reflections.vfs.Vfs.fromURL(Vfs.java:109)
	at org.reflections.vfs.Vfs.fromURL(Vfs.java:91)
	at org.reflections.Reflections.scan(Reflections.java:240)
	at org.reflections.Reflections.scan(Reflections.java:202)
	at org.reflections.Reflections.<init>(Reflections.java:123)
	at org.reflections.Reflections.<init>(Reflections.java:168)
	at org.reflections.Reflections.<init>(Reflections.java:141)
	at com.alibaba.nacos.api.remote.PayloadRegistry.scan(PayloadRegistry.java:68)
	at com.alibaba.nacos.api.remote.PayloadRegistry.init(PayloadRegistry.java:44)
	at com.alibaba.nacos.common.remote.client.RpcClient.<clinit>(RpcClient.java:109)
	at com.alibaba.nacos.common.remote.client.RpcClientFactory.createClient(RpcClientFactory.java:78)
	at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.ensureRpcClient(ClientWorker.java:849)
	at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.getOneRunningClient(ClientWorker.java:1002)
	at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.queryConfig(ClientWorker.java:907)
	at com.alibaba.nacos.client.config.impl.ClientWorker.getServerConfig(ClientWorker.java:366)
	at com.alibaba.nacos.client.config.NacosConfigService.getConfigInner(NacosConfigService.java:156)
	at com.alibaba.nacos.client.config.NacosConfigService.getConfig(NacosConfigService.java:87)
	at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.loadNacosData(NacosPropertySourceBuilder.java:85)
	at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.build(NacosPropertySourceBuilder.java:73)
	at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosPropertySource(NacosPropertySourceLocator.java:199)
	at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosDataIfPresent(NacosPropertySourceLocator.java:186)
	at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosConfiguration(NacosPropertySourceLocator.java:158)
	at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadSharedConfiguration(NacosPropertySourceLocator.java:116)
	at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:101)
	at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:52)
	at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:47)
	at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:98)
	at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:626)
	at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:370)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)
	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140)
	at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50)
	at org.springblade.system.user.UserApplication.main(UserApplication.java:34)


jdk:11警告如下

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.protostuff.runtime.PolymorphicThrowableSchema (file:/Users/xx/.m2/repository/io/protostuff/protostuff-runtime/1.6.0/protostuff-runtime-1.6.0.jar) to field java.lang.Throwable.cause
WARNING: Please consider reporting this to the maintainers of io.protostuff.runtime.PolymorphicThrowableSchema
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release


2条回答
  •  admin
    admin (最佳回答者)
    2021-07-12 18:22

    是m1的mac么?这个是nacos官方的锅,之前我们早就发issue了,但是没有特别好的方案,需要我们自己处理

    0 讨论(1)
  • 2021-07-12 19:21

    看来 Intel Core i7 也中枪了。

    0 讨论(0)
提交回复