异常org.hibernate.proxy.HibernateProxy.Forgot to register a type adapter
来源:互联网 发布:蚁群算法流程 编辑:程序博客网 时间:2024/06/09 16:14
今天遇到一个这样的问题,发现是是对象代理的原因,将转换json对象中的代理对象赋为空即可;
<pre name="code" class="java">//根据费用申请ID查询交通费用列表CostTrafficList =costTrafficService.findCostTrafficByApplyId(costApplyID);if(CostTrafficList!=null&&CostTrafficList.size()>0){for(CostTraffic ct:CostTrafficList){ct.setTransportation(null);}} HashMap map=new HashMap(); map.put("CostTrafficList", CostTrafficList); jr = new JsonResult<HashMap>("000","数据加载成功");jr.setObj(map); this.result=gson.toJson(jr);
0 0
- org.hibernate.proxy.HibernateProxy Forgot to register a type adapter?
- 异常org.hibernate.proxy.HibernateProxy.Forgot to register a type adapter
- Hibernate使用Gson时报错:org.hibernate.proxy.HibernateProxy. Forgot to register a type adapter?
- org.hibernate.proxy.HibernateProxy.Forgot to register a type adapter 解决方案
- GSON 报错HibernateProxy. Forgot to register a type adapter?
- GSON 报错HibernateProxy. Forgot to register a type adapter? 的解决办法
- Attempted to serialize java.lang.Class Forgot to register a type adapte
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- org.hibernate.PropertyAccessException:Null value was assigned to a property of primitive type setter
- org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette
- 异常: org.hibernate.LazyInitializationException: could not initialize proxy - no Session
- 异常:org.hibernate.LazyInitializationException: could not initialize proxy - no Session
- IOS 6 自动布局 入门-2
- IPhone之ASINetworkQueue 异步队列
- spring-boot rest 加jsp页面
- linux CFS调度策略源码解析
- 【leetcode 哈希表】Majority Element
- 异常org.hibernate.proxy.HibernateProxy.Forgot to register a type adapter
- 【比特科技】基础的重要性(程序员之路)-----摘自《程序员的自我修养》
- Interfaces in C# (For Beginners) Chetan Kudalkar, 10 May 2007
- 第十七周项目三胖子伤不起
- ViewPager + Fragment实现滑动标签页
- 第十七周项目2-三个数排序(指针法 、引用法)
- C# 开发中WebBrowser控件调整IE兼容性的方法
- ROS 教程之 network:多台计算机之间网络通信(2)
- tilemill 使用略解