-->
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.  [ 12 posts ] 
Author Message
 Post subject: java.lang.NoSuchFieldError: extendsQueue
PostPosted: Thu Feb 02, 2006 10:25 pm 
Newbie

Joined: Thu Feb 02, 2006 10:09 pm
Posts: 9
Hi,

I'm trying to run hbm2ddl ant task, but I'm getting an error.
Is there any way to get a full stack trace?
Any other hint?

Hibernate version:
hibernate tools 3.1.0-beta4
classes annotated with annotation 3.1beta8, core is hibernate 3.1.2

Full stack trace of any exception that occurs:
BUILD FAILED
java.lang.NoSuchFieldError: extendsQueue

Name and version of the database you are using:
MySql 5.0

Thanks in advance.
Danilo Tuler


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 02, 2006 10:58 pm 
Newbie

Joined: Thu Feb 02, 2006 10:09 pm
Posts: 9
Hmm.
I replaced:
hibernate3.jar -> 3.1.2
hibernate-annotation.jar -> 3.1 beta8
ejb3-persistence.jar -> version that comes with 3.1.2

Now it works.
Weird.
Which versions come bundled with tools beta 4?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 2:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the tools comes bundled with the libraries you should use with the tools...pretty cool eh ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 7:08 am 
Newbie

Joined: Thu Feb 02, 2006 10:09 pm
Posts: 9
Pretty cool.
But that doesn't work.
I got the full stack trace now:


java.lang.NoSuchFieldError: extendsQueue
at org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:143)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:276)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:213)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:997)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:56)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:179)
at org.hibernate.tool.ant.Hbm2DDLExporterTask.execute(Hbm2DDLExporterTask.java:43)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:143)
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.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)


There seems to be a problem with the bundled hibernate-annotations.jar.
Replaced it with a downloaded 3.1beta8 and it works.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 8:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
3.1beta8 annotations should be the one that is bundled with tools 3.1.0.beta4...sure that is the one you are using ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 8:37 am 
Newbie

Joined: Thu Feb 02, 2006 10:09 pm
Posts: 9
Yes.

File sizes are different.

3.1beta8 -> 222.747 bytes
bundled with tools beta4 -> 240.778 bytes


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 8:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm..i can see the difference but I can't reproduce the error; this is weird.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 9:22 am 
Newbie

Joined: Thu Feb 02, 2006 10:09 pm
Posts: 9
My configuration file is trivial.

It just defines the dialect and a bunch of
<mapping class="com.blah.blah.blah"/>

Nothing more.
Do I need to define anything else?
It used to work with beta2. And doesn't work with beta4.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 9:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
replace the annotations jar inside the plugin with the beta8 ...that should work.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 10:55 am 
Newbie

Joined: Thu Feb 02, 2006 10:09 pm
Posts: 9
Yes, it works.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 5:47 pm 
Beginner
Beginner

Joined: Wed Nov 03, 2004 6:24 pm
Posts: 24
I encountered the same problem when I upgraded to Beta 4.

The solution works for me, too.

Thank you both!
- Karen


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 5:49 pm 
Beginner
Beginner

Joined: Wed Nov 03, 2004 6:24 pm
Posts: 24
I encountered the same problem when I upgraded to Beta 4.

The solution works for me, too.

Thank you both!
- Karen


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.