No Dialect mapping for JDBC type: 1899073220 in Wildfly (AttributeConverter and Short)


I use AttributeConverter(

) to convert enum value(

). It run perfect normal when use "Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME)"(

) to initialize the JPA runtime. But when I deploy it into WildFly as a EJB(

), the JPA runtime initialization failed with the following exception:

Caused by: javax.persistence.PersistenceException: [PersistenceUnit: SensorNetwork] Unable to build Hibernate SessionFactory
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(
... 7 more
Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: 1899073220
at org.hibernate.dialect.TypeNames.get(
at org.hibernate.dialect.TypeNames.get(
at org.hibernate.dialect.Dialect.getTypeName(
at org.hibernate.spatial.dialect.mysql.MySQL56SpatialDialect.getTypeName(
at org.hibernate.mapping.Column.getSqlType(
at org.hibernate.tool.schema.internal.AbstractSchemaValidator.validateColumnType(
at org.hibernate.tool.schema.internal.AbstractSchemaValidator.validateTable(
at org.hibernate.tool.schema.internal.GroupedSchemaValidatorImpl.validateTables(
at org.hibernate.tool.schema.internal.AbstractSchemaValidator.performValidation(
at org.hibernate.tool.schema.internal.AbstractSchemaValidator.doValidation(
at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(
at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(
at org.hibernate.internal.SessionFactoryImpl.<init>(

In the Full log of Wildfly:

, i notice the following infomation:

2017-11-22 15:02:25,396 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] (ServerService Thread Pool – 13) Starting fillSimpleValue for connectionState
2017-11-22 15:02:25,396 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] (ServerService Thread Pool – 13) Applying JPA AttributeConverter [org.hibernate.boot.internal.AttributeConverterDescriptorImpl@1e0c7d11] to [com.tekview.transview.sensornetwork.model.Lamppost:connectionState]
2017-11-22 15:02:25,396 DEBUG [org.hibernate.type.descriptor.sql.JdbcTypeJavaClassMappings] (ServerService Thread Pool – 13) JDBC type code mapping not known for class [java.lang.Short]; using custom code [1899073220]
2017-11-22 15:02:25,396 DEBUG [org.hibernate.type.descriptor.converter.AttributeConverterTypeAdapter] (ServerService Thread Pool – 13) Created AttributeConverterTypeAdapter -> converted::com.tekview.transview.sensornetwork.persist.converter.ConnectionStateConverter

When I refactor my code ConnectionStateConverter with the new one:
public class ConnectionStateConverter implements AttributeConverter<ConnectionState, Integer>, everything goes ok.



java.version: 1.8.0_73
java.vm.vendor: Oracle Corporation
java.vm.version: 25.73-b02 Windows 8
os.version: 6.2
wildfly.version: 11.0.0.Final
hibernate.version: 5.1.10.Final
mysql.version: 5.6.25-log 5.1.44


Gregoire Job
December 10, 2018, 3:39 PM

The association of Bytes.class and Types.TINYINT is missed in version 5.2.13 and is necessary in 5.1.10 used by JBoss EAP 7.1. We lost the benefit of secured version of JBoss EAP if we upgrade manually the hibernate version used.

Vlad Mihalcea
December 6, 2018, 9:55 AM

This was fixed in 5.2.13. Tru to upgrade the Hibernate ORM version and it should work.

Gregoire Job
December 6, 2018, 9:43 AM

it seems we have the same probleme in JBoss EAP 7.1 (Hibernate 5.1.10.Final-redhat-1) for Byte that the declaration is missed in the class JdbcTypeJavaClassMappings

Vlad Mihalcea
November 27, 2017, 3:11 PM

Applied PR upstream along with a new test case that replicates the original issue.

Tiger Wang
November 27, 2017, 2:36 AM

Hi Steve, new PR( has been committed.



Steve Ebersole


Tiger Wang

Fix versions