org.hibernate.tool.hbm2x.ExporterException: Error while processing template javaclass.vm

Hibernate JIRA | Todd Nine | 1 decade ago
  1. 0

    I receive the following error when attempting to generate the java pojo's from a mapping file. org.hibernate.tool.hbm2x.ExporterException: Error while processing template javaclass.vm at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:85) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:66) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:45) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:173) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) ... 9 more !SUBENTRY 1 org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-05-06 09:22:47.968 !MESSAGE Error while processing template javaclass.vm !STACK 0 org.hibernate.tool.hbm2x.ExporterException: Error while processing template javaclass.vm at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:85) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:66) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:45) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:173) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) ... 9 more !SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-05-06 09:22:47.968 !MESSAGE Error while processing template javaclass.vm !STACK 0 org.hibernate.tool.hbm2x.ExporterException: Error while processing template javaclass.vm at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:85) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:66) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:45) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:173) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) ... 9 more !SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-05-06 09:22:47.968 !MESSAGE Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null !STACK 0 org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:66) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:45) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:173) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105)

    Hibernate JIRA | 1 decade ago | Todd Nine
    org.hibernate.tool.hbm2x.ExporterException: Error while processing template javaclass.vm
  2. 0

    I receive the following error when attempting to generate the java pojo's from a mapping file. org.hibernate.tool.hbm2x.ExporterException: Error while processing template javaclass.vm at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:85) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:66) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:45) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:173) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) ... 9 more !SUBENTRY 1 org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-05-06 09:22:47.968 !MESSAGE Error while processing template javaclass.vm !STACK 0 org.hibernate.tool.hbm2x.ExporterException: Error while processing template javaclass.vm at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:85) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:66) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:45) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:173) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) ... 9 more !SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-05-06 09:22:47.968 !MESSAGE Error while processing template javaclass.vm !STACK 0 org.hibernate.tool.hbm2x.ExporterException: Error while processing template javaclass.vm at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:85) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:66) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:45) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:173) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) ... 9 more !SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-05-06 09:22:47.968 !MESSAGE Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null !STACK 0 org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:66) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:45) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:173) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127) at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105)

    Hibernate JIRA | 1 decade ago | Todd Nine
    org.hibernate.tool.hbm2x.ExporterException: Error while processing template javaclass.vm
  3. 0

    The "hbm2java" subtask does not work when generics are set to "true" and it encounters a many-to-many mapping. -- from User.hbm.xml -- <set name="roles" lazy="true" cascade="none" table="user_role" > <key> <column name="user_id" /> </key> <many-to-many class="de.oraise.refinery.schema.Role" > <column name="role_id" /> </many-to-many> </set> -- -- from build.xml -- <target name="refinery.hbm2java"> <hibernatetool destdir="${src.java.dir}"> <configuration> <fileset dir="${src.java.dir}"> <include name="**/*.hbm.xml" /> </fileset> </configuration> <hbm2java generics="true"/> </hibernatetool> </target> -- -- Stacktrace org.hibernate.tool.hbm2x.ExporterException: Error while processing template pojo/javaclass.vm at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:85) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:81) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:52) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.tool.ant.Hbm2JavaGeneratorTask.execute(Hbm2JavaGeneratorTask.java:39) at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:101) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:301) at org.apache.tools.ant.Target.performTasks(Target.java:328) at org.apache.tools.ant.Project.executeTarget(Project.java:1215) at org.apache.tools.ant.Project.executeTargets(Project.java:1063) at org.apache.tools.ant.Main.runBuild(Main.java:632) at org.apache.tools.ant.Main.startAnt(Main.java:183) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hib ernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(users) Value: org.hibernate.mapping.Set(de.oraise.refinery.schema. Role.users) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:213) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:365) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:166) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:213) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:258) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:204) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:152) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:269) at org.apache.velocity.Template.merge(Template.java:294) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:488) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:457) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) ... 15 more

    Hibernate JIRA | 1 decade ago | Michael Kötter
    org.hibernate.tool.hbm2x.ExporterException: Error while processing template pojo/javaclass.vm
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The "hbm2java" subtask does not work when generics are set to "true" and it encounters a many-to-many mapping. -- from User.hbm.xml -- <set name="roles" lazy="true" cascade="none" table="user_role" > <key> <column name="user_id" /> </key> <many-to-many class="de.oraise.refinery.schema.Role" > <column name="role_id" /> </many-to-many> </set> -- -- from build.xml -- <target name="refinery.hbm2java"> <hibernatetool destdir="${src.java.dir}"> <configuration> <fileset dir="${src.java.dir}"> <include name="**/*.hbm.xml" /> </fileset> </configuration> <hbm2java generics="true"/> </hibernatetool> </target> -- -- Stacktrace org.hibernate.tool.hbm2x.ExporterException: Error while processing template pojo/javaclass.vm at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:85) at org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:81) at org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:52) at org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38) at org.hibernate.tool.ant.Hbm2JavaGeneratorTask.execute(Hbm2JavaGeneratorTask.java:39) at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:101) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:301) at org.apache.tools.ant.Target.performTasks(Target.java:328) at org.apache.tools.ant.Project.executeTarget(Project.java:1215) at org.apache.tools.ant.Project.executeTargets(Project.java:1063) at org.apache.tools.ant.Main.runBuild(Main.java:632) at org.apache.tools.ant.Main.startAnt(Main.java:183) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTypeName' in class org.hib ernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(users) Value: org.hibernate.mapping.Set(de.oraise.refinery.schema. Role.users) Type: null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:213) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:365) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:166) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:213) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:258) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:204) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:152) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:269) at org.apache.velocity.Template.merge(Template.java:294) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:488) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:457) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77) ... 15 more

    Hibernate JIRA | 1 decade ago | Michael Kötter
    org.hibernate.tool.hbm2x.ExporterException: Error while processing template pojo/javaclass.vm
  6. 0

    [SAK-17623] NoClassDefFoundError : org/bouncycastle/jce/provider/BouncyCastleProviders - Sakai

    sakaiproject.org | 12 months ago
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSearchResult' in class org.sakaiproject.search.tool.SearchBeanImpl$3 threw exception class java.lang.NoClassDefFoundError : org/bouncycastle/jce/provider/BouncyCastleProvider

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.velocity.exception.MethodInvocationException

      Invocation of method 'getTypeName' in class org.hibernate.tool.hbm2x.Cfg2JavaTool threw exception class org.hibernate.tool.hbm2x.ExporterException : Could not resolve type without exception for org.hibernate.mapping.Property(lapseRates) Value: org.hibernate.mapping.PrimitiveArray(com.llic.ides.LapseRate.lapseRates) Type: null

      at org.apache.velocity.runtime.parser.node.ASTMethod.execute()
    2. Apache Velocity
      VelocityEngine.mergeTemplate
      1. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)
      2. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
      3. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
      4. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      5. org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
      6. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      7. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      8. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
      9. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      10. org.apache.velocity.Template.merge(Template.java:256)
      11. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
      12. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419)
      12 frames
    3. Hibernate Tools
      ConfigurationNavigator.export
      1. org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:77)
      2. org.hibernate.tool.hbm2x.POJOExporter.runVelocity(POJOExporter.java:66)
      3. org.hibernate.tool.hbm2x.POJOExporter.startPersistentClass(POJOExporter.java:45)
      4. org.hibernate.tool.hbm2x.ConfigurationNavigator.export(ConfigurationNavigator.java:38)
      4 frames
    4. org.hibernate.eclipse
      ArtifactGeneratorWizard$2.execute
      1. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:173)
      1 frame
    5. org.hibernate.console
      ConsoleConfiguration.execute
      1. org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76)
      1 frame
    6. org.hibernate.eclipse
      ArtifactGeneratorWizard$1.run
      1. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150)
      2. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
      3. org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
      3 frames
    7. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105)
      1 frame