[jboss-user] [JBossCache] - Re: NullPointerException when call the get(..) method, W
liuhang781102
do-not-reply at jboss.com
Wed Feb 27 01:09:11 EST 2008
This is not the first things happened immediatelly after the cache start.
I modified my code ,now I get the fllowing exception stack. It is more clearly.
NullpointerException throws in the wasRemovedInTx method of CacheLoaderInterceptor class.
It seams that the 'entry' is null.
I also paste the function code.
Still need your help!
Exception Stack:
-----------------------------------------------------------
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.primeton.eos.fbframe.fbrole.security.filter.WebSecurityFilter.doFilter(WebSecurityFilter.java:101)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.NullPointerException
at org.jboss.cache.interceptors.CacheLoaderInterceptor.wasRemovedInTx(CacheLoaderInterceptor.java:307)
at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:164)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.InvalidationInterceptor.invoke(InvalidationInterceptor.java:60)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:345)
at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:156)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:138)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5517)
... 44 more
The Excepton Code in jbosscache
-------------------------------------------------------------
private boolean wasRemovedInTx(Fqn fqn)
{
GlobalTransaction t = getInvocationContext().getGlobalTransaction();
if (t == null)
return false;
TransactionEntry entry = txTable.get(t);
Iterator i = entry.getCacheLoaderModifications().iterator(); ( ------------------ row 307----)
while (i.hasNext())
{
JBCMethodCall m = (JBCMethodCall)i.next();
if (m.getMethodId() == MethodDeclarations.removeNodeMethodLocal_id
&& fqn.isChildOrEquals((Fqn)m.getArgs()[1]))
return true;
}
return false;
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132379#4132379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132379
More information about the jboss-user
mailing list