-->
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.  [ 6 posts ] 
Author Message
 Post subject: Problem with Middlegen-Hibernate-r5
PostPosted: Mon Jul 26, 2004 9:43 am 
Newbie

Joined: Thu Mar 18, 2004 3:56 am
Posts: 13
I've just moved to Middlegen-hibernate-r5, but, when i generate the hbm, i receive this error in the log (and no hbm file is generated):
----------------------------------------------------
(middlegen.Middlege 410 ) Invoking plugin hibernate

java.lang.IncompatibleClassChangeError
at middlegen.KindFileResourceLoader.getResourceStream(KindFileResourceLoader.java:82)
at org.apache.velocity.Template.process(Template.java:136)
at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:466)
at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:384)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:814)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:796)
at org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:211)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:276)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:441)
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:148)
at middlegen.Plugin.getEngine(Plugin.java:560)
at middlegen.Plugin.generate(Plugin.java:444)
at middlegen.Middlegen.writeSource(Middlegen.java:411)
at middlegen.swing.JMiddlegenFrame$1.actionPerformed(JMiddlegenFrame.java:72)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5093)
at java.awt.Component.processEvent(Component.java:4890)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3598)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1585)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
----------------------------------------------------

So, i''ve tryed to use the r4 release with the same config files (i've changed only library files), and i can get hbm files.

If you need, i can post here my build.xml plugin configurations.

THANKS!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 26, 2004 6:31 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Did you check on the library libs (all dependent ones). It looks like a velocity lib error. The build I released really has few changes to the dep libs etc from that of R4. I'm really not sure whats wrong with your environment.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 27, 2004 2:47 am 
Newbie

Joined: Thu Mar 18, 2004 3:56 am
Posts: 13
OOPS! I've copyed all libs from hibernate extension 2.1.2, to make work hbm2java task (also some old libs)...

Removing this all work good :D!

THANS!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 27, 2004 2:53 am 
Newbie

Joined: Thu Mar 18, 2004 3:56 am
Posts: 13
Only another question:
How can i set cascade property for relationship?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 27, 2004 5:19 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You can set the cascade option globally through the Ant script.
eg, under the hibernate plugin add cascade="save-update". I have to document this and the other new options.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 27, 2004 5:42 am 
Newbie

Joined: Thu Mar 18, 2004 3:56 am
Posts: 13
Thanks! :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.