OSBI / saiku

Saiku Analytics - The Worlds Greatest Open Source OLAP Browser
http://community.meteorite.bi
Apache License 2.0
1.31k stars 663 forks source link

New Vectorwise connnection #342

Closed damonmccarthy closed 7 years ago

damonmccarthy commented 11 years ago

I have install saiku on a linux machine with foodmart and can happliy create reports.

I would like to connect to a Vectorwise database and use a specific mondrian schema.

I have added a new badoo file into the following dir: saiku/saiku-server/tomcat/webapps/saiku/WEB-INF/classes/saiku-datasources

The file contains the following: type=OLAP name=badoo driver=com.ingres.jdbc.IngresDriver location=jdbc:ingres://bi1:VW7/badoo_dwh;UID=pentaho;DBPWD=pentaho;GRP=appli_ro;Catalog=res:badoo/badoo_schema.xml; username=xxx password=xxx

some security configuration for roles, first enable it

security.enabled=true

there are 3 different types of security:

"one2one" (try and map spring user roles to mondrian roles),

"mapping" (define the mapping of spring and mondrian roles manually)

"passthrough" (will pass username + password of logged in user to connection, e.g. jdbc user + password)

security.type=one2one

security.type=mapping

security.mapping=springRole=mondrianRole1;springRole2=mondrianRole2

I have added my schema to: saiku/saiku-server/tomcat/webapps/saiku/WEB-INF/classes/badoo

But when I open Saiku I only see foodmart.

I have looked in the catalina.out error log but cannot see anything.

buggtb commented 11 years ago

Did you either restart the tomcat server, or press the little green refresh data sources arrows?

damonmccarthy commented 11 years ago

I did both if those things. I also looked in the Catalina.out but could not see any attempts to connect to vectorwise.

Thanks,

Damon

On 22 Apr 2013, at 17:28, Tom Barber notifications@github.com wrote:

Did you either restart the tomcat server, or press the little green refresh data sources arrows?

— Reply to this email directly or view it on GitHub.

buggtb commented 11 years ago

Oh sorry damon, had a sleep and saw at least one issue. The driver line in your data sources file, as perverse as it sounds should still be the olap4j driver, mondrian.olap4j.MondrianOlap4jDriver

To use a database you need to specify the database driver in the location line. I don't have a Vectorwise setup here, but I have used it before so I know it works fine, you need something like:

location=jdbc:mondrian:Jdbc=jdbc:mysql://localhost/saikudemo;Catalog=res:foodmart/FoodMart.xml;JdbcDrivers=com.mysql.jdbc.Driver;

But obviously with the mysql bits swapped for vectorwise.

damonmccarthy commented 11 years ago

Tom,

That did not work either. My badoo file is now: type=OLAP name=badoo driver=mondrian.olap4j.MondrianOlap4jDriver location=jdbc:ingres://bi1:VW7/badoo_dwh;UID=pentaho;DBPWD=pentaho;GRP=appli_ro;Catalog=res:badoo/badoo_schema.xml;JdbcDriver=com.ingres.jdbc.IngresDriver username=xxx password=xxx

Damon

On 23 Apr 2013, at 10:20, Tom Barber wrote:

location=jdbc:mondrian:Jdbc=jdbc:mysql://localhost/saikudemo;Catalog=res:foodmart/FoodMart.xml;JdbcDrivers=com.mysql.jdbc.Driver;

Regards,

Damon McCarthy BI Consultant

damon.mccarthy@corp.badoo.com

We're hiring at Badoo!

Badoo Trading Limited is a limited company registered in England and Wales under CRN 7540255 with its registered office at Badoo Trading Limited, Media Village, 131 - 151 Great Titchfield Street, London, W1W 5BB.

This email is confidential and is intended for the addressee only. If you have received it in error, you are on notice of its status. Please notify us by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purpose or disclose its content to any other person.

buggtb commented 11 years ago

Still looks wrong to me Damon, here is a template that I use for vectorwise connections, I can tell you with 100% certainty this template works:

type=OLAP name=foodmart driver=mondrian.olap4j.MondrianOlap4jDriver location=jdbc:mondrian:Jdbc=jdbc:ingres://localhost:V97/foodmart;Catalog=res:foodmart/FoodMart.xml;JdbcDrivers=com.ingres.jdbc.IngresDriver; username=ingres password=<%= vectorw_password %>

