-
1. Re: pojoCache.get method gives NullPointerException
pmuir Mar 25, 2008 11:10 AM (in response to thiagu.m)Post the stack trace.
-
2. Re: pojoCache.get method gives NullPointerException
thiagu.m Mar 25, 2008 3:01 PM (in response to thiagu.m)i try to inject the org.jboss.cache.aop.PojoCache class in my session bean. Actually this class extend the get method from its super class org.jboss.cache.TreeCache
if i try to use pojoCache instance anywhere in my session bean class,
I can only access the parameters of that class, I cant access the method. If try to access the method it gives syntax error like this.“The type org.jboss.system.ServiceMBeanSupport cannot be resolved. It is indirectly referenced from required .class files”
If try to build the project the search session bean instance should be null,
How to fix this error,By
Thiagu.m -
3. Re: pojoCache.get method gives NullPointerException
thiagu.m Mar 25, 2008 3:40 PM (in response to thiagu.m)Here is the requested stack trace for this issue.
javax.el.PropertyNotFoundException: Target Unreachable, identifier 'productsearch' resolved to null at org.jboss.el.parser.AstValue.getTarget(AstValue.java:38) at org.jboss.el.parser.AstValue.invoke(AstValue.java:95) at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:173) at org.jboss.seam.navigation.Pages.callAction(Pages.java:636) at org.jboss.seam.navigation.Pages.preRender(Pages.java:289) at org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:549) at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:460) at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:144) at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) at
The problem I have is that I am trying not to execute the query if it is already in the cache,
but i am not clear how to check that condition ,
i try with above code , it give the mentioned issue.
please help me how to do that.By
Thiagu.m -
4. Re: pojoCache.get method gives NullPointerException
pmuir Mar 28, 2008 1:43 PM (in response to thiagu.m)The WHOLE stack trace!
What application server?