PDA

View Full Version : Compiling Error, please help



kissste
07-19-2002, 09:59 AM
C:\mondrian-0.2>build clean def
C:\mondrian-0.2>set CLASSPATH=C:\mondrian-0.2\/classes;C:\mondrian-0.2\/lib/javacup.jar;C:\jakarta-tomcat-4.0.4/common/l
ib/xerces.jar;C:\mondrian-0.2\/lib/boot.jar;C:/oracle/ora81/jdbc/lib/classes12.zip
Buildfile: build.xml
clean:
[delete] Deleting 2 files from C:\mondrian-0.2
def:
BUILD FAILED
java.lang.VerifyError: (class: mondrian/xom/wrappers/XercesDOMParser, method: parse signature: (Lorg/xml/sax/InputSource
;)Lorg/w3c/dom/Document;) Incompatible object argument for function call
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at mondrian.xom.XOMUtil.createDefaultParser(XOMUtil.java:165)
at mondrian.xom.MetaGenerator.<init>(MetaGenerator.java:649)
at mondrian.xom.XOMGenTask.execute(XOMGenTask.java:126)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Total time: 2 seconds
java.lang.VerifyError: (class: mondrian/xom/wrappers/XercesDOMParser, method: parse signature: (Lorg/xml/sax/InputSource
;)Lorg/w3c/dom/Document;) Incompatible object argument for function call
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at mondrian.xom.XOMUtil.createDefaultParser(XOMUtil.java:165)
at mondrian.xom.MetaGenerator.<init>(MetaGenerator.java:649)
at mondrian.xom.XOMGenTask.execute(XOMGenTask.java:126)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
(class: mondrian/xom/wrappers/XercesDOMParser, method: parse signature: (Lorg/xml/sax/InputSource;)Lorg/w3c/dom/Document
;) Incompatible object argument for function call
C:\mondrian-0.2>
Thank you for all your suggestions.....
Ant-1.5
Tomcat-4.0.4
xalan-2_4_D1
Java 1.4.0

jhyde
07-22-2002, 04:44 PM
Apologies for the slow response; just back from vacation.
I saw a problem similar to this when I tried to move to ant 1.5. I think the cause was that ant 1.5 contains a newer version of xerces than that used by other components. (Basically, the syndrome known to Windows developers as 'dll hell' has been faithfully reproduced on our beloved Java platform as 'jar hell'.)
I backed off at that time because ant-1.5 was still beta. Can you please try reverting to Ant-1.4.1 and see if the problem goes away? Meantime, I'll try upgrading to the component versions you list and see if I can get it to work.
Julian

kissste
07-25-2002, 06:29 AM
Thanks, downgrade to ant-1.4.1 helped. I managed to get it running.
Thanks again.
Steve