当前位置:网站首页>The CLOB field cannot be converted when querying Damon database
The CLOB field cannot be converted when querying Damon database
2022-07-26 10:17:00 【shin_ cy】
problem : Table field type is text when , Format conversion error occurred on the data return page
org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class dm.jdbc.util.Buffer]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class dm.jdbc.util.Buffer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.gsoft.foa.common.dto.AjaxResult["data"]->java.util.ArrayList[1]->java.util.HashMap["C_CHANGELOG"]->com.alibaba.druid.proxy.jdbc.NClobProxyImpl["rawNClob"]->dm.jdbc.driver.DmdbNClob["K"]->dm.jdbc.driver.DmdbConnection["gX"]->dm.jdbc.c.a["li"])
Solution
Add parameters to the database connection clobAsString=true, for example jdbc:dm://xxx:5236/xx?clobAsString=true
边栏推荐
猜你喜欢
Data communication foundation - layer 2 switching principle
Server memory failure prediction can actually do this!
Keeping alive to realize MySQL automatic failover
Session based recommendations with recurrent neural networks
protobuf的基本用法
Meeting OA project (III) -- my meeting (meeting seating and submission for approval)
万字详解“用知识图谱驱动企业业绩增长”
数通基础-网络基础知识
面试突击68:为什么 TCP 需要 3 次握手?
Learning about tensorflow (II)
随机推荐
El table implements adding / deleting rows, and a parameter changes accordingly
Data communication foundation - layer 2 switching principle
Cause: couldn‘t make a guess for 解决方法
Nodejs service background execution (forever)
面试第二家公司的面试题及答案(二)
Data communication foundation STP principle
分布式网络通信框架:本地服务怎么发布成RPC服务
Some descriptions of DS V2 push down in spark
Encapsulation of tabbarcontroller
Wechat H5 payment on WAP, for non wechat browsers
MySQL function
汉诺塔II|汉诺塔4柱
What will the new Fuzhou Xiamen railway bring to Fujian coastal areas?
Uniapp error 7 < Map >: marker ID should be a number
Vs2019 configuring opencv
Flask framework beginner-03-template
How to write a million reading article
Interview shock 68: why does TCP need three handshakes?
IE7 set overflow attribute failure solution
Basic usage of protobuf