[jbosscache-issues] [JBoss JIRA] Updated: (JBCACHE-1587) Avoid NullPointerException in CreateNodeCommand.rollback()

Takayoshi Kimura (JIRA) jira-events at lists.jboss.org
Wed Aug 11 01:21:49 EDT 2010


     [ https://jira.jboss.org/browse/JBCACHE-1587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Takayoshi Kimura updated JBCACHE-1587:
--------------------------------------

                       Summary: Avoid NullPointerException in CreateNodeCommand.rollback()  (was: Avoid NullPointer)
             Affects Version/s: 3.2.2.GA
                   Description: 
Under load the CreateNodeCommand.rollback() could fail with NullPointerException. This exception itself is harmless but it would be better to convert NPE to other exception like CacheException. 

2010-07-26 14:48:21,683 WARN  [org.jboss.cache.interceptors.TxInterceptor] (Incoming-6,192.168.1.23:43834) Rollback had a problem	
java.lang.NullPointerException	
	at org.jboss.cache.DataContainerImpl.removeLegacy(DataContainerImpl.java:651)
	at org.jboss.cache.DataContainerImpl.removeFromDataStructure(DataContainerImpl.java:575)
	at org.jboss.cache.commands.legacy.write.CreateNodeCommand.rollback(CreateNodeCommand.java:100)
	at org.jboss.cache.interceptors.PessimisticLockInterceptor.undoOperations(PessimisticLockInterceptor.java:212)
	at org.jboss.cache.interceptors.PessimisticLockInterceptor.handleRollbackCommand(PessimisticLockInterceptor.java:178)


> Avoid NullPointerException in CreateNodeCommand.rollback()
> ----------------------------------------------------------
>
>                 Key: JBCACHE-1587
>                 URL: https://jira.jboss.org/browse/JBCACHE-1587
>             Project: JBoss Cache
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.2.2.GA
>            Reporter: Takayoshi Kimura
>            Assignee: Manik Surtani
>            Priority: Minor
>
> Under load the CreateNodeCommand.rollback() could fail with NullPointerException. This exception itself is harmless but it would be better to convert NPE to other exception like CacheException. 
> 2010-07-26 14:48:21,683 WARN  [org.jboss.cache.interceptors.TxInterceptor] (Incoming-6,192.168.1.23:43834) Rollback had a problem	
> java.lang.NullPointerException	
> 	at org.jboss.cache.DataContainerImpl.removeLegacy(DataContainerImpl.java:651)
> 	at org.jboss.cache.DataContainerImpl.removeFromDataStructure(DataContainerImpl.java:575)
> 	at org.jboss.cache.commands.legacy.write.CreateNodeCommand.rollback(CreateNodeCommand.java:100)
> 	at org.jboss.cache.interceptors.PessimisticLockInterceptor.undoOperations(PessimisticLockInterceptor.java:212)
> 	at org.jboss.cache.interceptors.PessimisticLockInterceptor.handleRollbackCommand(PessimisticLockInterceptor.java:178)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosscache-issues mailing list