[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-953?page=co...
]
Ray DeCampo updated HBX-953:
----------------------------
Attachment: hbx953.hbm.xml
I was able to reproduce the error with the attached hibernate mapping. The mapping is
quite small, so hopefully will be helpful in running down the issue.
java.lang.UnsupportedOperationException: accept on
org.hibernate.mapping.DependantValue
---------------------------------------------------------------------------------------
Key: HBX-953
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-953
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2doc
Affects Versions: 3.2beta9
Environment: Hibernate 3.2.3, tested with 3.2.0 and 3.2.4.sp1
Reporter: Ray DeCampo
Priority: Minor
Attachments: hbx953.hbm.xml
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)])
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira