Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5431

Function postgis_full_version() does not exist; Transaction Fails

XMLWordPrintable

      Within a XA transaction, when Teiid tries to do "initCapabilities" on Postgresql JDBC connector, it issues a function call "select postgis_full_version()" to detect the postgis version. However, if the postgis is not installed, then this fails.

      The undesired side effect is, the query already started a transaction then the whole transaction is rolled back.

      Caused by: org.postgresql.util.PSQLException: ERROR: function postgis_full_version() does not exist
        Hint: No function matches the given name and argument types. You might need to add explicit type casts.
        Position: 8
      	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2455) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2155) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:288) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:430) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:356) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:303) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:289) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:266) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:233) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_161]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_161]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_161]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_161]
      	at org.postgresql.ds.PGPooledConnection$StatementHandler.invoke(PGPooledConnection.java:423) ~[postgresql-9.4.1212.jre7.jar!/:9.4.1212.jre7]
      	at com.sun.proxy.$Proxy90.executeQuery(Unknown Source) ~[na:na]
      	at org.teiid.translator.jdbc.postgresql.PostgreSQLExecutionFactory.initCapabilities(PostgreSQLExecutionFactory.java:324) ~[translator-jdbc-11.1.0-SNAPSHOT.jar!/:11.1.0-SNAPSHOT]
      	at org.teiid.translator.jdbc.postgresql.PostgreSQLExecutionFactory.initCapabilities(PostgreSQLExecutionFactory.java:72) ~[translator-jdbc-11.1.0-SNAPSHOT.jar!/:11.1.0-SNAPSHOT]
      

              rhn-engineering-shawkins Steven Hawkins
              rhn-engineering-rareddy Ramesh Reddy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: