287 Star 717 Fork 266

wenshao / fastjson

 / 详情

【急】版本1.2.77的JSON序列化报错 Comparison method violates its general contract

Backlog
Opened this issue  
2021-08-19 13:29
Exception in thread "main" java.lang.IllegalArgumentException: `Comparison method violates its general contract`!
	at java.util.TimSort.mergeHi(TimSort.java:899)
	at java.util.TimSort.mergeAt(TimSort.java:516)
	at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
	at java.util.TimSort.sort(TimSort.java:254)
	at java.util.Arrays.sort(Arrays.java:1438)
	at com.alibaba.fastjson.util.TypeUtils.computeGetters(TypeUtils.java:1880)
	at com.alibaba.fastjson.util.TypeUtils.buildBeanInfo(TypeUtils.java:1820)
	at com.alibaba.fastjson.serializer.SerializeConfig.createJavaBeanSerializer(SerializeConfig.java:113)
	at com.alibaba.fastjson.serializer.SerializeConfig.getObjectWriter(SerializeConfig.java:821)
	at com.alibaba.fastjson.serializer.SerializeConfig.getObjectWriter(SerializeConfig.java:440)
	at com.alibaba.fastjson.serializer.JSONSerializer.getObjectWriter(JSONSerializer.java:448)
	at com.alibaba.fastjson.serializer.JSONSerializer.write(JSONSerializer.java:309)
	at com.alibaba.fastjson.JSON.toJSONString(JSON.java:793)
	at com.alibaba.fastjson.JSON.toJSONString(JSON.java:727)

Comments (14)

老衲也想有个后 set related repository to wenshao/fastjson
老衲也想有个后 changed description
Expand operation logs

经初步排查由于1.2.77版的TypeUtils的1880行增加了类中方法的排序导致,但又不是必然出现。

Arrays.sort(methods, new MethodInheritanceComparator());

public static class MethodInheritanceComparator implements Comparator<Method> {
    public int compare(Method m1, Method m2) {
        Class<?> class1 = m1.getReturnType();
        Class<?> class2 = m2.getReturnType();
        if (class1.equals(class2)) {
            return 0;
        }
        if (class1.isAssignableFrom(class2)) {
            return -1;
        }
        if (class2.isAssignableFrom(class1)) {
            return 1;
        }
        return 0;
    }
}

我是1.2.78版本,和你的问题一样,也不是必然出现。

增加参数:-Djava.util.Arrays.useLegacyMergeSort=true

请问这个问题解决了吗?

我也遇到一样的问题。请问解决了么?

今天使用Dubbo3.0.3序列化org.apache.dubbo.rpc.RpcContext也遇到了这个问题

com.alibaba.fastjson.JSONException: write javaBean error, fastjson version 1.2.76, class org.apache.dubbo.rpc.RpcContext, write javaBean error, fastjson version 1.2.76, class org.apache.dubbo.rpc.RpcInvocation, fieldName : invocation, write javaBean error, fastjson version 1.2.76, class org.apache.dubbo.rpc.model.ModuleModel, fieldName : moduleModel, Comparison method violates its general contract!
	at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:541)
	at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:154)
	at com.alibaba.fastjson.serializer.ASMSerializer_1_RpcContext.writeNormal(Unknown Source)
	at com.alibaba.fastjson.serializer.ASMSerializer_1_RpcContext.write(Unknown Source)
	at com.alibaba.fastjson.serializer.JSONSerializer.write(JSONSerializer.java:312)
	at com.alibaba.fastjson.JSON.toJSONString(JSON.java:703)
	at com.alibaba.fastjson.JSON.toJSONString(JSON.java:692)
	at com.acanx.meta.dubbo3.impl.blog.EchoDubbo3ServiceImpl.echo(EchoDubbo3ServiceImpl.java:57)
	at org.apache.dubbo.common.bytecode.Wrapper2.invokeMethod(Wrapper2.java)
	at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47)
	at org.apache.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:84)
	at org.apache.dubbo.config.invoker.DelegateProviderMetaDataInvoker.invoke(DelegateProviderMetaDataInvoker.java:56)
	at org.apache.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56)
	at org.apache.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:77)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
	at org.apache.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:46)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
	at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:89)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
	at org.apache.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:52)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
	at org.apache.dubbo.auth.filter.ProviderAuthFilter.invoke(ProviderAuthFilter.java:53)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
	at org.apache.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:132)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
	at org.apache.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:195)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
	at org.apache.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
	at org.apache.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:41)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:84)
	at org.apache.dubbo.rpc.protocol.tri.UnaryServerStream$UnaryServerTransportObserver.invoke(UnaryServerStream.java:87)
	at org.apache.dubbo.rpc.protocol.tri.AbstractServerStream.lambda$execute$0(AbstractServerStream.java:197)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: com.alibaba.fastjson.JSONException: write javaBean error, fastjson version 1.2.76, class org.apache.dubbo.rpc.RpcInvocation, fieldName : invocation, write javaBean error, fastjson version 1.2.76, class org.apache.dubbo.rpc.model.ModuleModel, fieldName : moduleModel, Comparison method violates its general contract!
	at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:541)
	at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:154)
	at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:318)
	at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:472)
	... 35 more
