-->
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: Inconsistant behaviour between classes
PostPosted: Sun Jul 11, 2004 12:23 am 
Newbie

Joined: Sun Jul 11, 2004 12:07 am
Posts: 3
Hello,
I'm trying to configure configure hibernate 2 within my application and I'm getting inconsistant behaviour between classes.

When I save a new instance of a location object defined as:

<class name="com.aberrantdevelopment.hijira.type.impl.LocationImpl" table="location">
<id name="id" column="id" type="string" unsaved-value="id_value">
<generator class="uuid.hex" />
</id>
<property name="name" column="name" type="string" />
<property name="address" column="address" type="string" />
<property name="city" column="city" type="string" />
<property name="province" column="province" type="string" />
<property name="country" column="country" type="string" />
<property name="postalCode" column="postal_code" type="string" />
<many-to-one name="communityType" column="community_type_id" class="com.aberrantdevelopment.hijira.type.impl.TypeImpl" />
<many-to-one name="type" column="type_id" class="com.aberrantdevelopment.hijira.type.impl.TypeImpl" />
<many-to-one name="status" column="status_id" class="com.aberrantdevelopment.hijira.type.impl.StatusImpl" />
<property name="createdOn" column="created_on" type="date" />
<property name="modifiedOn" column="modified_on" type="date" />
</class>

There it saves just fine. However when I try to save a new instance of an Event defined ast follows:

<class name="com.aberrantdevelopment.hijira.type.impl.EventImpl" table="event">
<id name="id" column="id" type="string" unsaved-value="id_value">
<generator class="uuid.hex" />
</id>
<property name="title" column="title" type="string" />
<property name="summary" column="summary" type="string" />
<property name="description" column="description" type="string" />
<property name="startDate" column="date_start" type="date" />
<property name="endDate" column="date_end" type="date" />
<property name="createdOn" column="created_on" type="date" />
<property name="modifiedOn" column="modified_on" type="date" />
<many-to-one name="communityType" column="community_type_id" class="com.aberrantdevelopment.hijira.type.impl.TypeImpl" />
<many-to-one name="type" column="type_id" class="com.aberrantdevelopment.hijira.type.impl.TypeImpl" />
<many-to-one name="status" column="status_id" class="com.aberrantdevelopment.hijira.type.impl.StatusImpl" />
</class>


with a *non-null* value for type and communityType I get a "net.sf.hibernate.HibernateException: SQL update or deletion failed (row not found)" exception.

If I set these two value to NULL, the instance is stored and no exception is thrown!?!?!

The FAQs and other postings in regards to this point to the "unsaved-value" key being defined incorrectly, however I have tried all possible values for the key and I get the same error. I don't understand why for one class the type and communityType values are incorrect however, within another it works just fine.

THe code is listed below, migrateEvent() throws the exception but migrateLocation does not.

Thanks,
Omar

Hibernate 2.2
SQL Server 2000
Windows 2000


[code] public static void migrateEvent() throws SQLException, NamingException
{
String strSQL = "select * from event";
Connection conn = DBManager.getConnection("default");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(strSQL);

SessionFactory sf = null;
Session session = null;
Transaction tx = null;

try
{
sf = new Configuration().configure().buildSessionFactory();
session = sf.openSession();
tx = session.beginTransaction();
EventImpl event = null;

while ( (rs != null) && (rs.next()) )
{
rs.next();

event = new EventImpl();

event.setTitle(rs.getString("title"));
event.setSummary(rs.getString("summary"));
event.setDescription(rs.getString("description"));
event.setStartDate(rs.getDate("date_start"));
event.setEndDate(rs.getDate("date_end"));
Type type = com.aberrantdevelopment.hijira.type.TypeManager.getType( TypeManager.getLookupKey(rs.getInt("type_id")) );
event.setType(type);
Type type2 = com.aberrantdevelopment.hijira.type.TypeManager.getType( TypeManager.getLookupKey(rs.getInt("community_type_id")) );
event.setCommunityType(type2);
Status status = com.aberrantdevelopment.hijira.type.StatusManager.getStatus( StatusManager.getLookupKey(rs.getInt("status_id")) );
event.setStatus(status);

System.out.println("#### Processing - " + event.getTitle());

session.save( event );
System.out.println("migrateEvent attempting to commit changes");
tx.commit();
event = null;
tx.commit();
type = null;
type2 = null;
}

} catch (HibernateException he)
{
System.err.println("Hibernate Exception ocurred");
he.printStackTrace(System.err);
} catch (Exception e)
{
System.err.println("General Ex - " + e);
e.printStackTrace(System.err);
} finally
{
try
{
tx.rollback();
session.close();

} catch (HibernateException he)
{
System.err.println("Hibernate Exception ocurred in \"finally\" clause");
he.printStackTrace(System.err);
}

try
{
rs.close();
stmt.close();
conn.close();
} catch (Exception e)
{
}
}

}

