jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-1559) Null Pointer Exception while looking for a DavProperty that hasn't been set
Date Tue, 06 May 2008 08:29:56 GMT

     [ https://issues.apache.org/jira/browse/JCR-1559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

angela resolved JCR-1559.
-------------------------

    Resolution: Fixed

applied patch at rev. 653705  


> Null Pointer Exception while looking for a DavProperty that hasn't been set
> ---------------------------------------------------------------------------
>
>                 Key: JCR-1559
>                 URL: https://issues.apache.org/jira/browse/JCR-1559
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: sandbox
>    Affects Versions: 1.4
>         Environment: Windows Server 2003; Tomcat 6.0.16; MySQL 5.0; JDK 1.6
>            Reporter: Julio Castillo
>            Assignee: angela
>         Attachments: JCR-1559.patch
>
>
> Null pointer exception.
> Exception occurs because the DavPropertySet.map does not contain an expected entry: ItemResourceConstants.JCR_NAME
> Suggested fix: add the constant to the nameSet in RepositoryServiceImpl.java:760
>  nameSet.add(ItemResourceConstants.JCR_NAME);
> I tried that and it works. See stack trace at below.
> Exception in thread "main" java.lang.NullPointerException
>   at org.apache.jackrabbit.spi2dav.URIResolverImpl.buildPropertyId(URIResolverImpl.java:201)
>   at org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.getNodeInfo(RepositoryServiceImpl.java:808)
>   at org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.getItemInfos(RepositoryServiceImpl.java:834)
>   at org.apache.jackrabbit.jcr2spi.state.WorkspaceItemStateFactory.createNodeState(WorkspaceItemStateFactory.java:88)
>   at org.apache.jackrabbit.jcr2spi.state.TransientISFactory.createNodeState(TransientISFactory.java:99)
>   at org.apache.jackrabbit.jcr2spi.hierarchy.NodeEntryImpl.doResolve(NodeEntryImpl.java:959)
>   at org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEntryImpl.resolve(HierarchyEntryImpl.java:95)
>   at org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEntryImpl.getItemState(HierarchyEntryImpl.java:212)
>   at org.apache.jackrabbit.jcr2spi.ItemManagerImpl.getItem(ItemManagerImpl.java:157)
>   at org.apache.jackrabbit.jcr2spi.SessionImpl.getRootNode(SessionImpl.java:225)

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


Mime
View raw message