# Error while starting the server

**URL:** <https://discourse.hibernate.org/t/error-while-starting-the-server/4085>\
**Category:** Hibernate ORM\
**Created:** [April 25, 2020, 5:16pm UTC](https://discourse.hibernate.org/t/error-while-starting-the-server/4085 "2020-04-25T17:16:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k.kiran2](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@k.kiran2](https://discourse.hibernate.org/u/k.kiran2)\
**Post date:** [April 25, 2020, 5:16pm UTC](https://discourse.hibernate.org/t/error-while-starting-the-server/4085/1 "2020-04-25T17:16:36Z")

</div>

I am upgrading hibernate version from `5.1.17` to `5.4.11` and mssql-jdbc version to 7.2.2.jre8 . I am connecting to MS sql server

But while starting the server , I am getting below error message

Caused by: java.sql.SQLException: An SQLException was provoked by the following failure: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Long  
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)  
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:77)  
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:74)  
at com.mchange.v2.c3p0.impl.NewPooledConnection.handleThrowable(NewPooledConnection.java:505)  
at com.mchange.v2.c3p0.impl.NewProxyResultSet.getLong(NewProxyResultSet.java:491)  
at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.resultSetStartValueSize(SequenceInformationExtractorLegacyImpl.java:129)  
at org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl.extractMetadata(SequenceInformationExtractorLegacyImpl.java:59)  
at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.initializeSequences(DatabaseInformationImpl.java:65)  
at org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.(DatabaseInformationImpl.java:59)  
at org.hibernate.tool.schema.internal.Helper.buildDatabaseInformation(Helper.java:155)  
… 127 more  
Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Long  
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getLong(SQLServerResultSet.java:2328)  
at com.mchange.v2.c3p0.impl.NewProxyResultSet.getLong(NewProxyResultSet.java:477)  
… 132 more

Can you please help me to resolve this issue?
