[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - JSON serialization issues

jmesnil do-not-reply at jboss.com
Wed May 6 04:04:43 EDT 2009


I've encountered several issues with JSON serialization yesterday:

- int and long are decoded as Integer when using JSONObject.get(key) method
=> ClassCastException when the code is expecting a long and receives a integer

- String[] parameters are deserialized as Object[]
=> All the createConnectionFactory() methods don't work: the ManagementService will not find the matching method since Object[] and String[] are different types (and not assignable).
I've hacked 1 createConnectionFactory method to pass the parameters as Object[] to run the JORAM tests but all the others methods won't work.



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228855#4228855

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228855



More information about the jboss-dev-forums mailing list