bladex-boot maven 项目转向 gradle 项目启动报错 Command line is too long

Blade 未结 1 1095
沐汐风丶
沐汐风丶 剑圣 2020-06-12 00:53
悬赏:5

一、该问题的重现步骤是什么?

1.  bladex-boot maven 项目转向 gradle 之后 启动报错  Command line is too longimage.png

2.  修改 .idea\workspace.xml,添加

<property name="dynamic.classpath" value="true" />

之后启动项目到了NACOS?

image.png

3.


二、你期待的结果是什么?实际看到的又是什么?

你期待的结果 :能提供maven转gradle 的方法 因为要引入一些kotlin 的jar包需要gradle 配置 

实际看到:使用gradle init --type pom 转 gradle 项目之后各种各种配置报错


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladex-boot  2.5.1.RELEAS


四、请提供详细的错误堆栈信息,这很重要。


"C:\Program Files\Java\jdk1.8.0_201\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:F:\IntelliJ IDEA 2020.1.2\lib\idea_rt.jar=54241:F:\IntelliJ IDEA 2020.1.2\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\admin\AppData\Local\Temp\classpath1669571336.jar org.springblade.Application --spring.profiles.active=prod

00:48:31.153 [main] DEBUG org.springframework.core.env.PropertySourcesPropertyResolver - Found key 'spring.profiles.active' in PropertySource 'commandLineArgs' with value of type String

00:48:31.158 [main] DEBUG org.springframework.core.env.StandardEnvironment - Activating profiles [prod]

----启动中,读取到的环境变量:[prod],jar地址:[/H:/bladex-boot/build/classes/java/main/]----

                   ______  _             _       ___   ___

                   | ___ \| |           | |      \  \ /  /

                   | |_/ /| |  __ _   __| |  ___  \  V  /

                   | ___ \| | / _` | / _` | / _ \   > <

                   | |_/ /| || (_| || (_| ||  __/ /  .  \

                   \____/ |_| \__,_| \__,_| \___|/__/ \__\


:: BladeX 2.5.1.RELEASE :: blade-api:prod :: Running SpringBoot 2.1.14.RELEASE :: 


2020-06-12 00:48:37.412 ERROR 21012 --- [           main] c.a.n.c.config.http.ServerHttpAgent      : [NACOS SocketTimeoutException httpGet] currentServerAddr:http://localhost:8848, err : connect timed out

2020-06-12 00:48:39.425 ERROR 21012 --- [           main] c.a.n.c.config.http.ServerHttpAgent      : [NACOS SocketTimeoutException httpGet] currentServerAddr:http://localhost:8848, err : connect timed out

2020-06-12 00:48:39.425 ERROR 21012 --- [           main] c.a.n.c.config.http.ServerHttpAgent      : no available server

2020-06-12 00:48:39.428 ERROR 21012 --- [           main] c.a.n.client.config.impl.ClientWorker    : [fixed-localhost_8848] [sub-server] get server config exception, dataId=blade-prod.yaml, group=DEFAULT_GROUP, tenant=


java.net.ConnectException: no available server

at com.alibaba.nacos.client.config.http.ServerHttpAgent.httpGet(ServerHttpAgent.java:123)

at com.alibaba.nacos.client.config.http.MetricsHttpAgent.httpGet(MetricsHttpAgent.java:48)

at com.alibaba.nacos.client.config.impl.ClientWorker.getServerConfig(ClientWorker.java:230)

at com.alibaba.nacos.client.config.NacosConfigService.getConfigInner(NacosConfigService.java:143)

at com.alibaba.nacos.client.config.NacosConfigService.getConfig(NacosConfigService.java:92)

at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.loadNacosData(NacosPropertySourceBuilder.java:85)

at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.build(NacosPropertySourceBuilder.java:74)

at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosPropertySource(NacosPropertySourceLocator.java:204)

at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosDataIfPresent(NacosPropertySourceLocator.java:191)

at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosConfiguration(NacosPropertySourceLocator.java:161)

at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadSharedConfiguration(NacosPropertySourceLocator.java:117)

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:101)

at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:623)

at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:367)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:311)

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140)

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50)

at org.springblade.Application.main(Application.java:34)


2020-06-12 00:48:39.431  WARN 21012 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-prod.yaml] & group[DEFAULT_GROUP]

2020-06-12 00:48:41.434 ERROR 21012 --- [           main] c.a.n.c.config.http.ServerHttpAgent      : [NACOS SocketTimeoutException httpGet] currentServerAddr:http://localhost:8848, err : connect timed out


Process finished with exit code -1


五、若有更多详细信息,请在下面提供。

1条回答
  • 社区内搜索:Command line is too long

    0 讨论(1)
提交回复