-->
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.  [ 3 posts ] 
Author Message
 Post subject: XML parsing hbm... erroneous error message
PostPosted: Wed Jan 28, 2004 11:14 am 
Beginner
Beginner

Joined: Wed Dec 10, 2003 6:58 pm
Posts: 40
Location: Stockholm, Sweden
Hi,

In one of my hbm.xml files I had this:

<version name="updateVersion"
column="updateVersion"
type="long"
length="20"/>



Deploying, I got the following message:

15:52:09,306 ERROR [XMLHelper] Error parsing XML: XML InputStream(36) Attribute
"length" must be declared for element type "version".


I found out that the version tag does not include any length property. When I removed the length property it went through.

This seems to be an erroneous error message, right ;-)

Big chance that somebody posted this before, sorry in that case.

I tried to search the forum. Is there a way to search on a complete phrases like "must be declared for element type"?

Best regards

Lasse[/i]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 12:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
FYI, this is technically a correct message since it is the underlying XML parser error message. It is basically stating that, according to the DTD in use, the attribute "length" is not defined for the element named "version" and must therefore be declared (i.e., declared in the DTD).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 3:58 am 
Beginner
Beginner

Joined: Wed Dec 10, 2003 6:58 pm
Posts: 40
Location: Stockholm, Sweden
OK, thanks ... yeah now I see it.

Could do with a message saying something like...

"length not a valid attribute for element type version" or the like....

But what the heck.

Thanks for your response

Lasse


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