← Back to team overview

dhis2-devs team mailing list archive

org.postgresql.util.PSQLException: ERROR: column dataelemen1_.shortname does not exist

 

Hi Devs

 

Anyone seen this Exception before, is there an upgrade script that I need to
run?

 

 

I'm upgrading the dhis2 instance to 2.18.

 

* ERROR 2015-05-18 08:58:34,353 Error while executing action
(ExceptionInterceptor.java [http-bio-80-exec-3])

org.hibernate.exception.SQLGrammarException: could not extract ResultSet

        at
org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLState
ConversionDelegate.java:122)

        at
org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(Stand
ardSQLExceptionConverter.java:49)

        at
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.
java:125)

        at
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.
java:110)

        at
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetRetu
rnImpl.java:61)

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

        at
org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1832)

        at
org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1811)

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

        at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.ja
va:341)

        at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.ja
va:311)

        at org.hibernate.loader.Loader.loadCollection(Loader.java:2228)

        at
org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader
.java:65)

        at
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(Ab
stractCollectionPersister.java:674)

        at
org.hibernate.event.internal.DefaultInitializeCollectionEventListener.onInit
ializeCollection(DefaultInitializeCollectionEventListener.java:80)

        at
org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:184
8)

        at
org.hibernate.collection.internal.AbstractPersistentCollection$4.doWork(Abst
ractPersistentCollection.java:549)

        at
org.hibernate.collection.internal.AbstractPersistentCollection.withTemporary
SessionIfNeeded(AbstractPersistentCollection.java:234)

        at
org.hibernate.collection.internal.AbstractPersistentCollection.initialize(Ab
stractPersistentCollection.java:545)

        at
org.hibernate.collection.internal.AbstractPersistentCollection.read(Abstract
PersistentCollection.java:124)

        at
org.hibernate.collection.internal.PersistentList.iterator(PersistentList.jav
a:138)

        at
org.apache.velocity.util.introspection.UberspectImpl.getIterator(UberspectIm
pl.java:116)

        at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:327)

        at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.jav
a:207)

        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)

        at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroPro
xy.java:216)

        at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:
311)

        at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:
230)

        at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.jav
a:207)

        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:34
2)

        at
org.apache.velocity.runtime.directive.Parse.render(Parse.java:260)

        at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.jav
a:207)

        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)

        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:34
2)

        at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement
.java:106)

        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:34
2)

        at org.apache.velocity.Template.merge(Template.java:356)

        at org.apache.velocity.Template.merge(Template.java:260)

        at
org.apache.struts2.dispatcher.VelocityResult.doExecute(VelocityResult.java:1
56)

        at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSuppor
t.java:186)

        at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionI
nvocation.java:371)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:275)

        at
org.hisp.dhis.webportal.interceptor.XWorkPortalUserInterceptor.intercept(XWo
rkPortalUserInterceptor.java:91)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.webportal.interceptor.XWorkPortalModuleInterceptor.intercept(X
WorkPortalModuleInterceptor.java:92)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.webportal.interceptor.XWorkPortalMenuInterceptor.intercept(XWo
rkPortalMenuInterceptor.java:100)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.webportal.interceptor.XWorkPortalParamsInterceptor.intercept(X
WorkPortalParamsInterceptor.java:150)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.interceptor.ContextInterceptor.intercept(ContextInterceptor.ja
va:83)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.interceptor.UserSettingInterceptor.intercept(UserSettingInterc
eptor.java:84)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.security.intercept.LoginInterceptor.intercept(LoginInterceptor
.java:85)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.security.intercept.XWorkSecurityInterceptor.intercept(XWorkSec
urityInterceptor.java:116)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.interceptor.SystemSettingInterceptor.intercept(SystemSettingIn
terceptor.java:137)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139
)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Parame
tersInterceptor.java:254)

        at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:98)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(St
aticParametersInterceptor.java:191)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.hisp.dhis.interceptor.ExceptionInterceptor.intercept(ExceptionIntercepto
r.java:113)

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:246)

        at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)

        at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:562)

        at
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOper
ations.java:77)

        at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilt
er(StrutsPrepareAndExecuteFilter.java:99)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:243)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:330)

        at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.
invoke(FilterSecurityInterceptor.java:118)

        at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.
doFilter(FilterSecurityInterceptor.java:84)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(
ExceptionTranslationFilter.java:113)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.session.SessionManagementFilter.doFilter(Se
ssionManagementFilter.java:103)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.authentication.AnonymousAuthenticationFilte
r.doFilter(AnonymousAuthenticationFilter.java:113)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.servletapi.SecurityContextHolderAwareReques
tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilt
er(RequestCacheAwareFilter.java:45)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.authentication.www.BasicAuthenticationFilte
r.doFilter(BasicAuthenticationFilter.java:150)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:93)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.authentication.AbstractAuthenticationProces
singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.authentication.AbstractAuthenticationProces
singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.hisp.dhis.security.filter.CustomAuthenticationFilter.doFilter(CustomAuth
enticationFilter.java:64)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter
(LogoutFilter.java:110)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.hisp.dhis.security.filter.AutomaticAccessFilter.doFilter(AutomaticAccess
Filter.java:115)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(
HeaderWriterFilter.java:57)

        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.context.request.async.WebAsyncManagerIntegr
ationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)

        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.context.SecurityContextPersistenceFilter.do
Filter(SecurityContextPersistenceFilter.java:87)

        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

        at
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterCha
inProxy.java:192)

        at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
java:160)

        at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(Delegati
ngFilterProxy.java:344)

        at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilt
erProxy.java:261)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:243)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)

        at
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterI
nternal(OpenSessionInViewFilter.java:150)

        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:243)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)

        at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Char
acterEncodingFilter.java:88)

        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:243)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:210)

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:224)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:169)

        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)

        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168
)

        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:118)

        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

        at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce
ssor.java:987)

        at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac
tProtocol.java:579)

        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
309)

        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
45)

        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
15)

        at java.lang.Thread.run(Thread.java:744)

Caused by: org.postgresql.util.PSQLException: ERROR: column
dataelemen1_.shortname does not exist

  Position: 373

        at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorI
mpl.java:2198)

        at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.ja
va:1927)

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

        at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.j
ava:561)

        at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2St
atement.java:419)

        at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statem
ent.java:304)

        at
com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPrep
aredStatement.java:76)

        at
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetRetu
rnImpl.java:56)

      ... 134 more

 

Regards

Pooben


Follow ups