4 Replies Latest reply on Dec 15, 2008 3:02 PM by meetoblivion

    Is JBSEAM-3501 resolved ?

    visumagic

      Hi ALL
      JBoss Seam 2.1.1 CR2 seam-gen project is failing in JBoss Server 5.0 GA.
      I found similar problem that is reported in bug JBSEAM-3501
      which is reopened.
      But it's really serious issue , in jboss stable server seam latest is not able to recognize entities.


      plz let me know the status of this but..
      any workarounds


      my trace is


      Caused by: javax.el.ELException: /StudentList.xhtml @37,60 rendered="#{empty studentList.resultList}": Error reading resultList' on type org.domain.Z1.session.StudentList_$$_javassist_1
              at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
              at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)
              ... 58 more
      Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: Student is not mapped [select student from Student student]
              at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:601)
              at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:96)
              at org.jboss.seam.persistence.EntityManagerProxy.createQuery(EntityManagerProxy.java:81)
              at org.jboss.seam.framework.EntityQuery.createQuery(EntityQuery.java:175)
              at org.jboss.seam.framework.EntityQuery.initResultList(EntityQuery.java:73)
              at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:65)
              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:597)
              at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
              at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
              at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:95)
              at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
              at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:89)
              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
              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.J




      thanks
      raghu

        • 1. Re: Is JBSEAM-3501 resolved ?
          meetoblivion

          The bug report notes a possible work around/fix for it.  You may also want to review the steps in the knowledge base


          http://seamframework.org/Documentation/RunningSeamExamplesWithJBossApplicationServer5#H-Seam210GACompatibilityIssuesWithAS5

          • 2. Re: Is JBSEAM-3501 resolved ?
            visumagic

            John thanks for your quick reply


            I removed seam.properties file but still issue remains ..



            I'm trying to generate seam project using jbosstools with
            reverse engineered entities. I'm getting following error
            and I tried this by removing seam.properties(2 files - in
            src/model ,src/action) but still no use ... error repeated



            javax.faces.FacesException: javax.el.ELException: /StudentList.xhtml @37,60 rendered="#{empty studentList.resultList}": Error reading 'resultList' on type org.domain.Z1.session.StudentList_$$_javassist_1
                    at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:393
            ......
            Caused by: org.hibernate.hql.ast.QuerySyntaxException: Student is not mapped [select student from Student student]
            .....
            



            Then I moved all src files to my own src-dir then I'm
            getting different error on the response page



            Exception during request processing: 
            Caused by javax.servlet.ServletException with message: "/CommunityList.xhtml @19,81 value="#{communityList.community.name}": Target Unreachable, identifier 'communityList' resolved to null" 
            



            thanks
            raghu

            • 3. Re: Is JBSEAM-3501 resolved ?
              meetoblivion

              the reason for the second error seems to be due to how you're building the project.  all it means is that seam can't find the bean.


              can't you post your code for Student?  Also you mentioned reverse engineering, check your workspace for multiple Student classes...

              • 4. Re: Is JBSEAM-3501 resolved ?
                meetoblivion

                you might want to check that your src/model (i guess?) is building to the same place as src/action.