
Exception
wbj0110
这个作者很懒,什么都没留下…
展开
-
java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path i
java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: hdfs://localhost:49000.tmp at org.apache.hadoop.fs.Path.initialize(Path.java:148) at org....原创 2013-11-06 09:28:29 · 744 阅读 · 0 评论 -
TOMCAT报Caused by: java.lang.OutOfMemoryError: Java heap space错误解决方法
在进行大数据量操作的时候,经常会出现内存溢出的错误,如图: 处理方法是设置TOMCAT的内存大小,如图 sts Tomcat是目前应用十分广泛的一个Java servlet container与web服务器,但java.lang.OutOfMemoryError与java.lang.OutOfMemoryError: PermGen space的异常相信真正用过t...原创 2014-07-03 09:55:07 · 749 阅读 · 0 评论 -
解决 Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnl...原创 2014-07-11 10:40:26 · 157 阅读 · 0 评论 -
Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from tr
Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUorg.springframework.dao.InvalidDataAccessApiUsageException: Writeoperations...原创 2014-07-11 10:44:35 · 186 阅读 · 0 评论 -
java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerB
java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory 问题原因:jar文件版本冲突在slf4j-log4j12(slf4j-nop.jar, slf4j-simple.jar,...原创 2014-02-24 10:58:14 · 764 阅读 · 0 评论 -
Cannot rebase: You have unstaged changes.
那说明你有修改过的文件 git stash git pull --rebase (每次push之前最好这样做一次) git push .... 之后用git stash pop stash原创 2014-02-28 09:14:17 · 2193 阅读 · 0 评论 -
hadoop常见问题-too many fetch-failures
现象:12/12/05 17:06:19 INFO mapred.JobClient: Task Id : attempt_201212051618_0002_m_000035_0, Status : FAILEDToo many fetch-failures12/12/05 17:06:19 INFO mapred.JobClient: Task Id : attemp...原创 2014-02-28 09:15:07 · 314 阅读 · 0 评论 -
hadoop常见问题-Browse the filesystem链接打不开
现象:在访问Master:50070之后,点击browse the filesystem后,该页无法显示。原因:点击browse the filesystem后,网页转向的地址用的是hadoop集群的某一个datanode的主机名,由于客户端的浏览器无法解析这个主机名,因此该页无法显示。 解决:需要在客户端的hosts文件里加入hadoop集群的ip地址与对应的主机名,这样就能解决...原创 2014-02-28 09:15:22 · 127 阅读 · 0 评论 -
hadoop常见问题-no datanode to stop
现象:当停止Hadoop的时候发现no datanode to stop的信息。 原因1:每次namenode format会重新创建一个namenodeId,而tmp/dfs/data下包含了上次format下的id,namenode format清空了namenode下的数据,但是没有清空datanode下的数据,导致启动时失败,所要做的就是每次fotmat前,清空tmp一下的所有目...原创 2014-03-03 10:38:44 · 307 阅读 · 0 评论 -
git 异常 fatal: The remote end hung up unexpectedly
发生在push命令中,有可能是push的文件过大导致解决方法:windows:在 .git/config 文件中加入[http]postBuffer = 524288000linux:git config http.postBuffer 524288000原创 2014-03-08 22:52:25 · 104 阅读 · 0 评论 -
Version 1.5.0_07 of the JVM is not suitable for this product. Version: 1.6 or gr
在今天启动Eclipse的时候遇到一个Version 1.5.0_07 of the JVM is not suitable for this product. Version: 1.6 or greater is required. 的错误,我尝试着到eclipse安装路径下面的配置文件找到些信息,但是没有结果,于是想到可能跟最近新安卓的数据库有关系,因为数据库的jdk的版本一般会稍微低一些...原创 2013-10-14 08:17:53 · 182 阅读 · 0 评论 -
-bash: ssh: command not found解决方法
想使用centos 6 ssh远程管理一台服务器,结果使用ssh命令提示-bash: ssh: command not found 原因是没有安装ssh客户端,只需要安装一下就行了,命令是:yum install openssh-clients 执行完,就可以正常使用了...原创 2014-02-17 09:22:23 · 674 阅读 · 0 评论 -
解决“HTTP/1.1 405 Method not allowed”问题,让静态文件响应POST请求
Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误。 例1:用Linux下的curl命令发送POST请求给Apache服务器上的HTML静态页[root@new-host ~]# curl -d 1=1 http://www.sohu.com/index.html<...原创 2014-01-21 15:51:54 · 633 阅读 · 0 评论 -
configure: error: Unable to find a working C++ compiler
如果有这样的错误信息:“configure: error: C++ compiler cannot create executables"说明没装gcc或者装了gcc,没装g++我这ubuntu10.10就是没有g++,最后是apt-get install g++,修复了congfiure不通的错误。You need to install c++ on your compu...原创 2013-11-11 10:00:41 · 827 阅读 · 0 评论 -
no acceptable C compiler found in $PATH
安装python2.7的时候,提示我没有C编译器,只需要安装gcc即可 $ sudo apt-get install gcc 安装完GCC之后,可以configure,但是make的时候还会提示错误:bash: make: command not found这是因为没有安装make, $ sudo apt-get install make...原创 2013-11-11 10:47:40 · 180 阅读 · 0 评论 -
ubuntu下mysql无法启动Couldn't find MySQL server (/usr/bin/mysqld_safe)”
ubuntu下mysql无法启动Couldn't find MySQL server (/usr/bin/mysqld_safe)”fix:删除my.cnf rm /etc/mysql/my.cnf原创 2013-11-22 09:43:10 · 334 阅读 · 0 评论 -
安装tokyo cabinet时候configure: error: bzlib.h is required
./configure --prefix时候提示configure: error: bzlib.h is required,可以尝试安装libbz2包sudo apt-get install libbz2-devsudo apt-get install zlib1g-dev原创 2013-12-18 09:39:51 · 152 阅读 · 0 评论 -
How to merge remote changes at GitHub?
http://stackoverflow.com/questions/1713137/how-to-merge-remote-changes-at-github原创 2013-12-21 14:09:35 · 105 阅读 · 0 评论 -
Git错误non-fast-forward后的冲突解决
当要push代码到git时,出现提示:error:failed to push some refs to ...Dealing with “non-fast-forward” errorsFrom time to time you may encounter this error while pushing:$ git push origin master To ../re...原创 2013-12-21 14:10:10 · 93 阅读 · 0 评论 -
CentOS Linux解决Device eth0 does not seem to be present
在使用vmware迁移linux系统过程中,发现部署后的linux系统无法启动网卡报错为Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization错误原因,是因为linux网卡绑定了原mac地址导致解决方法为1.使用ifcnfig -a 查看当前主机ma...原创 2014-06-05 12:25:36 · 131 阅读 · 0 评论 -
centOS 6.4关闭防火墙步骤
关闭虚拟机防火墙: 关闭命令: service iptables stop 永久关闭防火墙:chkconfig iptables off两个命令同时运行,运行完成后查看防火墙关闭状态 service iptables status...原创 2014-06-05 14:41:12 · 127 阅读 · 0 评论 -
Could not read JSON: Can not deserialize instance of java.lang.Integer out of ST
Spring 会将{id:id}这个json转换成Map对象,只要将@requestBody中的参数改成Map就可以了,如下@RequestMapping(value="/delete",method=RequestMethod.POST,produces="application/json") @ResponseStatus(HttpStatus.OK) public void delet...原创 2014-01-21 15:48:30 · 1465 阅读 · 0 评论 -
java.io.EOFException: No content to map to Obje...
java异常:java.io.EOFException: No content to map to Object due to end of inputorg.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2433) [jackson-mapper-asl-1.8.1.jar:1.8.1] at...原创 2014-01-21 15:49:22 · 375 阅读 · 0 评论 -
DependencyResolutionException
This error generally occurs when Maven could not download dependencies. Possible causes for this error are:The POM misses the declaration of the <repository> which hosts the artifact.The ...原创 2014-04-09 09:40:11 · 651 阅读 · 0 评论