Caused by: com.alibaba.fastjson.JSONException: write javaBean error, fastjson version 1.2.76, class org.apache.dubbo.rpc.model.ModuleModel, fieldName : moduleModel, Comparison method violates its general contract!
	at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:541)
	at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:154)
	at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:318)
	at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:472)
	... 38 more
Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.base/java.util.TimSort.mergeHi(TimSort.java:903)
	at java.base/java.util.TimSort.mergeAt(TimSort.java:520)
	at java.base/java.util.TimSort.mergeForceCollapse(TimSort.java:461)
	at java.base/java.util.TimSort.sort(TimSort.java:254)
	at java.base/java.util.Arrays.sort(Arrays.java:1233)
	at com.alibaba.fastjson.util.TypeUtils.computeGetters(TypeUtils.java:1880)
	at com.alibaba.fastjson.util.TypeUtils.buildBeanInfo(TypeUtils.java:1820)
	at com.alibaba.fastjson.serializer.SerializeConfig.createJavaBeanSerializer(SerializeConfig.java:113)
	at com.alibaba.fastjson.serializer.SerializeConfig.getObjectWriter(SerializeConfig.java:821)
	at com.alibaba.fastjson.serializer.SerializeConfig.getObjectWriter(SerializeConfig.java:440)
	at com.alibaba.fastjson.serializer.JSONSerializer.getObjectWriter(JSONSerializer.java:448)
	at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:208)
	at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:472)
	... 41 more
, grpc-status: 2, grpc-status-details-bin: CAISnTNjb20uYWxpYmFiYS5mYXN0anNvbi5KU09ORXhjZXB0aW9uOiB3cml0ZSBqYXZhQmVhbiBlcnJvciwgZmFzdGpzb24gdmVyc2lvbiAxLjIuNzYsIGNsYXNzIG9yZy5hcGFjaGUuZHViYm8ucnBjLlJwY0NvbnRleHQsIHdyaXRlIGphdmFCZWFuIGVycm9yLCBmYXN0anNvbiB2ZXJzaW9uIDEuMi43NiwgY2xhc3Mgb3JnLmFwYWNoZS5kdWJiby5ycGMuUnBjSW52b2NhdGlvbiwgZmllbGROYW1lIDogaW52b2NhdGlvbiwgd3JpdGUgamF2YUJlYW4gZXJyb3IsIGZhc3Rqc29uIHZlcnNpb24gMS4yLjc2LCBjbGFzcyBvcmcuYXBhY2hlLmR1YmJvLnJwYy5tb2RlbC5Nb2R1bGVNb2RlbCwgZmllbGROYW1lIDogbW9kdWxlTW9kZWwsIENvbXBhcmlzb24gbWV0aG9kIHZpb2xhdGVzIGl0cyBnZW5lcmFsIGNvbnRyYWN0IQ0KY29tLmFsaWJhYmEuZmFzdGpzb24uSlNPTkV4Y2VwdGlvbjogd3JpdGUgamF2YUJlYW4gZXJyb3IsIGZhc3Rqc29uIHZlcnNpb24gMS4yLjc2LCBjbGFzcyBvcmcuYXBhY2hlLmR1YmJvLnJwYy5ScGNDb250ZXh0LCB3cml0ZSBqYXZhQmVhbiBlcnJvciwgZmFzdGpzb24gdmVyc2lvbiAxLjIuNzYsIGNsYXNzIG9yZy5hcGFjaGUuZHViYm8ucnBjLlJwY0ludm9jYXRpb24sIGZpZWxkTmFtZSA6IGludm9jYXRpb24sIHdyaXRlIGphdmFCZWFuIGVycm9yLCB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RvSlNPTlN0cmluZyhKU09OLmphdmE6NzAzKQo5CWF0IGNvbS5hbGliYWJhLmZhc3Rqc29uLkpTT04udG9KU09OU3RyaW5nKEpTT04uamF2YTo2OTIpCl0JYXQgY29tLmFjYW54Lm1ldGEuZHViYm8zLmltcGwuYmxvZy5FY2hvRHViYm8zU2VydmljZUltcGwuZWNobyhFY2hvRHViYm8zU2VydmljZUltcGwuamF2YTo1Nyk] padding=0 endStream=true

1.2.78月遇到这个问题了

我也报这个错,怎么处理呢?

换成,1.2.73 ,解决了!

巨坑,还没修复,,可怕,导致根本不能用了,,

这个排序方式有问题,A extends B, C = void, 那么排序就是 A < B。 A = C, B = C => A = B, A和B的比较就冲突了

https://github.com/alibaba/fastjson/releases/tag/1.2.79

这个问题已修复了,可以选择最近版本使用。

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(12)
445103 mayee 1578924062 1869797 vampire001 1578961453 34 cancait 1578913710 596905 zyplayer 1578928715
Java
1
https://git.oschina.net/wenshao/fastjson.git
git@git.oschina.net:wenshao/fastjson.git
wenshao
fastjson
fastjson

Search