freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Prope rty) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7348e

Hibernate JIRA | Matt Read | 10 years ago
  1. 0

    Ran hbm2doc from with Maven using the following config: <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <configuration> <tasks> <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="maven.test.classpath" /> <hibernatetool destdir="target/hbm2doc"> <configuration configurationfile="src/test/resources/framepersistence/hibernate.cfg.xml" /> <hbm2doc> <property key="dot.executable" value="c:/work/apps/Graphviz/Graphviz/bin/dot.exe"/> </hbm2doc> </hibernatetool> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> Which produced the following error - my mappings contain <any> tags. 12:05:55 ERROR freemarker.runtime - Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Property) threw an exception when invoked on org. hibernate.tool.hbm2x.Cfg2HbmTool@7348e The problematic instruction: ---------- ==> if c2h.getHibernateTypeName(property)?exists [on line 62, column 6 in dot/entitygraph.dot.ftl] in user-directive propertyEdges [on line 32, column 3 in dot/entitygraph.dot.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Prope rty) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7348e at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.BuiltIn$existsBI._getAsTemplateModel(BuiltIn.java:635) at freemarker.core.BuiltIn$existsBI.isTrue(BuiltIn.java:646) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) at freemarker.core.Environment.visit(Environment.java:351) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Macro$Context.runMacro(Macro.java:164) at freemarker.core.Environment.visit(Environment.java:537) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:128) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) at freemarker.core.Environment.visit(Environment.java:351) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Environment.process(Environment.java:176) at freemarker.template.Template.process(Template.java:231) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247) at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67) at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28) at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97) at org.hibernate.tool.hbm2x.GenericExporter$1.process(GenericExporter.java:30) at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:126) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) at org.hibernate.tool.hbm2x.DocExporter.generateDot(DocExporter.java:182) at org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:151) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40) at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.UnsupportedOperationException: accept on org.hibernate.mapping.Any([org.hibernate.mapping.Column(cmvSourceTable), org.hibernate.mapping.Col umn(cmvSourceSID)]) at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.handle(DefaultValueVisitor.java:40) at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.accept(DefaultValueVisitor.java:87) at org.hibernate.mapping.Any.accept(Any.java:67) at org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(Cfg2HbmTool.java:380) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) ... 63 more [hibernatetool] An exception occurred while running exporter #2:hbm2doc (Generates html schema documentation) [hibernatetool] To get the full stack trace run ant with -verbose [hibernatetool] org.hibernate.tool.hbm2x.ExporterException: Error while processing template dot/entitygraph.dot.ftl [hibernatetool] freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hiberna te.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7348e [hibernatetool] java.lang.UnsupportedOperationException: accept on org.hibernate.mapping.Any([org.hibernate.mapping.Column(cmvSourceTable), org.hibernate.mappin g.Column(cmvSourceSID)])

    Hibernate JIRA | 10 years ago | Matt Read
    freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Prope rty) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7348e
  2. 0

    Ran hbm2doc from with Maven using the following config: <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <configuration> <tasks> <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="maven.test.classpath" /> <hibernatetool destdir="target/hbm2doc"> <configuration configurationfile="src/test/resources/framepersistence/hibernate.cfg.xml" /> <hbm2doc> <property key="dot.executable" value="c:/work/apps/Graphviz/Graphviz/bin/dot.exe"/> </hbm2doc> </hibernatetool> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> Which produced the following error - my mappings contain <any> tags. 12:05:55 ERROR freemarker.runtime - Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Property) threw an exception when invoked on org. hibernate.tool.hbm2x.Cfg2HbmTool@7348e The problematic instruction: ---------- ==> if c2h.getHibernateTypeName(property)?exists [on line 62, column 6 in dot/entitygraph.dot.ftl] in user-directive propertyEdges [on line 32, column 3 in dot/entitygraph.dot.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Prope rty) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7348e at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.BuiltIn$existsBI._getAsTemplateModel(BuiltIn.java:635) at freemarker.core.BuiltIn$existsBI.isTrue(BuiltIn.java:646) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) at freemarker.core.Environment.visit(Environment.java:351) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Macro$Context.runMacro(Macro.java:164) at freemarker.core.Environment.visit(Environment.java:537) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:128) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) at freemarker.core.Environment.visit(Environment.java:351) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Environment.process(Environment.java:176) at freemarker.template.Template.process(Template.java:231) at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247) at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67) at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28) at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97) at org.hibernate.tool.hbm2x.GenericExporter$1.process(GenericExporter.java:30) at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:126) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) at org.hibernate.tool.hbm2x.DocExporter.generateDot(DocExporter.java:182) at org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:151) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40) at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.UnsupportedOperationException: accept on org.hibernate.mapping.Any([org.hibernate.mapping.Column(cmvSourceTable), org.hibernate.mapping.Col umn(cmvSourceSID)]) at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.handle(DefaultValueVisitor.java:40) at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.accept(DefaultValueVisitor.java:87) at org.hibernate.mapping.Any.accept(Any.java:67) at org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(Cfg2HbmTool.java:380) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) ... 63 more [hibernatetool] An exception occurred while running exporter #2:hbm2doc (Generates html schema documentation) [hibernatetool] To get the full stack trace run ant with -verbose [hibernatetool] org.hibernate.tool.hbm2x.ExporterException: Error while processing template dot/entitygraph.dot.ftl [hibernatetool] freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hiberna te.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7348e [hibernatetool] java.lang.UnsupportedOperationException: accept on org.hibernate.mapping.Any([org.hibernate.mapping.Column(cmvSourceTable), org.hibernate.mappin g.Column(cmvSourceSID)])

    Hibernate JIRA | 10 years ago | Matt Read
    freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Prope rty) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7348e
  3. 0

    When running hbm2doc via ANT and using the GraphViz dot.executable property, I get the following error: [hibernatetool] Jun 22, 2007 2:59:22 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error [hibernatetool] SEVERE: [hibernatetool] [hibernatetool] Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Property) threw an exce ption when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7f5580 [hibernatetool] The problematic instruction: [hibernatetool] ---------- [hibernatetool] ==> if c2h.getHibernateTypeName(property)?exists [on line 62, column 6 in dot/entitygraph.dot.ftl] [hibernatetool] in user-directive propertyEdges [on line 32, column 3 in dot/entitygraph.dot.ftl] [hibernatetool] ---------- [hibernatetool] [hibernatetool] Java backtrace for programmers: [hibernatetool] ---------- [hibernatetool] freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(o rg.hibernate.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7f5580 [hibernatetool] at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136) [hibernatetool] at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) [hibernatetool] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [hibernatetool] at freemarker.core.BuiltIn$existsBI._getAsTemplateModel(BuiltIn.java:635) [hibernatetool] at freemarker.core.BuiltIn$existsBI.isTrue(BuiltIn.java:646) [hibernatetool] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.MixedContent.accept(MixedContent.java:92) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:351) [hibernatetool] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.MixedContent.accept(MixedContent.java:92) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.Macro$Context.runMacro(Macro.java:164) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:537) [hibernatetool] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:128) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.MixedContent.accept(MixedContent.java:92) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:351) [hibernatetool] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.MixedContent.accept(MixedContent.java:92) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.Environment.process(Environment.java:176) [hibernatetool] at freemarker.template.Template.process(Template.java:231) [hibernatetool] at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247) [hibernatetool] at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67) [hibernatetool] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28) [hibernatetool] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97) [hibernatetool] at org.hibernate.tool.hbm2x.GenericExporter$1.process(GenericExporter.java:30) [hibernatetool] at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:126) [hibernatetool] at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) [hibernatetool] at org.hibernate.tool.hbm2x.DocExporter.generateDot(DocExporter.java:182) [hibernatetool] at org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:151) [hibernatetool] at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) [hibernatetool] at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40) [hibernatetool] at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183) [hibernatetool] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [hibernatetool] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) [hibernatetool] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [hibernatetool] at java.lang.reflect.Method.invoke(Method.java:597) [hibernatetool] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) [hibernatetool] at org.apache.tools.ant.Task.perform(Task.java:348) [hibernatetool] at org.apache.tools.ant.Target.execute(Target.java:357) [hibernatetool] at org.apache.tools.ant.Target.performTasks(Target.java:385) [hibernatetool] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) [hibernatetool] at org.apache.tools.ant.Project.executeTarget(Project.java:1298) [hibernatetool] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [hibernatetool] at org.apache.tools.ant.Project.executeTargets(Project.java:1181) [hibernatetool] at org.apache.tools.ant.Main.runBuild(Main.java:698) [hibernatetool] at org.apache.tools.ant.Main.startAnt(Main.java:199) [hibernatetool] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [hibernatetool] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [hibernatetool] Caused by: java.lang.UnsupportedOperationException: accept on org.hibernate.mapping.DependantValue([org.hibernate.mapping.Column(serve _id)]) [hibernatetool] at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.handle(DefaultValueVisitor.java:40) [hibernatetool] at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.accept(DefaultValueVisitor.java:97) [hibernatetool] at org.hibernate.mapping.DependantValue.accept(DependantValue.java:31) [hibernatetool] at org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(Cfg2HbmTool.java:380) [hibernatetool] at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) [hibernatetool] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [hibernatetool] at java.lang.reflect.Method.invoke(Method.java:597) [hibernatetool] at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) [hibernatetool] at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) [hibernatetool] ... 56 more [hibernatetool] An exception occurred while running exporter #2:hbm2doc (Generates html schema documentation) [hibernatetool] To get the full stack trace run ant with -verbose [hibernatetool] org.hibernate.tool.hbm2x.ExporterException: Error while processing template dot/entitygraph.dot.ftl [hibernatetool] freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(o rg.hibernate.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7f5580 [hibernatetool] java.lang.UnsupportedOperationException: accept on org.hibernate.mapping.DependantValue([org.hibernate.mapping.Column(serve_id)])

    Hibernate JIRA | 9 years ago | Ray DeCampo
    freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(o rg.hibernate.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7f5580
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When running hbm2doc via ANT and using the GraphViz dot.executable property, I get the following error: [hibernatetool] Jun 22, 2007 2:59:22 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error [hibernatetool] SEVERE: [hibernatetool] [hibernatetool] Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Property) threw an exce ption when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7f5580 [hibernatetool] The problematic instruction: [hibernatetool] ---------- [hibernatetool] ==> if c2h.getHibernateTypeName(property)?exists [on line 62, column 6 in dot/entitygraph.dot.ftl] [hibernatetool] in user-directive propertyEdges [on line 32, column 3 in dot/entitygraph.dot.ftl] [hibernatetool] ---------- [hibernatetool] [hibernatetool] Java backtrace for programmers: [hibernatetool] ---------- [hibernatetool] freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(o rg.hibernate.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7f5580 [hibernatetool] at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136) [hibernatetool] at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) [hibernatetool] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [hibernatetool] at freemarker.core.BuiltIn$existsBI._getAsTemplateModel(BuiltIn.java:635) [hibernatetool] at freemarker.core.BuiltIn$existsBI.isTrue(BuiltIn.java:646) [hibernatetool] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.MixedContent.accept(MixedContent.java:92) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:351) [hibernatetool] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.MixedContent.accept(MixedContent.java:92) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.Macro$Context.runMacro(Macro.java:164) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:537) [hibernatetool] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:128) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.MixedContent.accept(MixedContent.java:92) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:351) [hibernatetool] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.MixedContent.accept(MixedContent.java:92) [hibernatetool] at freemarker.core.Environment.visit(Environment.java:196) [hibernatetool] at freemarker.core.Environment.process(Environment.java:176) [hibernatetool] at freemarker.template.Template.process(Template.java:231) [hibernatetool] at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247) [hibernatetool] at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67) [hibernatetool] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28) [hibernatetool] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97) [hibernatetool] at org.hibernate.tool.hbm2x.GenericExporter$1.process(GenericExporter.java:30) [hibernatetool] at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:126) [hibernatetool] at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) [hibernatetool] at org.hibernate.tool.hbm2x.DocExporter.generateDot(DocExporter.java:182) [hibernatetool] at org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:151) [hibernatetool] at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) [hibernatetool] at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40) [hibernatetool] at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183) [hibernatetool] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [hibernatetool] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) [hibernatetool] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [hibernatetool] at java.lang.reflect.Method.invoke(Method.java:597) [hibernatetool] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) [hibernatetool] at org.apache.tools.ant.Task.perform(Task.java:348) [hibernatetool] at org.apache.tools.ant.Target.execute(Target.java:357) [hibernatetool] at org.apache.tools.ant.Target.performTasks(Target.java:385) [hibernatetool] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) [hibernatetool] at org.apache.tools.ant.Project.executeTarget(Project.java:1298) [hibernatetool] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [hibernatetool] at org.apache.tools.ant.Project.executeTargets(Project.java:1181) [hibernatetool] at org.apache.tools.ant.Main.runBuild(Main.java:698) [hibernatetool] at org.apache.tools.ant.Main.startAnt(Main.java:199) [hibernatetool] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [hibernatetool] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [hibernatetool] Caused by: java.lang.UnsupportedOperationException: accept on org.hibernate.mapping.DependantValue([org.hibernate.mapping.Column(serve _id)]) [hibernatetool] at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.handle(DefaultValueVisitor.java:40) [hibernatetool] at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.accept(DefaultValueVisitor.java:97) [hibernatetool] at org.hibernate.mapping.DependantValue.accept(DependantValue.java:31) [hibernatetool] at org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(Cfg2HbmTool.java:380) [hibernatetool] at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) [hibernatetool] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [hibernatetool] at java.lang.reflect.Method.invoke(Method.java:597) [hibernatetool] at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583) [hibernatetool] at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) [hibernatetool] ... 56 more [hibernatetool] An exception occurred while running exporter #2:hbm2doc (Generates html schema documentation) [hibernatetool] To get the full stack trace run ant with -verbose [hibernatetool] org.hibernate.tool.hbm2x.ExporterException: Error while processing template dot/entitygraph.dot.ftl [hibernatetool] freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(o rg.hibernate.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7f5580 [hibernatetool] java.lang.UnsupportedOperationException: accept on org.hibernate.mapping.DependantValue([org.hibernate.mapping.Column(serve_id)])

    Hibernate JIRA | 9 years ago | Ray DeCampo
    freemarker.template.TemplateModelException: Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(o rg.hibernate.mapping.Property) threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@7f5580
  6. 0

    Apache Tomcat Simple Comet Servlet

    Stack Overflow | 5 years ago | danny.lesnik
    java.lang.UnsupportedOperationException: This servlet does not accept data

    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. java.lang.UnsupportedOperationException

      accept on org.hibernate.mapping.Any([org.hibernate.mapping.Column(cmvSourceTable), org.hibernate.mapping.Col umn(cmvSourceSID)])

      at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.handle()
    2. Hibernate Tools
      DefaultValueVisitor.accept
      1. org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.handle(DefaultValueVisitor.java:40)
      2. org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.accept(DefaultValueVisitor.java:87)
      2 frames
    3. Hibernate
      Any.accept
      1. org.hibernate.mapping.Any.accept(Any.java:67)
      1 frame
    4. Hibernate Tools
      Cfg2HbmTool.getHibernateTypeName
      1. org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(Cfg2HbmTool.java:380)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    6. FreeMarker
      Template.process
      1. freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583)
      2. freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113)
      3. freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
      4. freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
      5. freemarker.core.BuiltIn$existsBI._getAsTemplateModel(BuiltIn.java:635)
      6. freemarker.core.BuiltIn$existsBI.isTrue(BuiltIn.java:646)
      7. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77)
      8. freemarker.core.Environment.visit(Environment.java:196)
      9. freemarker.core.MixedContent.accept(MixedContent.java:92)
      10. freemarker.core.Environment.visit(Environment.java:196)
      11. freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
      12. freemarker.core.Environment.visit(Environment.java:351)
      13. freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
      14. freemarker.core.Environment.visit(Environment.java:196)
      15. freemarker.core.MixedContent.accept(MixedContent.java:92)
      16. freemarker.core.Environment.visit(Environment.java:196)
      17. freemarker.core.Macro$Context.runMacro(Macro.java:164)
      18. freemarker.core.Environment.visit(Environment.java:537)
      19. freemarker.core.UnifiedCall.accept(UnifiedCall.java:128)
      20. freemarker.core.Environment.visit(Environment.java:196)
      21. freemarker.core.MixedContent.accept(MixedContent.java:92)
      22. freemarker.core.Environment.visit(Environment.java:196)
      23. freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
      24. freemarker.core.Environment.visit(Environment.java:351)
      25. freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
      26. freemarker.core.Environment.visit(Environment.java:196)
      27. freemarker.core.MixedContent.accept(MixedContent.java:92)
      28. freemarker.core.Environment.visit(Environment.java:196)
      29. freemarker.core.Environment.process(Environment.java:176)
      30. freemarker.template.Template.process(Template.java:231)
      30 frames
    7. Hibernate Tools
      AbstractExporter.start
      1. org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247)
      2. org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67)
      3. org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28)
      4. org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
      5. org.hibernate.tool.hbm2x.GenericExporter$1.process(GenericExporter.java:30)
      6. org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:126)
      7. org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
      8. org.hibernate.tool.hbm2x.DocExporter.generateDot(DocExporter.java:182)
      9. org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:151)
      10. org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
      10 frames
    8. A Hibernate O/RM Module
      HibernateToolTask.execute
      1. org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
      2. org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:183)
      2 frames
    9. Ant
      Target.execute
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      2. org.apache.tools.ant.Task.perform(Task.java:364)
      3. org.apache.tools.ant.Target.execute(Target.java:341)
      3 frames
    10. org.apache.maven
      AntRunMojo.execute
      1. org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108)
      2. org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
      2 frames
    11. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
      1 frame
    12. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
      7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
      8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
      8 frames
    13. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    15. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames