[EJB 3.0] - why Ejb cant invoke destroy method?
by mnrz
Hello
I am using JBoss Seam 1.1.6 GA and Apache Tomcat 5.5.17 and Seam is using embedded Ejb in tomcat.
I have one Stateful and one conversational bean in my project.
sometimes the Seam can not invoke the destroy() method and throws an exception. this exception can been seen on tomcat console with following message:
it's wondering me why this happen sometimes not always!
I have declared this method in the local interface and marked them with @Remove and @Destroy in its implementation class.
also, I handled any exception might be happen in destroy method by putting try/catch statement.
I asked this question in Seam's forum and Gavin refer me to this forum. as he states it is a bug in Ejb3 and Ejb throws NPE back to me.
thanks
| java.lang.NullPointerException
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy12.destroy(Unknown Source)
| at com.payvand.search.model.business.SearchResult$$FastClassByCGLIB$$afe27b7a.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39
| )
| at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.ja
| va:38)
| at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java
| :144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.
| java:82)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| at com.payvand.search.model.business.SearchResult$$EnhancerByCGLIB$$6e750b57_2.destroy(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1747)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:222)
| at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
| at org.apache.catalina.session.StandardSession.expire(StandardSession.java:675)
| at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:567)
| at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:655)
| at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:640)
| at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1283)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1568)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.jav
| a:1557)
| at java.lang.Thread.run(Thread.java:595)
|
| WARN Could not destroy component: searchResult[color]
|
| java.lang.NullPointerException
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy12.destroy(Unknown Source)
| at com.payvand.search.model.business.SearchResult$$FastClassByCGLIB$$afe27b7a.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39
| )
| at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.ja
| va:38)
| at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java
| :144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.
| java:82)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| at com.payvand.search.model.business.SearchResult$$EnhancerByCGLIB$$6e750b57_7.destroy(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1747)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:222)
| at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
| at org.apache.catalina.session.StandardSession.expire(StandardSession.java:675)
| at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:567)
| at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:655)
| at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:640)
| at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1283)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1568)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.jav
| a:1557)
| at java.lang.Thread.run(Thread.java:595)
| WARN Could not destroy component: searchResult
| java.lang.NullPointerException
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy12.destroy(Unknown Source)
| at com.payvand.search.model.business.SearchResult$$FastClassByCGLIB$$afe27b7a.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39
| )
| at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.ja
| va:38)
| at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java
| :144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.
| java:82)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| at com.payvand.search.model.business.SearchResult$$EnhancerByCGLIB$$6e750b57.destroy(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1747)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:222)
| at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
| at org.apache.catalina.session.StandardSession.expire(StandardSession.java:675)
| at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:567)
| at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:655)
| at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:640)
| at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1283)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1568)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.jav
| a:1557)
| at java.lang.Thread.run(Thread.java:595)
| WARN Could not destroy component: searchResult[color]
| java.lang.NullPointerException
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy12.destroy(Unknown Source)
| at com.payvand.search.model.business.SearchResult$$FastClassByCGLIB$$afe27b7a.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39
| )
| at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.ja
| va:38)
| at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java
| :144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.
| java:82)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| at com.payvand.search.model.business.SearchResult$$EnhancerByCGLIB$$6e750b57_4.destroy(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1747)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:222)
| at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
| at org.apache.catalina.session.StandardSession.expire(StandardSession.java:675)
| at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:567)
| at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:655)
| at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:640)
| at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1283)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1568)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.jav
| a:1557)
| at java.lang.Thread.run(Thread.java:595)
|
| WARN Could not destroy component: searchResult
|
| java.lang.NullPointerException
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy12.destroy(Unknown Source)
| at com.payvand.search.model.business.SearchResult$$FastClassByCGLIB$$afe27b7a.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39
| )
| at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.ja
| va:38)
| at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java
| :144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.
| java:82)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| at com.payvand.search.model.business.SearchResult$$EnhancerByCGLIB$$6e750b57_3.destroy(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1747)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:222)
| at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
| at org.apache.catalina.session.StandardSession.expire(StandardSession.java:675)
| at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:567)
| at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:655)
| at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:640)
| at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1283)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1568)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.jav
| a:1557)
| at java.lang.Thread.run(Thread.java:595)
| WARN Could not destroy component: searchResult
| java.lang.NullPointerException
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy12.destroy(Unknown Source)
| at com.payvand.search.model.business.SearchResult$$FastClassByCGLIB$$afe27b7a.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39
| )
| at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.ja
| va:38)
| at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java
| :144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.
| java:82)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| at com.payvand.search.model.business.SearchResult$$EnhancerByCGLIB$$6e750b57_5.destroy(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1747)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:222)
| at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
| at org.apache.catalina.session.StandardSession.expire(StandardSession.java:675)
| at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:567)
| at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:655)
| at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:640)
| at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1283)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1568)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.jav
| a:1557)
| at java.lang.Thread.run(Thread.java:595)
|
| WARN Could not destroy component: searchResult
|
| java.lang.NullPointerException
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy12.destroy(Unknown Source)
| at com.payvand.search.model.business.SearchResult$$FastClassByCGLIB$$afe27b7a.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39
| )
| at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.ja
| va:38)
| at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java
| :144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.
| java:82)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| at com.payvand.search.model.business.SearchResult$$EnhancerByCGLIB$$6e750b57_6.destroy(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1747)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:222)
| at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
| at org.apache.catalina.session.StandardSession.expire(StandardSession.java:675)
| at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:567)
| at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:655)
| at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:640)
| at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1283)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1568)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.jav
| a:1557)
| at java.lang.Thread.run(Thread.java:595)
|
| WARN Could not destroy component: indexSearch
|
| java.lang.NullPointerException
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy17.destroy(Unknown Source)
| at com.payvand.search.model.business.IndexSearch$$FastClassByCGLIB$$c01a0ee5.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39
| )
| at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.ja
| va:38)
| at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationIntercept
| or.java:30
| )
| at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java
| :144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.
| java:82)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
| at com.payvand.search.model.business.IndexSearch$$EnhancerByCGLIB$$d99d7842.destroy(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1747)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:230)
| at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
| at org.apache.catalina.session.StandardSession.expire(StandardSession.java:675)
| at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:567)
| at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:655)
| at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:640)
| at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1283)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1568)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(Conta
| inerBase.j
| ava:1577)
| at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.jav
| a:1557)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015595#4015595
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015595
19Â years, 2Â months
[EJB 3.0] - Jpa with Parent/Child Relationship in Same Object
by cfrostrun
Does anybody have an idea where I'm going wrong...
here's my table structure for Comment
id | integer | not null
website_id | integer | not null
event_id | integer | not null
parent_id | integer |
title | character varying(150) |
post_date | timestamp without time zone |
user_id | integer | not null
ip_address | character varying(100) |
comment_name | character varying(100) |
comment_email | character varying(100) |
hyperlink | character varying(200) |
comment | text |
score | integer | not null
active_flag | character(1) |
Parent Id is referencing Comment.Id ..
Here's my JPA Domain Object
@Entity
@Table(name="comments", schema="eventservices")
public class Comment implements IDomainObject{
@Id
@GeneratedValue(generator="SequenceComments")
@SequenceGenerator(name="SequenceComments", sequenceName="eventservices.seq_comments")
private long id = 0;
@Column(name="website_id")
private long websiteId = 0;
@OneToMany(targetEntity=Comment.class, mappedBy="parent", fetch=FetchType.LAZY)
private Collection comments = null;
@ManyToOne
@JoinColumn(name="event_id")
private Event event = null;
@ManyToOne
@JoinColumn(name="parent_id")
private Comment parent = null;
@Column(name="title")
private String title = null;
@Temporal(TemporalType.TIMESTAMP)
@Column(name="post_date")
private Date postDate = null;
@Column(name="user_id")
private long userId = 0;
@Column(name="comment_name")
private String commentName = null;
@Column(name="comment_email")
private String commentEmail = null;
@Column(name="hyperlink")
private String hyperlink = null;
@Column(name="comment")
private String note = null;
@Column(name="score")
private long score = 0;
@Column(name="active_flag")
private String activeFlag = null;
@Column(name="ip_address")
private String ipAddress = null;
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public String getActiveFlag() {
return activeFlag;
}
public void setActiveFlag(String activeFlag) {
this.activeFlag = activeFlag;
}
public Event getEvent() {
return event;
}
public void setEvent(Event event) {
this.event = event;
}
public String getHyperlink() {
return hyperlink;
}
public void setHyperlink(String hyperlink) {
this.hyperlink = hyperlink;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
public Comment getParent() {
return parent;
}
public void setParent(Comment parent) {
this.parent = parent;
}
public Date getPostDate() {
return postDate;
}
public void setPostDate(Date postDate) {
this.postDate = postDate;
}
public String getCommentEmail() {
return commentEmail;
}
public void setCommentEmail(String commentEmail) {
this.commentEmail = commentEmail;
}
public String getCommentName() {
return commentName;
}
public void setCommentName(String commentName) {
this.commentName = commentName;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public long getUserId() {
return userId;
}
public void setUserId(long userId) {
this.userId = userId;
}
public long getWebsiteId() {
return websiteId;
}
public void setWebsiteId(long websiteId) {
this.websiteId = websiteId;
}
public long getScore() {
return score;
}
public void setScore(long score) {
this.score = score;
}
public Collection getComments() {
return comments;
}
public void setComments(Collection comments) {
this.comments = comments;
}
public void addComment(Comment comment){
if(this.comments==null){
this.comments = new java.util.HashSet();
}
this.comments.add(comment);
}
}
Here's the exception in the logs:
22:12:23,367 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
22:12:23,367 ERROR [JDBCExceptionReporter] Batch entry 0 insert into eventservices.comments (website_id, event_id, parent_id, title, post_date, user_id, comment_name, comment_email, hyperlink, comment, score, active_flag, ip_address, id) values ( was aborted. Call getNextException() to see the cause.
22:12:23,367 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 22003
22:12:23,368 ERROR [JDBCExceptionReporter] ERROR: integer out of range
Parent Id will be null if it's a top level comment, and in the junit i'm running this is the case... So I don't understand why this isn't working?
Thanks In Advance,
Chris
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015588#4015588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015588
19Â years, 2Â months
[Clustering/JBoss] - Re: Clustering begginner..please HELP
by sreejava
Hi Davewebb,
Kindly let me know one more thing. Should i do the installation of apache and make these configurations in both the nodes?. to monitor the state of each server
And regarding adding mod_Jk into apache; i think u suggested correctly. Becoz the folder where i put the ".so" was full of such ".so" files. But only difference is that i added was a folder named as mod_jk.so while the existing items were files with .so extension. also they appeared with a typical icon. I hope there will be some tool to make '.so' files like we make jar files. Today i ll try it out.
Once if i configured all these successfully, will i be able to monitor each server nodes from one machine? (i can try this only after successfully setting up the environment. Ofcourse i ll try to find it out, if i could able to setup theses configs successfully)
please dont stop helping me. I assure that, first i ll try to find the solution in my own way. only then i ll ask you.
Thank you
sree
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015577#4015577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015577
19Â years, 2Â months