Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class java.io.ByteArrayInputStream]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.io.ByteArrayInputStream and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.inspur.alarm.sms.result.Result[“data”]->com.github.pagehelper.PageInfo[“list”]->com.github.pagehelper.Page[0]->java.util.HashMap[“ROWID”]->oracle.sql.ROWID[“stream”])] with root cause
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.io.ByteArrayInputStream and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.inspur.alarm.sms.result.Result[“data”]->com.github.pagehelper.PageInfo[“list”]->com.github.pagehelper.Page[0]->java.util.HashMap[“ROWID”]->oracle.sql.ROWID[“stream”])

在这里插入图片描述
18位的byte数组
在这里插入图片描述

强行转化为String得到的结果如下
ROWID “oracle.sql.ROWID@4d77d9”
在这里插入图片描述

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