[JBoss Seam] - Seam 1.1.0GA: [org.jboss.ejb3.cache.simple.StatefulSessionFi
by rhardy5014
Hi,
I am using Seam 1.1.0GA with an Apache MyFaces web application in JBOSS 4.0.4.GA.
My web application refers to several Stateful Session Beans (linked via Seam). If I wait until these session beans are passivated, and then perform an action on my web page that requires one of those beans, I get the error shown in the stack trace below.
It seems to me (but I am no expert) that the cause of the problem is the message:
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.interceptors.RemoveInterceptor] Stateful component was removed: folderTreeBacker
which seems to be removing a session bean that was previously passivated. I don't believe that this removal should be happening at this point in time.
Can anyone shed any light on why this bean should have been removed, and how I can stop this problem from occurring?
2007-01-04 14:58:56,295 DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Attempting to activate; id=5c4o6k2f-arsiwt-ewjaj62k-1-ewjajnik-f
2007-01-04 14:58:56,295 DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Reading session state from: C:\Richard\JBOSS\jboss-4.0.4.GA\server\NPIWebClient\tmp\sessions\MulticomManagerBean-ewjajde0-6\5c4o6k2f-arsiwt-ewjaj62k-1-ewjajnik-f.ser
2007-01-04 14:58:56,310 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1410a85, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@ef859d{ url=null ,addedOrder=0}
2007-01-04 14:58:56,310 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1410a85, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@12d467f{ url=null ,addedOrder=0}
2007-01-04 14:58:56,310 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1410a85, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@7c6987{ url=null ,addedOrder=0}
2007-01-04 14:58:56,310 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@1410a85, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3c4ea4{ url=null ,addedOrder=0}
2007-01-04 14:58:56,326 DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Removing passivated state file: C:\Richard\JBOSS\jboss-4.0.4.GA\server\NPIWebClient\tmp\sessions\MulticomManagerBean-ewjajde0-6\5c4o6k2f-arsiwt-ewjaj62k-1-ewjajnik-f.ser
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.multicomManager
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.multicomManager
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.interceptors.RemoveInterceptor] Stateful component was removed: multicomManager
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.folderTreeBacker
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.folderTreeBacker
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.interceptors.RemoveInterceptor] Stateful component was removed: folderTreeBacker
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.exceptions
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.exceptions
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.exceptions
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.exceptions
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.exceptions
2007-01-04 14:58:56,357 INFO [org.jboss.seam.core.Exceptions] no exceptions.xml file found
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.exceptions
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.outermostExceptionInterceptor
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.outermostExceptionInterceptor
2007-01-04 14:58:56,357 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.afterPhase
2007-01-04 14:58:56,357 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/NpiWeb-war].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
javax.faces.el.EvaluationException: Exception while invoking expression #{folderTreeBacker.processFolderNameClicked}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
at org.ajax4jsf.framework.ajax.AjaxActionComponent.broadcast(AjaxActionComponent.java:79)
at org.apache.myfaces.custom.tree2.UITreeData.broadcast(UITreeData.java:139)
at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274)
at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:250)
at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:358)
at org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.ejb.EJBException: java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Object reference 139 was not found
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
at $Proxy90.processFolderNameClicked(Unknown Source)
at de.dpa.npi.webclient.backing.folders.FolderTreeLocal$$FastClassByCGLIB$$8cfc0ee7.invoke()
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.GeneratedMethodAccessor101.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.java:38)
at sun.reflect.GeneratedMethodAccessor100.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(SynchronizationInterceptor.java:30)
at sun.reflect.GeneratedMethodAccessor99.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 org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$94e9ee60.processFolderNameClicked()
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.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
... 39 more
Caused by: java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Object reference 139 was not found
at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:365)
at org.jboss.ejb3.stateful.StatefulBeanContext.getInstance(StatefulBeanContext.java:309)
at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:75)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
at $Proxy85.load(Unknown Source)
at de.dpa.npi.ejb.session.MulticomManagerLocal$$FastClassByCGLIB$$a36e5fdc.invoke()
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.GeneratedMethodAccessor101.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.java:38)
at sun.reflect.GeneratedMethodAccessor100.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(SynchronizationInterceptor.java:30)
at sun.reflect.GeneratedMethodAccessor99.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 org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$f5568e07.load()
at de.dpa.npi.webclient.backing.folders.FolderTreeBean.processFolderNameClicked(FolderTreeBean.java:214)
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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
at sun.reflect.GeneratedMethodAccessor105.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.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
at sun.reflect.GeneratedMethodAccessor104.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.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
at sun.reflect.GeneratedMethodAccessor103.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.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
at sun.reflect.GeneratedMethodAccessor105.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.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
at sun.reflect.GeneratedMethodAccessor104.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.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
at sun.reflect.GeneratedMethodAccessor103.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.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
... 91 more
Caused by: org.jboss.serial.exception.SerializationException: Object reference 139 was not found
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:117)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
at org.jboss.serial.persister.ProxyPersister.readData(ProxyPersister.java:66)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
at org.jboss.serial.persister.ArrayPersister.readObjectArray(ArrayPersister.java:196)
at org.jboss.serial.persister.ArrayPersister.readData(ArrayPersister.java:172)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
at org.jboss.serial.io.JBossObjectInputStream.readObjectOverride(JBossObjectInputStream.java:165)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
at org.jboss.serial.io.MarshalledObject.get(MarshalledObject.java:68)
at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:342)
... 213 more
Thanks,
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997941#3997941
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997941
19 years, 3 months
[JBoss Seam] - Method Interceptor does not work
by vimalm
Hi
I am having troubles getting my method level annotation back by an interceptor to work.
Here is my annotation class:
| @Target({TYPE, METHOD})
| @Retention(RUNTIME)
| @Documented
| @Interceptors(AuthorizationInterceptor.class)
| public @interface Authorized {
| Permission[] value();
| }
|
Here is my interceptor class
| public class AuthorizationInterceptor
| {
| @AroundInvoke
| public Object checkAuthorization(InvocationContext invocation) throws Exception
| {
| System.out.println("I am inside Authorization Interceptor");
| return invocation.proceed();
| }
| }
|
I have a stateful session bean in default scope (Conversation) which has this Authorized Annotation on a method exposed in the local interface. Code is as follows:
| public class ModelUploadAction implements ModelUpload {
| @Authorized({(a)Permission(name=SecurityConstants.PERM_EDIT_MODELS)})
| @TransactionAttribute(REQUIRED)
| public String uploadFile() {
| // Do some stuff
| }
| }
|
I expect the echo line "I am inside the Authorization interceptor" to print, whenever uploadFile method is invoked as a page action, which is not happening.
I am using Seam 1.0.1GA along with Jboss4.0.4GA
However, if I move the @Authorized annotation to the class level, it works and I can see the echo line on the console.
We are using this mechanism to implement some custom permissions which vary depending on the method which is invoked on the session bean. So I can't have that annotation at the class level. On the flip side we have a couple of scenarios where this annotation needs to be on the class level. That is why the annotation is defined to have the capability to present both on the class level as well as the method level.
I have also tried to include
@Around( { BijectionInterceptor.class, ValidationInterceptor.class,
ConversationInterceptor.class, BusinessProcessInterceptor.class })
@Within(RemoveInterceptor.class)
in my inteceptor class to see if that works. But that does not work either.
Could somebody suggest where I am going wrong?
Your help is appreciated.
Thanks
Vimal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997940#3997940
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997940
19 years, 3 months
[Beginners Corner] - Re: jmx-console
by cronydude
Thanks for your response Peter.
The environment I specified in my earlier post is at my work i.e., in client's network.
Once I start the 'all' server, I don't even see the port 8080 open. So I am guessing there might be some issue that is stoping the jmx application from deploying properly.
I noticed the following two issues when I started 'all' server:
================================================
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.cache:service=TomcatClusteringCache
State: FAILED
Reason: ChannelException: unable to setup the protocol stack
I Depend On:
jboss:service=Naming
jboss:service=TransactionManager
jboss.aop:service=AspectDeployer
Depends On Me:
jboss.web:service=WebServer
ObjectName: jboss:service=DefaultPartition
State: FAILED
Reason: ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: The socket name is not available on this system.
I Depend On:
jboss:service=Naming
Depends On Me:
jboss:service=HASessionState
jboss:service=HAJNDI
jboss.cache:service=InvalidationBridge,type=JavaGroups
jboss.ha:service=HASingletonDeployer
jboss:partition=DefaultPartition,service=FarmMember
================================================
Does anyone see a hint here?
Thanks,
Crony
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997939#3997939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997939
19 years, 3 months
[JBoss Seam] - Seam Remoting problem
by waheed.murad
I am using seam remoting for AJAX but when i call my ajax method from client it given error....
Seam.Remoting.displayLoadingMessage = function() {};
Seam.Remoting.hideLoadingMessage = function() {};
// Get the "privilege" Seam component
var RolePrivilegesAction = Seam.Component.getInstance("RolePrivilegesAction");
function ajaxTest(){
var test='AJAX CALL';
RolePrivilegesAction.getPrivilegesList(test,getPrivilegesListCallback);
}
function getPrivilegesListCallback(result){
alert('called ajax');
}
-------- STACK -------------
20:18:09,379 ERROR [ExecutionHandler] Error during remote request
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.remoting.Call.execute(Call.java:145)
at org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:86)
at org.jboss.seam.remoting.SeamRemotingServlet.doPost(SeamRemotingServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.ejb.EJBException: java.lang.IllegalStateException: No page context active
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
at $Proxy334.getPrivilegesList(Unknown Source)
at org.com.eventreg.ERegRolePrivilegesLocal$$FastClassByCGLIB$$e1169427.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:47)
at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:67)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
at org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:168)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:141)
at org.jboss.seam.intercept.RootInterceptor.aroundInvoke(RootInterceptor.java:128)
at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:60)
at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:47)
at org.com.eventreg.ERegRolePrivilegesLocal$$EnhancerByCGLIB$$6ef2fb39.getPrivilegesList()
... 27 more
Caused by: java.lang.IllegalStateException: No page context active
at org.jboss.seam.ScopeType.getContext(ScopeType.java:105)
at org.jboss.seam.Component.injectDataModelSelection(Component.java:1069)
at org.jboss.seam.Component.injectDataModelSelection(Component.java:1061)
at org.jboss.seam.Component.inject(Component.java:990)
at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalInterceptor.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.EventInterceptor.aroundInvoke(EventInterceptor.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.interceptors.AsynchronousInterceptor.invokeAsynchronouslyIfNecessary(AsynchronousInterceptor.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:168)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:141)
at org.jboss.seam.intercept.RootInterceptor.aroundInvoke(RootInterceptor.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
... 61 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997938#3997938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997938
19 years, 3 months
[JBoss jBPM] - Re: Request didn't include a SOAP Message
by bertrand.njiipwo
Hello Alex,
Of course i have specified in bpel-application.xml the location of my URL to the wsdl-document of my service.
But in the server.log file there is some thing curios:
anonymous wrote : 2007-01-03 22:53:20,708 DEBUG [org.jboss.ws.server.ServiceEndpoint] WSDL request, using host: milaine
| 2007-01-03 22:53:20,819 DEBUG [org.jboss.ws.server.WSDLRequestHandler] Mapping import from 'schufa.wsdl' to 'http://milaine:8080/schufa/schufaWS?wsdl&resource=schufa.wsdl'
| 2007-01-03 22:53:20,819 DEBUG [org.jboss.ws.server.WSDLRequestHandler] Mapping address from 'http://milaine:8080/schufa/schufaWS' to 'http://milaine:8080/schufa/schufaWS'
| 2007-01-03 22:53:21,199 DEBUG [org.jboss.ws.server.ServiceEndpoint] WSDL request, using host: milaine
| 2007-01-03 22:53:21,289 DEBUG [org.jbpm.bpel.relation.jms.RelationContext] selected partner port: instance=org.jbpm.bpel.service.exe.PartnerLinkInstance@18c4d4c[name=SchufaLink,id=0], port=SchufaPort
| 2007-01-03 22:53:21,329 INFO [STDOUT] PortConsumer: AddresseLocation configure to: http://milaine:8080/schufa/schufaWS
is this a problem related to the configuration of jbossws (1.0.4) im using?
because i have in JBOSS_HOME/server/default/deploy/jbossws.sar/jbossws.beans/META-INF/jboss-beans.xml:
property name="alwaysModifySOAPAddress" set to true.
When reading the interface implementation at http://localhost:8080/schufa/schufaWS?wsdl the <soap:address> value specified there is http://localhost:8080/schufa/schufaWS but in my schufa.wsdl the soap:address is http://localhost.8081/creditprocess/schufa: How is this possible?
that why i have swapped it in PortConsumer.java to what i'm expecting (http://localhost.8081/creditprocess/schufa). But it's seems to not work.
Is it possible that this problem related to my jbossws configuration ? i don't really know.
Some one has an idee where could be the problem ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997936#3997936
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997936
19 years, 3 months
[JBoss jBPM] - newbie: Configurable Decision nodes in JBPM3.1
by urkens_jp
I am trying to create a configurable decision node in JBPM3.1 using a DecisionHandler class that in its decide() method calls a method on a specific class.
I have an example from JBPM2.1 where the 'Configurable' interface is used to make the decision node configurable by passing a String parameter in the decision node. This String parameter then represents the method to be called.
However this 'Configurable' interface does no longer exist in JBPM3.1.
So how does this work in JBPM 3.1 ?
Example from JBPM2.1 project:
====================
1) DecisionHandler class
public class VodItemMethodDecision implements DecisionHandler, Configurable {
public String decide(ExecutionContext context) {
Long contentId = (Long) context.getVariable(VariableNames.CONTENT_ITEM_ID);
String result = null;
try {
VodItem vodItem = new VodItem();
vodItem = (VodItem) vodItem.lookup(contentId);
Class vodItemClass = vodItem.getClass();
Method method = vodItemClass.getMethod(methodName,null);
result = method.invoke(vodItem,null).toString();
} catch (Exception e) { }
if (result == null)
return (result != null ? result : "unknown");
}
public void configure(String configuration) throws ConfigurationException {
if (configuration == null) {
throw new ConfigurationException("The method name is missing");
}
methodName = configuration;
}
private String methodName = null;
private static Log log = ogFactory.getLog(VodItemMethodDecision.class);
}
2) Decision Node declaration:
getEncryptionNeeded
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997935#3997935
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997935
19 years, 3 months
[JBoss Seam] - About pageflow
by rlhr
Hello,
I ran into some trouble trying to start properly a pageflow.
First of all, let me explain the situation. I'm using JBoss 4.0.4GA with Seam 1.1.0GA
I have a SFSB that is responsible for choosing a flow and start it.
| @Begin
| public void init() {
| ...
| Pageflow.instance().begin(this.getPageflow());
| }
|
The pageflow is defined as followed:
| <?xml version="1.0"?>
|
| <pageflow-definition name="test">
|
| <start-page name="start">
| <transition to="isUserLoggedIn"/>
| </start-page>
|
| <decision name="isUserLoggedIn" expression="#{loginAction.isUserLoggedIn}">
| <transition name="true" to="page1" />
| <transition name="false" to="page2" />
| </decision>
| ...
| </pageflow-definition>
|
The flow is started in the RENDER_RESPONSE phase, so I can't use <start-state>
The issue I had is that the flow didn't start properly (I was redirected to an error page) but could not see anything wrong in the logs.
So I looked into the code, more exactly at the begin method of Pageflow.java.
| public void begin(String pageflowDefinitionName)
| {
| if ( log.isDebugEnabled() )
| {
| log.debug("beginning pageflow: " + pageflowDefinitionName);
| }
|
| processInstance = PageflowHelper.newPageflowInstance( getPageflowProcessDefinition(pageflowDefinitionName) );
|
| //if ( Lifecycle.getPhaseId().equals(PhaseId.RENDER_RESPONSE) )
| //{
| //if a pageflow starts during the render response phase
| //(as a result of a @Create method), we know the navigation
| //handler will not get called, so we should force the
| //pageflow out of the start state immediately
| //TODO: this is not actually completely true, what about <s:actionLink/>
| //pi.signal();
| //}
|
| setDirty();
|
| Events.instance().raiseEvent("org.jboss.seam.beginPageflow." + pageflowDefinitionName);
|
| storePageflowToViewRootIfNecessary();
|
| }
|
There is a comment about what I believe is my case. I then solved the problem by adding the following line at the end of the SFSB init method:
| Pageflow.instance().navigate(facesContext, null);
|
Now everything is fine but I believe this should be fixed in Seam. It seems to me that you guys know about it already, so any plan yet?
Regards,
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997933#3997933
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997933
19 years, 3 months