Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting No Hibernate Session bound to thread error in the log when trying to pull the AO table data


Hi All,

I am trying to pull the data from AO table and populating as Json object to send it to cloud using onStartAppMigration method which will trigger during the migration assistant. I am keep on getting the following error. When tried for the solution I found that DAO should have @Transactional annotation on the method/class being called. Even after keeping that I am still getting the error. Please suggest your advice to resolve this problem. I can share the details if needed to check. Thanks in advance.

java.lang.IllegalStateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here


at org.swift.confluence.html.service.AppMigrationServiceImpl.onStartAppMigration(
at org.swift.confluence.html.service.ManageProfileServiceImpl.getProfilesForMigration(
at com.sun.proxy.$ Source)

I am using the following artifacts for the server to cloud migration

AO - 3.2.10

Spring Scanner - 2.2.0

Migration tracker - 1.22

CCMA - 3.1.8


1 answer

I ran into the same issue. Solved it by injecting TransactionTemplate and calling the database getter inside the execute method and returning the result.

Hi @Steven ,

We resolved it by adding a file src/main/resources/META-INF/spring/plugin-context.xml with following content in it.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Atlassian Cloud Migration

⭐️ Star in a Migrations Marketing Video! ⭐️

Hi all! Our Migrations Marketing team is looking for customers who have migrated over 1,000 users to Atlassian Cloud (Jira Software, Confluence, Jira Service Management, or Bitbucket) to be feature...

211 views 0 11
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you