2 Replies Latest reply on Sep 4, 2010 8:22 PM by Ashish Kulkarni

    What is the current Stable environment?

    Ashish Kulkarni Newbie

      Dear all,


      I am looking at Seam after a long time. I can see a lot of new things / changes.


      I have created a new seam application using Seam 2.2.0.GA and managed to deploy it to JBoss AS 5.1.0.GA


      I am using the default server as the one to copy from and have created a simple app using MySQL 5.1 and using JDBC Jar mysql-connector-java-5.1.13-bin.jar


      I am using Eclipse Helois - 3.6.


      2010-09-03 13:00:26,237 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss:service=invoker,type=pooled state=Create mode=Manual requiredState=Installed
      java.lang.Exception: Port *4445* is already in use
           at org.jboss.invocation.pooled.server.PooledInvoker.startService(PooledInvoker.java:230)
      



      Secondly, when I try to view any lists, I get an error:


      2010-09-03 13:07:43,210 INFO  [org.hibernate.type.TimestampType] (http-localhost%2F127.0.0.1-8080-1) could not read column value from result set: updatedts8_0_; Cannot convert value '0000-00-00 00:00:00' from column 18 to TIMESTAMP.
      2010-09-03 13:07:43,210 WARN  [org.hibernate.util.JDBCExceptionReporter] (http-localhost%2F127.0.0.1-8080-1) SQL Error: 0, SQLState: S1009
      2010-09-03 13:07:43,210 ERROR [org.hibernate.util.JDBCExceptionReporter] (http-localhost%2F127.0.0.1-8080-1) Cannot convert value '0000-00-00 00:00:00' from column 18 to TIMESTAMP.
      2010-09-03 13:07:43,210 SEVERE [facelets.viewhandler] (http-localhost%2F127.0.0.1-8080-1) Error Rendering View[/Country.xhtml]
      javax.faces.FacesException: javax.el.ELException: /Country.xhtml @57,61 rendered="#{empty countryHome.clients}": Error reading 'clients' on type com.cb.action.CountryHome_$$_javassist_seam_5
           at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:393)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:924)
           at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
           at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
           at org.richfaces.renderkit.TabRendererBase.encodeChildren(TabRendererBase.java:113)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
           at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
           at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:285)
           at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:280)
           at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
           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.IdentityFilter.doFilter(IdentityFilter.java:40)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
           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:178)
           at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
           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:235)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
           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:158)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Unknown Source)
      Caused by: javax.el.ELException: /Country.xhtml @57,61 rendered="#{empty countryHome.clients}": Error reading 'clients' on type com.cb.action.CountryHome_$$_javassist_seam_5
           at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
           at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)
           ... 65 more
      Caused by: org.hibernate.exception.GenericJDBCException: could not initialize a collection: [com.cb.model.Country.clients#1]
           at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
           at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
           at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
           at org.hibernate.loader.Loader.loadCollection(Loader.java:2022)
           at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:59)
           at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:587)
           at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:83)
           at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1743)
           at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:366)
           at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:108)
           at org.hibernate.collection.PersistentSet.toArray(PersistentSet.java:194)
           at java.util.ArrayList.<init>(Unknown Source)
           at com.cb.action.CountryHome.getClients(CountryHome.java:46)
           at sun.reflect.GeneratedMethodAccessor593.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:22)
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
           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:97)
           at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
           at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
           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.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
           at com.cb.action.CountryHome_$$_javassist_seam_5.getClients(CountryHome_$$_javassist_seam_5.java)
           at sun.reflect.GeneratedMethodAccessor592.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
           at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
           at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
           at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
           at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
           at org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
           at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
           at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
           ... 66 more
      Caused by: java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from column 18 to TIMESTAMP.
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:929)
           at com.mysql.jdbc.ResultSetRow.getTimestampFast(ResultSetRow.java:1339)
           at com.mysql.jdbc.ByteArrayRow.getTimestampFast(ByteArrayRow.java:129)
           at com.mysql.jdbc.ResultSetImpl.getTimestampInternal(ResultSetImpl.java:6754)
           at com.mysql.jdbc.ResultSetImpl.getTimestamp(ResultSetImpl.java:6073)
           at com.mysql.jdbc.ResultSetImpl.getTimestamp(ResultSetImpl.java:6111)
           at org.jboss.resource.adapter.jdbc.WrappedResultSet.getTimestamp(WrappedResultSet.java:979)
           at org.hibernate.type.TimestampType.get(TimestampType.java:53)
           at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:184)
           at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:173)
           at org.hibernate.type.AbstractType.hydrate(AbstractType.java:105)
           at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2124)
           at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1404)
           at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1332)
           at org.hibernate.loader.Loader.getRow(Loader.java:1230)
           at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:603)
           at org.hibernate.loader.Loader.doQuery(Loader.java:724)
           at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
           at org.hibernate.loader.Loader.loadCollection(Loader.java:2015)
           ... 104 more
      Caused by: java.sql.SQLException: Value '[B@1e9df9c' can not be represented as java.sql.Timestamp
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)
           at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:929)
           at com.mysql.jdbc.ResultSetRow.getTimestampFast(ResultSetRow.java:1037)
           ... 121 more
      2010-09-03 13:07:43,226 ERROR [org.hibernate.LazyInitializationException] (http-localhost%2F127.0.0.1-8080-1) illegal access to loading collection
      org.hibernate.LazyInitializationException: illegal access to loading collection
           at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:363)
           at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:108)
           at org.hibernate.collection.PersistentSet.toArray(PersistentSet.java:194)
           at java.util.ArrayList.<init>(Unknown Source)
           at com.cb.action.CountryHome.getClients(CountryHome.java:46)
           at sun.reflect.GeneratedMethodAccessor593.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:22)
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
           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:97)
           at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
           at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
           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.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
           at com.cb.action.CountryHome_$$_javassist_seam_5.getClients(CountryHome_$$_javassist_seam_5.java)
      



      Please advise.


      Am I using unstable environment? If so, can someone point me in the direction of stable versions of Eclipse, JBoss AS and JBoss Seam?


      Best Regards,


      Ashish.

        • 1. Re: What is the current Stable environment?
          Neil Richardson Newbie

          All the versions you are using are stable (indicated by GA in the version number). Not sure why you have a port conflict when you try to run JBoss - there could be any number of reasons due to other software installed on you computer, etc.


          The second error is down to a Hibernate/JPA mapping problem or an incorrect column type in your database schema.


          Caused by: java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from column 18 to TIMESTAMP.
          Caused by: java.sql.SQLException: Value '[B@1e9df9c' can not be represented as java.sql.Timestamp
          



          You may have better luck asking the question on the Hibernate forums including details of your Country class database schema.

          • 2. Re: What is the current Stable environment?
            Ashish Kulkarni Newbie

            Hi Neil,


            Thanks for your response. I have changed the timestamps to datetime and all seems to be well now.


            Thanks again.


            Best Regards,


            Ashish.