-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: xdoclet2 gets "RuntimeException: more than one top leve
PostPosted: Thu Jan 12, 2006 6:06 pm 
Newbie

Joined: Fri Nov 25, 2005 10:01 pm
Posts: 7
I am getting exception:
[xdoclet] Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin
[xdoclet] * Generate mapping for 'Address' entity
[xdoclet] * Generate mapping for 'Customer' entity
[xdoclet] * Generate mapping for 'Transaction' entity
[xdoclet] Jan 12, 2006 2:01:52 PM org.apache.commons.jelly.expression.jexl.JexlExpression evaluate
[xdoclet] WARNING: Caught exception evaluating: org.apache.commons.jexl.ExpressionImpl@18d30fb. Reason: java.lang.RuntimeException: more than one top lev
el property deined in class PieceTransaction for property facadeLines
[xdoclet] java.lang.RuntimeException: more than one top level property deined in class PieceTransaction for property facadeLines

Can anyone help?

Hibernate version:
3.0

Mapping documents:
/**
* @hibernate.map
* table="facade_line"
* lazy="false"
* cascade="all,delete-orphan"
* @hibernate.key
* column="id_transaction"
* foreign-key="fk_facade_transaction"
* @hibernate.composite-map-key
* class="com.parvia.account.FacadeKey"
* @hibernate.key-property
* type="string"
* column="edifice_name"
* length="16"
* @hibernate.key-property
* type="string"
* column="facade_name"
* length="16"
* @hibernate.key-property
* type="int"
* column="bag_number"
* @hibernate.element
* column="count"
* type="int"
*/


Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
[xdoclet] java.lang.RuntimeException: more than one top level property deined in class PieceTransaction for property facadeLines
[xdoclet] at org.generama.Plugin.assertTrue(Plugin.java:158)
[xdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[xdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[xdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[xdoclet] at java.lang.reflect.Method.invoke(Method.java:324)
[xdoclet] at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:268)
[xdoclet] at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:61)
[xdoclet] at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:68)
[xdoclet] at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:50)
[xdoclet] at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86)
[xdoclet] at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69)
[xdoclet] at org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:646)
[xdoclet] at org.apache.commons.jelly.tags.core.ImportTag.doTag(ImportTag.java:80)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
[xdoclet] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:108)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:646)
[xdoclet] at org.apache.commons.jelly.tags.core.ImportTag.doTag(ImportTag.java:80)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
[xdoclet] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:108)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:646)
[xdoclet] at org.apache.commons.jelly.tags.core.ImportTag.doTag(ImportTag.java:80)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
[xdoclet] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:108)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:592)
[xdoclet] at org.generama.JellyTemplateEngine.generate(JellyTemplateEngine.java:51)
[xdoclet] at org.generama.Plugin.start(Plugin.java:186)
[xdoclet] at org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoContainer.java:349)
[xdoclet] at org.nanocontainer.integrationkit.LifecycleContainerBuilder.autoStart(LifecycleContainerBuilder.java:52)
[xdoclet] at org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(LifecycleContainerBuilder.java:45)
[xdoclet] at org.nanocontainer.ant.PicoContainerTask.execute(PicoContainerTask.java:95)
[xdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[xdoclet] at org.apache.tools.ant.Task.perform(Task.java:364)
[xdoclet] at org.apache.tools.ant.Target.execute(Target.java:341)
[xdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[xdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[xdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[xdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[xdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[xdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[xdoclet] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[xdoclet] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[xdoclet] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Name and version of the database you are using:
MySql 4.0.23
The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 10:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Might be best to ask Xdoclet 2 questions on their list.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.