`

java.net.UnknownHostException: ibatis.apache.org

阅读更多

今天中午帮助HZ QA 解决JNDI Datasource时发现这个问题

Caused by: java.net.UnknownHostException: ibatis.apache.org
	at java.net.InetAddress.getAllByName0(InetAddress.java:1016)
	at java.net.InetAddress.getAllByName0(InetAddress.java:981)
	at java.net.InetAddress.getAllByName(InetAddress.java:975)
	at weblogic.net.http.HttpClient.openServer(HttpClient.java:279)
	at weblogic.net.http.HttpClient.openServer(HttpClient.java:355)
	at weblogic.net.http.HttpClient.<init>(HttpClient.java:139)
	at weblogic.net.http.HttpURLConnection.getHttpClient(HttpURLConnection.java:151)
	at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:359)
	at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:28)
	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
	at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122)
	at com.webex.webapp.sxa.common.dao.TokenBasedSqlMapClientBuilder.getDocument(TokenBasedSqlMapClientBuilder.java:141)
	... 20 more
 
UnknownHostException

   一看估计是网络问题,连不上ibatis.apache.org,果不其然,让她在WebLogic server上ping了下连不上,她们那边没有配置DNS,所以连不上外网,配了DNS之后还是连不上,原来DNS有缓存,重启WebLogic, everything is ok!

分享到:
评论
1 楼 atgoingguoat 2012-06-15  
我也碰到这个问题
Linux 下具体如何处理.

相关推荐

    Caused by: java.net.UnknownHostException: openapi.alipay.com

    Caused by: java.net.UnknownHostException: openapi.alipay.com

    linux系统下部署TOMCAT错误java.net.UnknownHostException bogon bogon

    linux系统下部署TOMCAT异常错误java.net.UnknownHostException :bogon: bogon 主要原因是主机映射原因 修改hosts文件即可

    linux系统下部署TOMCAT错误java.net.UnknownHostException bogon bogon.docx

    项目源码-java网络五子棋游戏

    【项目源码】-java网络...import java.net.UnknownHostException; import java.sql.Time; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; /** * 登录面板 *

    jmeter-plugins-manager-1.4.jar插件

    Apache JMeter 是一款广泛应用的开源性能测试工具,用于测试Web应用的负载和性能。在JMeter的生态系统中,插件扮演着重要的角色,能够扩展其功能,提高测试效率。其中,`jmeter-plugins-manager-1.4.jar`是JMeter的...

    consul客户端本地开发

    例如,在Java应用中,可以使用官方提供的`consul-client`库,通过`Registration`对象设置服务信息并调用`AgentService.register()`方法。对于其他语言,也有相应的SDK或HTTP请求实现。 5. **健康检查** Consul支持...

    DBeaver连接mysql数据库图文教程

    **DBeaver 连接 MySQL 数据库的详细步骤** DBeaver 是一款强大的数据库管理工具,因其免费、开源且支持多种数据库的特点,深受开发者和DBA的青睐。它提供了直观的用户界面,使得数据库的管理和操作变得更加简单。...

    java HashMapDemo.java

    java HashMapDemo.java

    ResidentialAreaMap:ResidentialAreaMap-android

    参考百度Java文档Android Studio模拟定位服务 (安装插件)无法从百度获取地图数据错误显示如下: java.net.UnknownHostException: Unable to resolve host "loc.map.baidu.com": No address associated with ...

    java、.net

    Java 和 .NET 是两个主要的软件开发平台,它们各自提供了丰富的工具和技术来构建各种类型的应用程序。这两个平台在很多方面都有交集,但也各有特点。 Java 是一种面向对象的编程语言,由Sun Microsystems(现在是...

    项目源码-java企业QQ项目

    import java.net.UnknownHostException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java...

    java网络编程示例

    import java.net.UnknownHostException; public class TCPClient { public static void main(String[] args) { try { Socket socket = new Socket("127.0.0.1",4444); OutputStream oStream = socket....

    Android错误解决方法大集合

    一、 android java.net.UnknownHostException: Unable to resolve host"...": No address associated 错误 该错误是 Android 开发中常见的错误,主要是由于网络连接未开启或 Manifest 文件未标明网络访问权限所致。...

    解决linux找不到hostname的处理

    java.net.UnknownHostException: java: java: No address associated with hostname at java.net.InetAddress.getLocalHost(InetAddress.java:1475) at net.sf.ehcache.Cache.&lt;clinit&gt;(Cache.java:222) ``` 此...

    srping-cloud-alibaba-nacos-feign.zip

    Feign允许开发者通过接口定义来调用其他服务,提供了类似Java的注解方式来指定HTTP请求的路径、方法、参数等。 整合Nacos和Feign,可以让服务间的调用更加简洁和高效: 1. 引入Spring Cloud Alibaba Nacos Config和...

    ip6-java.zip

    7. **配置和属性**:Java系统属性如`java.net.preferIPv6Addresses`和`java.net.preferIPv4Stack`可以用来配置系统首选的IP版本。 8. **异常处理**:处理网络编程中常见的异常,如`UnknownHostException`, `...

    TCP并发上传——java源码

    import java.net.UnknownHostException; public class ClientDemo { public static void main(String[] args) { try { InputStream in = new FileInputStream("D:\\Client"); byte[] buf = new byte[1024*1024...

    Tools.java

    import java.net.UnknownHostException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import net.sf.json.JSONArray; import org.apache.commons.codec.binary....

    计算机网络实验报告 获取MAC socket通信

    import java.net.UnknownHostException; public class FileClient { /** * @param args */ public static void main(String[] args) { // 文件的输出流 try { java.io.FileOutputStream fos = new ...

    用java获取IP地址

    import java.net.UnknownHostException; public class NsLookup { public static void main(String[] args) { try { InetAddress address = InetAddress.getByName(args[0]); // 获取指定域名的InetAddress对象 ...

Global site tag (gtag.js) - Google Analytics