public static void migrateLocation() throws SQLException, NamingException
{
String strSQL = "select * from location";
Connection conn = DBManager.getConnection("default");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(strSQL);

SessionFactory sf = null;
Session session = null;
Transaction tx = null;

try
{
sf = new Configuration().configure().buildSessionFactory();
session = sf.openSession();
tx = session.beginTransaction();
LocationImpl location = null;

while ( (rs != null) && (rs.next()) )
{

location = new LocationImpl();

location.setName(rs.getString("name"));
location.setAddress(rs.getString("address"));
location.setCity(rs.getString("city"));
location.setProvince(rs.getString("province"));
location.setPostalCode(rs.getString("postal_code"));
location.setCountry(rs.getString("country"));
Type type2 = com.aberrantdevelopment.hijira.type.TypeManager.getType( TypeManager.getLookupKey(rs.getInt("community_type_id")) );
location.setCommunityType(type2);
Type type = com.aberrantdevelopment.hijira.type.TypeManager.getType( TypeManager.getLookupKey(rs.getInt("type_id")) );
location.setType(type);
Status status = com.aberrantdevelopment.hijira.type.StatusManager.getStatus( StatusManager.getLookupKey(rs.getInt("status_id")) );
location.setStatus(status);
System.out.println("#### Processing - " + location.getName());

session.save( location );
System.out.println("migrateLocation attempting to commit changes");
tx.commit();
location = null;
type = null;
type2 = null;
}

// System.out.println("migrateEvent attempting to commit changes");
// tx.commit();
} catch (HibernateException he)
{
System.err.println("Hibernate Exception ocurred");
he.printStackTrace(System.err);
} catch (Exception e)
{
System.err.println("General Ex - " + e);
e.printStackTrace(System.err);
} finally
{
try
{
tx.rollback();
session.close();

} catch (HibernateException he)
{
System.err.println("Hibernate Exception ocurred in \"finally\" clause");
he.printStackTrace(System.err);
}

try
{
rs.close();
stmt.close();
conn.close();
} catch (Exception e)
{
}
}

}
[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 11, 2004 12:45 am 
Senior
Senior

Joined: Sun Oct 26, 2003 5:05 am
Posts: 139
isn't *.type.impl.LocationImpl a little overboard? Just find it hard to believe that someone would want an extra interface for a transparent domain object when in almost all cases the interface is exactly the same as the class itself. I guess I don't know your app, but that seems like EJB best practices is creeping up on you :/ has nothing to do with your mapping of course, but I've just never seen that.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 11, 2004 12:52 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
With no stack trace, or log, we can't help you. Read the big red message!


Top
 Profile  
 
 Post subject: Stack Trace
PostPosted: Sun Jul 11, 2004 1:09 pm 
Newbie

Joined: Sun Jul 11, 2004 12:07 am
Posts: 3
My appologies for not posting the stack trace. Here it is:

net.sf.hibernate.HibernateException: SQL update or deletion failed (row not found)
at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:25)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:478)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:454)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:20)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2100)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2061)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2005)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:57)
at com.aberrantdevelopment.hijira.migration.Migrator.migrateEvent(Migrator.java:222)
at _test__jsp._jspService(_test__jsp.java:36)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:506)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:536)





Also, here is the definition of the Type class:

<class name="com.aberrantdevelopment.hijira.type.impl.TypeImpl" table="type">
<id name="id" column="id" type="string" unsaved-value="id_value">
<generator class="uuid.hex" />
</id>
<property name="description" column="description" type="string" />
<property name="lookupKey" column="lookup_key" type="string" />
<many-to-one name="parent" column="parent_type_id" class="com.aberrantdevelopment.hijira.type.impl.TypeImpl" />
</class>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 11, 2004 1:12 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Well thats useless too, show the log.


Top
 Profile  
 
 Post subject: Error Log output
PostPosted: Sun Jul 11, 2004 9:48 pm 
Newbie

Joined: Sun Jul 11, 2004 12:07 am
Posts: 3
This is the output from the error log:

