You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2010/01/11 18:40:54 UTC

[jira] Commented: (JCR-2462) IllegalStateException on session#save()

    [ https://issues.apache.org/jira/browse/JCR-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798741#action_12798741 ] 

Michael Dürig commented on JCR-2462:
------------------------------------

Stack trace

java.lang.IllegalStateException: State is already in terminal status REMOVED
	at org.apache.jackrabbit.jcr2spi.state.ItemState.setStatus(ItemState.java:236)
	at org.apache.jackrabbit.jcr2spi.hierarchy.PropertyEntryImpl.complete(PropertyEntryImpl.java:132)
	at org.apache.jackrabbit.jcr2spi.operation.SetPropertyValue.persisted(SetPropertyValue.java:72)
	at org.apache.jackrabbit.jcr2spi.state.ChangeLog.persisted(ChangeLog.java:87)
	at org.apache.jackrabbit.jcr2spi.WorkspaceManager.execute(WorkspaceManager.java:595)
	at org.apache.jackrabbit.jcr2spi.state.SessionItemStateManager.save(SessionItemStateManager.java:139)
	at org.apache.jackrabbit.jcr2spi.ItemImpl.save(ItemImpl.java:246)
	at org.apache.jackrabbit.jcr2spi.SessionImpl.save(SessionImpl.java:328)


> IllegalStateException on session#save()
> ---------------------------------------
>
>                 Key: JCR-2462
>                 URL: https://issues.apache.org/jira/browse/JCR-2462
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr2spi
>    Affects Versions: 2.0-beta5
>            Reporter: Michael Dürig
>
> The following code throws an IllegalStateException:
> Node node = ...
> Session session = node.getSession();
> node.setProperty( "tags", "test1");
> node.setProperty( "tags", "test2");
> node.remove();
> session.save();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.