error&exception_cluster
tomjourney
积善之家 必有余庆
展开
-
打印结果和调试结果不一样(C语言)
【0】README0.1)本文旨在阐述 个人的debug经历,遇到的各种debug 奇葩问题, 说是奇葩,其实也是自己 不小心或者说是编程习惯不好;【1】debug和running的运行结果不一致(乍眼一看,你肯定醉了)1.1)原因:这是因为, 运行是时候,temp内部分配失败,为null, 所以直接返回了,所以swap失败;而在debug的时候, temp内存分配成功, 不为null, 所以swa原创 2015-11-20 13:16:56 · 3811 阅读 · 2 评论 -
follow 开源项目关于NoClassDefFoundError错误的解决方法
【0】README0.1)本文旨在po出当我们follow open projects 的时候,遇到一些在open API中不存在(NoClassDefFoundError)的类时的解决方法;【1】problem+solution:1.1)problem:一般case下,我们是 从低version 到高version的剖析project,而低version 可能年代久远而没原创 2016-04-23 18:01:14 · 1438 阅读 · 0 评论 -
报错:The type javax.servlet.http.HttpServletRequest cannot be resolved
【0】README0.1)以下内容转自: http://blog.csdn.net/vincent080928/article/details/5392891problem)The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from req转载 2016-06-03 15:39:50 · 824 阅读 · 0 评论 -
405: HTTP method GET is not supported by this URL
【0】README1)本文旨在解决 405: HTTP method GET is not supported by this URL 的问题;2)本文raw idea is checkoutted from http://stackoverflow.com/questions/5370633/405-http-method-get-is-not-supported-by-this-u原创 2016-07-10 20:50:45 · 1072 阅读 · 0 评论 -
openfire log4j:ERROR setFile(null,true) call failed.
【0】README1)本文旨在解决 当 openfire server 启动时的报错信息;【2】errors + solutions【2.1】errorslog4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\原创 2016-06-29 15:43:12 · 2589 阅读 · 0 评论 -
异常org.xmlpull.v1.XmlPullParserException
【0】对 org.xmlpull.v1.XmlPullParserException 异常的解决方法Exception in thread "main" java.lang.ExceptionInInitializerError at org.jivesoftware.smack.SmackConfiguration.getVersion(SmackConfiguration.原创 2016-06-30 14:32:34 · 4353 阅读 · 2 评论 -
编译报错+解决方法:错误: 找不到符号
【0】README1)本文主要解决“错误,找不到符号”【1】 console error info1)error : E:\bench-cluster\mybatis_in_action_eclipse\xmpp\src>javac com/communication/qq/ServerPlainTest.javacom\communication\qq\ServerPl原创 2016-07-01 23:13:38 · 34321 阅读 · 0 评论 -
gradle 构建 Smack 报错:Can't find android.jar for 8 API. + steps for building android platform
【0】README1)本文旨在解决 Can't find android.jar for 8 API. Please install corresponding SDK platform package;2)解决方法:在 Smack-master 的子目录下 有一个 version.gradle, 这也是 build.gradle 文件引入的一个 版本文件;allproje原创 2016-07-03 18:32:19 · 1303 阅读 · 0 评论 -
关于 tomcat启动后无法访问的问题(localhost:8080 (or your port specified))
【0】README1)启动 tomcat7, 然后通过 localhost:8080 无法访问,我也是醉了;以下给出了解决方法;【1】解决方法(如何让 Server Locations 和 deploye path 成为可编辑区域)step1)首先要移除 该 server 下部署的 所有项目;(右击该 server, add or remove)step2)右击该原创 2016-07-04 15:17:03 · 946 阅读 · 0 评论 -
MySQL的source命令不加分号和delimiter的使用
【0】README0.1)本文旨在 review source 命令, 这一直是我的痛,为什么一直导入 sql 文件不成功,一直没有写 blog 吧他 记录下来(事实上,也间接证明我就是个小白);0.2)还将intro delimiter 命令【1】source 导入sql 不需要加 分号(分隔符)【2】delimiter的使用problem+solutio原创 2016-05-14 20:19:08 · 2549 阅读 · 0 评论 -
java.lang.ExceptionInInitializerError的原因
【0】README0.1)本文转自 http://blog.csdn.net/fykhlp/article/details/6236316;【1】正文如下 这个错误是说变量初始化出现问题,通常出现在静态变量尤其是单例模式。这种问题往往是初始化顺序不对造成的,下面举个简单的例子。[java] view plain copy转载 2016-04-09 18:30:54 · 1877 阅读 · 1 评论 -
异常java.lang.Thread.dumpStack(Unknown Source)
转自: http://www.blogjava.net/landon/archive/2011/02/27/345265.html昨天在公司写了一段代码,很简单,就是测试Thread的dumpStack方法的使用。 因为Thread的dumpStack方法不是很常用,但它对于如果想看看谁在运行时调用方法还是非常有帮助的。回到正题,看输出结果: java.lang.Exception: Stac转载 2015-12-13 10:17:24 · 4785 阅读 · 0 评论 -
removeAll throws java.lang.UnsupportedOperationException
【1】出现的问题:如果该列表list 不支持 removeAll 方法的话, 就会抛出UnsupportedOperationException 【2】解决方法:List<String> list = new ArrayList(Arrays.asList(new String[]{"C","B","D"}));原创 2015-12-19 09:13:43 · 1638 阅读 · 0 评论 -
javah导出类的头文件抛出异常——java.lang.IllegalArgumentException: Not a valid class name(原因及解决方法)
【0】README0.1) 本文旨在给出 java.lang.IllegalArgumentException 异常的原因 和 处理方法, 该异常和 javah 没有半毛钱关系 ; 0.2) 本文附带地给出了 javah 的作用 和 java 调用本地代码(如 C语言)的相关知识;【1】intro to javah (java 调用本地代码(如C)相关)1)重载本地方法: 如果你重载本地方法, 也原创 2016-01-31 21:13:34 · 11719 阅读 · 0 评论 -
java JNI调用C语言动态链接库(java.lang.UnsatisfiedLinkError: no yourClassName in java.library.path 异常的解决方法)
转自: http://watershitter.iteye.com/blog/477615今天花了至少3个小时跑这个java调c的动态链接库的Hello,native world的程序。 把所有犯的错误和要点总结一下! 1 java 中 c语言函数的声明 public native static void greeting(); //就像是接口声明一样,不过有nat转载 2016-02-01 13:07:57 · 6118 阅读 · 0 评论 -
mysql error 1045 的解决方法
【0】README1)以下是 解决方法的steps:step1)点击 skip 和 cancel 退出 mysql 配置 step2) 重启mysql server config wizard, 然后 remove instance step3) 随后卸载mysql(通过360或 控制面板)step4) 进入 mysql 的安装目录,删除 mysql的安装文件夹; step5) 进入mysql原创 2016-02-02 16:07:39 · 841 阅读 · 0 评论 -
com.mysql.jdbc.NotUpdatable: Result Set not updatable (references no primary keys).(解决方法)
【1】异常详细信息 com.mysql.jdbc.NotUpdatable: Result Set not updatable (references no primary keys). This result set must come from a statement that was created with a result set type of ResultSet.CO原创 2016-02-03 16:51:34 · 3286 阅读 · 0 评论 -
java.rmi.UnmarshalException:errorunmarshalling return; java.lang.ClassNotFoundException的解决方法
1)problem出现 java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException 异常的原因是,在命令行执行 rmiregistry,并没有指定好 绑定时查找的类文件的路径。2)solutio原创 2016-02-21 15:06:01 · 5538 阅读 · 0 评论 -
ToolProvider.getSystemJavaCompiler() return null 的解决方法
【1】利用java 编译器API 编译 普通的java文件1.1)代码如下:package com.corejava.chapter10_2;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.OutputStream;import javax.tools.Jav原创 2016-02-22 16:09:01 · 3279 阅读 · 0 评论 -
stomp 连接错误: Whoops! Lost connection to http://localhost:8080/spring13/stomp 的解决方法
【0】README1)本文旨在给出 stomp 连接错误: Whoops! Lost connection to http://localhost:8080/spring13/stomp 的解决方法;【1】错误 和 解决方法1)error info2)solution: 添加 jackson 的jar 包 到spring 项目中 即可。原创 2016-07-15 11:23:02 · 26589 阅读 · 0 评论