java.net.UnknownHostException

#{environment['elasticjob.zookeeper.regCenter']}: unknown error

Samebug tips1

This is a bug that happens in Slide in versions 4.2.0 and before. Update to 4.2.2 or further to fix it.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web865

  • Stack trace

    • java.net.UnknownHostException: #{environment['elasticjob.zookeeper.regCenter']}: unknown error at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)[na:1.8.0_77] at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)[na:1.8.0_77] at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)[na:1.8.0_77] at java.net.InetAddress.getAllByName0(InetAddress.java:1276)[na:1.8.0_77] at java.net.InetAddress.getAllByName(InetAddress.java:1192)[na:1.8.0_77] at java.net.InetAddress.getAllByName(InetAddress.java:1126)[na:1.8.0_77] at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61)[zookeeper-3.4.6.jar:3.4.6-1569965] at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445)[zookeeper-3.4.6.jar:3.4.6-1569965] at org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:29)[curator-client-2.10.0.jar:na] at org.apache.curator.framework.imps.CuratorFrameworkImpl$2.newZooKeeper(CuratorFrameworkImpl.java:150)[curator-framework-2.10.0.jar:na] at org.apache.curator.HandleHolder$1.getZooKeeper(HandleHolder.java:94)[curator-client-2.10.0.jar:na] at org.apache.curator.HandleHolder.getZooKeeper(HandleHolder.java:55)[curator-client-2.10.0.jar:na] at org.apache.curator.ConnectionState.reset(ConnectionState.java:218)[curator-client-2.10.0.jar:na] at org.apache.curator.ConnectionState.start(ConnectionState.java:103)[curator-client-2.10.0.jar:na] at org.apache.curator.CuratorZookeeperClient.start(CuratorZookeeperClient.java:190)[curator-client-2.10.0.jar:na] at org.apache.curator.framework.imps.CuratorFrameworkImpl.start(CuratorFrameworkImpl.java:259)[curator-framework-2.10.0.jar:na] at com.dangdang.ddframe.reg.zookeeper.ZookeeperRegistryCenter.init(ZookeeperRegistryCenter.java:104)[elastic-job-core-1.1.1.jar:na] at com.dangdang.ddframe.reg.spring.namespace.SpringZookeeperRegistryCenter.postProcessBeanFactory(SpringZookeeperRegistryCenter.java:78)[elastic-job-spring-1.1.1.jar:na] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:181)[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678)[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520)[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE] at cn.com.sina.alan.ea.EaElasticJobApp.main(EaElasticJobApp.java:16)[classes/:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    RaggymanRaggyman
    2 times, last one
    Nikolay RybakNikolay Rybak
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    batwalrus76batwalrus76
    37 times, last one
    137 more bugmates