apache / dubbo-python2

Python Dubbo Client
Apache License 2.0
60 stars 18 forks source link

调用java对象时,当参数出现True/False时,Java应用提示类型转换错误 #11

Closed javyxu closed 3 years ago

javyxu commented 3 years ago

您好,可以帮忙解决一下吗? 代码如下:

dataQueryModel = Object("com.xxxx.DataQueryModelConfig")
dataQueryModel["pushdown"] = True
dataQueryModel["limit"] = False
dataQueryModel["params"] = {}
dataQueryModel["sql"] = "xxxx"

dubbo_cli = DubboClient("xxxxxModelService", 
                    version="1.0.0", 
                    dubbo_version="2.0.2",
                    host="xxxxx")
result = dubbo_cli.call('queryDataQueryModel', 
                        [110, True, dataQueryModel], 
                        timeout=3000)

错误信息如下: java.lang.Boolean cannot be cast to com.xxxx.DataQueryModelConfig