Thanks for the quick response, both of you.
Quote:
make sure you are using the hibernate.jar that is distributed w/ whatever version on hibernate-tools.jar that you are using. if this holds true, post the actual stack trace.
I am using the hibernate3.jar that came w/ the tools. Alas, there is no stack trace - just this.
Code:
BUILD FAILED
Z:\ems\src\dao\nodedao\build.xml:158: The following error occurred while executing this line:
Z:\ems\src\dao\nodedao\build.xml:183: java.lang.IllegalStateException: 3.1.0 beta1 found when settin
g version
Line 183 of my Ant build file is the call to the hibernatetool task.
Quote:
that exception is not thrown by hibernate
Doing some code diving, I must disagree. It looks like it's coming from line 223 of org.hibernate.tool.hbm2x.TemplateHelper.
Code:
public void putInContext(String key, Object value) {
log.trace("putInContext " + key + "=" + value);
if(value == null) throw new IllegalStateException("value must not be null for " + key);
Object replaced = getContext().put(key, value);
if(replaced!=null) throw new IllegalStateException(replaced + " found when setting " + key);
}
It would seem to indicated that the version is being added to the Context twice. The setupContext() method on the same class adds it - but I wasn't able to determine if it's being added somewhere else, or perhaps if that method is being called 2x.
Thanks,
-Dan