Just to finish this problem off I have attached my modified foodmart schema.
Tom
--
You received this message because you are subscribed to the Google Groups "pentahoanalysistool-dev" group.
To post to this group, send email to pentahoanal...@googlegroups.com.
To unsubscribe from this group, send email to pentahoanalysisto...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pentahoanalysistool-dev?hl=en.
From: pentahoanal...@googlegroups.com [mailto:pentahoanal...@googlegroups.com] On Behalf Of t...@wamonline.org.uk
Sent: Friday, December 11, 2009 2:58 AM
To: pentahoanal...@googlegroups.com
Subject: Re: [pentahoanalysistool-dev:313] Scenario Test
Just to finish this problem off I have attached my modified foodmart schema.
Tom
From: pentahoanal...@googlegroups.com [mailto:pentahoanal...@googlegroups.com] On Behalf Of t...@wamonline.org.uk
Sent: Friday, December 11, 2009 3:34 AM
To: pentahoanal...@googlegroups.com
Subject: Re: [pentahoanalysistool-dev:314] Scenario Test
From: pentahoanal...@googlegroups.com [mailto:pentahoanal...@googlegroups.com] On Behalf Of t...@wamonline.org.uk
Sent: Saturday, December 12, 2009 4:08 PM
To: pentahoanal...@googlegroups.com
Subject: RE: [pentahoanalysistool-dev:319] Scenario Test
Right better late than never I grabbed the latest CI build, which I
assume has the mondrian scenario bug from last week patched in it:
I can pretty much choose any query for example:
SELECT
{[Measures].[Unit Sales]} ON COLUMNS,
{[Product].[All Products].Children} ON ROWS
FROM [Sales]
or
SELECT
{[Measures].[Unit Sales]} ON COLUMNS,
{[Product].[All Products].[Drink], [Product].[All Products].[Food]} ON
ROWS
FROM [Sales]
Then after processing it with:
final OlapConnection connection = sessionService.getNativeConnection
(userId, sessionId, connectionId);
final Scenario scenario = connection.createScenario();
connection.setScenario(scenario);
CellSet cellData= OlapUtil.getCellSet(queryId);
final Cell cell = cellData.getCell(Arrays.asList(0, 0));
cell.setValue(123.00, AllocationPolicy.EQUAL_ALLOCATION);
No matter what I end up with this exception:
[INFO] com.google.gwt.user.server.rpc.UnexpectedException: Service
method 'public abstract void org.pentaho.pat.rpc.IQuery.alterCell
(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
throws org.pentaho.pat.rpc.exceptions.RpcException' threw an
unexpected exception: java.lang.ClassCastException:
mondrian.rolap.RolapMember cannot be cast to
mondrian.rolap.RolapCalculatedMember
[INFO] at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:360)
[INFO] at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:546)
[INFO] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
[INFO] at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
[INFO] at javax.servlet.http.HttpServlet.service(HttpServlet.java:
637)
[INFO] at javax.servlet.http.HttpServlet.service(HttpServlet.java:
717)
[INFO] at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:487)
[INFO] at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1097)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
[INFO] at
org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke
(FilterSecurityInterceptor.java:109)
[INFO] at
org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter
(FilterSecurityInterceptor.java:83)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at
org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp
(SessionFixationProtectionFilter.java:67)
[INFO] at
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at
org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp
(ExceptionTranslationFilter.java:101)
[INFO] at
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at
org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp
(AnonymousProcessingFilter.java:105)
[INFO] at
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at
org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp
(RememberMeProcessingFilter.java:116)
[INFO] at
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at
org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp
(SecurityContextHolderAwareRequestFilter.java:91)
[INFO] at
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at
org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp
(BasicProcessingFilter.java:174)
[INFO] at
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at
org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp
(AbstractProcessingFilter.java:277)
[INFO] at
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at
org.springframework.security.ui.logout.LogoutFilter.doFilterHttp
(LogoutFilter.java:89)
[INFO] at
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at
org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp
(HttpSessionContextIntegrationFilter.java:235)
[INFO] at
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
[INFO] at org.springframework.security.util.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
[INFO] at org.springframework.security.util.FilterChainProxy.doFilter
(FilterChainProxy.java:175)
[INFO] at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate
(DelegatingFilterProxy.java:236)
[INFO] at
org.springframework.web.filter.DelegatingFilterProxy.doFilter
(DelegatingFilterProxy.java:167)
[INFO] at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1088)
[INFO] at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
[INFO] at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
[INFO] at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
[INFO] at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:729)
[INFO] at org.mortbay.jetty.webapp.WebAppContext.handle
(WebAppContext.java:405)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
[INFO] at org.mortbay.jetty.handler.RequestLogHandler.handle
(RequestLogHandler.java:49)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
[INFO] at org.mortbay.jetty.Server.handle(Server.java:324)
[INFO] at org.mortbay.jetty.HttpConnection.handleRequest
(HttpConnection.java:505)
[INFO] at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:843)
[INFO] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
[INFO] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:
211)
[INFO] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
380)
[INFO] at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:395)
[INFO] at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488)
[INFO] Caused by: java.lang.ClassCastException:
mondrian.rolap.RolapMember cannot be cast to
mondrian.rolap.RolapCalculatedMember
[INFO] at mondrian.rolap.ScenarioImpl.forMember(ScenarioImpl.java:
175)
[INFO] at mondrian.rolap.RolapMember.getPropertyValue
(RolapMember.java:647)
[INFO] at mondrian.rolap.RolapCubeMember.getPropertyValue
(RolapCubeMember.java:279)
[INFO] at mondrian.rolap.RolapMember.getPropertyValue
(RolapMember.java:539)
[INFO] at mondrian.rolap.RolapCell.setValue(RolapCell.java:253)
[INFO] at mondrian.olap4j.MondrianOlap4jCell.setValue
(MondrianOlap4jCell.java:153)
[INFO] at
org.pentaho.pat.server.services.impl.QueryServiceImpl.alterCell
(QueryServiceImpl.java:267)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
[INFO] at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection
(AopUtils.java:307)
[INFO] at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint
(ReflectiveMethodInvocation.java:182)
[INFO] at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:149)
[INFO] at
org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor.invoke
(MethodSecurityInterceptor.java:66)
[INFO] at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java:171)
[INFO] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke
(JdkDynamicAopProxy.java:204)
[INFO] at $Proxy19.alterCell(Unknown Source)
[INFO] at org.pentaho.pat.server.servlet.QueryServlet.alterCell
(QueryServlet.java:167)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
[INFO] at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
[INFO] ... 57 more
Hope thats of some use,
Cheers
Tom
Judging by the location of the error, you have the wrong version of
ScenarioImpl.java.
> [INFO] at
> mondrian.rolap.ScenarioImpl.forMember(ScenarioImpl.java:
> 175)
Check that you have revision 6, the latest. The first executable line in
that method is 178.
You need to sync up to at least 13237.
Julian