2 Replies Latest reply on Feb 9, 2006 10:01 AM by patrick_ibg

    CRUD generation with JBoss IDE

    patrick_ibg

      Wasn't sure whether to post this in Hibernate Tools or the JBoss IDE forums, but I think here is the best bet...

      I'm checking out the CRUD generation capabilities of JBoss IDE. I have JBoss IDE 1.5 plugin and Hibernate Tools 3.1.0 beta4. I'm also using the Java 1.5 VM.

      I can generate the POJOs fine. When I turn on the EJB3/Annotations option, or the Seam CRUD option, I get the following error (sorry, it's not well formatted... it's copied from the dialog box):


      org.hibernate.tool.hbm2x.ExporterException: MethodInvocationException while processing template Pojo. Invocation of method 'get' in class org.hibernate.tool.hbm2x.TemplateHelper$Templates threw exception class org.hibernate.tool.hbm2x.ExporterException : MethodInvocationException while processing template pojo/PojoTypeDeclaration.vm. Invocation of method 'get' in class org.hibernate.tool.hbm2x.TemplateHelper$Templates threw exception class org.hibernate.tool.hbm2x.ExporterException : MethodInvocationException while processing template pojo/Ejb3TypeDeclaration.vm. Invocation of method 'generateAnnTableUniqueConstraint' in class org.hibernate.tool.hbm2x.pojo.EntityPOJOClass threw exception class java.lang.NullPointerException : null
      org.hibernate.tool.hbm2x.ExporterException: MethodInvocationException while processing template pojo/PojoTypeDeclaration.vm. Invocation of method 'get' in class org.hibernate.tool.hbm2x.TemplateHelper$Templates threw exception class org.hibernate.tool.hbm2x.ExporterException : MethodInvocationException while processing template pojo/Ejb3TypeDeclaration.vm. Invocation of method 'generateAnnTableUniqueConstraint' in class org.hibernate.tool.hbm2x.pojo.EntityPOJOClass threw exception class java.lang.NullPointerException : null
      org.hibernate.tool.hbm2x.ExporterException: MethodInvocationException while processing template pojo/PojoTypeDeclaration.vm. Invocation of method 'get' in class org.hibernate.tool.hbm2x.TemplateHelper$Templates threw exception class org.hibernate.tool.hbm2x.ExporterException : MethodInvocationException while processing template pojo/Ejb3TypeDeclaration.vm. Invocation of method 'generateAnnTableUniqueConstraint' in class org.hibernate.tool.hbm2x.pojo.EntityPOJOClass threw exception class java.lang.NullPointerException : null
      org.hibernate.tool.hbm2x.ExporterException: MethodInvocationException while processing template pojo/Ejb3TypeDeclaration.vm. Invocation of method 'generateAnnTableUniqueConstraint' in class org.hibernate.tool.hbm2x.pojo.EntityPOJOClass threw exception class java.lang.NullPointerException : null
      java.lang.NullPointerException: <no message>

        • 1. Re: CRUD generation with JBoss IDE
          maxandersen

          Do you by any chance have composite id's in your db ?

          the current seam generation has problems with that now.

          in any case, submitting a testcase to hibernate tools jira will be a good thing if it you do not have composite ids.

          • 2. Re: CRUD generation with JBoss IDE
            patrick_ibg

            I don't have any composite ID's (aside from join tables). Actually, I'm using a Hibernate-generated schema. I will try and do the Seam codegen from my set of Annotated Pojos as well. I'll see if I can narrow down the problem a bit more...