今天在将一个map转化成json出现堆栈异常,排查原因如下:出现循环递归( rootMap.put("rootMap", rootMap);),栈内存肯定耗光 代码: /** * 初始化模板需要的数据 每个团队一个key-value key=团队 value = 达成率数组,初始化给前端展示用 * * @param weekreportList * @return Map<String, Object>=Map<team, valueArray> * @thro…
Sqoop Export数据到本地数据库时出现错误,命令如下: sqoop export \ --connect 'jdbc:mysql://202.193.60.117/dataweb?useUnicode=true&characterEncoding=utf-8' \ --username root \ --password-file /user/hadoop/.password \ --table user_info_copy \ --export-dir /user/hadoop/use…
添加spring-context-support的依赖到POM: <!-- spring-context-support --> <!-- https://mvnrepository.com/artifact/org.springframework/spring-context-support --> <dependency> <groupId>org.springframework</groupId> <artifactId>spr…
dubbo 常见错误 1. Caused by: java.lang.reflect.MalformedParameterizedTypeException 启动时报错,原因是dubbo 依赖 spring 2.5.6.SEC03,而我项目中有用spring 3.2.4.RELEASE,所以导致冲突. 在maven中把dubbo中的spring依赖去除就可以了. 如果你们项目中也报这个错,很可能也是因为jar包冲突造成的 1 2 3 4 5 6 7 8 9 10 <dependency>   …
mybatis的if标签之前总是使用是否为空,今天要用到字符串比较的时候遇到了困难,倒腾半天,才在一个论坛上找到解决方法.笔记一下,如下: 转自:https://code.google.com/p/mybatis/issues/detail?id=262 错误描述: <select id="sltTreatment" resultType="com.vitaminmd.sunny.core.bo.Treatment"> select * from tre…
在使用JPA的仓储repository进行查询时,经常用到findAllbyId的方法: repository.findAllbyId() 但如果像下面的代码,当list的size量太大的话,就会报栈溢出的的错误:java.lang.StackOverflowError @RequestMapping("/stackOverFlow") public Integer stackOverFlow() { List<String> ids = new ArrayList<…
Caused by: java.lang.ClassNotFoundException: com/sun/tools/internal/xjc/api/XJC 缺少com/sun/tools/internal/xjc/api/XJC >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 蕃…
1.错误描述 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/smp]] at java.util.concurre…
1.错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 14:19:28 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 using…
1.错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 19:35:50 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 using…