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:32:54 UTC
[jira] Created: (JCR-2462) IllegalStateException on session#save()
IllegalStateException on session#save()
---------------------------------------
Key: JCR-2462
URL: https://issues.apache.org/jira/browse/JCR-2462
Project: Jackrabbit Content Repository
Issue Type: Bug
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.
[jira] Resolved: (JCR-2462) IllegalStateException on session#save()
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig resolved JCR-2462.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
Assignee: Michael Dürig
Fixed at revision 898267
> 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
> Assignee: Michael Dürig
> Fix For: 2.1.0
>
> Attachments: JCR-2462.patch
>
>
> 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.
[jira] Updated: (JCR-2462) IllegalStateException on session#save()
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated JCR-2462:
-------------------------------
Fix Version/s: (was: 2.1.0)
2.0.0
Merged to the 2.0 branch in revision 898773.
> 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
> Assignee: Michael Dürig
> Fix For: 2.0.0
>
> Attachments: JCR-2462.patch
>
>
> 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.
[jira] Commented: (JCR-2462) IllegalStateException on
session#save()
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (JCR-2462) IllegalStateException on session#save()
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig updated JCR-2462:
-------------------------------
Attachment: JCR-2462.patch
Proposed patch. Includes regression test
> 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
> Attachments: JCR-2462.patch
>
>
> 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.
[jira] Updated: (JCR-2462) IllegalStateException on session#save()
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig updated JCR-2462:
-------------------------------
Component/s: jackrabbit-jcr2spi
> 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.