[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Configuration getConfigurationInputStream
[20:05:54]INFO: Configuration resource: /hibernate.cfg.xml
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Configuration addResource
[20:05:54]INFO: Mapping resource: hijira.hbm.xml
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.EventImpl -> event
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.LocationImpl -> location
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.ContactImpl -> contact
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.OrganizationImpl -> organization
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl -> recurrence
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.TypeImpl -> type
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.StatusImpl -> status
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.EventLocationImpl -> event_location
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.EventContactImpl -> event_contact
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.EventOrganizationImpl -> event_organization
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.LocationContactImpl -> location_contact
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.OrganizationLocationImpl -> org_location
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.OrganizationContactImpl -> org_contact
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.RecurrenceLocationImpl -> recurrence_location
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.RecurrenceContactImpl -> recurrence_contact
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:54]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.RecurrenceOrganizationImpl -> recurrence_organization
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Configuration configure
[20:05:54]INFO: Configured SessionFactory: null
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Configuration secondPassCompile
[20:05:54]INFO: processing one-to-many association mappings
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:54]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.EventImpl.locations -> event_location
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:54]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.EventImpl.contacts -> event_contact
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:54]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.EventImpl.organizations -> event_organization
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:54]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.LocationImpl.contacts -> location_contact
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:54]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.OrganizationImpl.locations -> org_location
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:54]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.OrganizationImpl.contacts -> org_contact
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:54]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl.locations -> event_location
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:54]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl.contacts -> event_contact
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:54]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl.organizations -> event_organization
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.cfg.Configuration secondPassCompile
[20:05:54]INFO: processing foreign key constraints
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:54]INFO: building session factory
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.dialect.Dialect <init>
[20:05:54]INFO: Using dialect: net.sf.hibernate.dialect.SQLServerDialect
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
[20:05:54]INFO: Hibernate connection pool size: 20
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
[20:05:54]INFO: using driver: com.microsoft.jdbc.sqlserver.SQLServerDriver at URL: jdbc:microsoft:sqlserver://localhost:1433
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
[20:05:54]INFO: connection properties: {user=hijira, password=hijira, statement_cache.size=20}
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:54]INFO: Use outer join fetching: true
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:54]INFO: Use scrollable result sets: true
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:54]INFO: echoing all SQL to stdout
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.OrganizationImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.ContactImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.RecurrenceContactImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.EventOrganizationImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.EventContactImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.EventLocationImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.RecurrenceOrganizationImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.EventImpl, IllegalArgumentException: setModifiedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.RecurrenceLocationImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.OrganizationLocationImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.OrganizationContactImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.LocationImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:54]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.LocationContactImpl, IllegalArgumentException: setCreatedOn
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.impl.SessionFactoryObjectFactory addInstance
[20:05:54]INFO: no JDNI name configured
[20:05:54]10-Jul-2004 8:05:54 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:54]INFO: Query language substitutions: {}
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:55]WARNING: SQL Warning: 0, SQLState:
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:55]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to hijira
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:55]WARNING: SQL Warning: 0, SQLState:
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:55]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed database context to 'hijira'.
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:55]WARNING: SQL Warning: 0, SQLState:
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:55]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC]Language changed to us_english
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:55]WARNING: SQL Warning: 0, SQLState:
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:55]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed language setting to us_english.
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.impl.SessionFactoryImpl close
[20:05:55]INFO: closing
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.connection.DriverManagerConnectionProvider close
[20:05:55]INFO: cleaning up connection pool: jdbc:microsoft:sqlserver://localhost:1433
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Configuration getConfigurationInputStream
[20:05:55]INFO: Configuration resource: /hibernate.cfg.xml
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Configuration addResource
[20:05:55]INFO: Mapping resource: hijira.hbm.xml
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.EventImpl -> event
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.LocationImpl -> location
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.ContactImpl -> contact
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.OrganizationImpl -> organization
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl -> recurrence
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.TypeImpl -> type
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.StatusImpl -> status
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.EventLocationImpl -> event_location
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.EventContactImpl -> event_contact
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.EventOrganizationImpl -> event_organization
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.LocationContactImpl -> location_contact
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.OrganizationLocationImpl -> org_location
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.OrganizationContactImpl -> org_contact
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.RecurrenceLocationImpl -> recurrence_location
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.RecurrenceContactImpl -> recurrence_contact
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindRootClass
[20:05:55]INFO: Mapping class: com.aberrantdevelopment.hijira.type.impl.RecurrenceOrganizationImpl -> recurrence_organization
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Configuration configure
[20:05:55]INFO: Configured SessionFactory: null
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Configuration secondPassCompile
[20:05:55]INFO: processing one-to-many association mappings
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:55]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.EventImpl.locations -> event_location
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:55]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.EventImpl.contacts -> event_contact
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:55]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.EventImpl.organizations -> event_organization
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:55]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.LocationImpl.contacts -> location_contact
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:55]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.OrganizationImpl.locations -> org_location
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:55]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.OrganizationImpl.contacts -> org_contact
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:55]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl.locations -> event_location
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:55]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl.contacts -> event_contact
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Binder bindCollectionSecondPass
[20:05:55]INFO: Mapping collection: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl.organizations -> event_organization
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.cfg.Configuration secondPassCompile
[20:05:55]INFO: processing foreign key constraints
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:55]INFO: building session factory
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.dialect.Dialect <init>
[20:05:55]INFO: Using dialect: net.sf.hibernate.dialect.SQLServerDialect
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
[20:05:55]INFO: Hibernate connection pool size: 20
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
[20:05:55]INFO: using driver: com.microsoft.jdbc.sqlserver.SQLServerDriver at URL: jdbc:microsoft:sqlserver://localhost:1433
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
[20:05:55]INFO: connection properties: {user=hijira, password=hijira, statement_cache.size=20}
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:55]INFO: Use outer join fetching: true
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:55]INFO: Use scrollable result sets: true
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:55]INFO: echoing all SQL to stdout
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.OrganizationImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.ContactImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.RecurrenceContactImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.RecurrenceImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.EventOrganizationImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.EventContactImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.EventLocationImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.RecurrenceOrganizationImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.EventImpl, IllegalArgumentException: setModifiedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.RecurrenceLocationImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.OrganizationLocationImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.OrganizationContactImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.LocationImpl, IllegalArgumentException: setCreatedOn
[20:05:55]10-Jul-2004 8:05:55 PM net.sf.hibernate.util.ReflectHelper getMetaClass
[20:05:55]INFO: reflection optimizer disabled for: com.aberrantdevelopment.hijira.type.impl.LocationContactImpl, IllegalArgumentException: setCreatedOn
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.impl.SessionFactoryObjectFactory addInstance
[20:05:56]INFO: no JDNI name configured
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
[20:05:56]INFO: Query language substitutions: {}
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: SQL Warning: 0, SQLState:
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to hijira
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: SQL Warning: 0, SQLState:
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed database context to 'hijira'.
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: SQL Warning: 0, SQLState:
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC]Language changed to us_english
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: SQL Warning: 0, SQLState:
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed language setting to us_english.
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.impl.SessionFactoryImpl close
[20:05:56]INFO: closing
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.connection.DriverManagerConnectionProvider close
[20:05:56]INFO: cleaning up connection pool: jdbc:microsoft:sqlserver://localhost:1433
[20:05:56]Hibernate Exception ocurred
[20:05:56]net.sf.hibernate.HibernateException: SQL update or deletion failed (row not found)
[20:05:56] at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:25)
[20:05:56] at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:478)
[20:05:56] at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:454)
[20:05:56] at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:20)
[20:05:56] at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2100)
[20:05:56] at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2061)
[20:05:56] at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2005)
[20:05:56] at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:57)
[20:05:56] at com.aberrantdevelopment.hijira.migration.Migrator.migrateEvent(Migrator.java:235)
[20:05:56] at _test__jsp._jspService(_test__jsp.java:36)
[20:05:56] at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
[20:05:56] at com.caucho.jsp.Page.subservice(Page.java:506)
[20:05:56] at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
[20:05:56] at com.caucho.server.http.Invocation.service(Invocation.java:315)
[20:05:56] at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
[20:05:56] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
[20:05:56] at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
[20:05:56] at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
[20:05:56] at java.lang.Thread.run(Thread.java:536)
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: SQL Warning: 0, SQLState:
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to hijira
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: SQL Warning: 0, SQLState:
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed database context to 'hijira'.
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: SQL Warning: 0, SQLState:
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC]Language changed to us_english
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: SQL Warning: 0, SQLState:
[20:05:56]10-Jul-2004 8:05:56 PM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
[20:05:56]WARNING: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed language setting to us_english.


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.