Loading

随笔分类 -  问题总结

记录了在练习和工作中的各种问题
摘要:报错:java.lang.ClassCastException: xxxx cannot be cast to xxxx 问题复现:网站上传license后,后台重新加载登录页面,并调用dubbo服务验证用户信息,由apache版本切换为Alibaba版本后,发现会爆出该问题 问题解决:最初认为是d 阅读全文
posted @ 2023-03-24 15:04 李旭2018 阅读(574) 评论(0) 推荐(0) 编辑
摘要:问题研究: Spring Boot configures Spring MVC with a maximum file of 1Mb per file and a maximum of 10Mb of file data in a single request 文件上传有默认最大限制,即最大可支持1 阅读全文
posted @ 2023-01-31 15:52 李旭2018 阅读(900) 评论(0) 推荐(0) 编辑
摘要:记录一次报错 java.lang.IllegalArgumentException: image == null! jdk版本:openjdk 1.8 问题复现:使用 ImageIO.read(new FileInputStream(imgPath)) 进行图片读取时,遇到 部分.jpg 格式图片上 阅读全文
posted @ 2023-01-16 15:56 李旭2018 阅读(3088) 评论(0) 推荐(0) 编辑
摘要:今天做项目时,写了一个数据库查询后返回的函数 function getpname(PARENT_ID){ var pname=''; $.post("/KEJITEMP/DealWithBT",{ flag:"getpname", ID:PARENT_ID, },function(data){ da 阅读全文
posted @ 2020-09-25 22:12 李旭2018 阅读(1194) 评论(0) 推荐(0) 编辑
摘要:点击运行项目时显示 A Java Exception has occurred. 'Starting Tomcat v9.0 Server at localhost' has oncountered a problem.Server Tomcat v9.0 Server at localhost f 阅读全文
posted @ 2020-07-26 17:59 李旭2018 阅读(561) 评论(0) 推荐(0) 编辑
摘要:使用eclipse导入一些项目是会出现项目前有叉号的问题 总结一下解决方法: 1.修改自己的Build Path,右键项目名: 在Java build path界面将sever及jre将原有的Tomcat及jre remove之后替换成自己版本: 2.替换后如果继续报错 找到项目根目录,修改.set 阅读全文
posted @ 2020-07-26 17:38 李旭2018 阅读(1025) 评论(0) 推荐(0) 编辑
摘要:如果你的Tensorflow程序很简单,比如这样: 那么出现AttributeError: module 'tensorflow' has no attribute 'constant'的原因是: 该文件命名错误,不要用tensorflow这个名字,换个别的就好了 module ‘tensorflo 阅读全文
posted @ 2020-03-26 11:51 李旭2018 阅读(224) 评论(0) 推荐(0) 编辑
摘要:细节错误和异常堆栈 org.pentaho.ui.xul.XulException: org.pentaho.ui.xul.XulException: java.lang.reflect.InvocationTargetException 原因:jdk版本问题,之前安装的jdk为12版本,但是ket 阅读全文
posted @ 2020-03-04 18:46 李旭2018 阅读(1570) 评论(0) 推荐(0) 编辑
摘要:爬取博客园内容时出现前5页内容可获取,后面内容无法获取现象 通过输出爬取异常的页面了解到,博客园对于未登录用户不开放全部阅读权限 解决办法:在head中加入登陆后网页的cookie即可 阅读全文
posted @ 2020-02-21 22:59 李旭2018 阅读(229) 评论(0) 推荐(0) 编辑
摘要:TypeError: object of type 'Response' has no len() r = requests.get(url)r.encoding = "utf-8"soup = BeautifulSoup(r, "html.parser") 产生报错 出现错误的原因是因为这里的wb 阅读全文
posted @ 2020-02-13 21:06 李旭2018 阅读(179) 评论(0) 推荐(0) 编辑
摘要:发现一个问题: bs4 FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library? 解决方法:将"lxml" 阅读全文
posted @ 2020-02-09 21:42 李旭2018 阅读(171) 评论(0) 推荐(0) 编辑
摘要:在阅读一些博客和资料中,发现安装spark与Scala是要严格遵守两者的版本对应关系,如果版本不对应会在之后的使用中出现许多问题。 在安装时,我们可以在spark的官网中查到对应的Scala版本号,如spark2.4.4中对应的版本号为Scala2.11 spark官网:http://spark.a 阅读全文
posted @ 2020-02-03 22:20 李旭2018 阅读(14139) 评论(1) 推荐(2) 编辑
摘要:环境:Ubuntu14.04 Hadoop3.2.0 MySQL5.7 hive2.3.6 安装步骤:安装hive、MySQL并进行配置 安装过程参照:Ubuntu安装hive,并配置mysql作为元数据库 MySQL安装参照:Ubuntu安装MySQL及常用操作 安装过程中出现很多问题: 1.hi 阅读全文
posted @ 2019-11-14 16:45 李旭2018 阅读(1427) 评论(0) 推荐(0) 编辑