5 Replies Latest reply on Mar 26, 2008 10:24 AM by Pete Muir

    use of inheritance causes illegal argument exception

    Paul Pantages Novice

      Hello Forum,


      Seam.2.0.1.GA
      JBOSS 4.2.2 GA


      I am having an issue with the illegal argument exception (below).


      It is complaining about object is not an instance of declaring class
      Unfortunately, the error msgs do not disclose which class
      it thinks the object is really an instance-of.


      This code was working in Seam 1.2.1.GA; I am upgrading to
      2.0.1.GA.


      This seems to have something to do with inheritance. I have found
      that if I copy the code from the superclass into the base class it
      works OK.


      Even if the superclass TableDisplayEditorBean is completely empty
      (i.e., everything moved to EventHistoryTableDisplayEditor) I still get
      the exception. Removing the abstract declaration from superclasses
      does not help either.


      The only way to make it work is to remove the extends TableDisplayEditorBean
      from the class def, and cut and paste all methods and propeties from the
      superclasses into EventHistoryTableDisplayEditor....


      Then it works OK as it did in 1.2.1.GA.


      Any ideas as to what is wrong will be greatly appreciated.


      The superclass:



      public abstract class TableDisplayEditorBean extends GenericEditorBean implements TableDisplayEditorLocal {
          
          /** Creates a new instance of TableDisplayEditorBean */
          public TableDisplayEditorBean() {
          }
      
          @PersistenceContext
          protected EntityManager em;
      
          // The User object 
          @In
          protected User user;
      ...
      ...
      ...etc.
      }
      




      The seam component (editor)


      @Stateful
      @Name("eventHistoryDisplayPropertyEditor")
      @Synchronized
      @Scope(SESSION)
      @LoggedIn
      public class EventHistoryTableDisplayEditor extends TableDisplayEditorBean implements EventHistoryTableDisplayEditorLocal
      {
          /* Creates a new instance of EventHistoryTableDisplayEditor */
          public EventHistoryTableDisplayEditor() {
              columnList = new ArrayList<ColumnDisplayOptions>();
              System.out.println("EventHistoryTableDisplayEditor() CTOR ");
          }
      
          @Create
          public void create() {
              this.traceprefix  = "Client: [eventHistoryDisplayPropertyEditor] ";
      
              if ( log.isInfoEnabled() )
                  log.info ( traceprefix + "(" + Conversation.instance().getId() + ") Create" );
      
          }
      ...
      ...
      ...etc.
      }
      



      The i/f


      public interface EventHistoryTableDisplayEditorLocal extends TableDisplayEditorLocal {
          
          public void create();
          public void destroy();
          public void initEventHistoryRowFormats();
      }
      




      The exception:


      2008-03-18 19:46:08,086 INFO  [http-0.0.0.0-8080-6] STDOUT
      TableDisplayEditor() CTOR

      2008-03-18 19:46:08,086 INFO  [http-0.0.0.0-8080-6] STDOUT
      EventHistoryTableDisplayEditor() CTOR

      2008-03-18 19:46:08,139 ERROR [http-0.0.0.0-8080-6] STDERR
      Mar 18, 2008 7:46:08 PM com.sun.facelets.FaceletViewHandler handleRenderException
      SEVERE: Error Rendering View[/view/fault/eventhistory.xhtml]
      java.lang.IllegalArgumentException: Could not invoke method by reflection: EventHistoryTableDisplayEditorLocal.create() on: $Proxy210
              at org.jboss.seam.util.Reflections.invoke(Reflections.java:31)
              at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
              at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
              at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
              at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
              at org.javassist.tmp.java.lang.Object_$$_javassist_11.create(Object_$$_javassist_11.java)
              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:21)
              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
              at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
              at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
              at org.jboss.seam.Component.newInstance(Component.java:1976)
              at org.jboss.seam.Component.getInstance(Component.java:1873)
              at org.jboss.seam.Component.getInstance(Component.java:1840)
              at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1919)
              at org.jboss.seam.Component.getInstance(Component.java:1863)
              at org.jboss.seam.Component.getInstance(Component.java:1840)
              at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
              at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
              at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
              at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
              at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
              at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
              at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
              at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
              at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
              at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
              at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:121)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
              at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
              at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
              at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
              at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)
              at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131)
              at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:310)
              at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:280)
              at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
              at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
              at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
              at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
              at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
              at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
              at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
              at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
              at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
              at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)
              at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:73)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
              at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
              at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
              at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
              at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
              at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
              at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
              at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
              at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
              at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
              at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
              at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
              at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
              at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
              at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
              at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
              at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
              at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
              at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
              at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
              at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
              at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.co

      2008-03-18 19:46:08,140 ERROR [http-0.0.0.0-8080-6] STDERR
      re.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
              at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
              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:21)
              ... 132 more

                                                                            

        • 1. Re: use of inheritance causes illegal argument exception
          Pete Muir Master

          Post the exception inside a code bock.

          • 2. Re: use of inheritance causes illegal argument exception
            Paul Pantages Novice

            Pete Muir wrote on Mar 19, 2008 01:00 PM:


            Post the exception inside a code bock.


            java.lang.IllegalArgumentException: Could not invoke method by reflection: EventHistoryTableDisplayEditorLocal.create() on: $Proxy210
                    at org.jboss.seam.util.Reflections.invoke(Reflections.java:31)
                    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                    at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
                    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                    at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
                    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                    at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
                    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                    at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
                    at org.javassist.tmp.java.lang.Object_$$_javassist_11.create(Object_$$_javassist_11.java)
                    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:21)
                    at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
                    at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
                    at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
                    at org.jboss.seam.Component.newInstance(Component.java:1976)
                    at org.jboss.seam.Component.getInstance(Component.java:1873)
                    at org.jboss.seam.Component.getInstance(Component.java:1840)
                    at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1919)
                    at org.jboss.seam.Component.getInstance(Component.java:1863)
                    at org.jboss.seam.Component.getInstance(Component.java:1840)
                    at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
                    at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
                    at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
                    at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
                    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
                    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                    at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
                    at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
                    at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                    at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                    at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:121)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
                    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
                    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
                    at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
                    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)
                    at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131)
                    at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:310)
                    at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:280)
                    at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
                    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
                    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
                    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
                    at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
                    at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
                    at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
                    at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
                    at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
                    at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)
                    at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:73)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
                    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
                    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
                    at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
                    at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
                    at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
                    at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
                    at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
                    at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
                    at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
                    at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
                    at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
                    at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
                    at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
                    at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
                    at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
                    at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
                    at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
                    at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
                    at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
                    at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
                    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
                    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
                    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.co
            
            2008-03-18 19:46:08,140 ERROR [http-0.0.0.0-8080-6] STDERR
            re.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                    at java.lang.Thread.run(Thread.java:595)
            Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
                    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:21)
                    ... 132 more
            


            • 3. Re: use of inheritance causes illegal argument exception
              Pete Muir Master

              Nothing jumps out. Can you attach a debugger, and see a bit more what is going on?

              • 4. Re: use of inheritance causes illegal argument exception
                Paul Pantages Novice

                Pete Muir wrote on Mar 20, 2008 01:22 AM:


                Nothing jumps out. Can you attach a debugger, and see a bit more what is going on?


                Hello Peter, thank you for taking a look at this.


                I have discovered that my problem is due to my interface declarations.


                I had the following interfaces:



                @Local
                public interface GenericEditorLocal extends TablePoller {
                ...
                ...
                }
                
                @Local
                public interface TableDisplayEditorLocal extends GenericEditorLocal {
                ...
                ...
                }
                
                public interface ReportTableDisplayEditorLocal extends TableDisplayEditorLocal {
                ...
                ...
                }




                And my backing bean:



                public class ReportTableDisplayEditor extends TableDisplayEditorBean implements ReportTableDisplayEditorLocal 
                {
                ...
                ...
                }
                




                Note that last i/f def is lacking a @Local annotation.
                Somehow, I got away with this in Jboss 4.0.5/Seam 1.2.1.
                I guess the @Local was once inherited from the i/f's superclass, but no longer?


                Adding/moving @Local to the last i/f fixes my problem....




                • 5. Re: use of inheritance causes illegal argument exception
                  Pete Muir Master

                  I guess this is a change in the EJB3 implementation - Seam is doing nothing fancy here...