MyException
Torres
积累 成长
展开
-
dom4j常见异常-the processing instruction target matching "[xX][mM][lL]" is not allowed
The processing instruction target matching "[xX][mM][lL]" is not allowed好久没有用过DOM4J了,今天项目中用到它解析XML的时候忽然报出了如题的异常,这种异常看似简单但是不注意会经常遇上,so在此记录一下,防止再犯。导致这个问题的原因是:xml文件或者是string的字符串第一行必须是原创 2013-04-03 14:48:44 · 730 阅读 · 0 评论 -
Selenium:java.lang.NoClassDefFoundError: org/apache/http/util/Args
java.lang.NoClassDefFoundError: org/apache/http/util/Args解决办法:org.apache.httpcomponentshttpclient4.2.1原创 2014-01-26 17:15:54 · 636 阅读 · 0 评论 -
远程连接Mysql-EHost 'xxx.xxx.xx.x' is not allowed to connect to this MySQL serverConnection closed by fo
EHost 'xxx.xxx.xx.x' is not allowed to connect to this MySQL serverConnection closed by foreign host.根据上文CentOS系统Mysql数据库的安装与配置,部署完mysql后,下一步做的是在我们本地远程连接mysql,这时候是无法直接连接的,主要是没有权限,会报出如题的异常:解决办法:原创 2013-12-18 14:09:10 · 1977 阅读 · 0 评论 -
关于Apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 fo
关于Apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName发表于 2013 年 7 月 26 日最近准备学习php,所以就配了个apache2,突然发现每次启动apache都会提示 Apache2: Could not r转载 2013-11-30 13:21:16 · 618 阅读 · 0 评论 -
dos2unix 解决 command not found
脚本中执行jar 文件时,报出了各种问题,排除了环境变量的问题,问题出现在文件格式问题。dos2unix命令用来将DOS格式的文本文件转换成UNIX格式的(DOS/MAC to UNIX text file format converter)。DOS下的文本文件是以\r\n作为断行标志的,表示成十六进制就是0D 0A。而Unix下的文本文件是以\n作为断行标志的,表示成十六进制就是 0原创 2013-09-12 13:46:11 · 3858 阅读 · 0 评论 -
curl 请求页面参数问题
原始请求如下: Bash代码 sudo curl -i http://marsoffset.goforandroid.com/GoSmsMarService/abc?a=116.397428&b=39.90923 [1] 8741 [jb-xccheng@usa-ip-12 ~]$ HTTP/1.1 500 Internal Server Err原创 2013-08-06 14:22:08 · 977 阅读 · 0 评论 -
The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8,
最近在用Maven管理的项目中抛出了如题的异常,下面我们看一下用maven如何干掉这个由于jar包的版本冲突引起的问题:传递依赖是maven最有特色的、最为方便的优点之一,可以省了很多配置。如a 依赖 b,b 依赖c 默认 a也会依赖 c。但是也会带来隐患,如版本冲突。当然maven也考虑到解决办法,可以使用exclusions来排除相应的重复依赖。但是我们还会遇到一个严重的问题,那就原创 2013-07-26 10:22:36 · 2544 阅读 · 0 评论 -
linux 下 larbin 编译不通过
Ubuntu11.04+larbin编译出现错误如下:root@zhao:/home/torres/workspace/larbin-2.6.3# ./configure makechecking whether you requested dynamic linking... yes, by defaultchecking for gcc... gccchecking whethe原创 2013-04-21 19:15:05 · 731 阅读 · 0 评论 -
larbin: PersistentFifo.cc:209: char* PersistentFifo::readLine(): Assertion `false' failed.
问题描述:torres@ubuntu:/opt/larbin-2.6.3$ ./larbin larbin_2.6.3 is starting its searchBig Problem while reading (persistentFifo.h)reason: Bad file descriptorlarbin: PersistentFifo.cc:209: char* Pers原创 2013-04-24 21:24:37 · 777 阅读 · 0 评论 -
org.apache.hadoop.hdfs.server.datanode.BlockAlreadyExistsException
2011-08-16 17:07:00,946 ERROR datanode.DataNode - DatanodeRegistration(192.168.2.12:50010, storageID=DS-1678238992-127.0.0.2-50010-1313485333243, infoPort=50075, ipcPort=50020):DataXceiver or转载 2013-03-26 10:31:11 · 969 阅读 · 0 评论 -
HTMLCleaner 转化html到xml报出namespace的错误
实际开发中利用HTMLCleaner转化html为xml的操作中报出:Error on line 2 column 52 SXXP0003: Error reported by XML parser: 前缀 "xml" 不能绑定到除它的常用名称空间外的任何名称空间; "xml" 的名称空间也不能绑定到除 "xml" 外的任何前缀。net.sf.saxon.trans.XPathEx原创 2014-02-19 08:51:20 · 875 阅读 · 0 评论