|
Just installed Teamwork with postgresql. When I tried to create a company I was kicked out of Teamwork, creating a person was OK. Then I tried creating a new project, was OK. But when I set up a task type I was kicked out again. How can send you the log file? Please note I have tested the same Teamwork version but with HsqlDB without these problems. Thanks for your help |
|
Maybe you should check if you have run in your PostgreSQL database the query explained in chapter 19.6.5 of the user guide here http://www.twproject.com/documentation.page Let me know if this fixes your problem. |
|
It works fine now, some java libraries were missing on the server |
|
In my own experience, it didn't work out of the box: the doc states that
However, it hadn't been done by the setup process, and I experienced the following errors, until I applied it manually : 2011 juin 06 13:15:57 FATAL platformLogger:23 - select listener from org.jblooming.messaging.Listener as listener where ( (upper(ownerx) like :owner1 ) ) org.jblooming.PlatformRuntimeException: Server time: 2011 06 06 13:15:57. select listener from org.jblooming.messaging.Listener as listener where ( (upper( ownerx) like :owner1 ) ) and (listener.identifiableId = :docId) and ( (upper(theClass) like :theClass1 ) ) logged operator: (6) System Manager Server time: 2011 06 06 13:15:57. The exception thrown:
Caused by: org.jblooming.persistence.exceptions.FindException: select listener from org.jblooming.messaging.Listener as listener where ( (upper(ownerx) lik e :owner1 ) ) and (listener.identifiableId = :docId) and ( (upper(theClass) like :theClass1 ) )
Caused by: org.hibernate.exception.SQLGrammarException: could not execute query at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67) 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.jblooming.oql.OqlQuery.list(OqlQuery.java:71) ... 42 more Caused by: org.postgresql.util.PSQLException: ERROR: function upper(integer) does not exist Indice : No function matches the given name and argument types. You might need to add explicit type casts. Position : 533 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2077) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1810) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:498) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:386) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:271) at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:68) at org.logicalcobwebs.cglib.proxy.Proxy$ProxyImpl$$EnhancerByCGLIB$$5a9511cd.executeQuery(<generated>) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186) 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) ... 50 more |
|
Another comment on Postgresql setup documentation: It says :
And I have:
I also updated the JDBC Jar to http://jdbc.postgresql.org/download/postgresql-8.4-702.jdbc3.jar (running along with Postgresql 8.4, tomcat 6.0.24 and Sun Java 1.6.0_24 on Ubuntu 10.04) |
