操作系统: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
扫一扫访问 Blade技术社区 移动端