PDA

View Full Version : JolapTest failed



chlai88
04-06-2003, 08:50 PM
hi,
running JolapTest gives me failures in testDimensionPrint method with this stack print :
mondrian.resource.ChainableRuntimeException: Internal error: Error while executing query [select Filter([Product].Members, ([Product].CurrentMember = "Beer")) ON COLUMNS
from [Sales]
]
at mondrian.olap.MondrianResource.newInternal(MondrianResource.java:45)
at mondrian.olap.Util.newError(Util.java:308)
at mondrian.rolap.RolapConnection.execute(RolapConnection.java:165)
at mondrian.jolap.MondrianCubeCursor.<init>(MondrianCubeCursor.java:44)
at mondrian.jolap.MondrianCubeView.createCursor(MondrianCubeView.java:130)
at mondrian.test.JolapTest.print(JolapTest.java:491)
at mondrian.test.JolapTest.testSimpleDimensionView(JolapTest.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at mondrian.test.JolapTest.main(JolapTest.java:559)
Caused by: java.lang.ClassCastException
at mondrian.olap.fun.FunUtil.getStringArg(FunUtil.java:59)
at mondrian.olap.fun.BuiltinFunTable$111.evaluate(BuiltinFunTable.java:3660)
at mondrian.rolap.RolapEvaluator.xx(RolapEvaluator.java:113)
at mondrian.olap.FunCall.evaluate(FunCall.java:244)
at mondrian.olap.ExpBase.evaluateScalar(ExpBase.java:157)
at mondrian.olap.fun.BuiltinFunTable$60.evaluate(BuiltinFunTable.java:2052)
at mondrian.rolap.RolapEvaluator.xx(RolapEvaluator.java:113)
at mondrian.olap.FunCall.evaluate(FunCall.java:244)
at mondrian.rolap.RolapResult.executeAxis(RolapResult.java:152)
at mondrian.rolap.RolapResult.<init>(RolapResult.java:68)
at mondrian.rolap.RolapConnection.execute(RolapConnection.java:156)
... 20 more
problem in the evaluation of '[Product].CurrentMember = "Beer"' which returns an RolapMember type in getStringArgs. am not familiar wif MDX or exactly sure abt the code but do you need to check for the evaluation return type in the evaluate method of the FunDef definition of "<String Expression> = <String Expression>" ?
anyway, this is pretty cool stuff & currently, i'm also looking at oracle's bibeans middleware. i'm wondering if u can give me some indicators as to the pitfalls & limitations of using mondrian now in a project ?
Regards,
Lai