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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Transaction : Write operations are not allowed in read-only mode Edited

I'm using a TransactionTemplate as described in the first code block here.

Some customers have reported errors coming from such transaction though I was not able to repeat it.

Error is :

org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition. ... at

[confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions: ->[null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #600073409) Showing 10 last transactions at this level out of 20 in total: [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1045429045) [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1380275581) [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #2145306457) [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #134397841) [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1164519608) [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1539868696) [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1980512971) [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #305437232) [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1111260812) [com.atlassian.confluence.internal.index.attachment.DefaultAttachmentStatusManager.getAttachmentStatus]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1762050800)

Is there a workaround for this?

Customer is using Confluence DC 6.15.4.

1 answer

0 votes

Hello @Boris Jockov _draw_io_,

Thank you for raising this question. Could you help us to understand exactly what it is you're trying to do?

If you are developing for Confluence, I would recommend raising your question on the Atlassian Developer Community instead. They would be better equipped to answer your question there.

Regards,

Shannon

Thanks. I've just posted there.

Like Shannon Spaniol likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

463 views 24 9
Join discussion

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