You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "390237 (via GitHub)" <gi...@apache.org> on 2024/04/16 12:39:16 UTC

[I] [Bug] com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10 [dubbo]

390237 opened a new issue, #14092:
URL: https://github.com/apache/dubbo/issues/14092

   ### Pre-check
   
   - [X] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   Dubbo java 3,2.11 jdk1.8
   
   ### Steps to reproduce this issue
   
   When using the default fastjson2, if the interface contains a parameter that is: String[], the error is returned: com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10,
   When the production side is changed to Hessian2, it can be used normally, and fastjson2 can support the String[] parameter?
   
   当使用默认fastjson2,接口如果包含有参数是:String[],返回错误:com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10,
   当将生产端改成Hessian2,就可以正常使用,可以让fastjson2支持String[]参数?
   
   ### What you expected to happen
   
   Can fastjson2 support String[]?
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10 [dubbo]

Posted by "wcy666103 (via GitHub)" <gi...@apache.org>.
wcy666103 commented on issue #14092:
URL: https://github.com/apache/dubbo/issues/14092#issuecomment-2148902235

   hessian2 在高版本的jdk下也有问题https://github.com/apache/dubbo/issues/14259
   不过现在dubbo默认序列化就是hessian2呀 
   
   Please close this pr as completed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10 [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ closed issue #14092: [Bug] com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10
URL: https://github.com/apache/dubbo/issues/14092


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10 [dubbo]

Posted by "390237 (via GitHub)" <gi...@apache.org>.
390237 commented on issue #14092:
URL: https://github.com/apache/dubbo/issues/14092#issuecomment-2081468744

   嗯,已经指定使用hessian2了,主要觉得dubbo在fastjson2还没完全稳定情况下,将默认序列化强制成fastjson2,太冒险了。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10 [dubbo]

Posted by "heliang666s (via GitHub)" <gi...@apache.org>.
heliang666s commented on issue #14092:
URL: https://github.com/apache/dubbo/issues/14092#issuecomment-2066586248

   这也许是fastjson的问题而不是dubbo的问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10 [dubbo]

Posted by "bert82503 (via GitHub)" <gi...@apache.org>.
bert82503 commented on issue #14092:
URL: https://github.com/apache/dubbo/issues/14092#issuecomment-2068540179

   > 这也许是fastjson的问题而不是dubbo的问题
   
   是的,Dubbo3.2使用fastjson2,升级过程中遇到一些fastjson2参数序列化问题,出于风险考虑,最终退回到hessian2。 @390237 
   
   fastjson2还不是很稳定,问题不少,参数序列化的性能收益较低。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] com.alibaba.fastjson2.JSONException: not support autotype : [String, offset 10 [dubbo]

Posted by "bert82503 (via GitHub)" <gi...@apache.org>.
bert82503 commented on issue #14092:
URL: https://github.com/apache/dubbo/issues/14092#issuecomment-2148916516

   > hessian2 在高版本的jdk下也有问题#14259 不过现在dubbo默认序列化就是hessian2呀
   > 
   > Please close this pr as completed
   
   回退,也是不得已而为之,说明用户使用体验不是很好。😄
   #13974 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org