JAVA Help with palojlib

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • JAVA Help with palojlib

      Hello! I need help with source code.


      Source Code

      1. ICube cube = database.getCubeByName("testCube");
      2. IElement[][] paths ={{cube.getDimensionByName(cons.DIMENSION_NAME_YEAR).getElementByName(year, false), cube.getDimensionByName(cons.DIMENSION_NAME_MONTH).getElementByName(mon, false), cube.getDimensionByName(cons.DIMENSION_NAME_DATE).getElementByName(day, false), cube.getDimensionByName(cons.DIMENSION_NAME_YEAR_DAY).getElementByName(Integer.toString(dayOfYear), false), cube.getDimensionByName(cons.DIMENSION_NAME_USER).getElementByName(responderId, false), cube.getDimensionByName(cons.DIMENSION_NAME_SERVICE_TYPE).getElementByName(serviceType, false), cube.getDimensionByName(cons.DIMENSION_NAME_PERSON_OR_ORG).getElementByName(cons.ELEMENT_NAME_ORG, false), cube.getDimensionByName(cons.DIMENSION_NAME_DIRECTION).getElementByName(cons.ELEMENT_NAME_DIRECTION_INPUT, false), cube.getDimensionByName(cons.DIMENSION_NAME_MEASURE).getElementByName(cons.ELEMENT_NAME_MEASURE_REQUEST_COUNT, false)}, {cube.getDimensionByName(cons.DIMENSION_NAME_YEAR).getElementByName(year, false), cube.getDimensionByName(cons.DIMENSION_NAME_MONTH).getElementByName(mon, false), cube.getDimensionByName(cons.DIMENSION_NAME_DATE).getElementByName(day, false), cube.getDimensionByName(cons.DIMENSION_NAME_YEAR_DAY).getElementByName(Integer.toString(dayOfYear), false), cube.getDimensionByName(cons.DIMENSION_NAME_USER).getElementByName(requesterId, false), cube.getDimensionByName(cons.DIMENSION_NAME_SERVICE_TYPE).getElementByName(serviceType, false), cube.getDimensionByName(cons.DIMENSION_NAME_PERSON_OR_ORG).getElementByName(cons.ELEMENT_NAME_ORG, false), cube.getDimensionByName(cons.DIMENSION_NAME_DIRECTION).getElementByName(cons.ELEMENT_NAME_DIRECTION_OUTPUT, false), cube.getDimensionByName(cons.DIMENSION_NAME_MEASURE).getElementByName(cons.ELEMENT_NAME_MEASURE_REQUEST_COUNT, false)}};
      3. Object[] values = {1,1}; ICellLoadContext cl = new CellLoadContext(SplashMode.SPLASH_ADD, 100, true, true);
      4. cube.loadCells(paths, values, cl);



      Method loadCells() an error NullPointerException.
      Tell me please, why do I get this error?
      Use palojlib_4.0.20.jar