1 Reply Latest reply on Oct 4, 2011 4:11 AM by Heiko Rupp

    RHQ 4.1.0 login error after successful installation

    Kavan Desai Newbie

      I am trying to run RHQ 4.1.0 with PostgresSQL 9.1.0. I could able to install the RHQ server sucessfully. However could not able to login with rhqadmin/rhqadmin credentials. The log in showing error related to esacpe character. The exception stack is as like this:

       

      2011-10-03 18:52:41,275 INFO  [org.rhq.helpers.rtfilter.filter.RtFilter] -- Filter openFile: Writing response-time log for webapp with context root 'coregui' to 'C:\rhq-server-4.1.0\jbossas\server\default\log\rt\coregui_rt.log' (hashCode=325544819)...

      2011-10-03 18:53:19,050 WARN  [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 22025

      2011-10-03 18:53:19,050 ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: invalid escape string

        Hint: Escape string must be empty or one character.

      2011-10-03 18:53:19,052 ERROR [org.rhq.enterprise.gui.authentication.AuthenticateUserAction] Could not log into the web application

      javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute query

          at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)

          at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)

          at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

          at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

          at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

          at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)

          at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

          at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

          at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

          at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:240)

          at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:210)

          at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:84)

          at $Proxy241.login(Unknown Source)

          at org.rhq.enterprise.gui.authentication.AuthenticateUserAction.execute(AuthenticateUserAction.java:74)

          at org.rhq.enterprise.gui.legacy.action.BaseRequestProcessor.processActionPerform(BaseRequestProcessor.java:46)

          at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)

          at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)

          at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

          at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)

          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)

          at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)

          at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)

          at org.rhq.enterprise.gui.legacy.WebUserTrackingFilter.doFilter(WebUserTrackingFilter.java:50)

          at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)

          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)

          at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)

          at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)

          at org.rhq.enterprise.gui.legacy.AuthenticationFilter.doFilter(AuthenticationFilter.java:85)

          at sun.reflect.GeneratedMethodAccessor302.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)

          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)

          at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)

          at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)

          at org.rhq.helpers.rtfilter.filter.RtFilter.doFilter(RtFilter.java:124)

          at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)

          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)

          at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)

          at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

          at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)

          at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)

          at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)

          at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)

          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.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:662)

      Caused by: javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute query

          at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)

          at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:73)

          at org.rhq.enterprise.server.util.CriteriaQueryRunner.getCollection(CriteriaQueryRunner.java:99)

          at org.rhq.enterprise.server.util.CriteriaQueryRunner.execute(CriteriaQueryRunner.java:69)

          at org.rhq.enterprise.server.auth.SubjectManagerBean.findSubjectsByCriteria(SubjectManagerBean.java:781)

          at org.rhq.enterprise.server.auth.SubjectManagerBean.getSubjectByName(SubjectManagerBean.java:261)

          at org.rhq.enterprise.server.auth.SubjectManagerBean.login(SubjectManagerBean.java:318)

          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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)

          at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)

          at org.rhq.enterprise.server.common.PerformanceMonitorInterceptor.monitorHibernatePerformance(PerformanceMonitorInterceptor.java:32)

          at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)

          at org.rhq.enterprise.server.common.TransactionInterruptInterceptor.addCheckedActionToTransactionManager(TransactionInterruptInterceptor.java:77)

          at sun.reflect.GeneratedMethodAccessor199.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)

          at org.rhq.enterprise.server.authz.RequiredPermissionsInterceptor.checkRequiredPermissions(RequiredPermissionsInterceptor.java:156)

          at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)

          at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

          at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

          at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

          at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)

          ... 106 more

      Caused by: org.hibernate.exception.DataException: could not execute query

          at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)

          at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

          at org.hibernate.loader.Loader.doList(Loader.java:2216)

          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)

          ... 139 more

      Caused by: org.postgresql.util.PSQLException: ERROR: invalid escape string

        Hint: Escape string must be empty or one character.

          at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)

          at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)

          at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)

          at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)

          at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)

          at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:273)

          at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection$StatementHandler.invoke(AbstractJdbc23PooledConnection.java:455)

          at $Proxy52.executeQuery(Unknown Source)

          at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeQuery(CachedPreparedStatement.java:90)

          at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:342)

          at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:187)

          at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)

          at org.hibernate.loader.Loader.doQuery(Loader.java:674)

          at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)

          at org.hibernate.loader.Loader.doList(Loader.java:2213)

          ... 147 more

      2011-10-03 18:54:04,909 WARN  [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 22025

      2011-10-03 18:54:04,909 ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: invalid escape string

        Hint: Escape string must be empty or one character.