[jboss-user] [JBoss Seam] - Re: @Unwrap from SFSB and session timeout issue
tom_goring
do-not-reply at jboss.com
Tue Mar 20 09:22:01 EDT 2007
Hi,
Using seam 1.1.6.GA I get the same issue.
According to the JIRA it is set to "Cannot Reproduce Bug"
| 3:16:04,609 WARN [Contexts] Could not destroy component: user
| java.lang.IllegalArgumentException: method not found: destroy for component: user (check that it is declared on the session bean business interface)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1853)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1791)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:230)
| at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:396)
| at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:302)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.afterRender(AbstractSeamPhaseListener.java:224)
| at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:116)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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)
|
Here is my managed component:
| @Stateful
| @Name(UserComponentNames.User)
| @Scope(ScopeType.CONVERSATION)
| public class UserComponentManagerBean implements UserComponentManager {
|
| @In(value=UserComponentNames.UserId)
| private Long userId = null;
|
| @EJB
| private UserManagerLocal userManager;
|
| @Unwrap
| public User getUser() {
| if ( userId!=null ) {
| return userManager.getUser(userId);
| }
| return null;
| }
|
| @Destroy @Remove
| public void destroy() {
|
| }
| }
|
My user is just an EJB3 entity bean:
| @Entity(name="user")
| @Table(name="user")
| public class User extends BaseEntity {
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029770#4029770
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029770
More information about the jboss-user
mailing list