首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >到分析服务的olap4j连接

到分析服务的olap4j连接
EN

Stack Overflow用户
提问于 2013-05-08 07:42:28
回答 1查看 1.9K关注 0票数 0

您好,我正在尝试通过olap4j连接到microsoft分析服务,但每次"org.olap4j.OlapException: this connection遇到一个执行查询时出现异常“时,我都会收到这个错误。

以下是对错误的完整描述:

代码语言:javascript
复制
<code>22:30:45.331 [ERROR] [kimo] 22:30:45.326:XRP4:WARN:RPCManager:org.olap4j.OlapException: This connection encountered an exception while executing a query.undefined - response: {operationId: &quot;listCubes_fetch&quot;,
clientContext: Obj,
context: Obj,
transactionNum: 0,
httpResponseCode: 200,
httpResponseText: &quot;//isc_RPCResponseStart--&gt;[{data:&quot;org.ola...&quot;[212],
xmlHttpRequest: [object XMLHttpRequest],
transport: &quot;xmlHttpRequest&quot;,
status: -1,
clientOnly: undef,
httpHeaders: Obj,
isStructured: true,
callbackArgs: null,
results: Obj,
data: &quot;org.olap4j.OlapException: This connectio...&quot;[91],
invalidateCache: false,
isDSResponse: true,
queueStatus: -1,
startRow: 0,
endRow: 0,
totalRows: 0}

com.smartgwt.client.core.JsObject$SGWT_WARN: 22:30:45.326:XRP4:WARN:RPCManager:org.olap4j.OlapException: This connection encountered an exception while executing a query.undefined - response: {operationId: &quot;listCubes_fetch&quot;,
clientContext: Obj,
context: Obj,
transactionNum: 0,
httpResponseCode: 200,
httpResponseText: &quot;//isc_RPCResponseStart--&gt;[{data:&quot;org.ola...&quot;[212],
xmlHttpRequest: [object XMLHttpRequest],
transport: &quot;xmlHttpRequest&quot;,
status: -1,
clientOnly: undef,
httpHeaders: Obj,
isStructured: true,
callbackArgs: null,
results: Obj,
data: &quot;org.olap4j.OlapException: This connectio...&quot;[91],
invalidateCache: false,
isDSResponse: true,
queueStatus: -1,
startRow: 0,
endRow: 0,
totalRows: 0}
    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.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Unknown Source)



this is the connection function 

<code>

    public static OlapConnection getConnectionAServices() throws Exception {
            Class.forName("org.olap4j.driver.xmla.XmlaOlap4jDriver");
            // anonymous connection
             Connection connectionXMLA =    DriverManager.getConnection(
                "jdbc:xmla:Server=http://localhost/olap/msmdpump.dll;" + "Catalog=Analysis_Service;");

            OlapWrapper wrapper = (OlapWrapper) connectionXMLA;
            OlapConnection olapConnection = wrapper.unwrap(OlapConnection.class);
            return olapConnection;

}

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-05-08 07:46:24

是否在IIS中为SQL Server Analysis Services设置了XML/A HTTP访问?

Configuring HTTP Access to SQL Server 2008 Analysis Services on Microsoft Windows Server 2008

您还需要在数据库中添加一个具有适当权限的角色,并将运行应用程序的用户添加到该角色中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16430383

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档