java.lang.RuntimeException

Pentaho BI Platform Tracking | hhaas | 1 decade ago
  1. 0

    Two statements, executed in a row, raise an exception. Any statement alone works well. Following Code to produces the exception: package mondrian.test; import junit.framework.TestCase; import mondrian.olap.*; /** * bad sequence * */ public class Sequence extends TestCase { /** * Constructor for Sequence. * @param arg0 */ public Sequence(String arg0) { super(arg0); } public static void main(String[] args) { junit.textui.TestRunner.run (Sequence.class); } public void testSequence() { String mdxQueries[] = { "select {[Measures].[Unit Sales], [Measures].[Store Cost], [Measures].[Store Sales]} ON columns, "+ "Order("+ "{([Store].[All Stores].[USA].[CA], [Product].[All Products].[Drink].[Alcoholic Beverages]), "+ "([Store].[All Stores].[USA].[CA], [Product].[All Products].[Drink].[Beverages]), "+ "Crossjoin({[Store].[All Stores].[USA].[CA].Children}, {[Product].[All Products].[Drink].[Beverages]}), "+ "([Store].[All Stores].[USA].[CA], [Product].[All Products].[Drink].[Dairy]), "+ "([Store].[All Stores].[USA].[OR], [Product].[All Products].[Drink].[Alcoholic Beverages]), "+ "([Store].[All Stores].[USA].[OR], [Product].[All Products].[Drink].[Beverages]), "+ "([Store].[All Stores].[USA].[OR], [Product].[All Products].[Drink].[Dairy]), "+ "([Store].[All Stores].[USA].[WA], [Product].[All Products].[Drink].[Alcoholic Beverages]), "+ "([Store].[All Stores].[USA].[WA], [Product].[All Products].[Drink].[Beverages]), "+ "([Store].[All Stores].[USA].[WA], [Product].[All Products].[Drink].[Dairy])}, "+ "[Measures].[Store Cost], BDESC) ON rows "+ "from [Sales] "+ "where ([Time].[1997])" , "select {[Measures].[Unit Sales], [Measures].[Store Cost], [Measures].[Store Sales]} ON columns, "+ "Order("+ "{([Store].[All Stores].[USA].[WA], [Product].[All Products].[Drink].[Beverages]), "+ "([Store].[All Stores].[USA].[CA], [Product].[All Products].[Drink].[Beverages]), "+ "([Store].[All Stores].[USA].[OR], [Product].[All Products].[Drink].[Beverages]), "+ "([Store].[All Stores].[USA].[WA], [Product].[All Products].[Drink].[Alcoholic Beverages]), "+ "([Store].[All Stores].[USA].[CA], [Product].[All Products].[Drink].[Alcoholic Beverages]), "+ "([Store].[All Stores].[USA].[OR], [Product].[All Products].[Drink].[Alcoholic Beverages]), "+ "([Store].[All Stores].[USA].[WA], [Product].[All Products].[Drink].[Dairy]), "+ "([Store].[All Stores].[USA].[CA].[San Diego], [Product].[All Products].[Drink].[Beverages]), "+ "([Store].[All Stores].[USA].[CA].[Los Angeles], [Product].[All Products].[Drink].[Beverages]), "+ "Crossjoin({[Store].[All Stores].[USA].[CA].[Los Angeles]}, {[Product].[All Products].[Drink]. [Beverages].Children}), "+ "([Store].[All Stores].[USA].[CA].[Beverly Hills], [Product].[All Products].[Drink].[Beverages]), "+ "([Store].[All Stores].[USA].[CA], [Product].[All Products].[Drink].[Dairy]), "+ "([Store].[All Stores].[USA].[OR], [Product].[All Products].[Drink].[Dairy]), "+ "([Store].[All Stores].[USA].[CA].[San Francisco], [Product].[All Products].[Drink].[Beverages])}, "+ "[Measures].[Store Cost], BDESC) ON rows "+ "from [Sales] "+ "where ([Time].[1997])" }; Connection connection = TestContext.instance ().getFoodMartConnection(); for ( int i = 0; i < mdxQueries.length; i++ ) { Query query = connection.parseQuery(mdxQueries [i]); connection.execute(query); } } } The call stack is: java.lang.ClassCastException: java.lang.RuntimeException at mondrian.olap.fun.FunUtil.compareValues (FunUtil.java:366) at mondrian.olap.fun.BreakArrayComparator.compare (FunUtil.java:873) at mondrian.olap.fun.ArrayComparator.compare (FunUtil.java:787) at mondrian.olap.fun.ReverseComparator.compare (FunUtil.java:884) at java.util.Arrays.mergeSort (Arrays.java:1241) at java.util.Arrays.mergeSort (Arrays.java:1248) at java.util.Arrays.mergeSort (Arrays.java:1249) at java.util.Arrays.sort(Arrays.java:1188) at mondrian.olap.fun.FunUtil.sort (FunUtil.java:375) at mondrian.olap.fun.FunUtil.sort (FunUtil.java:353) at mondrian.olap.fun.BuiltinFunTable$50.evaluate (BuiltinFunTable.java:1736) at mondrian.olap.fun.FunkFunDef.evaluate (MultiResolver.java:93) at mondrian.rolap.RolapEvaluator.xx (RolapEvaluator.java:116) at mondrian.olap.FunCall.evaluate (FunCall.java:244) at mondrian.rolap.RolapResult.executeAxis (RolapResult.java:154) at mondrian.rolap.RolapResult.<init> (RolapResult.java:70) at mondrian.rolap.RolapConnection.execute (RolapConnection.java:99) at mondrian.test.Sequence.testSequence (Sequence.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at junit.framework.TestCase.runTest (TestCase.java:166) at junit.framework.TestCase.runBare (TestCase.java:140) at junit.framework.TestResult$1.protect (TestResult.java:106) at junit.framework.TestResult.runProtected (TestResult.java:124) at junit.framework.TestResult.run (TestResult.java:109) at junit.framework.TestCase.run (TestCase.java:131) at junit.framework.TestSuite.runTest (TestSuite.java:173) at junit.framework.TestSuite.run (TestSuite.java:168) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.ru nTests(RemoteTestRunner.java:329) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.ru n(RemoteTestRunner.java:218) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.m ain(RemoteTestRunner.java:151)

    Pentaho BI Platform Tracking | 1 decade ago | hhaas
    java.lang.RuntimeException
  2. 0

    Mensagens enviadas por pauloah

    com.br | 1 year ago
    java.lang.RuntimeException
  3. 0

    GitHub comment 120#159529968

    GitHub | 1 year ago | tinevez
    java.lang.RuntimeException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Strongly Typed, Loosely Coupled: Scala Tail Recursion

    blogspot.com | 1 year ago
    java.lang.RuntimeException
  6. 0

    J2EE Dispatcher & Server processes are in r... | SCN

    sap.com | 1 year ago
    java.lang.RuntimeException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      No message provided

      at mondrian.olap.fun.FunUtil.compareValues()
    2. mondrian.olap.fun
      ReverseComparator.compare
      1. mondrian.olap.fun.FunUtil.compareValues(FunUtil.java:366)
      2. mondrian.olap.fun.BreakArrayComparator.compare(FunUtil.java:873)
      3. mondrian.olap.fun.ArrayComparator.compare(FunUtil.java:787)
      4. mondrian.olap.fun.ReverseComparator.compare(FunUtil.java:884)
      4 frames
    3. Java RT
      Arrays.sort
      1. java.util.Arrays.mergeSort(Arrays.java:1241)
      2. java.util.Arrays.mergeSort(Arrays.java:1248)
      3. java.util.Arrays.mergeSort(Arrays.java:1249)
      4. java.util.Arrays.sort(Arrays.java:1188)
      4 frames
    4. mondrian.olap.fun
      FunkFunDef.evaluate
      1. mondrian.olap.fun.FunUtil.sort(FunUtil.java:375)
      2. mondrian.olap.fun.FunUtil.sort(FunUtil.java:353)
      3. mondrian.olap.fun.BuiltinFunTable$50.evaluate(BuiltinFunTable.java:1736)
      4. mondrian.olap.fun.FunkFunDef.evaluate(MultiResolver.java:93)
      4 frames
    5. mondrian.rolap
      RolapEvaluator.xx
      1. mondrian.rolap.RolapEvaluator.xx(RolapEvaluator.java:116)
      1 frame
    6. mondrian.olap
      FunCall.evaluate
      1. mondrian.olap.FunCall.evaluate(FunCall.java:244)
      1 frame
    7. mondrian.rolap
      RolapConnection.execute
      1. mondrian.rolap.RolapResult.executeAxis(RolapResult.java:154)
      2. mondrian.rolap.RolapResult.<init>(RolapResult.java:70)
      3. mondrian.rolap.RolapConnection.execute(RolapConnection.java:99)
      3 frames
    8. mondrian.test
      Sequence.testSequence
      1. mondrian.test.Sequence.testSequence(Sequence.java:94)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    10. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:166)
      2. junit.framework.TestCase.runBare(TestCase.java:140)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:131)
      7. junit.framework.TestSuite.runTest(TestSuite.java:173)
      8. junit.framework.TestSuite.run(TestSuite.java:168)
      8 frames
    11. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:329)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)
      3 frames