← Back to team overview

dhis2-devs team mailing list archive

[Bug 422440] Re: Tally sheet generator reports errors during generation

 

Tally sheet generator has been removed.

** Changed in: dhis2
       Status: New => Invalid

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/422440

Title:
  Tally sheet generator reports errors during generation

Status in DHIS 2 - District Health Information Software:
  Invalid

Bug description:
  During the generation of a tally sheet, the following exception was
  encoutered.

  Platform: Tomcat 6, Postgresql

  org.hibernate.exception.SQLGrammarException: could not execute query
  	org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
  	org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  	org.hibernate.loader.Loader.doList(Loader.java:2216)
  	org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
  	org.hibernate.loader.Loader.list(Loader.java:2099)
  	org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
  	org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
  	org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
  	org.hisp.dhis.datavalue.hibernate.HibernateDataValueStore.getDataValues(HibernateDataValueStore.java:282)
  	org.hisp.dhis.datavalue.DefaultDataValueService.getDataValues(DefaultDataValueService.java:134)
  	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  	java.lang.reflect.Method.invoke(Method.java:597)
  	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
  	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
  	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
  	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
  	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
  	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
  	$Proxy65.getDataValues(Unknown Source)
  	org.hisp.dhis.tallysheet.DefaultTallySheetService.createTallySheet(DefaultTallySheetService.java:84)
  	org.hisp.dhis.reporting.tallysheet.action.TallySheetEditAction.execute(TallySheetEditAction.java:192)
  	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  	java.lang.reflect.Method.invoke(Method.java:597)
  	com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
  	com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
  	org.hisp.dhis.webportal.interceptor.WebWorkPortalUserInterceptor.intercept(WebWorkPortalUserInterceptor.java:82)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.webportal.interceptor.WebWorkPortalModuleInterceptor.intercept(WebWorkPortalModuleInterceptor.java:85)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.webportal.interceptor.WebWorkPortalMenuInterceptor.intercept(WebWorkPortalMenuInterceptor.java:91)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.webportal.interceptor.WebWorkPortalParamsInterceptor.intercept(WebWorkPortalParamsInterceptor.java:117)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.StyleInterceptor.intercept(StyleInterceptor.java:89)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.SystemSettingInterceptor.intercept(SystemSettingInterceptor.java:89)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.DataDictionaryModeInterceptor.intercept(DataDictionaryModeInterceptor.java:109)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.DisplayPropertyInterceptor.intercept(DisplayPropertyInterceptor.java:90)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.SortOrderInterceptor.intercept(SortOrderInterceptor.java:124)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.security.intercept.WebWorkSecurityInterceptor.intercept(WebWorkSecurityInterceptor.java:98)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:122)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
  	com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.AbstractPreResultListener.intercept(AbstractPreResultListener.java:71)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
  	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
  	org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
  	org.hisp.dhis.security.filter.RequiredLoginFilter.doFilter(RequiredLoginFilter.java:131)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.hisp.dhis.security.filter.AutomaticAccessFilter.doFilter(AutomaticAccessFilter.java:107)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
  	org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
  	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
  	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

  root cause

  org.postgresql.util.PSQLException: ERROR: syntax error at or near ")"
  	org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592)
  	org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327)
  	org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)
  	org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
  	org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)
  	org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:254)
  	com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
  	org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
  	org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
  	org.hibernate.loader.Loader.doQuery(Loader.java:674)
  	org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
  	org.hibernate.loader.Loader.doList(Loader.java:2213)
  	org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
  	org.hibernate.loader.Loader.list(Loader.java:2099)
  	org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
  	org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
  	org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
  	org.hisp.dhis.datavalue.hibernate.HibernateDataValueStore.getDataValues(HibernateDataValueStore.java:282)
  	org.hisp.dhis.datavalue.DefaultDataValueService.getDataValues(DefaultDataValueService.java:134)
  	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  	java.lang.reflect.Method.invoke(Method.java:597)
  	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
  	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
  	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
  	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
  	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
  	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
  	$Proxy65.getDataValues(Unknown Source)
  	org.hisp.dhis.tallysheet.DefaultTallySheetService.createTallySheet(DefaultTallySheetService.java:84)
  	org.hisp.dhis.reporting.tallysheet.action.TallySheetEditAction.execute(TallySheetEditAction.java:192)
  	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  	java.lang.reflect.Method.invoke(Method.java:597)
  	com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
  	com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
  	org.hisp.dhis.webportal.interceptor.WebWorkPortalUserInterceptor.intercept(WebWorkPortalUserInterceptor.java:82)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.webportal.interceptor.WebWorkPortalModuleInterceptor.intercept(WebWorkPortalModuleInterceptor.java:85)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.webportal.interceptor.WebWorkPortalMenuInterceptor.intercept(WebWorkPortalMenuInterceptor.java:91)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.webportal.interceptor.WebWorkPortalParamsInterceptor.intercept(WebWorkPortalParamsInterceptor.java:117)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.StyleInterceptor.intercept(StyleInterceptor.java:89)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.SystemSettingInterceptor.intercept(SystemSettingInterceptor.java:89)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.DataDictionaryModeInterceptor.intercept(DataDictionaryModeInterceptor.java:109)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.DisplayPropertyInterceptor.intercept(DisplayPropertyInterceptor.java:90)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.SortOrderInterceptor.intercept(SortOrderInterceptor.java:124)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.security.intercept.WebWorkSecurityInterceptor.intercept(WebWorkSecurityInterceptor.java:98)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:122)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
  	com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.hisp.dhis.interceptor.AbstractPreResultListener.intercept(AbstractPreResultListener.java:71)
  	com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
  	org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
  	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
  	org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
  	org.hisp.dhis.security.filter.RequiredLoginFilter.doFilter(RequiredLoginFilter.java:131)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.hisp.dhis.security.filter.AutomaticAccessFilter.doFilter(AutomaticAccessFilter.java:107)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
  	org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  	org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
  	org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
  	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
  	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/422440/+subscriptions


References