3 Replies Latest reply on Mar 3, 2011 5:22 PM by Leon Suarez

    Integrating with Informix DB

    ingo bischofs Newbie

      Hi there,


      am trying to integrate an existing Informix DB (V11.x) and haven't been able to get my seam-gen app up and running.


      it seems as if the sql syntax generated by hibernate (org.hibernate.dialect.InformixDialect) is not correct (using '.' instead of ':' as separator).


      Does anyone have experience using informix db with seam?


      thx a lot

        • 1. Re: Integrating with Informix DB
          Norman Richards Expert

          Maybe this is a question for the hibernate forums?

          • 2. Re: Integrating with Informix DB
            Adrian Mitev Master

            I don't think there is a built-in dialect for Informix 11, the current InformixDialect is not even good enough for Informix 10.

            • 3. Re: Integrating with Informix DB
              Leon Suarez Newbie

              Hello all, also I have a problem with Informix,



              17:03:07,700 WARN  [JDBCExceptionReporter] SQL Error: -201, SQLState: 42000
              17:03:07,700 ERROR [JDBCExceptionReporter] A syntax error has occurred.
              17:03:07,706 ERROR [STDERR] 3/03/2011 05:03:07 PM com.sun.facelets.FaceletViewHandler handleRenderException
              GRAVE: Error Rendering View[/AcumCtaList.xhtml]
              javax.el.ELException: /AcumCtaList.xhtml: Error reading 'resultList' on type org.domain.uno.session.AcumCtaList_$$_javassist_seam_2
                   at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:48)
                   at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
                   at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)
                   at org.richfaces.renderkit.html.PanelRenderer.doEncodeBegin(PanelRenderer.java:169)
                   at org.richfaces.renderkit.html.PanelRenderer.doEncodeBegin(PanelRenderer.java:128)
                   at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
                   at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
                   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:934)
                   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:100)
                   at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                   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.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:206)
                   at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                   at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
                   at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
                   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:230)
                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
                   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(Unknown Source)
              Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
                   at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
                   at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:73)
                   at org.jboss.seam.framework.EntityQuery.initResultList(EntityQuery.java:80)
                   at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:71)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.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:61)
                   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 org.domain.uno.session.AcumCtaList_$$_javassist_seam_2.getResultList(AcumCtaList_$$_javassist_seam_2.java)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.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:53)
                   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.parser.AstChoice.getValue(AstChoice.java:27)
                   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)
                   ... 56 more
              Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
                   at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverte
              17:03:07,706 ERROR [STDERR] r.java:67)
                   at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
                   at org.hibernate.loader.Loader.doList(Loader.java:2223)
                   at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
                   at org.hibernate.loader.Loader.list(Loader.java:2099)
                   at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
                   at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
                   at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
                   at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
                   at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
                   at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
                   ... 92 more
              Caused by: java.sql.SQLException: A syntax error has occurred.
                   at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:349)
                   at com.informix.jdbc.IfxSqli.addException(IfxSqli.java:3039)
                   at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3349)
                   at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2250)
                   at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2170)
                   at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1079)
                   at com.informix.jdbc.IfxResultSet.executePrepare(IfxResultSet.java:182)
                   at com.informix.jdbc.IfxPreparedStatement.setupExecutePrepare(IfxPreparedStatement.java:197)
                   at com.informix.jdbc.IfxPreparedStatement.<init>(IfxPreparedStatement.java:175)
                   at com.informix.jdbc.IfxSqliConnect.prepareStatement(IfxSqliConnect.java:1852)
                   at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.doPrepareStatement(BaseWrapperManagedConnection.java:449)
                   at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.prepareStatement(BaseWrapperManagedConnection.java:444)
                   at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:243)
                   at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:505)
                   at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:423)
                   at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
                   at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
                   at org.hibernate.loader.Loader.doQuery(Loader.java:673)
                   at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
                   at org.hibernate.loader.Loader.doList(Loader.java:2220)
                   ... 100 more



              If any body could help me!