Date: Sun, 20 Jul 2003 19:47:05 -0400 From: "Frederick N. Brier" <fbrier@multideck.com> To: freebsd-java@freebsd.org Subject: JDK1.3.1 AbstractMethodError Message-ID: <5.2.0.9.2.20030720101758.06fbdff8@pop.mindspring.com> In-Reply-To: <001701c34d69$0f10f420$97faa8c0@mhnote>
next in thread | previous in thread | raw e-mail | index | archive | help
I am trying to use my FreeBSD file server as a build machine as well. So I loaded on the JDK1.3.1-p8, JBoss 3.0.2, AntHill-1.6.3.67, Ant 1.5.3-1, XDoclet 1.2b3, Hibernate 2.0, etc on my FreeBSD 4.8 stable box. It is a dual 600MHz PIIIs, w/1GB RAM and an SMP kernal. Note that this build script runs fine on a single processor 2.4GHz Windows 2000 machine with the same versions of the JDK, Ant, XDoclet, and Hibernate. The exception occurs in XDoclet while processing Hibernate mapping tags. I started Ant by itself with remote debugging enabled and set breakpoints in the XDoclet code. Supposedly the java.lang.reflect.InvocationTargetException is occurring on line 639 in xjavadoc.XDoc.java in the getSuperDoc() method. The problem is that there is no reflection occurring on this line. The _owner data member, of a type interface (xjavadoc.XProgramElement), points at a concrete class instance (xjavadoc.SourceClass). The line where the exception fails is the following: XProgramElement superElement = _owner.getSuperElement(); getSuperElement() is a single line method which returns getSuperClass() which is an accessor returning the data member _superclass. All of these classes and interfaces are in the xjavadoc-1.0.jar. I put an echo in the build script which displays all the libraries (and their paths) for the xdoclet task. The jars are the same for the Windows and FreeBSD execution and are checked out of version control into a clean sandbox as part of the build process. Any suggestions, help, info on this problem would be greatly appreciated. Below is the exception trace: [hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/> [hibernatedoclet] Generating mapping file for com.multideck.aiab.db.Plant. [hibernatedoclet] com.multideck.aiab.db.Plant [hibernatedoclet] (TemplateEngine.invokeMethod 509 ) Invoking method failed: xdoclet.tagshandler.ClassTagsHandler.classTagValue, line=2 of template file: jar:file:/usr/home/www/anthill-1.6.3.67/work/aiab-all/tools/lib/xdoclet/xdoclet-hibernate-module-1.2b3-dev.jar!/xdoclet/modules/hibernate/resources/hibernate.xdt [hibernatedoclet] java.lang.reflect.InvocationTargetException: [hibernatedoclet] java.lang.AbstractMethodError: xjavadoc/AbstractProgramElement.getName [hibernatedoclet] at xjavadoc.XDoc.getSuperDoc(XDoc.java:639) [hibernatedoclet] at xjavadoc.XDoc.getTags(XDoc.java:171) [hibernatedoclet] at xjavadoc.XDoc.getTag(XDoc.java:260) [hibernatedoclet] at xdoclet.XDocletTagSupport.getTagValue(XDocletTagSupport.java:440) [hibernatedoclet] at xdoclet.XDocletTagSupport.getTagValue(XDocletTagSupport.java:388) [hibernatedoclet] at xdoclet.XDocletTagSupport.getTagValue(XDocletTagSupport.java:311) [hibernatedoclet] at xdoclet.XDocletTagSupport.getExpandedDelimitedTagValue(XDocletTagSupport.java:245) [hibernatedoclet] at xdoclet.tagshandler.ClassTagsHandler.classTagValue(ClassTagsHandler.java:508) [hibernatedoclet] at java.lang.reflect.Method.invoke(Native Method) [hibernatedoclet] at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:603) [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:502) [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:582) [hibernatedoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:437) [hibernatedoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:333) [hibernatedoclet] at xdoclet.XDocletTagSupport.generate(XDocletTagSupport.java:738) [hibernatedoclet] at xdoclet.tagshandler.ClassTagsHandler.ifHasClassTag(ClassTagsHandler.java:409) [hibernatedoclet] at java.lang.reflect.Method.invoke(Native Method) [hibernatedoclet] at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:603) [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:502) [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:927) [hibernatedoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:894) [hibernatedoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:434) [hibernatedoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:333) [hibernatedoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:382) [hibernatedoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:559) [hibernatedoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:765) [hibernatedoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665) [hibernatedoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592) [hibernatedoclet] at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:196) [hibernatedoclet] at xdoclet.modules.hibernate.HibernateSubTask.execute(HibernateSubTask.java:125) [hibernatedoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48) [hibernatedoclet] at xdoclet.DocletTask.start(DocletTask.java:458) [hibernatedoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:96) [hibernatedoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) [hibernatedoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) [hibernatedoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1255) [hibernatedoclet] at org.apache.tools.ant.Main.runBuild(Main.java:609) [hibernatedoclet] at org.apache.tools.ant.Main.start(Main.java:196) [hibernatedoclet] at org.apache.tools.ant.Main.main(Main.java:235) [hibernatedoclet] (XDocletMain.start 53 ) Running XDoclet failed. [hibernatedoclet] (XDocletMain.start 54 ) <<Running XDoclet failed.: xdoclet.template.TemplateException: Invoking method in class xdoclet.tagshandler.ClassTagsHandler failed: classTagValue, line=2 of template file: jar:file:/usr/home/www/anthill-1.6.3.67/work/aiab-all/tools/lib/xdoclet/xdoclet-hibernate-module-1.2b3-dev.jar!/xdoclet/modules/hibernate/resources/hibernate.xdt, exception: null>> [hibernatedoclet] xdoclet.template.TemplateException: Invoking method in class xdoclet.tagshandler.ClassTagsHandler failed: classTagValue, line=2 of template file: jar:file:/usr/home/www/anthill-1.6.3.67/work/aiab-all/tools/lib/xdoclet/xdoclet-hibernate-module-1.2b3-dev.jar!/xdoclet/modules/hibernate/resources/hibernate.xdt, exception: null [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:510) [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:582) [hibernatedoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:437) [hibernatedoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:333) [hibernatedoclet] at xdoclet.XDocletTagSupport.generate(XDocletTagSupport.java:738) [hibernatedoclet] at xdoclet.tagshandler.ClassTagsHandler.ifHasClassTag(ClassTagsHandler.java:409) [hibernatedoclet] at java.lang.reflect.Method.invoke(Native Method) [hibernatedoclet] at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:603) [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:502) [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:927) [hibernatedoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:894) [hibernatedoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:434) [hibernatedoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:333) [hibernatedoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:382) [hibernatedoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:559) [hibernatedoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:765) [hibernatedoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665) [hibernatedoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592) [hibernatedoclet] at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:196) [hibernatedoclet] at xdoclet.modules.hibernate.HibernateSubTask.execute(HibernateSubTask.java:125) [hibernatedoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48) [hibernatedoclet] at xdoclet.DocletTask.start(DocletTask.java:458) [hibernatedoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:96) [hibernatedoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) [hibernatedoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) [hibernatedoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1255) [hibernatedoclet] at org.apache.tools.ant.Main.runBuild(Main.java:609) [hibernatedoclet] at org.apache.tools.ant.Main.start(Main.java:196) [hibernatedoclet] at org.apache.tools.ant.Main.main(Main.java:235) [hibernatedoclet] file:/usr/home/www/anthill-1.6.3.67/work/aiab-all/build.xml:197: XDoclet failed. [hibernatedoclet] at xdoclet.DocletTask.start(DocletTask.java:461) [hibernatedoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:96) [hibernatedoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) [hibernatedoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) [hibernatedoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1255) [hibernatedoclet] at org.apache.tools.ant.Main.runBuild(Main.java:609) [hibernatedoclet] at org.apache.tools.ant.Main.start(Main.java:196) [hibernatedoclet] at org.apache.tools.ant.Main.main(Main.java:235) [hibernatedoclet] --- Nested Exception --- [hibernatedoclet] xdoclet.XDocletException: Running XDoclet failed.: xdoclet.template.TemplateException: Invoking method in class xdoclet.tagshandler.ClassTagsHandler failed: classTagValue, line=2 of template file: jar:file:/usr/home/www/anthill-1.6.3.67/work/aiab-all/tools/lib/xdoclet/xdoclet-hibernate-module-1.2b3-dev.jar!/xdoclet/modules/hibernate/resources/hibernate.xdt, exception: null [hibernatedoclet] at xdoclet.XDocletTagSupport.generate(XDocletTagSupport.java:746) [hibernatedoclet] at xdoclet.tagshandler.ClassTagsHandler.ifHasClassTag(ClassTagsHandler.java:409) [hibernatedoclet] at java.lang.reflect.Method.invoke(Native Method) [hibernatedoclet] at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:603) [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:502) [hibernatedoclet] at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:927) [hibernatedoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:894) [hibernatedoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:434) [hibernatedoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:333) [hibernatedoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:382) [hibernatedoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:559) [hibernatedoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:765) [hibernatedoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665) [hibernatedoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592) [hibernatedoclet] at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:196) [hibernatedoclet] at xdoclet.modules.hibernate.HibernateSubTask.execute(HibernateSubTask.java:125) [hibernatedoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48) [hibernatedoclet] at xdoclet.DocletTask.start(DocletTask.java:458) [hibernatedoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:96) [hibernatedoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) [hibernatedoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) [hibernatedoclet] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143) [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341) [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339) [hibernatedoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1255) [hibernatedoclet] at org.apache.tools.ant.Main.runBuild(Main.java:609) [hibernatedoclet] at org.apache.tools.ant.Main.start(Main.java:196) [hibernatedoclet] at org.apache.tools.ant.Main.main(Main.java:235) BUILD FAILED file:/usr/home/www/anthill-1.6.3.67/work/aiab-all/build.xml:197: Unexpected error
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.2.20030720101758.06fbdff8>