Caused by: java.net.UnknownHostException: miniapps: unknown error

1958 단어
[2017-11-30 19:17:00 ERROR org.quartz.core.ErrorLogger.schedulerError(QuartzScheduler.java:2425) syncUser2JdqJob_Worker-1  :  ] Job (DEFAULT.syncUser2JdqJob threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception.
    at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: com.dangdang.ddframe.job.util.env.HostException: java.net.UnknownHostException: miniapps: miniapps: unknown error
    at com.dangdang.ddframe.job.util.env.IpUtils.getHostName(IpUtils.java:105)
    at com.dangdang.ddframe.job.event.type.JobExecutionEvent.(JobExecutionEvent.java:43)
    at com.dangdang.ddframe.job.executor.AbstractElasticJobExecutor.process(AbstractElasticJobExecutor.java:176)
    at com.dangdang.ddframe.job.executor.AbstractElasticJobExecutor.execute(AbstractElasticJobExecutor.java:150)
    at com.dangdang.ddframe.job.executor.AbstractElasticJobExecutor.execute(AbstractElasticJobExecutor.java:122)
    at com.dangdang.ddframe.job.lite.internal.schedule.LiteJob.execute(LiteJob.java:26)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    ... 1 common frames omitted
Caused by: java.net.UnknownHostException: miniapps: miniapps: unknown error
    at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
    at com.dangdang.ddframe.job.util.env.IpUtils.getHostName(IpUtils.java:103)
    ... 7 common frames omitted
Caused by: java.net.UnknownHostException: miniapps: unknown error
    at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
    at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
    at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
    ... 8 common frames omitted


/etc/hosts에 다음과 같은 설정을 추가합니다
127.0.0.1 miniapps

문제 해결.

좋은 웹페이지 즐겨찾기