logo
社区首页 / 全域数据集成平台 / 问题详情
标题
报错请服务请求失败,请检查服务接口处于可用状态!
0
用户头像
楼主:1519253****
主题:4     回复:4     获赞:0 注册日期:2023-05-26

java.io.IOException: Cannot run program "ipconfig": CreateProcess error=5, 拒绝访问。 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at java.lang.Runtime.exec(Runtime.java:620) at java.lang.Runtime.exec(Runtime.java:485) at cn.restcloud.framework.core.util.ComputerInfo.getMacAddressList(ComputerInfo.java:47) at cn.restcloud.framework.core.util.ComputerInfo.getMacAddress(ComputerInfo.java:73) at cn.restcloud.framework.core.util.CommonUtil.getSystemUUID(CommonUtil.java:356) at cn.restcloud.framework.core.util.LogBackUtil.logInfo(LogBackUtil.java:41) at cn.restcloud.framework.core.container.BeanContainer.checkAllBeanInstanceError(BeanContainer.java:367) at cn.restcloud.framework.core.container.BeanContainer.initClassToInstance(BeanContainer.java:70) at cn.restcloud.framework.core.container.BeanContainer.init(BeanContainer.java:43) at cn.restcloud.framework.core.context.ServletInitApplication.init(ServletInitApplication.java:71) at cn.restcloud.springboot.config.RestCloudContextAware.setApplicationContext(RestCloudContextAware.java:53) at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:123) at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:100) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:416) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1795) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92) at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: CreateProcess error=5, 拒绝访问。 at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init&gt(ProcessImpl.java:386) at java.lang.ProcessImpl.start(ProcessImpl.java:137) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 40 more

---------------------------------------------------
签名:
共8回答
0
用户头像
回答者: 管理员
获赞:142 注册于:2017-07-02 回答于 2023-05-30 10:13:58 #1

linux服务器上安装一个ipconfig的命令就可以了

---------------------------------------------------
签名:我是一个码农...
0
用户头像
回答者: 1519253****
获赞:0 注册于:2023-05-26 回答于 2023-05-30 14:14:56 #2

我这个是装在windows上的

---------------------------------------------------
签名:
0
用户头像
回答者: 管理员
获赞:142 注册于:2017-07-02 回答于 2023-05-30 14:18:30 #3

的帐号的安全级别不够高,网上找了个解决问题的方法 https://www.656463.com/wenda/javaioIOExceptionwfyxcxadbexeCre_541 你可以试下

---------------------------------------------------
签名:我是一个码农...
0
用户头像
回答者: 1519253****
获赞:0 注册于:2023-05-26 回答于 2023-06-05 10:14:57 #4

ipconfig这个报错,这个是程序了这个ipconfig吧,感觉不是安全级别的问题,windows就没有ipconfig这个东西吧

---------------------------------------------------
签名:
0
用户头像
回答者: 管理员
获赞:142 注册于:2017-07-02 回答于 2023-06-05 11:15:02 #5

ipconfig是windows下查看当前机器的ip命令,是系统自带。


图片alt

---------------------------------------------------
签名:我是一个码农...