If you still get nowhere, pastebin your catalina.out file and I'll take a look. And if you're really stuck and can't make it work, I'll be in Soho about 3:30pm if you want me to swing by and take a look. ;)

damonmccarthy commented 11 years ago

Tom,

We are getting somewhere. My badoo file is now: type=OLAP name=badoo driver=mondrian.olap4j.MondrianOlap4jDriver location=jdbc:mondrian:Jdbc=jdbc:ingres://bi1:VW7/badoo_dwh;Catalog=res:badoo/badoo_schema.xml;JdbcDrivers=com.ingres.jdbc.IngresDriver; username=ingres password=xxx

I now get an error in catalina.out when I click the green arrows for refreshing the cubes.

Here's the catalina.out generated after I click refresh.

mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while creating SQL connection: Jdbc=jdbc:ingres://bi1:VW7/badoo_dwh; JdbcUser=ingres; JdbcPassword=xxx at mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:967) at mondrian.olap.Util.newInternal(Util.java:2323) at mondrian.olap.Util.newError(Util.java:2339) at mondrian.rolap.RolapConnection.(RolapConnection.java:246) at mondrian.rolap.RolapSchema.(RolapSchema.java:187) at mondrian.rolap.RolapSchema.(RolapSchema.java:215) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:207) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:63) at mondrian.rolap.RolapConnection.(RolapConnection.java:160) at mondrian.rolap.RolapConnection.(RolapConnection.java:90) at mondrian.olap.DriverManager.getConnection(DriverManager.java:112) at mondrian.olap.DriverManager.getConnection(DriverManager.java:68) at mondrian.olap4j.MondrianOlap4jConnection.(MondrianOlap4jConnection.java:135) at mondrian.olap4j.FactoryJdbc4Plus$AbstractConnection.(FactoryJdbc4Plus.java:323) at mondrian.olap4j.FactoryJdbc4Impl$MondrianOlap4jConnectionJdbc4.(FactoryJdbc4Impl.java:104) at mondrian.olap4j.FactoryJdbc4Impl.newConnection(FactoryJdbc4Impl.java:32) at mondrian.olap4j.MondrianOlap4jDriver.connect(MondrianOlap4jDriver.java:132) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:200) at org.saiku.datasources.connection.SaikuOlapConnection.connect(SaikuOlapConnection.java:70) at org.saiku.datasources.connection.SaikuOlapConnection.connect(SaikuOlapConnection.java:46) at org.saiku.datasources.connection.SaikuConnectionFactory.getConnection(SaikuConnectionFactory.java:29) at org.saiku.web.impl.SecurityAwareConnectionManager.connect(SecurityAwareConnectionManager.java:265) at org.saiku.web.impl.SecurityAwareConnectionManager.getInternalConnection(SecurityAwareConnectionManager.java:80) at org.saiku.web.impl.SecurityAwareConnectionManager.refreshInternalConnection(SecurityAwareConnectionManager.java:118) at org.saiku.datasources.connection.AbstractConnectionManager.refreshConnection(AbstractConnectionManager.java:112) at org.saiku.datasources.connection.AbstractConnectionManager.refreshAllConnections(AbstractConnectionManager.java:105) at org.saiku.service.olap.OlapDiscoverService.refreshAllConnections(OlapDiscoverService.java:77) at org.saiku.web.rest.resources.OlapDiscoverResource.refreshConnections(OlapDiscoverResource.java:93) at org.saiku.web.rest.resources.OlapDiscoverResource$$FastClassByCGLIB$$353dbe19.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:617) at org.saiku.web.rest.resources.OlapDiscoverResource$$EnhancerByCGLIB$$97d9c4d7.refreshConnections() at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at org.codehaus.enunciate.modules.jersey.EnunciateJerseyServletContainer.service(EnunciateJerseyServletContainer.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.codehaus.enunciate.webapp.HTTPRequestContextFilter.doFilter(HTTPRequestContextFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) Caused by: java.sql.SQLNonTransientConnectionException: Communications error while establishing connection. at com.ingres.gcf.util.SqlExType.getSqlEx(SqlExType.java:97) at com.ingres.gcf.util.SqlExFactory.get(SqlExFactory.java:68) at com.ingres.gcf.util.SqlExFactory.get(SqlExFactory.java:158) at com.ingres.gcf.util.SqlExFactory.get(SqlExFactory.java:197) at com.ingres.gcf.dam.MsgIo.connect(MsgIo.java:326) at com.ingres.gcf.dam.MsgOut.connect(MsgOut.java:325) at com.ingres.gcf.dam.MsgIn.connect(MsgIn.java:343) at com.ingres.gcf.dam.MsgConn.(MsgConn.java:279) at com.ingres.gcf.jdbc.DrvConn.connect(DrvConn.java:750) at com.ingres.gcf.jdbc.DrvConn.(DrvConn.java:476) at com.ingres.gcf.jdbc.JdbcDrv.connect(JdbcDrv.java:590) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:169) at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:68) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96) at mondrian.rolap.RolapConnection.(RolapConnection.java:226) ... 93 more Clearing cache name:foodmart driver:mondrian.olap4j.MondrianOlap4jDriver url:jdbc:mondrian:Jdbc=jdbc:hsqldb:res:foodmart/foodmart;Catalog=res:foodmart/FoodMart.xml;JdbcUser=sa; Catalogs:1 mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while creating SQL connection: Jdbc=jdbc:ingres://bi1:VW7/badoo_dwh; JdbcUser=ingres; JdbcPassword=xxx at mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:967) at mondrian.olap.Util.newInternal(Util.java:2323) at mondrian.olap.Util.newError(Util.java:2339) at mondrian.rolap.RolapConnection.(RolapConnection.java:246) at mondrian.rolap.RolapSchema.(RolapSchema.java:187) at mondrian.rolap.RolapSchema.(RolapSchema.java:215) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:207) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:63) at mondrian.rolap.RolapConnection.(RolapConnection.java:160) at mondrian.rolap.RolapConnection.(RolapConnection.java:90) at mondrian.olap.DriverManager.getConnection(DriverManager.java:112) at mondrian.olap.DriverManager.getConnection(DriverManager.java:68) at mondrian.olap4j.MondrianOlap4jConnection.(MondrianOlap4jConnection.java:135) at mondrian.olap4j.FactoryJdbc4Plus$AbstractConnection.(FactoryJdbc4Plus.java:323) at mondrian.olap4j.FactoryJdbc4Impl$MondrianOlap4jConnectionJdbc4.(FactoryJdbc4Impl.java:104) at mondrian.olap4j.FactoryJdbc4Impl.newConnection(FactoryJdbc4Impl.java:32) at mondrian.olap4j.MondrianOlap4jDriver.connect(MondrianOlap4jDriver.java:132) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:200) at org.saiku.datasources.connection.SaikuOlapConnection.connect(SaikuOlapConnection.java:70) at org.saiku.datasources.connection.SaikuOlapConnection.connect(SaikuOlapConnection.java:46) at org.saiku.datasources.connection.SaikuConnectionFactory.getConnection(SaikuConnectionFactory.java:29) at org.saiku.web.impl.SecurityAwareConnectionManager.connect(SecurityAwareConnectionManager.java:265) at org.saiku.web.impl.SecurityAwareConnectionManager.getInternalConnection(SecurityAwareConnectionManager.java:80) at org.saiku.datasources.connection.AbstractConnectionManager.getConnection(AbstractConnectionManager.java:93) at org.saiku.datasources.connection.AbstractConnectionManager.getAllConnections(AbstractConnectionManager.java:119) at org.saiku.datasources.connection.AbstractConnectionManager.getAllOlapConnections(AbstractConnectionManager.java:139) at org.saiku.olap.discover.OlapMetaExplorer.getAllConnections(OlapMetaExplorer.java:127) at org.saiku.service.olap.OlapDiscoverService.getAllConnections(OlapDiscoverService.java:56) at org.saiku.web.rest.resources.OlapDiscoverResource.refreshConnections(OlapDiscoverResource.java:94) at org.saiku.web.rest.resources.OlapDiscoverResource$$FastClassByCGLIB$$353dbe19.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:617) at org.saiku.web.rest.resources.OlapDiscoverResource$$EnhancerByCGLIB$$97d9c4d7.refreshConnections() at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at org.codehaus.enunciate.modules.jersey.EnunciateJerseyServletContainer.service(EnunciateJerseyServletContainer.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.codehaus.enunciate.webapp.HTTPRequestContextFilter.doFilter(HTTPRequestContextFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) Caused by: java.sql.SQLNonTransientConnectionException: Communications error while establishing connection. at com.ingres.gcf.util.SqlExType.getSqlEx(SqlExType.java:97) at com.ingres.gcf.util.SqlExFactory.get(SqlExFactory.java:68) at com.ingres.gcf.util.SqlExFactory.get(SqlExFactory.java:158) at com.ingres.gcf.util.SqlExFactory.get(SqlExFactory.java:197) at com.ingres.gcf.dam.MsgIo.connect(MsgIo.java:326) at com.ingres.gcf.dam.MsgOut.connect(MsgOut.java:325) at com.ingres.gcf.dam.MsgIn.connect(MsgIn.java:343) at com.ingres.gcf.dam.MsgConn.(MsgConn.java:279) at com.ingres.gcf.jdbc.DrvConn.connect(DrvConn.java:750) at com.ingres.gcf.jdbc.DrvConn.(DrvConn.java:476) at com.ingres.gcf.jdbc.JdbcDrv.connect(JdbcDrv.java:590) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:169) at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:68) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96) at mondrian.rolap.RolapConnection.(RolapConnection.java:226) ... 94 more

