mybatis / spring-boot-starter

MyBatis integration with Spring Boot
Apache License 2.0
4.14k stars 1.79k forks source link

Mapping error for some types ORA-03115 #936

Open matndev opened 10 months ago

matndev commented 10 months ago

Since I upgrade the jdk version to 21 some types are not mapped anymore with default handlers as Boolean, or Date.

 "Cause: java.sql.SQLException: ORA-03115: Unsupported data type or representation was received from remote connection"
### The error may exist in file [C:\ .mapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters

Java version : 21 Spring boot : 3.2.1 Mybatis : 3.0.1 to 3.0.3 (upgrade)

All was working great with java 17 and mybatis 3.0.1.

harawata commented 10 months ago

Hello @matndev ,

To investigate, we need to reproduce the problem first. Please create a demo project that reproduces the exception with minimum set of classes/tables/columns and share it on your GitHub repo. Here are some project templates and examples.