bug
日常bug记录
orange大数据技术探索者
这个作者很懒,什么都没留下…
展开
-
jar包获取resource下配置文件路径
我们在代码里可以这样写但是打成jar包后就不行了,我们有很多方法获取jar包路径或者resource下文件路径但是打印后你会发现路径里面带 !,此时就算你去掉!也不行就算把路径copy到linux,用cat命令也显示文件不合法,猜测打包之后的jar就是无法获取的但是我们可以读取文件,然后写入固定路径,再使用......原创 2022-07-12 17:08:59 · 5013 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/apache/flink/configuration/ReadableConfig
原因:jar冲突core用的是1.7 <!-- flink-core 依赖 --> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-scala_2.12</artifactId> <version>1.7.0</原创 2020-09-01 17:46:51 · 3488 阅读 · 1 评论 -
vcruntime140_1.dll丢失
下载vcruntime140_1.dll文件,win7放到C:\Windows\System32目录下即可原创 2020-07-08 16:46:55 · 590 阅读 · 0 评论 -
Command line is too long. Shorten command line for Application or also for Application default confi
标题问题解决问题Error running 'Application': Command line is too long. Shorten command line for Application or also for Application default configuration.首先,这个报错可能是java的maven项目或者spring项目或者其他语言也可能解决找到 .idea这个文件夹下有一个 workspace.xml在这个PropertiesComponent下面添加一行原创 2020-05-28 11:33:38 · 523 阅读 · 0 评论 -
Class path contains multiple SLF4J bindings和java.lang.NoClassDefFoundError: org/apache/log4j/LogMana
SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/C:/Users/ITO-user/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLo...原创 2019-07-12 14:50:40 · 204 阅读 · 0 评论 -
reCaptcha is incorrect
谷歌和ie等浏览器注册时出现reCaptcha is incorrect原因:google验证国内被墙了的解决:翻墙要挂v,p’'n才能显示验证码.使用国内的浏览器原创 2019-07-09 19:49:31 · 505 阅读 · 0 评论 -
csdn_export_md
1、用Lock实现 public class LockTest { Lock lock = new ReentrantLock(); Condition c1 = lock.newCondition(); int status = 1; public static void main(String[] args) { ...原创 2018-10-08 10:21:10 · 138 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/apache/log4j/Level
遇到了一个bug,之前是是jar包多了导致冲突,但是我看了jar包中只有一个jar包,最后发现把log4j1.2.16版本改为1.2.14版本就好了,附图可能原因:可能原因:之前是用上个办法解决的,但是这次我发现我就一个api的包,最后把log4j1.2.16版本改为1.2.14解决...原创 2018-09-26 11:14:21 · 12452 阅读 · 0 评论 -
java.io.IOException: No FileSystem for scheme: hdfs
今天连接java时出现了这个场景在没有打成jar包,直接在idea工程中,是可以正常运行的,打成jar包后调用jar包报错java.io.IOException: No FileSystem for scheme: hdfs at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2658)...原创 2020-04-29 15:25:15 · 1065 阅读 · 0 评论 -
java.lang.SecurityException: Invalid signature file digest for Manifest main
是因为有一些title导致的,例如下面这个作者信息,还有一些其他的东西在pom.xml的build里添加 <filters> <filter> <artifact>*:*</artifact> ...原创 2020-04-28 19:41:09 · 359 阅读 · 0 评论