Hitachi Vantara Pentaho Community Forums
Results 1 to 7 of 7

Thread: Error compiling

  1. #1
    Join Date
    Apr 2002
    Posts
    1

    Default Error compiling

    Hello there
    I faced the following error while compiling mondrian
    /* start error */
    [javac] E:\mazlan\java\olap\mondrian\src\main\mondrian\rolap\RolapAggregatio
    n.java:192: cannot resolve symbol
    [javac] symbol : class CellRequest
    [javac] location: class mondrian.rolap.RolapStar
    [javac] RolapStar.CellRequest request =
    [javac] ^
    [javac] E:\mazlan\java\olap\mondrian\src\main\mondrian\rolap\RolapAggregatio
    n.java:193: cannot resolve symbol
    [javac] symbol : method instance ()
    [javac] location: class mondrian.rolap.RolapAggregationManager
    [javac] RolapAggregationManager.instance().makeRequest(
    [javac] ^
    [javac] E:\mazlan\java\olap\mondrian\src\main\mondrian\rolap\RolapAggregatio
    n.java:297: cannot resolve symbol
    [javac] symbol : method load (mondrian.rolap.Segment)
    [javac] location: class mondrian.rolap.RolapStar
    [javac] this.data = aggregation.star.load(this);
    [javac] ^
    [javac] 3 errors
    [javac] 84 warnings
    /* end error */
    My environment:
    Win2000
    Tomcat 4.03
    Java SDK 1.4.0
    I think i got my path & classes setup correctly
    Thanks in advance

  2. #2

    Default RE: Error compiling

    Hello all
    I get the same error:
    /* start error */
    [javac] Compiling 6 source files to C:\mondrian-0.2\classes
    [javac] C:/mondrian-0.2/src/main/mondrian/rolap/RolapAggregation.java:192:27
    :192:27: Error: Type mondrian/rolap/RolapStar$CellRequest was not found.
    [javac] C:/mondrian-0.2/src/main/mondrian/rolap/RolapAggregation.java:193:25
    :193:58: Error: No method named "instance" was found in type "mondrian/rolap/Rol
    apAggregationManager".
    [javac] C:/mondrian-0.2/src/main/mondrian/rolap/RolapAggregation.java:297:29
    :297:55: Error: No method named "load" was found in type "mondrian/rolap/RolapSt
    ar".
    /* end error */
    My environment:
    Win XP
    Tomcat 4.03
    Java SDK 1.3.1-03
    My environment variables are OK.
    Some idea?
    Thank you

  3. #3
    Join Date
    Nov 1999
    Posts
    1,618

    Default RE: Error compiling

    Sorry, my fault. I've updated mondrian-0.2-src.zip. Please let me know if you are now able to build & run.

  4. #4
    Join Date
    Aug 2000
    Posts
    3

    Default RE: Error compiling

    It seems that the mondrian-0.2-src.zip in File List is still the old one...
    I still get these messages:
    [javac] C:\mondrian-0.2\src\main\mondrian\olap\Connection.java:44: cannot re
    solve symbol
    [javac] symbol : class Schema
    [javac] location: class mondrian.olap.MondrianDef
    [javac] void loadSchema(MondrianDef.Schema xmlSchema);
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapLevel.java:60: cannot r
    esolve symbol
    [javac] symbol : class Level
    [javac] location: package MondrianDef
    [javac] RolapLevel(RolapHierarchy hierarchy, int depth, MondrianDef.Leve
    l xmlLevel)
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapHierarchy.java:31: cann
    ot resolve symbol
    [javac] symbol : class Hierarchy
    [javac] location: package MondrianDef
    [javac] private MondrianDef.Hierarchy xmlHierarchy;
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapHierarchy.java:103: can
    not resolve symbol
    [javac] symbol : class Hierarchy
    [javac] location: package MondrianDef
    [javac] MondrianDef.Hierarchy xmlHierarchy,
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapHierarchy.java:104: can
    not resolve symbol
    [javac] symbol : class CubeDimension
    [javac] location: package MondrianDef
    [javac] MondrianDef.CubeDimension xmlCubeDimension)
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapHierarchy.java:101: Rol
    apHierarchy(mondrian.rolap.RolapDimension,java.lang.String,boolean) is already d
    efined in mondrian.rolap.RolapHierarchy
    [javac] RolapHierarchy(
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapDimension.java:47: cann
    ot resolve symbol
    [javac] symbol : class Dimension
    [javac] location: package MondrianDef
    [javac] MondrianDef.Dimension xmlDimension,
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapDimension.java:48: cann
    ot resolve symbol
    [javac] symbol : class CubeDimension
    [javac] location: package MondrianDef
    [javac] MondrianDef.CubeDimension xmlCubeDimension)
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapCube.java:43: cannot re
    solve symbol
    [javac] symbol : class Schema
    [javac] location: package MondrianDef
    [javac] RolapConnection connection, MondrianDef.Schema xmlSchema
    ,
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapCube.java:44: cannot re
    solve symbol
    [javac] symbol : class Cube
    [javac] location: package MondrianDef
    [javac] MondrianDef.Cube xmlCube)
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapCube.java:76: cannot re
    solve symbol
    [javac] symbol : class Schema
    [javac] location: package MondrianDef
    [javac] RolapConnection connection, MondrianDef.Schema xmlSchema
    ,
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapCube.java:77: cannot re
    solve symbol
    [javac] symbol : class VirtualCube
    [javac] location: package MondrianDef
    [javac] MondrianDef.VirtualCube xmlVirtualCube)
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapConnection.java:121: ca
    nnot resolve symbol
    [javac] symbol : class Schema
    [javac] location: package MondrianDef
    [javac] public void loadSchema(MondrianDef.Schema xmlSchema)
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapMeasure.java:14: mondri
    an.olap.MondrianDef is not public in mondrian.olap; cannot be accessed from outs
    ide package
    [javac] import mondrian.olap.MondrianDef;
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapMeasure.java:48: cannot
    resolve symbol
    [javac] symbol : class Measure
    [javac] location: package MondrianDef
    [javac] MondrianDef.Measure xmlMeasure)
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapHierarchy.java:123: can
    not resolve symbol
    [javac] symbol : class DimensionUsage
    [javac] location: package MondrianDef
    [javac] if (xmlCubeDimension instanceof MondrianDef.DimensionUsa
    ge) {
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapHierarchy.java:125: can
    not resolve symbol
    [javac] symbol : class DimensionUsage
    [javac] location: package MondrianDef
    [javac] ((MondrianDef.DimensionUsage) xmlCubeDim
    ension).source;
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapCube.java:57: cannot re
    solve symbol
    [javac] symbol : class CubeDimension
    [javac] location: package MondrianDef
    [javac] MondrianDef.CubeDimension xmlCubeDimension = xml
    Cube.dimensions[i];
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapCube.java:58: cannot re
    solve symbol
    [javac] symbol : class Dimension
    [javac] location: package MondrianDef
    [javac] MondrianDef.Dimension xmlDimension = xmlCubeDime
    nsion.getDimension(xmlSchema);
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapCube.java:91: cannot re
    solve symbol
    [javac] symbol : class VirtualCubeDimension
    [javac] location: package MondrianDef
    [javac] MondrianDef.VirtualCubeDimension xmlCubeDimensio
    n =
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapCube.java:93: cannot re
    solve symbol
    [javac] symbol : class Dimension
    [javac] location: package MondrianDef
    [javac] MondrianDef.Dimension xmlDimension = xmlCubeDime
    nsion.getDimension(
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapCube.java:104: cannot r
    esolve symbol
    [javac] symbol : class VirtualCubeMeasure
    [javac] location: package MondrianDef
    [javac] MondrianDef.VirtualCubeMeasure xmlMeasure =
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapConnection.java:62: can
    not resolve symbol
    [javac] symbol : class Schema
    [javac] location: package MondrianDef
    [javac] MondrianDef.Schema xmlSchema = n
    ew MondrianDef.Schema(
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapConnection.java:62: can
    not resolve symbol
    [javac] symbol : class Schema
    [javac] location: package MondrianDef
    [javac] MondrianDef.Schema xmlSchema = n
    ew MondrianDef.Schema(
    [javac]
    ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapConnection.java:124: ca
    nnot resolve symbol
    [javac] symbol : class Cube
    [javac] location: package MondrianDef
    [javac] MondrianDef.Cube xmlCube = xmlSchema.cubes[i];
    [javac] ^
    [javac] C:\mondrian-0.2\src\main\mondrian\rolap\RolapConnection.java:132: ca
    nnot resolve symbol
    [javac] symbol : class VirtualCube
    [javac] location: package MondrianDef
    [javac] MondrianDef.VirtualCube xmlVirtualCube = xmlSche
    ma.virtualCubes[i];
    [javac] ^
    [javac] 26 errors
    BUILD FAILED
    environment:
    windows 2000 advanced server
    jdk-1.3
    jakarta-tomcat-4.0.4
    others are the same as suggested in documents

  5. #5
    Join Date
    Aug 2000
    Posts
    3

    Default RE: Error compiling

    Oops, seems I missed several things.
    1. this is not the same error message,
    2. I'm using xalan-j_2_4_D1, and
    3. class mondrian.olap.MondrianDef wasn't generated, and the last line of the message was
    /* start error */
    C:\mondrian-0.2\build.xml:125: Compile failed, messages should have been provide
    d.
    /* end error */
    , on which I need some help.

  6. #6
    Join Date
    Nov 1999
    Posts
    1,618

    Default RE: Error compiling

    Can you do
    build clean def
    and let me know what output you see. I get the following; you should get something similar:
    $ build clean def
    E:\mondrian-0.2>set CLASSPATH=E:\mondrian-0.2\/classes;E:\mondrian-0.2\/lib/javacup.jar;E:\jakarta-tomcat-4.0.3/common/lib/xerces.jar;E:\mondrian-0.2\/lib/boot.jar;E:/oracle/ora81/jdbc/lib/classes12.zip
    Buildfile: build.xml
    clean:
    [delete] Deleting 3 files from E:\mondrian-0.2
    def:
    [xomgen] Writing src\main\mondrian\xom\meta.dtd
    [xomgen] Writing src\main\mondrian\xom\MetaDef.java
    [xomgen] Done
    [xomgen] Writing src\main\mondrian\olap\mondrian.dtd
    [xomgen] Writing src\main\mondrian\olap\MondrianDef.java
    [xomgen] Done
    [xomgen] Writing src\main\mondrian\resource\Resource.dtd
    [xomgen] Writing src\main\mondrian\resource\ResourceDef.java
    [xomgen] Done
    BUILD SUCCESSFUL
    Total time: 2 seconds

  7. #7
    Join Date
    Aug 2000
    Posts
    3

    Default RE: Error compiling

    It's the same output:
    /* start output */
    C:\mondrian-0.2>build clean def
    C:\mondrian-0.2>set CLASSPATH=C:\mondrian-0.2\/classes;C:\mondrian-0.2\/lib/java
    cup.jar;C:/jakarta-tomcat-4.0.4/common/lib/xerces.jar;C:\mondrian-0.2\/lib/boot.
    jar;C:/oracle/ora81/jdbc/lib/classes12.zip
    Buildfile: build.xml
    clean:
    [delete] Deleting 3 files from C:\mondrian-0.2
    def:
    [xomgen] Writing src\main\mondrian\xom\meta.dtd
    [xomgen] Writing src\main\mondrian\xom\MetaDef.java
    [xomgen] Done
    [xomgen] Writing src\main\mondrian\olap\mondrian.dtd
    [xomgen] Writing src\main\mondrian\olap\MondrianDef.java
    [xomgen] Done
    [xomgen] Writing src\main\mondrian\resource\Resource.dtd
    [xomgen] Writing src\main\mondrian\resource\ResourceDef.java
    [xomgen] Done
    BUILD SUCCESSFUL
    Total time: 2 seconds
    C:\mondrian-0.2>
    /* end output */
    and it builds now. thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.