PDA

View Full Version : Error compiling



mazlanmat
04-17-2002, 04:34 AM
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

oscar_porcar
04-26-2002, 12:34 AM
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

jhyde
05-01-2002, 06:16 AM
Sorry, my fault. I've updated mondrian-0.2-src.zip. Please let me know if you are now able to build & run.

pm5
06-22-2002, 07:23 PM
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

pm5
06-22-2002, 07:49 PM
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.

jhyde
06-23-2002, 01:04 PM
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

pm5
06-23-2002, 07:30 PM
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!