Damon

On 23 Apr 2013, at 11:08, Tom Barber wrote:

Still looks wrong to me Damon, here is a template that I use for vectorwise connections, I can tell you with 100% certainty this template works:

type=OLAP name=foodmart driver=mondrian.olap4j.MondrianOlap4jDriver location=jdbc:mondrian:Jdbc=jdbc:ingres://localhost:V97/foodmart;Catalog=res:foodmart/FoodMart.xml;JdbcDrivers=com.ingres.jdbc.IngresDriver; username=ingres password=<%= vectorw_password %>

If you still get nowhere, pastebin your catalina.out file and I'll take a look. And if you're really stuck and can't make it work, I'll be in Soho about 3:30pm if you want me to swing by and take a look. ;)

— Reply to this email directly or view it on GitHub.

Regards,

Damon McCarthy BI Consultant

damon.mccarthy@corp.badoo.com

We're hiring at Badoo!

Badoo Trading Limited is a limited company registered in England and Wales under CRN 7540255 with its registered office at Badoo Trading Limited, Media Village, 131 - 151 Great Titchfield Street, London, W1W 5BB.

This email is confidential and is intended for the addressee only. If you have received it in error, you are on notice of its status. Please notify us by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purpose or disclose its content to any other person.

buggtb commented 11 years ago

