
异常解决
yangyanjava
这个作者很懒,什么都没留下…
展开
-
Android Studio Build Error : This version of Android Studio is incompatible with the Gradle Plugin u
On Android 2.0 and above.1 - In Settings -> Build, Execution, Deployment option ->Instant Run2 - Clear Enable instant run to hot swap code3 - Clean projectp/s : It should totally work.翻译 2017-03-03 17:55:53 · 452 阅读 · 0 评论 -
user tag detected on new module - user tags are only supported on legacy modules
build/core/base_rules.mk:102: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.解决办法如下:1、把android系统代码中的每一个Android.mk的 “LOCAL_MODULE_TAGS := user”替换为 “LOCAL...原创 2016-07-01 16:25:46 · 296 阅读 · 0 评论 -
adb push 总是提示Failed to copy "XX.apk" to 'system/app':Read-only file system
一般情况看到这种提示我们会想到需要root权限,然后敲上adb remount,但是当我们执行过adb remount后,提示成功,但执行push命令依旧无法完成push。那么此时我们的做法应该是重新插拔USB数据线,并且对重新打开USB调试即可。...原创 2016-06-06 16:34:58 · 1137 阅读 · 0 评论 -
Ubuntu adb devices : no permissions 解决方法
untun下USB连接Android手机后,使用adb devices 出现如下:List of devices attached???????????? no permissions同时在DDMS中显示设备名也显示????,也无法显示进程名,无法查看log。一、工具介绍Android-sdk-linux_x86/tools下有一堆工具,今天要用的是:Android Debug ...原创 2016-06-06 15:09:15 · 195 阅读 · 0 评论 -
spring的困惑--org.springframework.web.servlet.DispatcherServlet noHandlerFound3
今天试了下spring mvc遇到个很奇怪的事情,按照书上配置访问时总是出现如下警告:org.springframework.web.servlet.DispatcherServlet noHandlerFound警告: No mapping found for HTTP request with URI [/myspring/WEB-INF/jsp/hello.jsp] in Disp...原创 2016-06-03 10:10:35 · 232 阅读 · 0 评论 -
真正解决问题:maven eclipse tomcat java.lang.ClassNotFoundException: org.springframewor
在使用eclipse进行整合springmvc时经常会碰到这样的异常: java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener这时里的意思是说找不到jar包,如果使用的是maven管理jar包,会发现jar包明明已经有了,但还是报错;如果mvn package生成一个war...原创 2016-06-01 10:10:56 · 234 阅读 · 0 评论 -
关于 Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_
关于 Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED from 错误原因当在Android4.4上进行图片的扫描功能开发时一般会使用:sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file:...原创 2016-05-12 10:23:06 · 705 阅读 · 0 评论 -
文章标题 : [Ubuntu12.04]“W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。”的解决办案
我这两天使用Ubuntu12.04更新软件时出现了以下的错误:代码:W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://extras.ubuntu.com precise Release: 下列签名无效: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key转载 2016-04-19 15:53:41 · 4052 阅读 · 2 评论 -
java用ssh的时候,Gson解析json有外键的时候报错
解析json是用的gson,实体类涉及到三张表三个类,之间的关系是:C表的一个字段是外键,为A表的主键C表的另一个字段是外键,为B表的主键转json的时候报如下异常,该怎么做,请具体一点.这是多对多的关系吧?java.lang.UnsupportedOperationException: Attempted to serialize java.lang.Class: o原创 2016-01-13 13:24:36 · 2331 阅读 · 0 评论 -
Setting property 'source' to 'org.eclipse.jst.jee.server:web' did not find a matching property原因?
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。作者:有铭链接:http://www.zhihu.com/question/22298367/answer/30704992来源:知乎默认情况下,server.xml的 Context元素不支持名称为source的属性,就出现该警告双击eclipse下tomcat服务器,在出来的Tomcat ser转载 2015-12-22 16:38:20 · 780 阅读 · 0 评论 -
The tomcat server configuration at /sever/tomcat v7.0 localhost-config is missin
The tomcat server configuration at /sever/tomcat v7.0 localhost-config is missing 错误,求解决方法 删除Tomcat Server,然后在Servers视图里边,再New一个Server.原创 2015-03-19 15:58:51 · 153 阅读 · 0 评论 -
org.hibernate.MappingException: Could not get constructor for org.hibernate.pers
org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleT原创 2015-01-12 17:07:08 · 272 阅读 · 0 评论 -
could not perform addBatch
could not perform addBatch出现的原因:有可能数据库中出现了关键字原创 2015-01-12 16:42:14 · 1785 阅读 · 0 评论 -
java.lang.UnsupportedClassVersionError: Bad version number in .class file
java.lang.UnsupportedClassVersionError: Bad version number in .class file造成这种过错是ni的支撑Tomcat运行的JDK版本与支撑application运行的JDK版本不一致导致的.把它们的JDK版本改成一致步骤如下:1.Window --> Preferences -->Java --> co...原创 2014-12-09 15:50:50 · 104 阅读 · 0 评论 -
oader constraint violation: when resolving interface method "javax.servlet.jsp.J
Servlet.service() for servlet jsp threw exceptionjava.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()L...原创 2014-12-08 10:45:12 · 492 阅读 · 0 评论 -
Uncaught TypeError: Cannot set property 'onclick' of null
<html> <head> <meta http...原创 2014-12-03 15:02:33 · 340 阅读 · 0 评论 -
failed to load the jni shared library
原因1:给定目录下jvm.dll不存在。对策:(1)重新安装jre或者jdk并配置好环境变量。(2)copy一个jvm.dll放在该目录下。原因2:eclipse的版本与jre或者jdk版本不一致对策:要么两者都安装64位的,要么都安装32位的,不能一个是32位一个是64位。原因2的概率更大一些,原因1不太可能发生...原创 2014-12-02 13:59:13 · 127 阅读 · 0 评论 -
spring3 页面form标签 报错 Neither BindingResult nor plain target object for bean name
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name "company" available as request attribute今天在学spring mvc的时候,想做一个表单填写公司信息,然后添加到数据库中,但是spring标签一直报错,弄了很久,一直无解。后...原创 2014-12-02 11:20:41 · 763 阅读 · 0 评论 -
nginx502
tomcat关不了,提示地址被占,解决方案1.ps -ef|grep javakill -9 9046kill -9 9355ps -ef|grep java原创 2014-11-01 13:45:37 · 132 阅读 · 0 评论 -
TOMCAT异常 Socket bind failed: [730048]
此异常为端口被占用,原因:1.可能TOMCAT已启动.2.其他线程使用此端口. 如果端口号定位80,先启动酷狗音乐的时候,酷狗会先占,如果先启动myeclipse就可以了。也不用改端口。...原创 2014-06-20 09:23:22 · 136 阅读 · 0 评论