遇见的异常
风少年~
这个作者很懒,什么都没留下…
展开
-
【bug修复】java: Internal error in the mapping processor: java.lang.NullPointerException
java: Internal error in the mapping processor: java.lang.NullPointerException原创 2021-12-19 11:20:07 · 668 阅读 · 0 评论 -
xxljob 任务没有触发
参考:https://www.yht7.com/news/14410原因:时区不对解决方案:启动命令添加-Duser.timezone=GMT+08原创 2021-06-30 15:48:19 · 2429 阅读 · 0 评论 -
@profileActive@ 不生效
application.propertiesapplication-dev.propertiesapplication-pro.propertiesapplication-test.propertiesspring.profiles.active=@profileActive@@profileActive@未起作用---------解决方案:<plugin> <groupId>org.springframework.boot</g..原创 2021-04-23 14:09:11 · 2030 阅读 · 1 评论 -
mac idea 程序包com.sun.javadoc不存在
问题: 程序包com.sun.javadoc不存在解决:<dependency> <groupId>jdk.tools</groupId> <artifactId>jdk.tools</artifactId> <version>1.7</version> <scope>system</scope> <systemPath>/Library/Ja...原创 2021-01-12 17:22:19 · 2615 阅读 · 1 评论 -
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd6 in position 19: invalid continuation byte
解決方案:修改字符集,从 utf-8改成gbk 。import pandas as pddf = pd.read_csv(filepath_or_buffer='E:\\tmp\\2\\result.csv',encoding='utf-8',index_col=0,header=2)print(df)問題如下:Traceback (most recent call last): File "E:/workspace/nlp_workspace/nlpdata/tmp/zhiji..原创 2020-08-24 14:20:07 · 670 阅读 · 0 评论 -
spring-boot-tools-2.1.6.RELEASE.pom. Return code is: 501, ReasonPhrase: HTTP
修改 maven setting ,/usr/local/maven3/conf/settings.xml <mirror> <id>repo1</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> ...原创 2020-07-27 16:45:52 · 272 阅读 · 0 评论 -
python TabError: inconsistent use of tabs and spaces in indentation
问题: print(2) ^ TabError: inconsistent use of tabs and spaces in indentation原因: 缩进不统一了,把编译器干蒙了。都统一用空格就好了原创 2020-07-22 15:40:18 · 182 阅读 · 0 评论 -
AttributeError: ‘RefVariable‘ object has no attribute ‘_id‘
添加tf.enable_eager_execution()原创 2020-07-20 14:31:07 · 744 阅读 · 0 评论 -
scala java 混编 Error:(100, 28) value setId is not a member of com.nlp.entity.RepaySortTaggingE
Error:(100, 28) value setId is not a member of com.geo.nlp.entity.RepaySortTaggingEntity repaySortTaggingEntity.setId(curDateStr + "_" + tongNum)问题描述: scala 下单独运行没有什么问题,然后当与java混编调用时就发生的问题。原因: java 实体类中使用了 lombok 中的 @Data 标签。改成手动...原创 2020-06-30 10:23:20 · 365 阅读 · 0 评论 -
ModuleNotFoundError: No module named nltk.corpus
你自己的文件夹名称(nltk)不能和人家包名(nltk)相同,呵……原创 2020-06-03 10:53:53 · 1062 阅读 · 0 评论 -
java.lang.UnsatisfiedLinkError: /tmp/snappy-1.1.2-libsnappyjava
给 tmp 盘加个执行执行权限即可:sudo mount /tmp -o remount,exec如果不想给 tmp 执行权限,那么就自己改配置吧。原创 2020-05-06 14:35:17 · 742 阅读 · 0 评论 -
flume java.lang.IllegalArgumentException: Timestamp must be positive
报错:java.lang.IllegalArgumentException: Timestamp must be positive at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88) at org.apache.flume.tools.TimestampRou...原创 2020-03-02 14:57:29 · 722 阅读 · 0 评论 -
You may be missing the 'flink-hadoop-compatibility' dependency.
The program finished with the following exception:org.apache.flink.client.program.ProgramInvocationException: The main method caused an error. at org.apache.flink.client.program.PackagedPro...原创 2019-05-28 17:52:24 · 684 阅读 · 0 评论 -
Exception in thread "main" java.io.IOException: Trying to load more than 32 hfiles to one family of
遇见问题: 命令:hbase org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles /user/yz/zhaochao/duotou200/ neibudt_200_cols_hfile20190409_1 报错:Exception in thread "main" java.io.IOExcepti...原创 2019-04-10 14:24:02 · 778 阅读 · 0 评论 -
爬虫之云南电信抓不到详单问题
遇见问题:爬虫之云南电信抓不到详单,百思不得其解。问题原因:在验证前后各访问了一次http://yn.189.cn/service/jt/bill/actionjt/ifr_bill_detailslist_new.jsp,然后两次获得的页面数据一致,但是参数不同。验证前:验证后:改过之后就好了,此刻 好心塞。。。原创 2017-07-14 10:31:59 · 785 阅读 · 2 评论 -
java.net.SocketException: Socket closed
遇见问题:在使用HttpClient4.5写爬虫时,遇见如下异常:java.net.SocketException: Socket closed at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_11] at java.net.SocketInputStream.read原创 2017-07-05 18:10:57 · 13685 阅读 · 0 评论 -
Certificates does not conform to algorithm constraints
遇见问题 在爬取北京移动网厅时,遇见问题:SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]javax.net.ssl.SSLH原创 2017-08-01 20:28:35 · 1299 阅读 · 0 评论 -
java switch 坑区
文艺青年写代码往往要求有艺术感,那么能用switch地方肯定是不能再使用if……else……了,那么看看我遇见的问题:预想:当flag是true并aa判定成功就返回相应的数字,如果flag是false那么就走默认值55。public int testSwitch(){ boolean flag =false ; String aa= "33" ; switc原创 2017-08-15 09:58:56 · 870 阅读 · 0 评论 -
2017-09-21 14:45:00.022 ERROR [http-nio-8091-exec-8](ErrorPageFilter.java:209) - Cannot forward to e
原因; 浏览器不等的响应关闭了。------------------- 华丽的分割线 ---------------------2017-09-21 14:45:00.022 ERROR [http-nio-8091-exec-8](ErrorPageFilter.java:209) - Cannot forward to error page f原创 2017-09-21 15:05:25 · 7109 阅读 · 0 评论 -
log4j2 个性化日志名
目的: 利用log4j2进行请求中的手机号码的收集,并将收集到的日志文件存放在共享磁盘里。问题: 由于多台服务器写日志,那么就需要给每台服务器打印的日志文件加个前缀名,以免冲突。解决方案: 参考:http://logging.apache.org/log4j/2.0/manual/lookups.html#SystemPropertiesLoo原创 2017-10-27 14:43:09 · 1100 阅读 · 2 评论 -
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin
问题: 每个人安装hadoop时,都可能会遇见这个问题“WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable“,然后转手就去百度。也不知道网上怎么传的,都说是版本问题,各种编译就上来了原创 2017-11-07 11:20:50 · 591 阅读 · 0 评论 -
kafka插入失败
org.springframework.kafka.core.KafkaProducerException: Failed to send; nested exception is org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for zhaochaotest-0: 30031 ms has passed...原创 2018-11-07 14:19:01 · 3428 阅读 · 0 评论 -
spark "main" java.lang.ArrayIndexOutOfBoundsException: 10582
升级 你的 paranamer 到2.8 ,这是由于你的jdk版本1.8导致 <!-- https://mvnrepository.com/artifact/com.thoughtworks.paranamer/paranamer --><dependency> <groupId>com.thoughtworks.paranamer</gr...转载 2019-01-14 14:34:13 · 3165 阅读 · 8 评论 -
hadoop MultipleOutputs 输出丢数据问题
问题: 需求是MapReduce一个文件输入后,转化成三个输出文件。 结果总是丢文件,又是输出三个,有时输出四个,很鸡鸡难受。 解决方案:文档要看全,兄弟...原创 2019-01-28 16:55:02 · 483 阅读 · 0 评论 -
Httpclient4.5写爬虫之发送云南电信短信验证码失败问题
遇见问题: 在开发爬虫过程中,遇见在发送云南电信短信验证码时,返回的报文中只有而无相应的xml情况。绞尽脑汁没想明白,通用的代码怎么到这里行不通了呢。在怀疑完人生后,还是要冷静下来仔细分析的。绕地球走了一圈的弯路,最后搞定,简直想吐血。解决方案:在HttpPost里添加Referer即可。原 因:在开发web程序的时候,有时我们需要 得到用户是从什么页面原创 2017-07-11 15:58:00 · 888 阅读 · 0 评论