{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/1261","repository_url":"https://api.github.com/repos/alibaba/fastjson","labels_url":"https://api.github.com/repos/alibaba/fastjson/issues/1261/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/fastjson/issues/1261/comments","events_url":"https://api.github.com/repos/alibaba/fastjson/issues/1261/events","html_url":"https://github.com/alibaba/fastjson/issues/1261","id":235216867,"number":1261,"title":"com.alibaba.fastjson.JSONException: TODO","user":{"login":"Abelsf","id":26569608,"avatar_url":"https://avatars2.githubusercontent.com/u/26569608?v=4","gravatar_id":"","url":"https://api.github.com/users/Abelsf","html_url":"https://github.com/Abelsf","followers_url":"https://api.github.com/users/Abelsf/followers","following_url":"https://api.github.com/users/Abelsf/following{/other_user}","gists_url":"https://api.github.com/users/Abelsf/gists{/gist_id}","starred_url":"https://api.github.com/users/Abelsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abelsf/subscriptions","organizations_url":"https://api.github.com/users/Abelsf/orgs","repos_url":"https://api.github.com/users/Abelsf/repos","events_url":"https://api.github.com/users/Abelsf/events{/privacy}","received_events_url":"https://api.github.com/users/Abelsf/received_events","type":"User","site_admin":false},"labels":[{"id":374075646,"url":"https://api.github.com/repos/alibaba/fastjson/labels/needs%20info","name":"needs info","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-12T12:30:54Z","updated_at":"2017-11-22T09:29:52Z","closed_at":null,"author_association":"NONE","body":"com.alibaba.fastjson.JSONException: TODO\r\n        at com.alibaba.fastjson.util.TypeUtils.getRawClass(TypeUtils.java:2019)\r\n        at com.alibaba.fastjson.util.TypeUtils.createCollection(TypeUtils.java:1981)\r\n        at com.alibaba.fastjson.serializer.CollectionCodec.deserialze(CollectionCodec.java:117)\r\n        at com.alibaba.fastjson.parser.deserializer.DefaultFieldDeserializer.parseField(DefaultFieldDeserializer.java:71)\r\n        at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.parseField(JavaBeanDeserializer.java:828)\r\n        at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:630)\r\n        at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:212)\r\n        at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:208)\r\n        at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:642)\r\n        at com.alibaba.fastjson.JSON.parseObject(JSON.java:350)\r\n        at com.alibaba.fastjson.JSON.parseObject(JSON.java:254)\r\n        at com.alibaba.fastjson.JSON.parseObject(JSON.java:467)\r\n        at com.djdg.product.api.sdk.service.StockService.operateStockRecord(StockService.java:59)\r\n        at com.djdg.product.api.sdk.Service.operateStockRecord(Service.java:391)\r\n        at com.djdg.pos.client.api.help.ProductHelper.generateWarehouseRecord(ProductHelper.java:78)\r\n        at com.djdg.pos.client.api.help.OrderHelper.generateWarehouseRecord(OrderHelper.java:102)\r\n        at com.djdg.pos.client.api.service.order.product.StoreProductOrderServiceImpl.orderPayedHandle(StoreProductOrderServiceImpl.java:546)\r\n        at com.djdg.pos.client.api.service.order.product.StoreProductOrderServiceImpl.lambda$updateOrder$1(StoreProductOrderServiceImpl.java:298)\r\n        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)\r\n        at java.util.stream.ReferencePipeline$Head.forEachOrdered(ReferencePipeline.java:590)\r\n        at com.djdg.pos.client.api.service.order.product.StoreProductOrderServiceImpl.updateOrder(StoreProductOrderServiceImpl.java:289)\r\n        at com.djdg.pos.client.api.rest.v1.CheckoutApi.updateStoreOrder(CheckoutApi.java:82)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:498)\r\n        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)\r\n        at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)\r\n        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)\r\n        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:237)\r\n        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)\r\n        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)\r\n        at org.jboss.resteasy.plugins.server.netty.RequestDispatcher.service(RequestDispatcher.java:83)\r\n        at org.jboss.resteasy.plugins.server.netty.RequestHandler.messageReceived(RequestHandler.java:56)\r\n        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)\r\n        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)\r\n        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)\r\n        at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)\r\n        at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)\r\n        at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n        at java.lang.Thread.run(Thread.java:745)"},"comment":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/comments/346293223","html_url":"https://github.com/alibaba/fastjson/issues/1261#issuecomment-346293223","issue_url":"https://api.github.com/repos/alibaba/fastjson/issues/1261","id":346293223,"user":{"login":"mustfun","id":8612479,"avatar_url":"https://avatars1.githubusercontent.com/u/8612479?v=4","gravatar_id":"","url":"https://api.github.com/users/mustfun","html_url":"https://github.com/mustfun","followers_url":"https://api.github.com/users/mustfun/followers","following_url":"https://api.github.com/users/mustfun/following{/other_user}","gists_url":"https://api.github.com/users/mustfun/gists{/gist_id}","starred_url":"https://api.github.com/users/mustfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustfun/subscriptions","organizations_url":"https://api.github.com/users/mustfun/orgs","repos_url":"https://api.github.com/users/mustfun/repos","events_url":"https://api.github.com/users/mustfun/events{/privacy}","received_events_url":"https://api.github.com/users/mustfun/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T09:29:52Z","updated_at":"2017-11-22T09:29:52Z","author_association":"NONE","body":"1.2.29版本，数据结构：\r\n```json\r\n{\"data\":2660885,\"count\":0,\"hasError\":false,\"errorCode\":null,\"errorMessage\":null,\"errorTrace\":null,\"status\":0,\"message\":null}\r\n````\r\n不定时不定期出现，使用的下面这段代码进行解析\r\n```java\r\nJSON.parseObject(entityStream, this.fastJsonConfig.getCharset(), type, this.fastJsonConfig.getFeatures())\r\n```\r\n返回的结果是这种数据结构   `Result<Integer>` ，其中Result如下\r\n```java\r\n    private long status;\r\n    private String message;\r\n    private T data;\r\n\r\n    private Integer count;\r\n    private boolean hasError;\r\n    private String errorCode;\r\n    private String errorMessage;\r\n    private String errorTrace;\r\n\r\n```\r\n\r\n感谢！"}}
{"actor":{"display_login":"mustfun"}}