java.net.UnknownHostException: 不知道这样的主机。(怎么解决,报错信息全部在下方)

10:05:00.874 logback [main] WARN c.a.s.worker.util.ConsoleUtil - Fetch domainName from address server error, url=http://addr-hz-internal.edas.aliyun.com:8080/schedulerx2/consolelist.

10:05:02.508 logback [main] WARN c.a.s.worker.util.DiamondUtil - [DiamondUtil]getData error dataId=com.alibaba.schedulerx.domain

com.alibaba.schedulerx.shade.com.mashape.unirest.http.exceptions.UnirestException: java.net.UnknownHostException: 不知道这样的主机。 (jmenv.tbsite.net)

at com.alibaba.schedulerx.shade.com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:143)

at com.alibaba.schedulerx.shade.com.mashape.unirest.request.BaseRequest.asString(BaseRequest.java:56)

at com.alibaba.schedulerx.worker.util.DiamondUtil.getData(DiamondUtil.java:30)

at com.alibaba.schedulerx.worker.util.DiamondUtil.getData(DiamondUtil.java:22)

at com.alibaba.schedulerx.worker.SchedulerxWorker.initConsoleDomain(SchedulerxWorker.java:307)

at com.alibaba.schedulerx.worker.SchedulerxWorker.init(SchedulerxWorker.java:134)

at com.alibaba.schedulerx.worker.SchedulerxWorker.afterPropertiesSet(SchedulerxWorker.java:761)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)

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

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

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

at com.lynkco.insurance.StartApplication.main(StartApplication.java:22)

Caused by: java.net.UnknownHostException: 不知道这样的主机。 (jmenv.tbsite.net)

at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)

at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:928)

at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1514)

at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:847)

at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1504)

at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1363)

at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1297)

at com.alibaba.schedulerx.shade.org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)

at com.alibaba.schedulerx.shade.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:112)

at com.alibaba.schedulerx.shade.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)

at com.alibaba.schedulerx.shade.org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)

at com.alibaba.schedulerx.shade.org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)

at com.alibaba.schedulerx.shade.org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)

at com.alibaba.schedulerx.shade.org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)

at com.alibaba.schedulerx.shade.org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)

at com.alibaba.schedulerx.shade.org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

at com.alibaba.schedulerx.shade.org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)

at com.alibaba.schedulerx.shade.org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)

at com.alibaba.schedulerx.shade.org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)

at com.alibaba.schedulerx.shade.com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:138)

... 24 common frames omitted

10:05:02.512 logback [main] ERROR c.a.s.worker.SchedulerxWorker - Schedulerx Worker error

com.alibaba.schedulerx.worker.exception.DomainNotFoundException: Not found domainName.

at com.alibaba.schedulerx.worker.SchedulerxWorker.init(SchedulerxWorker.java:136)

at com.alibaba.schedulerx.worker.SchedulerxWorker.afterPropertiesSet(SchedulerxWorker.java:761)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)

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

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

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

at com.lynkco.insurance.StartApplication.main(StartApplication.java:22)

10:05:02.514 logback [main] INFO c.a.s.worker.SchedulerxWorker - Schedulerx WorkerConfig[worker.version=1.4.2, worker.master.standalone=com.alibaba.schedulerx.worker.master.StandaloneTaskMaster, worker.master.broadcast=com.alibaba.schedulerx.worker.master.BroadcastTaskMaster, worker.master.parallel=com.alibaba.schedulerx.worker.master.ParallelTaskMater, worker.master.grid=com.alibaba.schedulerx.worker.master.GridTaskMaster, worker.master.batch=com.alibaba.schedulerx.worker.master.BatchTaskMaster, worker.master.sharding=com.alibaba.schedulerx.worker.master.ShardingTaskMaster, worker.container.type=thread, worker.executor.shell=com.alibaba.schedulerx.worker.processor.ShellProcessor, worker.executor.java=com.alibaba.schedulerx.worker.processor.JavaProcessor, worker.executor.python=com.alibaba.schedulerx.worker.processor.PythonProcessor, worker.executor.go=com.alibaba.schedulerx.worker.processor.GoProcessor, worker.executor.dataworks=com.alibaba.schedulerx.worker.processor.DataWorksProcessor, log.collector.type=default, log.collector.default=com.alibaba.schedulerx.worker.logcollector.DefaultLogCollector, log.collector.sls=com.alibaba.schedulerx.worker.logcollector.SlsLogCollector, groupId=test-sheduler-application, batch.work.enable=false, appKey=s4szg3P/OPfce1auKNNFrg==, schedulerx.namespace=aadfece2-47fa-4512-9ffe-69bf55bb3c1b, port=0, task.body.size.max=65536, block.app.start=true, sls.log.enable=true, share.container.pool=false, cgroup.metrics.enable=false, akka.remoting.auto.recover=true, schedulerx.heartbeat.log.enable=true, map.master.status.check.interval=3000, second.delay.interval.ms.enable=false, map.master.failover.enable=true, second_delay.standalone.dispatch=false, worker.map.page.size=1000, stater.mode=springboot, address.server.domain=addr-hz-internal.edas.aliyun.com, address.server.port=8080, domainName=]

10:05:02.515 logback [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerxWorker' defined in class path resource [com/alibaba/schedulerx/SchedulerxAutoConfigure.class]: Invocation of init method failed; nested exception is com.alibaba.schedulerx.worker.exception.DomainNotFoundException: Not found domainName.

10:05:02.528 logback [main] INFO c.alibaba.druid.pool.DruidDataSource - {dataSource-0} closing ...

10:05:02.528 logback [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]

10:05:02.553 logback [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

10:05:02.568 logback [main] ERROR o.s.boot.SpringApplication - Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerxWorker' defined in class path resource [com/alibaba/schedulerx/SchedulerxAutoConfigure.class]: Invocation of init method failed; nested exception is com.alibaba.schedulerx.worker.exception.DomainNotFoundException: Not found domainName.

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)

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

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

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

at com.lynkco.insurance.StartApplication.main(StartApplication.java:22)

Caused by: com.alibaba.schedulerx.worker.exception.DomainNotFoundException: Not found domainName.

at com.alibaba.schedulerx.worker.SchedulerxWorker.init(SchedulerxWorker.java:136)

at com.alibaba.schedulerx.worker.SchedulerxWorker.afterPropertiesSet(SchedulerxWorker.java:761)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)

... 16 common frames omitted


版权声明:本文为zkhlmf原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。