一.问题由来 自己在查看日志时发现日志中打印了一行错误信息为: 组装已经放养的宠物数据异常--->Mapper method 'applets.user.mapper.xxxMapper.xxxmyRank attempted to return null from a method with a primitive return type (int). 意思很好理解,就是在某个mapper文件中的xxxmyRank 这个查询方法返回一个null,可是却需要返回一个int类型的数,因此报错. 二…
select sum(deposit_amount)from tb_commission_ib_day mysql查询时报异常: attempted to return null from a method with a primitive return type 是因为查询时结果是 null, 需要给默认值 select IFNULL(sum(deposit_amount),0) from tb_commission_ib_day…
dotnetcore ef 调用多个数据库时用户命令执行操作报错 1.多个DbContext 时报错: 报错: More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands. 解决办法: dotnet ef migrations ad…
ionic使用iframe时无法显示网页或报错 Uncaught DOMException: Blocked a frame with origin 在config.xml中添加 <access origin="*" /> <allow-navigation href="*" />…
问题描述: 网站中使用了一个js插件,设置innerHTML时,在IE8下报错“未知运行时错误”: <div id=”divContainer”> <a name=”link”> -->报错处 第三方插件内容… </a> </div> 原因: 所设置的innerHTML的对象是一个<a>,是由于<a>的对象包容性的比较低,当浏览器运行这段脚本时,校验出了运行时错误. 解决方法: 将<a>标签替换为<div>…
安装hue时,make apps 编译报错 :"Error: must have python development packages for 2.6 or 2.7. Could not find Python.h. Please install python2.6-devel or python2.7-devel". Stop. 原因:排查最终原因是,python等某些依赖未安装/未安装好.   依赖未安装的原因,是配置了本地yum源. 解决方法: 可能是本地yum源配置的原因,…
安装ROS时sudo rosdep init指令报错: ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list Website may be down. 解决(以下方法依次执行,一直到搞定: (1)之前曾经安装过 ROS 系统的某个版本,按照提示删除已经存在的初始化文件…
在运行vue项目时,执行npm install 报错,导致后续的执行报各种错误,根据报错,尝试了网上的各种办法,最后发现时网络问题下载失败导致,解决办法: 安装cnpm==>npm install cnpm -g –registry=https://registry.npm.taobao.org cnpm与npm区别: cnpm跟npm用法完全一致,只是在执行命令时将npm改为cnpm. 使用cnpm install 解决问题(在使用cnpm前将原先报错的模块删除)…
在使用hibernate时,报错 java.lang.StackOverflowError: null 把当前线程的栈打满了 java.lang.StackOverflowError: null at java.util.AbstractCollection.toString(AbstractCollection.java:454) ~[?:1.8.0_111] at org.hibernate.collection.internal.PersistentBag.toString(Persist…
c# 调用C++的dll报错 Attempted to read or write protected memory:   原因是:c# 传递Null的string值导致的,将Null改为string.empty即可…