mysticfall / pivot4j

Pivot4J provides a common API for OLAP servers which can be used to build an analytical service frontend with pivot style GUI.
Other
128 stars 101 forks source link

Postgres JDBC driver throws an exception at calling unwrap() #134

Closed mysticfall closed 10 years ago

mysticfall commented 10 years ago

As reported by this post, Postgres JDBC 4 driver does not seem to implement unwrap() method, thus resulting in following exception :

Caused by: java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc4.Jdbc4Connection.unwrap(Class<T>) is not yet implemented.
    at org.postgresql.Driver.notImplemented(Driver.java:710) ~[postgresql-jdbc4-9.2.jar:?]
    at org.postgresql.jdbc4.AbstractJdbc4Connection.unwrap(AbstractJdbc4Connection.java:217) ~[postgresql-jdbc4-9.2.jar:?]
    at org.postgresql.jdbc4.Jdbc4Connection.unwrap(Jdbc4Connection.java:21) ~[postgresql-jdbc4-9.2.jar:?]
    at org.pivot4j.datasource.SimpleOlapDataSource.createConnection(SimpleOlapDataSource.java:77) ~[pivot4j-core-0.9-SNAPSHOT.jar:0.9-SNAPSHOT]
    at org.pivot4j.datasource.AbstractOlapDataSource.getConnection(AbstractOlapDataSource.java:105) ~[pivot4j-core-0.9-SNAPSHOT.jar:0.9-SNAPSHOT]
    at org.pivot4j.datasource.AbstractOlapDataSource.getConnection(AbstractOlapDataSource.java:95) ~[pivot4j-core-0.9-SNAPSHOT.jar:0.9-SNAPSHOT]
    at org.pivot4j.analytics.datasource.simple.SimpleDataSourceManager.getCubes(SimpleDataSourceManager.java:124) ~[SimpleDataSourceManager.class:?]
    ... 41 more
mysticfall commented 10 years ago

Oops, I should have read the post more closely... I realized it's just misconfigured Olap4J connection information that was causing the problem.

We better write some manual on how to use this project before we do the 1.0 release.

wanghongfei commented 10 years ago

I run into the same problem. Could you tell me how to fix it?

mysticfall commented 10 years ago

@wanghongfei Hi, I assume you were the one who posted the same question on StackOverflow?

If so, you could read my answer there, and see if it wasn't the same problem I described.

Hope it could help.