10 Replies Latest reply on May 30, 2008 10:52 AM by Uros Majeric

    Problems migration from seam 201GA to 202CR1

    Diego Coronel Apprentice

      Hi, when i change my jboss-seam.jar (2.0.1.GA) to jboss-seam.jar (2.0.2.CR1) i got excetpion in the class the org.jboss.seam.Entity on line 181, i used debug mode to see what was happening and the problem is: with seam 2.0.1.GA my beanClass is 'class br.fpf.jdoctor.gerais.entitybean.Pais' (thats correct) and with seam 2.0.2.CR1 its comming with



      class br.fpf.jdoctor.gerais.entitybean.Pais_$$_javassist_90', so its wrong, and im getting this exception: 
      throw new NotEntityException("Unable to establish name of entity " + getBeanClass());





      is it a bug ? any workaround ?

        • 1. Re: Problems migration from seam 201GA to 202CR1
          Pete Muir Master

          Probably a bug.


          Full stack trace and steps to reproduce please.

          • 2. Re: Problems migration from seam 201GA to 202CR1
            Diego Coronel Apprentice

            So, its a simple page, i did a search in State and it has country,  my edit page show the country description:


            #{state.country.desc}



            and this is not working.


            full stacktrace:


            12:44:12,823 INFO  [STDOUT] Hibernate: select pais0_.id_pais as id1_22_0_, pais0_.tx_pais as tx2_22_0_ from geral.pais pais0_ where pais0_.id_pais=?
            12:44:18,666 ERROR [STDERR] 05/04/2008 12:44:18 com.sun.facelets.FaceletViewHandler handleRenderException
            SEVERE: Error Rendering View[/face/gerais/cadastro_estado/editar.xhtml]
            javax.el.ELException: /components/fpf_navigationHistory/fpf_navigationHistory.xhtml: org.jboss.seam.Entity$NotEntityException: Unable to establish name of entity class br.fpf.jdoctor.gerais.entitybean.Pais_$$_javassist_90
                 at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:48)
                 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:148)
                 at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:832)
                 at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
                 at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
                 at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                 at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.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:147)
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
                 at org.ajax4jsf.Filter.doFilter(Filter.java:175)
                 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.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                 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:432)
                 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:619)
            Caused by: org.jboss.seam.Entity$NotEntityException: Unable to establish name of entity class br.fpf.jdoctor.gerais.entitybean.Pais_$$_javassist_90
                 at org.jboss.seam.Entity.mergeAnnotationAndOrmXml(Entity.java:181)
                 at org.jboss.seam.Entity.<init>(Entity.java:58)
                 at org.jboss.seam.Entity.forClass(Entity.java:165)
                 at org.jboss.seam.Entity.forBean(Entity.java:145)
                 at org.jboss.seam.persistence.HibernatePersistenceProvider.getEntityClass(HibernatePersistenceProvider.java:321)
                 at org.jboss.seam.persistence.HibernatePersistenceProvider.getClassMetadata(HibernatePersistenceProvider.java:294)
                 at org.jboss.seam.persistence.HibernatePersistenceProvider.getVersion(HibernatePersistenceProvider.java:287)
                 at org.jboss.seam.persistence.HibernatePersistenceProvider.getVersion(HibernatePersistenceProvider.java:177)
                 at org.jboss.seam.contexts.PassivatedEntity.createUsingEntityManager(PassivatedEntity.java:235)
                 at org.jboss.seam.contexts.PassivatedEntity.createPassivatedEntity(PassivatedEntity.java:171)
                 at org.jboss.seam.contexts.PassivatedEntity.passivateEntity(PassivatedEntity.java:161)
                 at org.jboss.seam.contexts.EntityBean.passivate(EntityBean.java:50)
                 at org.jboss.seam.contexts.ServerConversationContext.isAttributeDirty(ServerConversationContext.java:307)
                 at org.jboss.seam.contexts.ServerConversationContext.flush(ServerConversationContext.java:280)
                 at org.jboss.seam.faces.Redirect.captureCurrentView(Redirect.java:114)
                 at br.fpf.components.web.navigationHistory.NavigationHistory.add(NavigationHistory.java:68)
                 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:21)
                 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:31)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                 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.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                 at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                 at br.fpf.components.web.navigationHistory.NavigationHistory_$$_javassist_39.add(NavigationHistory_$$_javassist_39.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:597)
                 at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
                 at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:274)
                 at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
                 at org.jboss.el.parser.Ast
            12:44:18,666 ERROR [STDERR] Value.getValue(AstValue.java:67)
                 at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                 at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)
                 at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)
                 at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
                 ... 51 more





            • 3. Re: Problems migration from seam 201GA to 202CR1
              Pete Muir Master

              I made a fix in SVN (2_0 branch) that should help. Please give it a go and let me know if it works.

              • 4. Re: Problems migration from seam 201GA to 202CR1
                Clint Popetz Apprentice

                I just hit the same thing, and your change
                to HibernatePersistenceProvider on the branch fixed it for me.  FYI.  Is there a JIRA issue to track this?

                • 5. Re: Problems migration from seam 201GA to 202CR1
                  Pete Muir Master

                  Thanks :-)


                  No, I didn't create a JIRA issue...

                  • 6. Re: Problems migration from seam 201GA to 202CR1
                    Tomas Cerny Novice

                    Thank you.


                    Please make sure that it will get also to seam 2.1. branch.


                    I am just trying avoid to get one bug that was fixed in Trinidad 1.0 and in 1.2 ;D.


                    Tomas

                    • 7. Re: Problems migration from seam 201GA to 202CR1
                      Uros Majeric Newbie

                      I updated to the latest branch and build jars. but I still getting this error. My stack trace:



                      16:57:04,937 ERROR [STDERR] 8.5.2008 16:57:04 com.sun.facelets.FaceletViewHandler handleRenderException
                      SEVERE: Error Rendering View[/OpremaEdit.xhtml]
                      org.jboss.seam.Entity$NotEntityException: Unable to establish name of entity class ucrm.entity.TipOpreme_$$_javassist_558
                           at org.jboss.seam.Entity.mergeAnnotationAndOrmXml(Entity.java:181)
                           at org.jboss.seam.Entity.<init>(Entity.java:58)
                           at org.jboss.seam.Entity.forClass(Entity.java:165)
                           at org.jboss.seam.Entity.forBean(Entity.java:145)
                           at org.jboss.seam.persistence.PersistenceProvider.getId(PersistenceProvider.java:64)
                           at org.jboss.seam.persistence.HibernatePersistenceProvider.getId(HibernatePersistenceProvider.java:168)
                           at org.jboss.seam.framework.EntityIdentifier.<init>(EntityIdentifier.java:13)
                           at org.jboss.seam.ui.converter.entityConverter.EntityLoader.createIdentifier(EntityLoader.java:40)
                           at org.jboss.seam.ui.converter.entityConverter.AbstractEntityLoader.put(AbstractEntityLoader.java:50)
                           at sun.reflect.GeneratedMethodAccessor2199.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                           at java.lang.reflect.Method.invoke(Unknown Source)
                           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                           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:31)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
                           at org.jboss.seam.util.Work.workInTransaction(Work.java:41)
                           at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                           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.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                           at org.jboss.seam.ui.converter.entityConverter.EntityLoader_$$_javassist_9.put(EntityLoader_$$_javassist_9.java)
                           at org.jboss.seam.ui.converter.EntityConverter.getAsString(EntityConverter.java:77)
                           at org.jboss.seam.ui.converter.PrioritizableConverter.getAsString(PrioritizableConverter.java:67)
                           at org.jboss.seam.ui.converter.ConverterChain.getAsString(ConverterChain.java:123)
                           at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469)
                           at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOption(MenuRenderer.java:502)
                           at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:757)
                           at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:811)
                           at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:335)
                           at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
                           at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:190)
                           at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                           at org.jboss.seam.ui.renderkit.ValidateAllRendererBase.doEncodeChildren(ValidateAllRendererBase.java:33)
                           at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
                           at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:186)
                           at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                           at org.jboss.seam.ui.renderkit.DecorateRendererBase.doEncodeChildren(DecorateRendererBase.java:103)
                           at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
                           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
                           at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
                           at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
                           at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
                           at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
                           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 javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
                           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
                           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.core.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:147)
                           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
                           at org.ajax4jsf.Filter.doFilter(Filter.java:175)
                           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.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                           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:432)
                           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.valve
                      16:57:05,093 ERROR [STDERR] s.ErrorReportValve.invoke(ErrorReportValve.java:102)
                           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                           at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
                           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(Unknown Source)



                      I have a simple selectOneMenu and rerendering it with Ajax. Everything is happening in one conversation.



                      <h:selectOneMenu value="#{opremaHome.instance.tipOpreme}" disabled="#{!opremaHome.editable}" required="true">
                           <s:selectItems value="#{tipiOpreme}" var="tipOpr" label="#{tipOpr.naziv}" 
                                                               noSelectionLabel="#{messages.tipOpreme_selectionLabel}"/>
                           <s:convertEntity/>
                      </h:selectOneMenu>


                      • 8. Re: Problems migration from seam 201GA to 202CR1
                        Michal Belicek Newbie

                        I have the same exception in 202CR1 and 202GA. I don't have this exception in 201GA.



                        org.jboss.seam.Entity$NotEntityException: Unable to establish name of entity class 
                        "myseamapp.verbundcockpit.model.persistence.EntityFieldValueItem_$$_javassist_3"
                        
                                at org.jboss.seam.Entity.mergeAnnotationAndOrmXml(Entity.java:181)
                                at org.jboss.seam.Entity.<init>(Entity.java:58)
                                at org.jboss.seam.Entity.forClass(Entity.java:165)
                                at org.jboss.seam.Entity.forBean(Entity.java:145)
                                at org.jboss.seam.persistence.PersistenceProvider.getId(PersistenceProvider.java:64)
                                at org.jboss.seam.persistence.HibernatePersistenceProvider.getId(HibernatePersistenceProvider.java:168)
                                at org.jboss.seam.framework.EntityIdentifier.<init>(EntityIdentifier.java:13)
                                at org.jboss.seam.ui.converter.entityConverter.EntityLoader.createIdentifier(EntityLoader.java:40)
                                at org.jboss.seam.ui.converter.entityConverter.AbstractEntityLoader.put(AbstractEntityLoader.java:50)
                                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.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:31)
                                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                                at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
                                at org.jboss.seam.util.Work.workInTransaction(Work.java:41)
                                at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
                                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                                at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                                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.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                                at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                                at org.jboss.seam.ui.converter.entityConverter.EntityLoader_$$_javassist_24.put(EntityLoader_$$_javassist_24.java)
                                at org.jboss.seam.ui.converter.EntityConverter.getAsString(EntityConverter.java:77)
                                at org.jboss.seam.ui.converter.PrioritizableConverter.getAsString(PrioritizableConverter.java:67)
                                at org.jboss.seam.ui.converter.ConverterChain.getAsString(ConverterChain.java:123)
                                at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469)
                                at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOption(MenuRenderer.java:502)
                                at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:757)
                                at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:811)
                                at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:335)
                                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
                                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
                                at com.sun.facelets.component.RepeatRenderer.encodeChildren(RepeatRenderer.java:50)
                                at com.sun.facelets.component.UIRepeat.process(UIRepeat.java:357)
                                at com.sun.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:617)
                                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
                                at com.sun.facelets.component.RepeatRenderer.encodeChildren(RepeatRenderer.java:50)
                                at com.sun.facelets.component.UIRepeat.process(UIRepeat.java:357)
                                at com.sun.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:617)
                                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 org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
                                at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
                                at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:284)
                                at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
                                at org.richfaces.renderkit.TabRendererBase.encodeChildren(TabRendererBase.java:113)
                                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
                                at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
                                at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
                                at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:286)
                                at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:281)
                                at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
                                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 javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
                                at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                                at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                                at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
                                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.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                                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.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                                at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
                                at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
                                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
                                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 myseamapp.security.SecurityServletFilter.doFilter(SecurityServletFilter.java:63)
                                at myseamapp.seam.security.sso.SeamSecurityServletFilter.doFilter(SeamSecurityServletFilter.java:84)
                                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:78)
                                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.doFilt
                        12:21:36,229 ERROR [STDERR] er(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:432)
                                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)        
                        




                        In my xhtml page I have the following h:selectOneMenu which uses s:convertEntity:



                           <h:selectOneMenu id="valueListField" value="#{field.valueItem}">
                                <s:selectItems value="#{field.fieldMeta.fieldValueItems}"
                                    var="fieldValueItem" noSelectionLabel="" label="#{fieldValueItem.valueTEXT}"/>
                                <s:convertEntity />
                            </h:selectOneMenu>
                        



                        Variable field in xhtml is AbstractEntityJournalData entity with following relation to EntityFieldValueItem entity which is one currently selected value in combobox:


                             @ManyToOne(optional = true, fetch = FetchType.LAZY)
                             @JoinColumn(name="VALUEITEM_ID", nullable=true, referencedColumnName = "ID")
                             public EntityFieldValueItem getValueItem()
                             {...}
                        



                        Property fieldMeta in xhtml is EntityFieldMeta entity which holds list of all possible values in combobox:


                             @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
                             @JoinColumn(name = "FIELDMETA_ID")
                             @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
                             public List<EntityFieldValueItem> getFieldValueItems()
                             {...}
                        



                        Property fieldValueItem in xhtml is EntityFieldValueItem entity which has property valueTEXT and also contains equals/hashcode pair based on ID column (which is necessary for s:convertEntity to work properly).


                        I have investigated in more detail the problem because the exception sometimes happened and sometimes not between server restarts. I did some debugging in 202GA (same happens with 202CR1).


                        In the first test case I opened xhtml page with field which had field.valueItem non-null - then the valueItem contained lazy proxy instance myseamapp.verbundcockpit.model.persistence.EntityFieldValueItem_$$_javassist_3 and same instance of that proxy was also present in fieldValueItems list. All other items in that list contained normal instances of myseamapp.verbundcockpit.model.persistence.EntityFieldValueItem. After resume from debugging the axception above was thrown. After that I opened new page with field which had valueItem NULL and I got the exception again.


                        In the second test case I opened xhtml page this time with field with valueItem NULL first. The fieldValueItems list contained no lazy proxies, only EntityFieldValueItem instances. After that I opened new page with field which had valueItem non-null. This time the valueItem was not a lazy proxy but normal entity instance. The valueItem was preselected in combo and also no exception happened.


                        So I believe that's why the exception sometimes happens and sometimes not it 202GA.


                        Then I changed to 201GA and did both test cases. I got no exception but instead the value in combobox was not preselected. This is also bug.


                        Maybe the problem is somehow related to s:convertEntity.


                        Currently as workaround I have changed fetch type on manyToOne relation to EAGER. This way it works fine in all test cases in all versions.

                        • 9. Re: Problems migration from seam 201GA to 202CR1
                          Pete Muir Master

                          Please file an issue in JIRA with something I can use to reproduce.

                          • 10. Re: Problems migration from seam 201GA to 202CR1
                            Uros Majeric Newbie

                            I am getting this error to.
                            I have just updated to 2.0.2SP1. I don't have this exception in 201GA. Like already said Michal Belicek.


                            Uros