Saiku ui单独部署saiku没有找到名字的查询

时间:2014-01-01 12:46:01

标签: rest post user-interface get saiku

我正在尝试将saiku-ui与我的自定义Web应用程序(例如x.com)集成。这与部署在其他地方的saiku-server(例如y.com)进行通信

我修改了安全设置,以便匿名对用户进行身份验证,我将这些更改用于 application-context-saiku-webapp.xml

<security:http auto-config='true' access-denied-page="/login.jsp">
<security:intercept-url pattern="/serverdocs/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
<security:intercept-url pattern="/rest/saiku/session*" access="IS_AUTHENTICATED_ANONYMOUSLY" />
<security:intercept-url pattern="/rest/saiku/session/" access="IS_AUTHENTICATED_ANONYMOUSLY" />
<security:intercept-url pattern="/rest/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
<security:intercept-url pattern="/json/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />

我面临的问题是我无法匿名保存查询

当我这样做电话后,

curl -X POST -H“Content-Type:application / json”--data'{“schema”:[“FoodMart”],“formatter”:[“flattened”],“connection”:[“foodmart” “],”目录“:[”FoodMart“],”立方体“:[”HR“],”类型“:[”QM“]}'http:/// saiku / rest / saiku / admin / query / 3A956804 -01EC-6B3D-A8B9-31EEB8CC2747

我得到了这个回复

{ “uniqueName”: “。[的FoodMart] [的FoodMart] [的FoodMart] [HR] [3A956804-01EC-6B3D-A8B9-31EEB8CC2747]”, “名称”:“3A956804-01EC-6B3D-A8B9 -31EEB8CC2747" , “立方”:{ “uniqueName”: “[的FoodMart] [的FoodMart] [的FoodMart] [HR]”, “名称”: “HR”, “connectionName中”: “的FoodMart”, “CatalogName编” :“FoodMart”,“schemaName”:“FoodMart”,“caption”:“HR”,“visible”:true,“cubeName”:“[HR]”},“mdx”:“SELECT \ nFROM [HR]” , “类型”: “QM”, “属性”:{ “saiku.olap.query.limit”: “真”, “saiku.olap.query.filter”: “真”,“org.saiku.query.explain “:” 真”, “org.saiku.connection.scenario”: “假”, “saiku.olap.query.nonempty”: “真”, “saiku.olap.query.nonempty.rows”: “真”, “saiku.olap.query.nonempty.columns”: “真”, “saiku.olap.query.drillthrough”: “真正的”}, “saikuAxes”:[{ “uniqueName”: “列”, “名”:”列”, “dimensionSelections”:[], “序数”:0, “中将sortOrder”:NULL, “sortLiteral”:NULL, “limitFunction”:NULL, “limitFunctionN”:NULL, “limitFunctionSortLiteral”:NULL, “FilterCondition中”:空},{ “uniqueName”: “行”, “姓名”: “行”, “dimensionSelections”:[], “序数”:1, “中将sortOrder”:N ULL, “sortLiteral”:空, “limitFunction”:空, “limitFunctionN”:空, “limitFunctionSortLiteral”:空, “FilterCondition中”:空},{ “uniqueName”: “FILTER”, “名”: “过滤器” “dimensionSelections”:[], “序数”: - 1, “中将sortOrder”:NULL, “sortLiteral”:NULL, “limitFunction”:NULL, “limitFunctionN”:NULL, “limitFunctionSortLiteral”:NULL, “FilterCondition中”:空} ]}

和catalina.out说

2014-01-01 17:50:09,877 DEBUG [org.saiku.web.rest.resources.QueryResource] TRACK / query / 3A956804-01EC-6B3D-A8B9-31EEB8CC2747 POST xml:false 但是当我尝试使用

获取相同的查询时

curl -XGET http:/// saiku / rest / saiku / admin / query / 3A956804-01EC-6B3D-A8B9-31EEB8CC2747

我得到“没有使用名称查找查询”

org.saiku.service.util.exception.SaikuServiceException: No query found using name: 3A956804-01EC-6B3D-A8B9-31EEB8CC2747
org.saiku.service.olap.OlapQueryService.getIQuery(OlapQueryService.java:1015)
org.saiku.service.olap.OlapQueryService.getQuery(OlapQueryService.java:175)
org.saiku.web.rest.resources.QueryResource.getQuery(QueryResource.java:126)
org.saiku.web.rest.resources.QueryResource$$FastClassByCGLIB$$e130f1a0.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:617)
org.saiku.web.rest.resources.QueryResource$$EnhancerByCGLIB$$e19ca8a4.getQuery(<generated>)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)

这里出了什么问题?

1 个答案:

答案 0 :(得分:0)

这种情况正在发生,因为没有会话上下文。 通过模拟我的网络服务登录来解决问题!