You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2014/03/26 18:02:15 UTC
[jira] [Created] (OAK-1621) NPE on concurrent session usage
Marcel Reutegger created OAK-1621:
-------------------------------------
Summary: NPE on concurrent session usage
Key: OAK-1621
URL: https://issues.apache.org/jira/browse/OAK-1621
Project: Jackrabbit Oak
Issue Type: Bug
Components: jcr
Affects Versions: 0.19
Reporter: Marcel Reutegger
Assignee: Michael Dürig
Fix For: 0.20
While running a test I accidentally shared a session and got the following NPE:
{noformat}
java.lang.NullPointerException
at org.apache.jackrabbit.oak.jcr.session.NodeImpl$5.toString(NodeImpl.java:303)
at java.lang.String.valueOf(String.java:2854)
at java.lang.StringBuilder.append(StringBuilder.java:128)
at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:271)
at org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:113)
at org.apache.jackrabbit.oak.jcr.session.NodeImpl.addNode(NodeImpl.java:257)
{noformat}
The toString() of the addNode operation accesses {{nodeAdded}}, which is only initialized towards the end of the operation.
[~mduerig], can you take care of this? I think you recently did some work in this area.
--
This message was sent by Atlassian JIRA
(v6.2#6252)