Look much improved Damon,

The problem lines are: Caused by: java.sql.SQLNonTransientConnectionException: Communications error while establishing connection. at com.ingres.gcf.util.SqlExType.getSqlEx(SqlExType.java:97) at com.ingres.gcf.util.SqlExFactory.get(SqlExFactory.java:68) at com.ingres.gcf.util.SqlExFactory.get(SqlExFactory.java:158) at com.ingres.gcf.util.SqlExFactory.get(SqlExFactory.java:197) at com.ingres.gcf.dam.MsgIo.connect(MsgIo.java:326) at com.ingres.gcf.dam.MsgOut.connect(MsgOut.java:325) at com.ingres.gcf.dam.MsgIn.connect(MsgIn.java:343) at com.ingres.gcf.dam.MsgConn.(MsgConn.java:279) at com.ingres.gcf.jdbc.DrvConn.connect(DrvConn.java:750) at com.ingres.gcf.jdbc.DrvConn.(DrvConn.java:476) at com.ingres.gcf.jdbc.JdbcDrv.connect(JdbcDrv.java:590) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:169) at

Not having access to the servers I'm not sure, I've not see the extra params you pass with the connection string before, so I'll just have to assume you have them set correctly.

At this point though, its really an Ingres JDBC issue, so you have to make 100% sure you have the correct port(thats always weird) and the other bits and bobs are correct, because Saiku is now using the driver correctly but clearly failing to make the connection