3 Replies Latest reply on Feb 20, 2006 10:47 PM by Carl Steinhauser

    Could not find destroy method

    Carolina U. Newbie

      When I try to display a page with a certain entity atributes like

      #{caroEntity.codeAtribute}
      #{caroEntity.descriptionAtribute}

      | get this error:

      18:51:34,203 WARN [Contexts] could not find destroy method
      java.lang.NoSuchMethodException: $Proxy371.remove()

      which ones could be the reasons? O_o

        • 1. Re: Could not find destroy method
          Carolina U. Newbie

          This is the whole exception



          18:51:34,203 WARN [Contexts] could not find destroy method
          java.lang.NoSuchMethodException: $Proxy371.remove()
          at java.lang.Class.getMethod(Class.java:1581)
          at org.jboss.seam.contexts.Contexts.callDestroyMethod(Contexts.java:203)
          at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:187)
          at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:254)
          at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:164)
          at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:107)
          at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.afterPhase(SeamExtendedManagedPersistencePhaseListener.java:52)
          at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:536)
          at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:359)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
          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.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:44)
          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.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
          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:868)
          at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
          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)

          • 2. Re: Could not find destroy method
            Dennis Wenger Newbie

            Check if you have a method annotated with @Remove @Destroy in any stateful session beans.

            Dennis

            • 3. Re: Could not find destroy method
              Carl Steinhauser Newbie

              Make sure you have the destroy method in the local interface.

              Carl