# Error after upgrade to spring boot 3.4.2

**URL:** <https://discourse.hibernate.org/t/error-after-upgrade-to-spring-boot-3-4-2/11310>\
**Category:** Hibernate ORM\
**Created:** [April 2, 2025, 11:31am UTC](https://discourse.hibernate.org/t/error-after-upgrade-to-spring-boot-3-4-2/11310 "2025-04-02T11:31:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manojpandey\_1686](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/manojpandey_1686/32/3955_2.png) [@Manojpandey\_1686](https://discourse.hibernate.org/u/Manojpandey_1686)\
**Post date:** [April 2, 2025, 11:31am UTC](https://discourse.hibernate.org/t/error-after-upgrade-to-spring-boot-3-4-2/11310/1 "2025-04-02T11:31:59Z")

</div>

I have upgrade to spring boot 3.4.2, now I getting below error while application start up.

* * *

APPLICATION FAILED TO START

* * *

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

```
org.springframework.orm.hibernate5.LocalSessionFactoryBuilder.scanPackages(LocalSessionFactoryBuilder.java:365)

```

The following method did not exist:

```
'void org.springframework.orm.hibernate5.LocalSessionFactoryBuilder.addAttributeConverter(java.lang.Class)'

```

The calling method’s class, org.springframework.orm.hibernate5.LocalSessionFactoryBuilder, was loaded from the following location:

```
jar:file:/C:/Users/xxxxx/.m2/repository/org/springframework/spring-orm/6.2.2/spring-orm-6.2.2.jar!/org/springframework/orm/hibernate5/LocalSessionFactoryBuilder.class

```

The called method’s class, org.springframework.orm.hibernate5.LocalSessionFactoryBuilder, is available from the following locations:

```
jar:file:/C:/Users/xxxxx/.m2/repository/org/springframework/spring-orm/6.2.2/spring-orm-6.2.2.jar!/org/springframework/orm/hibernate5/LocalSessionFactoryBuilder.class

```

The called method’s class hierarchy was loaded from the following locations:

```
org.springframework.orm.hibernate5.LocalSessionFactoryBuilder: file:/C:/Users/xxxx/.m2/repository/org/springframework/spring-orm/6.2.2/spring-orm-6.2.2.jar
org.hibernate.cfg.Configuration: file:/C:/Users/xxxx/.m2/repository/org/hibernate/orm/hibernate-core/6.6.5.Final/hibernate-core-6.6.5.Final.jar

```

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.orm.hibernate5.LocalSessionFactoryBuilder

---

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [April 2, 2025, 11:33am UTC](https://discourse.hibernate.org/t/error-after-upgrade-to-spring-boot-3-4-2/11310/2 "2025-04-02T11:33:49Z")

</div>

No idea what you did there, but it seems you messed up your application dependencies. Either way, this is a Hibernate ORM forum, not a Spring forum, so please ask that questions in Spring forums.
