`
san_yun
  • 浏览: 2662698 次
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

dboss BUG

 
阅读更多

1.无法处理对象嵌套:

dboss://searchService/queryItem?param1={'page_size': 10, 'minPrice': 1, 'maxPrice': 100, 'tagSet': ['a', 'b'], 'page': 1}

 

 

2. 无法处理set()

param={'page_size': '10', 'page': '1', 'tagSet': set([u'\u5305\u5305'])}
dboss://searchService/queryItem?param1={'page_size': '10', 'page': '1', 'tagSet': set(['\u5305\u5305'])}
dboss invoke ERROR:500java.lang.RuntimeException: org.codehaus.jackson.JsonParseException: Unexpected character ('s' (code 115)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
 at [Source: java.io.StringReader@58c1c2f1; line: 1, column: 45]

 

 

 

3.无法处理None

 

dboss invoke ERROR:500java.lang.RuntimeException: org.codehaus.jackson.JsonParseException: Unrecognized token 'None': was expecting
 at [Source: java.io.StringReader@32dc51c8; line: 1, column: 37]
None

 

 

4.无法处理非u字符集

 

dboss invoke ERROR:500java.lang.RuntimeException: java.lang.RuntimeException:org.codehaus.jackson.JsonParseException: Unrecognized character escape 'x' (code 120)
 at [Source: java.io.StringReader@6610a08e; line: 1, column: 48]

 

 

测试代码:

from django.core.management import setup_environ
import settings
setup_environ(settings)

from common.coreservice2 import searchService

p = {}
p["tagSet"] = ['包包']
#p["minPrice"] = None
#p["maxPrice"] = None
p["page"] = '1'
p["page_size"] = '10'
page =searchService.queryItem(p)
print page
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics