4 Replies Latest reply on Jun 26, 2009 9:25 PM by Nikos Tsagkas

    javassist does not have the property 'find' from main.xhtml

    Roger Martin Newbie

      This is the main.xhtml from the booking example.  All register user pages and page flow is working.


      Then when hitting the main.xhtml I get






      /main.xhtml: The class 'org.javassist.tmp.java.lang.Object_$$_javassist_2' does not have the property 'find'.
      





      find is after searchString so it gets past hotelSearch.searchString


      What should I be looking for?


      This is running jboss-seam-2.1.0.A1, jdk1.6.0_06, facelets-1.1.14


      The scope shows:


      Session AttributesName  Value
      bookingList     org.jboss.seam.example.booking.BookingList_1486351594
      bookings        org.jboss.seam.jsf.ListDataModel@c37ced7
      hotelSearch     org.jboss.seam.example.booking.HotelSearching_1581458454
      user    User(demo)
      Application AttributesName      Value
      bookingDatabase org.jboss.seam.persistence.EntityManagerFactory@9f650b3

        • 1. Re: javassist does not have the property 'find' from main.xhtml
          Roger Martin Newbie

          What is the best way to debug and make sense of javassist error messages?


          Vague miserable stuff if you ask me:-)

          • 2. Re: javassist does not have the property 'find' from main.xhtml
            Norman Richards Expert

            The first step would be to look at the log and find the complete stack trace and look for related errors in the log.

            • 3. Re: javassist does not have the property 'find' from main.xhtml
              Roger Martin Newbie

              There is nothing in the log and no related errors.  Javassist comes out with the vague Object$$javassist2 and that's it.


              --log snip--
              AuthenticatorAction.authenticate return true

              [#|2008-07-04T14:22:55.042-0400SEVEREsun-appserver9.1facelets.viewhandler_ThreadID=40;_ThreadName=httpSSLWorkerThread-8080-3;_RequestID=6cc53b73-c219-4f28-8589-99396bd80ac1;|Error Rendering View[/main.xhtml]
              'org.javassist.tmp.java.lang.Object
              $$javassist2' does not have the property 'find'.
                      at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53)
                      at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
                      at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
                      at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
                      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
                      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
                      at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
                      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
                      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
                      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
                      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                      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.servletService(ApplicationFilterChain.java:411)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                      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.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                      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.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
                      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
                      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
                      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
                      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
                      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
                      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
                      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
                      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
                      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
                      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
                      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
                      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
                      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
                      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
                      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
                      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
                      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
                      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
                      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
                      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
                      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
                      at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
              |#]
              ----




              • 4. Re: javassist does not have the property 'find' from main.xhtml
                Nikos Tsagkas Newbie

                I had the same problem
                check this out http://blog.xebia.com/2009/04/17/setting-session-bean-property-in-seamtest/
                it seems that you must declare setter and getters also in your interface.