jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Jara (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-2433) NPE when copying nodes with Workspace.copy()
Date Wed, 28 Apr 2010 14:52:37 GMT

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

Paul Jara commented on JCR-2433:
--------------------------------

Here is the stack trace I'm getting (note that it says line 1835 because I commented out the
old line of code at line 1834 instead of replacing it).

2010-04-27 17:39:51,998 ERROR info.magnolia.module.exchangesimple.ReceiveFilter : 
java.lang.NullPointerException
        at org.apache.jackrabbit.core.BatchedItemOperations.copyNodeState(BatchedItemOperations.java:1835)
        at org.apache.jackrabbit.core.BatchedItemOperations.copy(BatchedItemOperations.java:423)
        at org.apache.jackrabbit.core.WorkspaceImpl.internalCopy(WorkspaceImpl.java:444)
        at org.apache.jackrabbit.core.WorkspaceImpl.clone(WorkspaceImpl.java:646)
        at info.magnolia.module.exchangetransactional.CopyUtil.clone(CopyUtil.java:79)
        at info.magnolia.module.exchangetransactional.XAReceiveFilter.remove(XAReceiveFilter.java:292)
        at info.magnolia.module.exchangetransactional.XAReceiveFilter.receive(XAReceiveFilter.java:87)
        at info.magnolia.module.exchangesimple.ReceiveFilter.doFilter(ReceiveFilter.java:123)
        at info.magnolia.module.exchangetransactional.XAReceiveFilter.doFilter(XAReceiveFilter.java:60)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.security.BaseSecurityFilter.doFilter(BaseSecurityFilter.java:61)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.security.LogoutFilter.doFilter(LogoutFilter.java:89)
        at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:62)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.security.auth.login.LoginFilter.doFilter(LoginFilter.java:80)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.enterprise.registration.RegistrationFilter.doFilter(RegistrationFilter.java:50)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:84)
        at info.magnolia.cms.filters.CosMultipartRequestFilter.doFilter(CosMultipartRequestFilter.java:87)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:90)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.filters.ContextFilter.doFilter(ContextFilter.java:87)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:64)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:96)
        at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:199)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:835)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
        at java.lang.Thread.run(Thread.java:636)

I decided to modify the code to catch the exception and this is the exception that is thrown
later on down the code:

2010-04-27 18:07:17,419 ERROR info.magnolia.module.exchangesimple.ReceiveFilter : 
java.lang.NullPointerException
        at org.apache.jackrabbit.core.BatchedItemOperations.copyPropertyState(BatchedItemOperations.java:1933)
        at org.apache.jackrabbit.core.BatchedItemOperations.copyNodeState(BatchedItemOperations.java:1845)
        at org.apache.jackrabbit.core.BatchedItemOperations.copy(BatchedItemOperations.java:423)
        at org.apache.jackrabbit.core.WorkspaceImpl.internalCopy(WorkspaceImpl.java:444)
        at org.apache.jackrabbit.core.WorkspaceImpl.clone(WorkspaceImpl.java:646)
        at info.magnolia.module.exchangetransactional.CopyUtil.clone(CopyUtil.java:79)
        at info.magnolia.module.exchangetransactional.XAReceiveFilter.remove(XAReceiveFilter.java:292)
       at info.magnolia.module.exchangetransactional.XAReceiveFilter.receive(XAReceiveFilter.java:87)
        at info.magnolia.module.exchangesimple.ReceiveFilter.doFilter(ReceiveFilter.java:123)
        at info.magnolia.module.exchangetransactional.XAReceiveFilter.doFilter(XAReceiveFilter.java:60)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.security.BaseSecurityFilter.doFilter(BaseSecurityFilter.java:61)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.security.LogoutFilter.doFilter(LogoutFilter.java:89)
        at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:62)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.security.auth.login.LoginFilter.doFilter(LoginFilter.java:80)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.enterprise.registration.RegistrationFilter.doFilter(RegistrationFilter.java:50)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)   
    at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:84)
        at info.magnolia.cms.filters.CosMultipartRequestFilter.doFilter(CosMultipartRequestFilter.java:87)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:90)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.filters.ContextFilter.doFilter(ContextFilter.java:87)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
        at info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:64)
        at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:70)
        at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:96)
        at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:199)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:835)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
        at java.lang.Thread.run(Thread.java:636)


> NPE when copying nodes with Workspace.copy()
> --------------------------------------------
>
>                 Key: JCR-2433
>                 URL: https://issues.apache.org/jira/browse/JCR-2433
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 1.6.0
>            Reporter: Sascha Theves
>            Assignee: Jukka Zitting
>            Priority: Blocker
>             Fix For: 1.6.2, 2.1.0
>
>
> I get a NullpointerException when using Workspace.copy():
> java.lang.NullPointerException
> at org.apache.jackrabbit.core.BatchedItemOperations.copyNodeState(BatchedItemOperations.java:1834)
> at org.apache.jackrabbit.core.BatchedItemOperations.copyNodeState(BatchedItemOperations.java:1806)
> at org.apache.jackrabbit.core.BatchedItemOperations.copyNodeState(BatchedItemOperations.java:1806)
> at org.apache.jackrabbit.core.BatchedItemOperations.copy(BatchedItemOperations.java:423)
> at org.apache.jackrabbit.core.WorkspaceImpl.internalCopy(WorkspaceImpl.java:444)
> at org.apache.jackrabbit.core.WorkspaceImpl.copy(WorkspaceImpl.java:666)
> at xxx.MyClass.myMeth(MyClass.java)
> It seems that it happens not all the time. The error occurs since we use Jackrabbit 1.6.0.
We do not get the error with previous versions. It seems that we only get the error when trying
to copy nodes that were created with Jackrabbit 1.4 and copied with Jackrabbit 1.6.

-- 
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