Message:
The following issue has been closed.
Resolver: Gavin King
Date: Tue, 26 Aug 2003 1:32 PM
I am closing this, since there is no more response from the user, and it is unlikely to be a Hibernate bug.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-272
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-272
Summary: crashes in buildSessionFactory
Type: Bug
Status: Closed
Priority: Major
Resolution: CANNOT REPRODUCE
Project: Hibernate2
Components:
core
Versions:
2.0.2
Assignee:
Reporter: dirk ooms
Created: Mon, 18 Aug 2003 3:55 PM
Updated: Tue, 26 Aug 2003 1:32 PM
Environment: eclipse, mysql, cglib-1.0
Description:
Since I am an Hibernate-beginner, this could be something trivial (in which case I apologize). I wanted to port my simple example program (reading the entries from a single table) from hibernate1.2 to hibernate2(.0.2), but it does not work anymore (I did follow the Hibernate2 Porting Guidelines).
Program stops with this:
INFO: Mapping class: persistent.Animal -> Animals
Aug 18, 2003 9:53:49 PM net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-many association mappings
Aug 18, 2003 9:53:49 PM net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
Trace:
Thread [main] (Suspended (exception IllegalStateException))
KeyFactoryGenerator(CodeGenerator).<init>(String, Class, ClassLoader) line: 127
KeyFactoryGenerator.<init>(String, Class, ClassLoader) line: 93
KeyFactory.create(Class, ClassLoader) line: 114
SessionFactoryImpl.<clinit>() line: 297
Configuration.buildSessionFactory() line: 627
DbTest.main(String[]) line: 31
mapping file:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="persistent.Animal" table="Animals">
<id name="id" unsaved-value="null">
<generator class="assigned"/>
</id>
<property name="patientNumber"/>
<property name="name"/>
<property name="sex"/>
<property name="sterilized"/>
</class>
</hibernate-mapping>
part of my test program:
public static void main(String[] args) {
try {
Configuration cfg = new Configuration();
cfg.addClass(persistent.Animal.class);
SessionFactory sf = cfg.buildSessionFactory();
...
Is this Hibernate related or is it something in cglib?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|