从数据库取数字,转为string,报错: java.math.BigDecimal cannot be cast to java.lang.String 错误代码 Integer.parseInt((String)map.get("id")) 解决方法 Object object = map.get("id"); Integer.parseInt(String.valueOf(object ));…
提交push 报错: $ git push origin masterTo https://github.com/Anderson-An/******.git ! [rejected] master -> master (fetch first)error: failed to push some refs to 'https://github.com/Anderson-An/******.git'hint: Updates were rejected because the remote co…
原因1. MySQL 服务宕了 判断是否属于这个原因的方法很简单,执行以下命令,查看mysql的运行时长 $ mysql -uroot -p -e "show global status like 'uptime';" +---------------+-------+ | Variable_name | Value | +---------------+-------+ | Uptime | 68928 | +---------------+-------+ 1 row in set…
从前台接收json封装的list数据,在后台接收时一直报错,com.alibaba.fastjson.JSONObject cannot be cast to xxx, 使用这种方式接收可以接收 @RequestMapping(value = "/insertUser", method = RequestMethod.POST) public ResultT insertUser(@RequestBody Map<String,List<User>> map){…
今天在写一个webservice时一直报错,报Caused by: java.lang.ClassCastException: org.ksoap2.SoapFault cannot be cast to org.ksoap2.serialization.SoapObject,检查app的代码,什么调用都没有问题呀,再看了看webservice端的方法,改成固定的返回值,还是不行,后来才发现忘记写这个了<WebMethod()> _,写上就好了,要不然它就不是个web方法,自然无从调用了. 主…
使用maven搭建nutz时,加入servlet报错:org.nutz.mvc.NutFilter cannot be cast to javax.servlet.Filter 十二月 03, 2015 2:34:36 下午 org.apache.catalina.core.StandardContext filterStart严重: Exception starting filter nutzjava.lang.ClassCastException: org.nutz.mvc.NutFilte…
05-23 02:53:48.416: E/Trace(875): error opening trace file: No such file or directory (2) 05-23 02:53:52.545: E/AndroidRuntime(875): FATAL EXCEPTION: main 05-23 02:53:52.545: E/AndroidRuntime(875): java.lang.RuntimeException: Unable to start activity…
更新ruby时,报错: Failed to update Homebrew, follow instructions here: https://github.com/Homebrew/homebrew/wiki/Common-Issuesand make sure `brew update` works before continuing.Error running 'requirements_osx_brew_update_system ruby-2.4.1',please read /Us…
go语言,golang学习笔记3 用命令下载框架报错问题解决 设置环境变量 下载安装:go get github.com/astaxie/beego 首页 - beego: 简约 & 强大并存的 Go 应用框架https://beego.me/ 1.错误情况一: package github.com/astaxie/beego: cannot download, $GOPATH not set. For more details see: go help gopath 这是因为没有设置环境变量 …
问题现象:使用Druid的数据库连接池,在进行一个查询SQL的时候,抛出了异常: [2017-10-20 01:40:59.269 ERROR com.alibaba.druid.pool.DruidDataSource:2189] abandon connection, owner thread: schedulerDuty_Worker-2, connected at : 1508434843057, open stackTrace at java.lang.Thread.getStackT…