jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3099) ConcurrentImportTest logs NPE at org.apache.jackrabbit.core.state.ChangeLog.deleted(ChangeLog.java:104)
Date Fri, 07 Oct 2011 11:34:29 GMT

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

Julian Reschke commented on JCR-3099:
-------------------------------------

ConcurrentImportTest hasn't been enabled until JCR-2272 was resolved. So the problem probably
isn't new.

Line 104 is

        if (addedStates.remove(state.getId()) == null) {

so it seems the method can be called with state == null. We probably should add an explicit
check here, or earlier in the call chain.
                
> ConcurrentImportTest logs NPE at org.apache.jackrabbit.core.state.ChangeLog.deleted(ChangeLog.java:104)
> -------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-3099
>                 URL: https://issues.apache.org/jira/browse/JCR-3099
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.3
>            Reporter: angela
>
> i noticed the following NPE being logged during test execution when building jackrabbit-core:
> Running org.apache.jackrabbit.core.TestAll
> Exception in thread "Executor 1" java.lang.NullPointerException
> 	at org.apache.jackrabbit.core.state.ChangeLog.deleted(ChangeLog.java:104)
> 	at org.apache.jackrabbit.core.state.LocalItemStateManager.destroy(LocalItemStateManager.java:348)
> 	at org.apache.jackrabbit.core.state.SessionItemStateManager.destroy(SessionItemStateManager.java:258)
> 	at org.apache.jackrabbit.core.ItemSaveOperation.removeTransientItems(ItemSaveOperation.java:721)
> 	at org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:228)
> 	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
> 	at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
> 	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
> 	at org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveOperation.java:64)
> 	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
> 	at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:360)
> 	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:809)
> 	at org.apache.jackrabbit.core.ConcurrentImportTest$1.execute(ConcurrentImportTest.java:94)
> 	at org.apache.jackrabbit.core.AbstractConcurrencyTest$Executor.run(AbstractConcurrencyTest.java:209)
> 	at java.lang.Thread.run(Thread.java:655)
> i don't remember having seen that error in previous versions (< september 2011)
> can someone please check if there is a problem associated with the error? thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message