Re: [Dhis2-users] [Dhis2-devs] ERROR after add attribute in program

2014-06-25 Thread Tran Chau
Hi Channara,

This bug didn't occur on my side and DHIS demo server. Could you please
create an example on demo server (https://apps.dhis2.org/demo) where we can
see the bug on ?

Best regards,

Châu Thu Trân
HISP Viet Nam
Email: tran.hispviet...@gmail.com


On Mon, Jun 23, 2014 at 8:48 PM, rin.chann...@gmail.com 
rin.chann...@gmail.com wrote:

 Here is version I test
 Version:
 2.15
 Build revision:
 15163


 Tran Chau tran.hispviet...@gmail.com wrote:

 Hi Channara,

 Could you please give us more information about version and revision of
 DHIS which you used for testing ?

 Best regards,
 
 Châu Thu Trân
 HISP Viet Nam
 Email: tran.hispviet...@gmail.com


 On Mon, Jun 23, 2014 at 9:40 AM, rin.chann...@gmail.com wrote:

  Sorry for late reply.

 Here is the console of tomcat v7.
 =XXX
 Jun 22, 2014 7:13:48 PM org.apache.catalina.core.ApplicationContext log
 INFO: No Spring WebApplicationInitializer types detected on classpath
 Jun 22, 2014 7:13:49 PM org.apache.catalina.core.ApplicationContext log
 INFO: Initializing Spring root WebApplicationContext
 Jun 22, 2014 7:16:44 PM org.apache.catalina.core.ApplicationContext log
 INFO: Initializing Spring FrameworkServlet 'ohie'
 Jun 22, 2014 7:16:59 PM org.apache.catalina.core.ApplicationContext log
 INFO: Initializing Spring FrameworkServlet 'mobile'
 Jun 22, 2014 7:17:02 PM org.apache.catalina.core.ApplicationContext log
 INFO: Initializing Spring FrameworkServlet 'webapi'
 Jun 22, 2014 7:31:11 PM org.apache.catalina.core.StandardWrapperValve
 invoke
 SEVERE: Servlet.service() for servlet [webapi] in context with path
 [/dhis] threw exception [Request processing failed; nested exception is
 org.hibernate.exception.SQLGrammarException: could not extract ResultSet]
 with root cause
 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column
 'dashboard0_.externalAccess' in 'field list'
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
  at java.lang.reflect.Constructor.newInstance(Unknown Source)
  at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  at com.mysql.jdbc.Util.getInstance(Util.java:386)
  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
  at
 com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
  at
 com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2323)
  at
 com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
  at
 org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:56)
  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.java:341)
  at org.hibernate.loader.Loader.doList(Loader.java:2516)
  at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2361)
  at org.hibernate.loader.Loader.list(Loader.java:2324)
  at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:490)
  at
 org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:355)
  at
 org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:195)
  at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1268)
  at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
  at
 org.hisp.dhis.common.hibernate.HibernateIdentifiableObjectStore.getAllOrderedName(HibernateIdentifiableObjectStore.java:342)
  at
 org.hisp.dhis.common.DefaultIdentifiableObjectManager.getAllSorted(DefaultIdentifiableObjectManager.java:269)
  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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  at
 org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  at
 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  at
 

Re: [Dhis2-users] [Dhis2-devs] ERROR after add attribute in program

2014-06-21 Thread Knut Staring
That message in itself is not informative. Did you look in the Tomcat log?
Can you share it with us?
On 22 Jun 2014 03:57, channara rin rin.chann...@gmail.com wrote:

 HI all,
 I created program with multiple within registration in Program/Attribute
 and then i add some attributes into program. after i click add/update. i
 got the error every time.

 thank you
 channara


 ​
 ​

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-d...@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp