那些错误
文章平均质量分 68
悟初境
What I cannot create, I do not understand.
展开
-
com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID
最近遇到个`Kryo`反序列化的错误`com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: xxx`,最后发现是 `Kryo`不同版本导致的,而且只在有 `Map`时才出现兼容性问题,觉得非常有意思,希望可以帮到有需要的人。原创 2022-04-06 18:33:32 · 7989 阅读 · 0 评论 -
无法拉取apollo配置的可能原因
问题描述在微服务下使用携程的Apollo配置中心,在一个之前部署过的apollo的环境里增加新的配置,死活连不上Apollo里配的配置,具体表现是 apollo-cache-dir下没有任何配置文件。apollo配置如下:app.id=${spring.application.name}apollo.meta=http://apollo-host:8080apollo.cacheDir=apollo-cache-dirapollo.cluster=defaultapollo.bootstrap原创 2022-03-31 19:05:56 · 10449 阅读 · 1 评论 -
Flink中使用Kryo序列化器的注意事项
你以为我要说的是在Flink中使用Kryo序列化吗?不是的,还记得上一篇关于Kryo序列化的问题的文章:Kryo序列化:Class Not Found的可能原因.里面介绍了因为在Spark环境下由于类加载器原因导致Kryo反序列化时找不到类的问题。没错,还有续集。这次是在Flink下,也出现了同样的问题。问题复现见如下代码,是Flink提交给YARN的主函数类,里面反序列化一个 StreamParam的参数类。这个类就在提交的jar包里。(KryoSerializer是我们自己封装了下Kryo,里原创 2022-03-25 20:35:14 · 3730 阅读 · 0 评论 -
Jackson序列化org.locationtech.jts.geom.Point
当使用Jackson来序列化 org.locationtech.jts.geom.Point 对象,就会发生递归的栈溢出GeometryFactory gf = new GeometryFactory();Point point = gf.createPoint(new Coordinate(1.2345678, 2.3456789));String geojson = objectMapper.writeValueAsString(point);如下:com.fasterxml.jackson原创 2020-12-13 20:52:46 · 3706 阅读 · 3 评论 -
The goal you specified requires a project to execute but there is no POM in this directory
将一个非maven项目的jar包安装到本地maven仓库,遇到报错:The goal you specified requires a project to execute but there is no POM in this directory当你以为是自己jar包有问题时,才发现是powershell的坑。运行命令如下: mvn install:install-file -Dfile=avatica-core-1.17.0-SNAPSHOT.jar \ -DgroupId=org.apa原创 2020-09-28 08:43:38 · 4715 阅读 · 5 评论 -
clickhouse: Cannot execute replicated DDL query on leader
Cannot execute replicated DDL query on leader在执行分布式删除时报错:10.10.10.16 :) truncate table t_test_local on cluster shard2_replica2_copyTRUNCATE TABLE t_test_local ON CLUSTER shard2_replica2_copy┌─host──────────┬─port─┬─status─┬─error─────────────────────原创 2020-08-24 08:41:17 · 3204 阅读 · 0 评论 -
Error inflating class com.baidu.mapapi.map.MapView
使用百度地图遇到的问题,看起来挺常见的。1.错误信息java.lang.RuntimeException: Unable to start activity ComponentInfo{swjtu.park/swjtu.park.activity.MainActivity}: android.view.InflateException: Binary XML file line #7: Error原创 2016-02-25 16:24:08 · 3817 阅读 · 0 评论 -
Gradle与 gradle plugin 版本不匹配
1.发现错误错误信息 :Error:Gradle 2.8 requires Android Gradle plugin 1.2.0 (or newer) but project is using version 1.1.0. Please use Android Gradle plugin 1.2.0 or newer2.问题分析:此类问题出现情况是在JDK高版本下写的代码然后用JDK低版本运转载 2016-02-22 18:25:50 · 2378 阅读 · 0 评论 -
AndroidStudio与gradle
1.Error:Android SDK is not specified for module Project_Android解决办法2.Gradle sync failed: Unable to start the daemon process. This problem might be caused by incorrect configuration of the da原创 2016-02-16 13:46:51 · 1240 阅读 · 0 评论 -
VC6是怎么了
这样写一段代码:#include #include #define DataType int #define N 10/*插入排序算法*///函数声明void InsertSort(DataType *a,int n);//直接插入排序void Print(DataType *a,int n);int main(){ DataType a[N] = {10,80,2,6,9,原创 2015-12-09 17:17:13 · 649 阅读 · 0 评论