facebook

hibernate generation error

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #225035 Reply

    Don Nelson
    Member

    When running xdoc on hibernate files, I get the following errors:

    
    [hibernatedoclet] java.lang.NullPointerException
    [hibernatedoclet] at xdoclet.modules.hibernate.HibernateSubTask.engineStarted(HibernateSubTask.java:136)
    [hibernatedoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:556)
    [hibernatedoclet] at xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:617)
    [hibernatedoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:598)
    [hibernatedoclet] at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:201)
    [hibernatedoclet] at xdoclet.modules.hibernate.HibernateSubTask.execute(HibernateSubTask.java:123)
    [hibernatedoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
    [hibernatedoclet] at xdoclet.DocletTask.start(DocletTask.java:468)
    [hibernatedoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105)
    [hibernatedoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:364)
    [hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:341)
    [hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    [hibernatedoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
    [hibernatedoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
    BUILD FAILED: C:\eclipse\workspace\hibernateTest\.xdoclet-build.tmp.xml:88: Unexpected error

    Eclipse 3.0.1, MyEclipse 3.8.4, WinXP SP2, MyEclipse-xdoclet set to use dynamic build specification. I get the same error when using an xdoclet-build.xml file. Any idea what’s going on?

    #225037 Reply

    Riyad Kalla
    Member

    Can you generate and post the doclet file for us to look at?

    #225044 Reply

    Don Nelson
    Member

    Here it is:

    <?xml version="1.0" encoding="UTF-8"?>
    
    <!-- DO NOT EDIT -->
    <!-- This file is automatically regenerated for each new XDoclet generation. -->
    <!-- Any changes you make to this file will be overwritten. If you want -->
    <!-- to edit this file, make a copy and rename it for your own use. -->
    
    <project name="hibernateTest XDoclet Generation" default="_xdoclet_generation_"><property file="xdoclet-build.properties"/>
    <property name="xdoclet.basedir" value="/C:/MyEclipse/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.core_3.8.3/"/>
    <path id="xdoclet.classpath"><pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/classes"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/rt.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/sunrsasign.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/jsse.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/jce.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/charsets.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/ext/dnsns.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/ext/jai_codec.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/ext/jai_core.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/ext/ldapsec.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/ext/localedata.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/ext/mlibwrapper_jai.jar"/>
    <pathelement location="C:/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/activation.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/javax.servlet.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/javax.servlet.jsp.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/jboss-j2ee.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/jboss-jaxrpc.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/jboss-jsr77.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/jboss-saaj.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/mail.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/namespace.jar"/>
    <pathelement location="C:/MyEclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_3.8.4/data/libraryset/1.4/xml-apis.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/ant-1.5.3.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/ant-optional-1.5.3.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/c3p0-0.8.4.5.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/cglib-full-2.0.1.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-beanutils.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-collections-2.1.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-collections.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-dbcp-1.1.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-digester.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-lang-1.0.1.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-logging-1.0.3.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-logging.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-pool-1.1.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/concurrent-1.3.2.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/connector.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/dom.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/dom4j-1.4.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/ehcache-0.7.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/hibernate2.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jaas.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jaxen-full.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jaxp-api.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jboss-cache.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jboss-common.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jboss-jmx.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jboss-system.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jcs-1.0-dev.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jdbc2_0-stdext.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jgroups-2.2.1.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jsf-api.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jsf-impl.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jstl.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/jta.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/junit-3.8.1.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/log4j-1.2.8.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/mail.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/odmg-3.0.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/oscache-2.0.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/proxool-0.8.3.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/sax.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/saxpath.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/standard.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/swarmcache-1.0rc2.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/xalan-2.4.0.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/xalan.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/xerces-2.4.0.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/xercesImpl.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/xml-apis.jar"/>
    <pathelement location="C:/eclipse/workspace/hibernateTest/WebRoot/WEB-INF/lib/commons-fileupload-1.0.jar"/>
    
    <fileset dir="${xdoclet.basedir}">
    <include name="*.jar"/>
    </fileset>
    </path>
    <target name="_xdoclet_generation_" depends="N10004"/>
    <target name="N10004" description="Standard Hibernate">
    <taskdef classpathref="xdoclet.classpath" classname="xdoclet.modules.hibernate.HibernateDocletTask" name="hibernatedoclet"/><hibernatedoclet excludedTags="@version,@author,@todo,@see"  destDir="src"  addedTags="@xdoclet-generated at ${TODAY},@copyright The XDoclet Team,@author XDoclet,@version ${version}" >
    
    
    
    
    
    
    
    
    <fileset dir="src"  includes="**/*.java" >
    
    
    
    </fileset>
    <hibernate destinationFile="Cat.jbm.xml"  destDir="src/domain" >
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    </hibernate>
    </hibernatedoclet></target></project>
    
    #225048 Reply

    Greg
    Member

    Can you replicate this issue on a new Hibernate project, or does it only happen on your existing project?

    #225115 Reply

    Don Nelson
    Member

    I am unable to replicate this in a new project – it only occurs in the existing project.

    #225308 Reply

    Riyad Kalla
    Member

    One of our developers took a look at this and thinks it might be differing versions of the Hibernate libraries in your classpath, can you see if the broken and working projects do infact have different versions of Hibernate?

    #225960 Reply

    I have the same problem. Evrything worked fine since the update to 3.8.4. It seems, the property destinationFile in the tag hibernate has some problems. Disabeling the property destionationFile solves the exception but not the problem :(. Is Hibernate 3.0 being implemented in the next release?

    #225968 Reply

    Riyad Kalla
    Member

    Our hibernate support will continue to expand, and I do not know the plan for Hib3 at this moment, likely not in the next release as those features were already spec’ed out months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: hibernate generation error

You must be logged in to post in the forum log in