History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SCAFF-176
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Gum Shoes
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Scaffolding Plugin

hidden-data prevents page from being saved: generates UnexpectedRollbackException

Created: 16/Oct/07 10:57 PM   Updated: 12/Mar/08 12:43 AM
Component/s: {hidden-data}
Affects Version/s: 2.6-dr8
Fix Version/s: 2.7-dr9

Time Tracking:
Not Specified

Environment: Confluence 2.6.0, Oracle 10g, Java 1.6, Tomcat 6


 Description  « Hide
Placing a hidden-data macro on a page results in the following when the page saved:
Cause:
org.springframework.transaction.UnexpectedRollbackException: Transaction has been rolled back because it has been marked as rollback-only
 at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469)

Stack Trace: [hide]

org.springframework.transaction.UnexpectedRollbackException: Transaction has been rolled back because it has been marked as rollback-only
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:266)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
	at $Proxy24.getPropertySet(Unknown Source)
	at com.atlassian.confluence.languages.DefaultLocaleManager.getLocale(DefaultLocaleManager.java:27)
	at com.atlassian.confluence.core.ConfluenceActionSupport.getLocale(ConfluenceActionSupport.java:546)
	at com.atlassian.confluence.core.ConfluenceActionSupport.getI18n(ConfluenceActionSupport.java:600)
	at com.atlassian.confluence.core.ConfluenceActionSupport.getText(ConfluenceActionSupport.java:128)
	at com.atlassian.confluence.pages.actions.AbstractEditPageAction.doSaveEditPageBean(AbstractEditPageAction.java:185)
	at com.atlassian.confluence.pages.actions.EditPageAction.doSaveEditPageBean(EditPageAction.java:172)
	at com.atlassian.confluence.pages.actions.EditPageAction.doEdit(EditPageAction.java:244)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ...

Disabling the macro allows the page to be saved.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Salvador Pérez - 23/Oct/07 01:00 PM
I had the same error.

I installed the visibility pluggin. When I tried to use the {show-to} macro and save the page, I got the same error code.

Try this:

  • Disable the pluggin/macro in the pluggin repository
  • Save the page with the hidden-data macro
  • enabe the pluggin/macro in the pluggin repository

It's hard, but it works... meanwhile suport do its work and fix this bug...


David Peterson - 01/Mar/08 12:28 PM
I am unable to replicate this error with Confluence 2.7.1 and the current build of Scaffolding. Please test this again with Confluence 2.7.1 + Scaffolding 2.7-dr9 when it is released and let me know if it's still a problem.

Gum Shoes - 11/Mar/08 06:44 PM
I upgraded to Confluence 2.7 and the latest Scaffolding and it works now, thanks.

David Peterson - 12/Mar/08 12:43 AM
Thanks. Closing the issue report.