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

error on the page - failed to lazily initialize a collection

SherryX
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2012

we just have servers migration for jira/confluence, and we have copied the whole instance and database to the new servers.

confluence started OK but some have the following error:

Error formatting macro: builder-hide: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection blog-posts: null Error formatting macro: builder-hide: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection

there is macro

{blog-posts:content=excerpts}

in the page, anyone can help?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
SherryX
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 7, 2012

I have done the following and it works now:

1.mysql config

[mysqld]
...
default-collation=utf8_bin
character-set-server=utf8
collation-server=utf8_bin
default-character-set=utf8

2.in confluence.cfg.xml, added

&useUnicode=true&characterEncoding=UTF8 within

<property name="hibernate.connection.url">

3. refresh data from production and works OK

Hope this will help others with the same problem.

TAGS
AUG Leaders

Atlassian Community Events