-->
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: unbelievable NullPointerException getHashCode() on flush
PostPosted: Wed Feb 08, 2006 12:21 pm 
Newbie

Joined: Wed Feb 08, 2006 11:52 am
Posts: 5
Hibernate version: 3.0.5

Name and version of the database you are using: Oracle 9.2.0.4

Hi all,

I'm executing this very simple and minimal test (with Spring 1.2.5):


Code:
  public void setUp() throws Exception {
    status = tm.getTransaction( td );
    daoHelper.deleteAttivita();
  }
  public void tearDown() throws Exception {
    tm.rollback( status );
  }
 
  public void testCollection() {
   Attivita att = new Attivita();
   
   daoHelper.save(att);
   
   daoHelper.flush();
  }



My hibernate file mappings for my two entity I'm testing are these:

Code:
<hibernate-mapping>
<class lazy="true" name="mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita" table="H3_TEST">
   
    <id name="idAttivita" type="long" column="ID_ATTIVITA">
      <generator class="sequence">
        <param name="sequence">R01_MANGANO</param>
      </generator>
    </id>
   
    <set name="tipologie">
      <key property-ref="tipologia" column="ID_TIPO_ATTIVITA"/>
      <one-to-many class="mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Tipologia"/>
    </set>
   
    <property name="tipologia" column="ID_TIPO_ATTIVITA"/>
</class>   
</hibernate-mapping>


Code:
<hibernate-mapping>
  <class name="mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Tipologia" table="SVIL_R30_AN_TIPO_ATTIVITA">
    <composite-id name="id" class="mobiRicercaAttivita.domain.attivita.test.hibernateproblem.TipologiaId">
      <key-property name="idTipoAttivita" column="ID_TIPO_ATTIVITA"/>
      <key-property name="idDettaglio" column="ID_DETTAGLIO"/>
    </composite-id>
  </class>
</hibernate-mapping>


My very simple Java objects:

Code:
package mobiRicercaAttivita.domain.attivita.test.hibernateproblem;
import java.util.HashSet;
import java.util.Set;


public class Attivita  {
  private Long idAttivita;
  private Set tipologie=new HashSet();
  private String tipologia;
 
  public Long getIdAttivita() {
    return idAttivita;
  }
  public void setIdAttivita(Long idAttivita) {
    this.idAttivita = idAttivita;
  }
  public Set getTipologie() {
    return tipologie;
  }
  public void setTipologie(Set skillsTipoAttivita) {
    this.tipologie = skillsTipoAttivita;
  }
 
  private String getTipologia() {
    return tipologia;
  }
  private void setTipologia(String tipologia) {
    this.tipologia = tipologia;
  }

 
}


Code:
package mobiRicercaAttivita.domain.attivita.test.hibernateproblem;

public class Tipologia {
  TipologiaId id;

  public Tipologia(){}
 
  public TipologiaId getId() {
    return id;
  }

  public void setId(TipologiaId id) {
    this.id = id;
  }

  public boolean equals(Object o) {
    if( !(o instanceof Tipologia) ) return false;
    return id.equals( ((Tipologia)o).getId() );
  }
 
  public int hashCode() {
    return id.hashCode();
  }
}


Code:
package mobiRicercaAttivita.domain.attivita.test.hibernateproblem;

import java.io.Serializable;

public class TipologiaId implements Serializable {
  private static final long serialVersionUID = 1564085688885929509L;
  String idTipoAttivita;
  String idDettaglio;

  public String getIdTipoAttivita() {
    return idTipoAttivita;
  }

  public void setIdTipoAttivita(String idAttivita) {
    this.idTipoAttivita = idAttivita;
  }

  public String getIdDettaglio() {
    return idDettaglio;
  }

  public void setIdDettaglio(String nomeCampo) {
    this.idDettaglio = nomeCampo;
  }
 
  public boolean equals(Object o){
    if (o!=null && o instanceof TipologiaId){
      TipologiaId da = (TipologiaId)o;
      assert idTipoAttivita!=null && idDettaglio!=null : "null keys!";
      return ( idTipoAttivita.equals(da.getIdTipoAttivita()) && (idDettaglio.equals(da.getIdDettaglio())) ); 
    }
    return false;
  }
 
  public int hashCode(){
    assert idTipoAttivita!=null && idDettaglio!=null : "null keys!";
    String total = idTipoAttivita+idDettaglio;
    byte b[] = total.getBytes();
    return b.length;
  }


}



[b]And here are my relational tables:
[/b]
Code:
CREATE TABLE SVIL_R30_AN_TIPO_ATTIVITA
(
  ID_TIPO_ATTIVITA  VARCHAR2(255 BYTE)          NOT NULL,
  ID_DETTAGLIO      VARCHAR2(255 BYTE)          NOT NULL
)
ALTER TABLE SVIL_R30_AN_TIPO_ATTIVITA ADD (
  PRIMARY KEY (ID_TIPO_ATTIVITA, ID_DETTAGLIO)
    USING INDEX
    TABLESPACE MOBI4
    PCTFREE    10
    INITRANS   2
    MAXTRANS   255
    STORAGE    (
                INITIAL          64K
                MINEXTENTS       1
                MAXEXTENTS       2147483645
                PCTINCREASE      0
               ));



Code:
CREATE TABLE H3_TEST
(
  ID_ATTIVITA       NUMBER(19)                  NOT NULL,
  ID_TIPO_ATTIVITA  VARCHAR2(255 BYTE)
)
ALTER TABLE H3_TEST ADD (
  PRIMARY KEY (ID_ATTIVITA)
    USING INDEX
    TABLESPACE MOBI4
    PCTFREE    10
    INITRANS   2
    MAXTRANS   255
    STORAGE    (
                INITIAL          64K
                MINEXTENTS       1
                MAXEXTENTS       2147483645
                PCTINCREASE      0
               ));



I'm having this error from hibernate when the flush() method is invoked:

Code:
java.lang.NullPointerException
   at org.hibernate.type.AbstractType.getHashCode(AbstractType.java:111)
   at org.hibernate.type.AbstractType.getHashCode(AbstractType.java:119)
   at org.hibernate.cache.CacheKey.<init>(CacheKey.java:40)
   at org.hibernate.action.CollectionAction.beforeExecutions(CollectionAction.java:73)
   at org.hibernate.engine.ActionQueue.prepareActions(ActionQueue.java:246)
   at org.hibernate.engine.ActionQueue.prepareActions(ActionQueue.java:152)
   at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:273)
   at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
   at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.springframework.orm.hibernate3.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1133)
   at $Proxy1.flush(Unknown Source)
   at mobiRicercaAttivita.domain.attivita.test.hibernateproblem.RicercaAttivitaDaoH3Helper$2.doInHibernate(RicercaAttivitaDaoH3Helper.java:28)
   at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:358)
   at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:331)
   at mobiRicercaAttivita.domain.attivita.test.hibernateproblem.RicercaAttivitaDaoH3Helper.flush(RicercaAttivitaDaoH3Helper.java:25)
   at mobiRicercaAttivita.domain.attivita.test.hibernateproblem.TestAttivitaTipologia.testCollection(TestAttivitaTipologia.java:38)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at junit.framework.TestCase.runTest(TestCase.java:154)
   at junit.framework.TestCase.runBare(TestCase.java:127)
   at junit.framework.TestResult$1.protect(TestResult.java:106)
   at junit.framework.TestResult.runProtected(TestResult.java:124)
   at junit.framework.TestResult.run(TestResult.java:109)
   at junit.framework.TestCase.run(TestCase.java:118)
   at junit.framework.TestSuite.runTest(TestSuite.java:208)
   at junit.framework.TestSuite.run(TestSuite.java:203)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.ma
in(RemoteTestRunner.java:196)
Code:


Finally, these are my logs:
[code]8-feb-2006 17.03.12 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.jdbc.datasource.DriverManagerDataSource.setPassword(java.lang.String)] with value of type [java.lang.String]
8-feb-2006 17.03.12 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
FINE: Invoking BeanPostProcessors before initialization of bean 'dataSource'
8-feb-2006 17.03.12 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
FINE: Invoking BeanPostProcessors after initialization of bean 'dataSource'
8-feb-2006 17.03.12 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.orm.hibernate3.LocalSessionFactoryBean.setDataSource(javax.sql.DataSource)] on object of class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]
8-feb-2006 17.03.12 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.orm.hibernate3.LocalSessionFactoryBean.setDataSource(javax.sql.DataSource)] with value of type [javax.sql.DataSource]
8-feb-2006 17.03.12 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.orm.hibernate3.LocalSessionFactoryBean.setHibernateProperties(java.util.Properties)] on object of class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]
8-feb-2006 17.03.12 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.orm.hibernate3.LocalSessionFactoryBean.setHibernateProperties(java.util.Properties)] with value of type [java.util.Properties]
8-feb-2006 17.03.12 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.orm.hibernate3.LocalSessionFactoryBean.setMappingResources(java.lang.String[])] on object of class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]
8-feb-2006 17.03.12 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.orm.hibernate3.LocalSessionFactoryBean.setMappingResources(java.lang.String[])] with value of type [[Ljava.lang.String;]
8-feb-2006 17.03.12 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
FINE: Invoking BeanPostProcessors before initialization of bean 'mySessionFactory'
8-feb-2006 17.03.12 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory invokeInitMethods
FINE: Invoking afterPropertiesSet() on bean with name 'mySessionFactory'
8-feb-2006 17.03.12 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.0.5
8-feb-2006 17.03.12 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
8-feb-2006 17.03.12 org.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
8-feb-2006 17.03.12 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
8-feb-2006 17.03.12 org.hibernate.util.DTDEntityResolver resolveEntity
FINE: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/
8-feb-2006 17.03.12 org.hibernate.util.DTDEntityResolver resolveEntity
FINE: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
8-feb-2006 17.03.12 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita -> H3_TEST
8-feb-2006 17.03.12 org.hibernate.cfg.HbmBinder bindProperty
FINE: Mapped property: idAttivita -> ID_ATTIVITA
8-feb-2006 17.03.12 org.hibernate.cfg.HbmBinder bindProperty
FINE: Mapped property: tipologie
8-feb-2006 17.03.12 org.hibernate.cfg.HbmBinder bindProperty
FINE: Mapped property: tipologia -> ID_TIPO_ATTIVITA
8-feb-2006 17.03.12 org.hibernate.util.DTDEntityResolver resolveEntity
FINE: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/
8-feb-2006 17.03.12 org.hibernate.util.DTDEntityResolver resolveEntity
FINE: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
8-feb-2006 17.03.13 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Tipologia -> SVIL_R30_AN_TIPO_ATTIVITA
8-feb-2006 17.03.13 org.hibernate.cfg.HbmBinder bindProperty
FINE: Mapped property: idTipoAttivita -> ID_TIPO_ATTIVITA
8-feb-2006 17.03.13 org.hibernate.cfg.HbmBinder bindProperty
FINE: Mapped property: idDettaglio -> ID_DETTAGLIO
8-feb-2006 17.03.13 org.hibernate.cfg.HbmBinder bindProperty
FINE: Mapped property: id -> ID_TIPO_ATTIVITA, ID_DETTAGLIO
8-feb-2006 17.03.13 org.springframework.orm.hibernate3.LocalSessionFactoryBean afterPropertiesSet
INFO: Building new Hibernate SessionFactory
8-feb-2006 17.03.13 org.hibernate.cfg.Configuration buildSessionFactory
FINE: Preparing to build session factory with filters : {}
8-feb-2006 17.03.13 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
8-feb-2006 17.03.13 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
8-feb-2006 17.03.13 org.hibernate.cfg.HbmBinder$SecondPass doSecondPass
FINE: Second pass for collection: mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita.tipologie
8-feb-2006 17.03.13 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
INFO: Mapping collection: mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita.tipologie -> SVIL_R30_AN_TIPO_ATTIVITA
8-feb-2006 17.03.13 org.hibernate.cfg.HbmBinder$SecondPass doSecondPass
FINE: Mapped collection key: ID_TIPO_ATTIVITA, one-to-many: mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Tipologia
8-feb-2006 17.03.13 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
8-feb-2006 17.03.13 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
8-feb-2006 17.03.13 org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
INFO: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
8-feb-2006 17.03.13 org.springframework.jdbc.datasource.DriverManagerDataSource getConnectionFromDriverManager
FINE: Creating new JDBC Connection to [jdbc:oracle:thin:@terra.aem.torino.it:1524:ora314]
8-feb-2006 17.03.13 org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: Oracle, version: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
8-feb-2006 17.03.13 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: Oracle JDBC driver, version: 10.1.0.4.2
8-feb-2006 17.03.14 org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.Oracle9Dialect
8-feb-2006 17.03.14 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
8-feb-2006 17.03.14 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
FINE: Wrap result sets: disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: null
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
8-feb-2006 17.03.14 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.EhCacheProvider
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
8-feb-2006 17.03.14 org.hibernate.exception.SQLExceptionConverterFactory buildSQLExceptionConverter
FINISSIMO: Using dialect defined converter
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
8-feb-2006 17.03.14 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
8-feb-2006 17.03.14 org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
8-feb-2006 17.03.14 org.hibernate.impl.SessionFactoryImpl <init>
FINE: Session factory constructed with filter configurations : {}
8-feb-2006 17.03.14 org.hibernate.impl.SessionFactoryImpl <init>
FINE: instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, query.factory_class=org.hibernate.hql.classic.ClassicQueryTranslatorFactory, sun.boot.library.path=C:\j2sdk1.4.2_10\jre\bin, java.vm.version=1.4.2_10-b03, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=IT, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\Develop\eclipse311\MobiRicercaAttivita, java.runtime.version=1.4.2_10-b03, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\j2sdk1.4.2_10\jre\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\Enri\IMPOST~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.java2d.fontpath=, java.library.path=C:\j2sdk1.4.2_10\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\siemens\SMTK\bin;C:\OraBPELbeta\integration\bpm\orabpel\bin;C:\OraBPELbeta\jre\1.4.2\bin\client;C:\OraBPELbeta\jre\1.4.2\bin;C:\eclipse\bpelz_install\bin;C:\orabpel\bin;C:\oracle\ias903\bin;C:\oracle\ias903\jlib;C:\oracle\ora92\bin;C:\Programmi\Oracle\jre\1.3.1\bin;C:\Programmi\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;;;;;;C:\Programmi\JProbe Suite 6.0\bin;C:\eclipse\bpelz_install\bin;C:\orabpel\bin;C:\MOBILECLIENT\Mobile\bin\;C:\siemens\SMTK\bin;C:\OraBPELbeta\integration\bpm\orabpel\bin;C:\OraBPELbeta\jre\1.4.2\bin\client;C:\OraBPELbeta\jre\1.4.2\bin;C:\eclipse\bpelz_install\bin;C:\orabpel\bin;C:\oracle\ias903\bin;C:\oracle\ias903\jlib;C:\oracle\ora92\bin;C:\Programmi\Oracle\jre\1.3.1\bin;C:\Programmi\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;;;;;;C:\Programmi\JProbe Suite 6.0\bin;C:\MOBILECLIENTTEST\Mobile\bin\;C:\Develop\JML\src\org\jmlspecs\samples\jmltutorial\;C:\mysql\bin\;C:\j2sdk1.4.1_07;C:\Programmi\JProbe Suite 6.0\bin;, java.specification.name=Java Platform API Specification, java.class.version=48.0, hibernate.connection.pool_size=0, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.1, user.home=C:\Documents and Settings\Enri, user.timezone=Europe/Berlin, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, user.name=Enri, java.class.path=C:\Develop\eclipse311\MobiRicercaAttivita\classes;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\antlr-2.7.5H3.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\asm.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\cglib-2.1.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\commons-collections-2.1.1.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\commons-logging-1.0.4.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\dom4j-1.6.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\ehcache-1.1.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\hibernate3.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\spring.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\xp.jar;C:\Oracle\JDEV1012P\jdbc\lib\classes12.jar;C:\Oracle\JDEV1012P\j2ee\home\lib\jta.jar;C:\Oracle\JDEV1012P\j2ee\home\lib\servlet.jar;C:\Programmi\eclipse3.1.1\plugins\org.junit_3.8.1\junit.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\lib\datiPerson_jar.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\lib\gbWeb_jar.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\WEB-INF\lib\XPWEB.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\lib\fitlibrary.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\lib\fitnesse.jar;C:\Develop\eclipse311\MobiRicercaAttivita\public_html\lib\standard.jar;/c:/Programmi/eclipse3.1.1/plugins/org.eclipse.jdt.junit_3.1.1/junitsupport.jar;/c:/Programmi/eclipse3.1.1/plugins/org.eclipse.jdt.junit.runtime_3.1.0/junitruntime.jar, hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=C:\j2sdk1.4.2_10\jre, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.Oracle9Dialect, user.language=it, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.4.2_10, java.ext.dirs=C:\j2sdk1.4.2_10\jre\lib\ext, sun.boot.class.path=C:\j2sdk1.4.2_10\jre\lib\rt.jar;C:\j2sdk1.4.2_10\jre\lib\i18n.jar;C:\j2sdk1.4.2_10\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_10\jre\lib\jsse.jar;C:\j2sdk1.4.2_10\jre\lib\jce.jar;C:\j2sdk1.4.2_10\jre\lib\charsets.jar;C:\j2sdk1.4.2_10\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=\, hibernate.connection.provider_class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, hibernate.hbm2ddl.auto=create-drop, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.cpu.isalist=pentium i486 i386}
8-feb-2006 17.03.14 net.sf.ehcache.CacheManager create
FINE: Creating new CacheManager with default config
8-feb-2006 17.03.14 net.sf.ehcache.CacheManager configure
FINE: Configuring ehcache from classpath.
8-feb-2006 17.03.14 net.sf.ehcache.config.Configurator configure
AVVERTENZA: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Develop/eclipse311/MobiRicercaAttivita/public_html/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
8-feb-2006 17.03.14 net.sf.ehcache.config.Configuration$DiskStore setPath
FINE: Disk Store Path: C:\DOCUME~1\Enri\IMPOST~1\Temp\
8-feb-2006 17.03.14 org.hibernate.util.ReflectHelper getBulkBean
FINE: reflection optimizer disabled for: mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita, BulkBeanException: Property is private (property setTipologia)
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Static SQL for entity: mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Version select: select ID_ATTIVITA from H3_TEST where ID_ATTIVITA =?
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Snapshot select: select attivita_.ID_ATTIVITA, attivita_.ID_TIPO_ATTIVITA as ID2_0_ from H3_TEST attivita_ where attivita_.ID_ATTIVITA=?
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Insert 0: insert into H3_TEST (ID_TIPO_ATTIVITA, ID_ATTIVITA) values (?, ?)
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Update 0: update H3_TEST set ID_TIPO_ATTIVITA=? where ID_ATTIVITA=?
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Delete 0: delete from H3_TEST where ID_ATTIVITA=?
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Static SQL for entity: mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Tipologia
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Version select: select ID_TIPO_ATTIVITA, ID_DETTAGLIO from SVIL_R30_AN_TIPO_ATTIVITA where ID_TIPO_ATTIVITA =? and ID_DETTAGLIO =?
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Snapshot select: select tipologia_.ID_TIPO_ATTIVITA, tipologia_.ID_DETTAGLIO from SVIL_R30_AN_TIPO_ATTIVITA tipologia_ where tipologia_.ID_TIPO_ATTIVITA=? and tipologia_.ID_DETTAGLIO=?
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Insert 0: insert into SVIL_R30_AN_TIPO_ATTIVITA (ID_TIPO_ATTIVITA, ID_DETTAGLIO) values (?, ?)
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Update 0: null
8-feb-2006 17.03.14 org.hibernate.persister.entity.BasicEntityPersister logStaticSQL
FINE: Delete 0: delete from SVIL_R30_AN_TIPO_ATTIVITA where ID_TIPO_ATTIVITA=? and ID_DETTAGLIO=?
8-feb-2006 17.03.14 org.hibernate.persister.collection.AbstractCollectionPersister logStaticSQL
FINE: Static SQL for collection: mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita.tipologie
8-feb-2006 17.03.14 org.hibernate.persister.collection.AbstractCollectionPersister logStaticSQL
FINE: Row insert: update SVIL_R30_AN_TIPO_ATTIVITA set ID_TIPO_ATTIVITA=? where ID_TIPO_ATTIVITA=? and ID_DETTAGLIO=?
8-feb-2006 17.03.14 org.hibernate.persister.collection.AbstractCollectionPersister logStaticSQL
FINE: Row delete: update SVIL_R30_AN_TIPO_ATTIVITA set ID_TIPO_ATTIVITA=null where ID_TIPO_ATTIVITA=? and ID_TIPO_ATTIVITA=? and ID_DETTAGLIO=?
8-feb-2006 17.03.14 org.hibernate.persister.collection.AbstractCollectionPersister logStaticSQL
FINE: One-shot delete: update SVIL_R30_AN_TIPO_ATTIVITA set ID_TIPO_ATTIVITA=null where ID_TIPO_ATTIVITA=?
8-feb-2006 17.03.14 org.hibernate.loader.entity.EntityLoader <init>
FINE: Static select for entity mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita: select attivita0_.ID_ATTIVITA as ID1_0_, attivita0_.ID_TIPO_ATTIVITA as ID2_0_0_ from H3_TEST attivita0_ where attivita0_.ID_ATTIVITA=?
8-feb-2006 17.03.14 org.hibernate.loader.entity.EntityLoader <init>
FINE: Static select for entity mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita: select attivita0_.ID_ATTIVITA as ID1_0_, attivita0_.ID_TIPO_ATTIVITA as ID2_0_0_ from H3_TEST attivita0_ where attivita0_.ID_ATTIVITA=?
8-feb-2006 17.03.14 org.hibernate.loader.entity.EntityLoader <init>
FINE: Static select for entity mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita: select attivita0_.ID_ATTIVITA as ID1_0_, attivita0_.ID_TIPO_ATTIVITA as ID2_0_0_ from H3_TEST attivita0_ where attivita0_.ID_ATTIVITA=? for update
8-feb-2006 17.03.14 org.hibernate.loader.entity.EntityLoader <init>
FINE: Static select for entity mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita: select attivita0_.ID_ATTIVITA as ID1_0_, attivita0_.ID_TIPO_ATTIVITA as ID2_0_0_ from H3_TEST attivita0_ where attivita0_.ID_ATTIVITA=? for update nowait
8-feb-2006 17.03.14 org.hibernate.loader.entity.EntityLoader <init>
FINE: Static select for entity mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Tipologia: select tipologia0_.ID_TIPO_ATTIVITA as ID1_0_, tipologia0_.ID_DETTAGLIO as ID2_0_ from SVIL_R30_AN_TIPO_ATTIVITA tipologia0_ where tipologia0_.ID_TIPO_ATTIVITA=? and tipologia0_.ID_DETTAGLIO=?
8-feb-2006 17.03.14 org.hibernate.loader.entity.EntityLoader <init>
FINE: Static select for entity mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Tipologia: select tipologia0_.ID_TIPO_ATTIVITA as ID1_0_, tipologia0_.ID_DETTAGLIO as ID2_0_ from SVIL_R30_AN_TIPO_ATTIVITA tipologia0_ where tipologia0_.ID_TIPO_ATTIVITA=? and tipologia0_.ID_DETTAGLIO=?
8-feb-2006 17.03.14 org.hibernate.loader.entity.EntityLoader <init>
FINE: Static select for entity mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Tipologia: select tipologia0_.ID_TIPO_ATTIVITA as ID1_0_, tipologia0_.ID_DETTAGLIO as ID2_0_ from SVIL_R30_AN_TIPO_ATTIVITA tipologia0_ where tipologia0_.ID_TIPO_ATTIVITA=? and tipologia0_.ID_DETTAGLIO=? for update
8-feb-2006 17.03.14 org.hibernate.loader.entity.EntityLoader <init>
FINE: Static select for entity mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Tipologia: select tipologia0_.ID_TIPO_ATTIVITA as ID1_0_, tipologia0_.ID_DETTAGLIO as ID2_0_ from SVIL_R30_AN_TIPO_ATTIVITA tipologia0_ where tipologia0_.ID_TIPO_ATTIVITA=? and tipologia0_.ID_DETTAGLIO=? for update nowait
8-feb-2006 17.03.14 org.hibernate.loader.collection.OneToManyLoader <init>
FINE: Static select for one-to-many mobiRicercaAttivita.domain.attivita.test.hibernateproblem.Attivita.tipologie: select tipologie0_.ID_TIPO_ATTIVITA as ID1_1_, tipologie0_.ID_DETTAGLIO as ID2_1_, tipologie0_.ID_TIPO_ATTIVITA as ID1_0_, tipologie0_.ID_DETTAGLIO as ID2_0_ from SVIL_R30_AN_TIPO_ATTIVITA tipologie0_ where tipologie0_.ID_TIPO_ATTIVITA=?
8-feb-2006 17.03.14 org.hibernate.impl.SessionFactoryObjectFactory <clinit>
FINE: initializing class SessionFactoryObjectFactory
8-feb-2006 17.03.14 org.hibernate.impl.SessionFactoryObjectFactory addInstance
FINE: registered: e482fb26094a66f201094a66f42f0000 (unnamed)
8-feb-2006 17.03.14 org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
8-feb-2006 17.03.14 org.hibernate.impl.SessionFactoryImpl <init>
FINE: instantiated session factory
8-feb-2006 17.03.14 org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.Oracle9Dialect
8-feb-2006 17.03.14 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
8-feb-2006 17.03.14 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
8-feb-2006 17.03.14 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
8-feb-2006 17.03.14 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
8-feb-2006 17.03.14 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
8-feb-2006 17.03.14 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
8-feb-2006 17.03.14 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
8-feb-2006 17.03.14 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
8-feb-2006 17.03.14 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: Running hbm2ddl schema export
8-feb-2006 17.03.14 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: exporting generated schema to database
8-feb-2006 17.03.14 org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
INFO: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
8-feb-2006 17.03.14 org.springframework.jdbc.datasource.DriverManagerDataSource getConnectionFromDriverManager
FINE: Creating new JDBC Connection to [jdbc:oracle:thin:@terra.aem.torino.it:1524:ora314]
8-feb-2006 17.03.14 org.hibernate.tool.hbm2ddl.SchemaExport execute
FINE: drop table H3_TEST cascade constraints
8-feb-2006 17.03.14 org.hibernate.tool.hbm2ddl.SchemaExport execute
FINE: drop table SVIL_R30_AN_TIPO_ATTIVITA cascade constraints
8-feb-2006 17.03.14 org.hibernate.tool.hbm2ddl.SchemaExport execute
FINE: drop sequence R01_MANGANO
8-feb-2006 17.03.15 org.hibernate.tool.hbm2ddl.SchemaExport execute
FINE: create table H3_TEST (
ID_ATTIVITA number(19,0) not null,
ID_TIPO_ATTIVITA varchar2(255),
primary key (ID_ATTIVITA)
)
8-feb-2006 17.03.15 org.hibernate.tool.hbm2ddl.SchemaExport execute
FINE: create table SVIL_R30_AN_TIPO_ATTIVITA (
ID_TIPO_ATTIVITA varchar2(255) not null,
ID_DETTAGLIO varchar2(255) not null,
primary key (ID_TIPO_ATTIVITA, ID_DETTAGLIO)
)
8-feb-2006 17.03.15 org.hibernate.tool.hbm2ddl.SchemaExport execute
FINE: create sequence R01_MANGANO
8-feb-2006 17.03.15 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: schema export complete
8-feb-2006 17.03.15 org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.Oracle9Dialect
8-feb-2006 17.03.15 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
8-feb-2006 17.03.15 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
8-feb-2006 17.03.15 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
8-feb-2006 17.03.15 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
8-feb-2006 17.03.15 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing extends queue
8-feb-2006 17.03.15 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing collection mappings
8-feb-2006 17.03.15 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing association property references
8-feb-2006 17.03.15 org.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
8-feb-2006 17.03.15 org.hibernate.impl.SessionFactoryImpl checkNamedQueries
INFO: Checking 0 named queries
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
FINE: Invoking BeanPostProcessors after initialization of bean 'mySessionFactory'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getObjectForSharedInstance
FINE: Bean with name 'mySessionFactory' is a factory bean
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] on object of class [mobiRicercaAttivita.domain.attivita.test.hibernateproblem.RicercaAttivitaDaoH3Helper]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] with value of type [org.hibernate.SessionFactory]
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
FINE: Invoking BeanPostProcessors before initialization of bean 'attivitaDaoStub'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory invokeInitMethods
FINE: Invoking afterPropertiesSet() on bean with name 'attivitaDaoStub'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
FINE: Invoking BeanPostProcessors after initialization of bean 'attivitaDaoStub'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Creating shared instance of singleton bean 'myTxManager'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory createBean
FINE: Creating instance of bean 'myTxManager' with merged definition [Root bean: class [org.springframework.orm.hibernate3.HibernateTransactionManager]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [mobiRicercaAttivita/domain/attivita/test/hibernateproblem/config.xml]]
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
FINE: Invoking BeanPostProcessors before instantiation of bean 'myTxManager'
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Getting BeanInfo for class [org.springframework.orm.hibernate3.HibernateTransactionManager]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Caching PropertyDescriptors for class [org.springframework.orm.hibernate3.HibernateTransactionManager]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'autodetectDataSource' of type [boolean]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'beanFactory' of type [org.springframework.beans.factory.BeanFactory]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'class' of type [java.lang.Class]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'dataSource' of type [javax.sql.DataSource]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'entityInterceptor' of type [org.hibernate.Interceptor]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'entityInterceptorBeanName' of type [java.lang.String]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'globalRollbackOnParticipationFailure' of type [boolean]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'jdbcExceptionTranslator' of type [org.springframework.jdbc.support.SQLExceptionTranslator]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'nestedTransactionAllowed' of type [boolean]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'rollbackOnCommitFailure' of type [boolean]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'sessionFactory' of type [org.hibernate.SessionFactory]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'transactionSynchronization' of type [int]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'transactionSynchronizationName' of type [java.lang.String]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults forClass
FINE: Class [org.springframework.orm.hibernate3.HibernateTransactionManager] is cache-safe
8-feb-2006 17.03.15 org.springframework.beans.factory.support.BeanDefinitionValueResolver resolveReference
FINE: Resolving reference from property 'sessionFactory' in bean 'myTxManager' to bean 'mySessionFactory'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Returning cached instance of singleton bean 'mySessionFactory'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getObjectForSharedInstance
FINE: Bean with name 'mySessionFactory' is a factory bean
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.orm.hibernate3.HibernateTransactionManager.setSessionFactory(org.hibernate.SessionFactory)] on object of class [org.springframework.orm.hibernate3.HibernateTransactionManager]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.orm.hibernate3.HibernateTransactionManager.setSessionFactory(org.hibernate.SessionFactory)] with value of type [org.hibernate.SessionFactory]
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory createBean
FINE: Invoking setBeanFactory on BeanFactoryAware bean 'myTxManager'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
FINE: Invoking BeanPostProcessors before initialization of bean 'myTxManager'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory invokeInitMethods
FINE: Invoking afterPropertiesSet() on bean with name 'myTxManager'
8-feb-2006 17.03.15 org.springframework.orm.hibernate3.HibernateTransactionManager afterPropertiesSet
INFO: Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@4ac216] of Hibernate SessionFactory for HibernateTransactionManager
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
FINE: Invoking BeanPostProcessors after initialization of bean 'myTxManager'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Returning cached instance of singleton bean 'dataSource'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Returning cached instance of singleton bean 'mySessionFactory'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getObjectForSharedInstance
FINE: Calling code asked for FactoryBean instance for name 'mySessionFactory'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Returning cached instance of singleton bean 'mySessionFactory'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getObjectForSharedInstance
FINE: Bean with name 'mySessionFactory' is a factory bean
8-feb-2006 17.03.15 org.springframework.context.support.AbstractApplicationContext publishEvent
FINE: Publishing event in context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=30432385]: org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=30432385]; startup date [Wed Feb 08 17:03:12 CET 2006]; root of context hierarchy]
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Returning cached instance of singleton bean 'attivitaDaoStub'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Returning cached instance of singleton bean 'myTxManager'
8-feb-2006 17.03.15 org.springframework.jdbc.datasource.JdbcTransactionObjectSupport <clinit>
INFO: JDBC 3.0 Savepoint class is available
8-feb-2006 17.03.15 org.springframework.transaction.support.AbstractPlatformTransactionManager getTransaction
FINE: Using transaction object [org.springframework.orm.hibernate3.HibernateTransactionManager$HibernateTransactionObject@1ba94d]
8-feb-2006 17.03.15 org.springframework.transaction.support.AbstractPlatformTransactionManager getTransaction
FINE: Creating new transaction with name [null]
8-feb-2006 17.03.15 org.hibernate.impl.SessionImpl <init>
FINE: opened session at timestamp: 4667042182836224
8-feb-2006 17.03.15 org.springframework.orm.hibernate3.HibernateTransactionManager doBegin
FINE: Opened new Session [org.hibernate.impl.SessionImpl@383118] for Hibernate transaction
8-feb-2006 17.03.15 org.hibernate.jdbc.ConnectionManager openConnection
FINE: opening JDBC connection
8-feb-2006 17.03.15 org.springframework.jdbc.datasource.DriverManagerDataSource getConnectionFromDriverManager
FINE: Creating new JDBC Connection to [jdbc:oracle:thin:@terra.aem.torino.it:1524:ora314]
8-feb-2006 17.03.15 org.hibernate.transaction.JDBCTransaction begin
FINE: begin
8-feb-2006 17.03.15 org.hibernate.transaction.JDBCTransaction begin
FINE: current autocommit status: true
8-feb-2006 17.03.15 org.hibernate.transaction.JDBCTransaction begin
FINE: disabling autocommit
8-feb-2006 17.03.15 org.springframework.orm.hibernate3.HibernateTransactionManager doBegin
FINE: Exposing Hibernate transaction as JDBC transaction [oracle.jdbc.driver.T4CConnection@7eb6e2]
8-feb-2006 17.03.15 org.springframework.transaction.support.TransactionSynchronizationManager bindResource
FINE: Bound value [org.springframework.jdbc.datasource.ConnectionHolder@118d189] for key [org.springframework.jdbc.datasource.DriverManagerDataSource@4ac216] to thread [main]
8-feb-2006 17.03.15 org.springframework.transaction.support.TransactionSynchronizationManager bindResource
FINE: Bound value [org.springframework.orm.hibernate3.SessionHolder@1551b0] for key [org.hibernate.impl.SessionFactoryImpl@1a61172] to thread [main]
8-feb-2006 17.03.15 org.springframework.transaction.support.TransactionSynchronizationManager initSynchronization
FINE: Initializing transaction synchronization
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
FINE: Using JAXP implementation [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@1884a40]
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.BeansDtdResolver resolveEntity
FINE: Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.BeansDtdResolver resolveEntity
FINE: Trying to locate [spring-beans.dtd] in Spring jar
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.BeansDtdResolver resolveEntity
FINE: Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser registerBeanDefinitions
FINE: Loading bean definitions
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser registerBeanDefinitions
FINE: Default lazy init 'false'
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser registerBeanDefinitions
FINE: Default autowire 'no'
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser registerBeanDefinitions
FINE: Default dependency check 'none'
8-feb-2006 17.03.15 org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser registerBeanDefinitions
FINE: Found 8 <bean> elements in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
8-feb-2006 17.03.15 org.springframework.core.CollectionFactory createLinkedMapIfPossible
FINE: Creating java.util.LinkedHashMap
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Creating shared instance of singleton bean 'DB2'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory createBean
FINE: Creating instance of bean 'DB2' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
FINE: Invoking BeanPostProcessors before instantiation of bean 'DB2'
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Getting BeanInfo for class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Caching PropertyDescriptors for class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'badSqlGrammarCodes' of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'cannotAcquireLockCodes' of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'cannotSerializeTransactionCodes' of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'class' of type [java.lang.Class]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'customTranslations' of type [[Lorg.springframework.jdbc.support.CustomSQLErrorCodesTranslation;]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'dataAccessResourceFailureCodes' of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'dataIntegrityViolationCodes' of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'databaseProductName' of type [java.lang.String]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'databaseProductNames' of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'deadlockLoserCodes' of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'invalidResultSetAccessCodes' of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults <init>
FINE: Found property 'useSqlStateForTranslation' of type [boolean]
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults forClass
FINE: Class [org.springframework.jdbc.support.SQLErrorCodes] is cache-safe
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] with value of type [java.lang.String]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl doTypeConversionIfNecessary
FINE: Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@196f4b5]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl doTypeConversionIfNecessary
FINE: Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@196f4b5]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
FINE: Invoking BeanPostProcessors before initialization of bean 'DB2'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
FINE: Invoking BeanPostProcessors after initialization of bean 'DB2'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Creating shared instance of singleton bean 'HSQL'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory createBean
FINE: Creating instance of bean 'HSQL' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
FINE: Invoking BeanPostProcessors before instantiation of bean 'HSQL'
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults forClass
FINE: Using cached introspection results for class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] with value of type [java.lang.String]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl doTypeConversionIfNecessary
FINE: Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@1fe571f]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl doTypeConversionIfNecessary
FINE: Converting String to [class [Ljava.lang.String;] using property editor [org.springframework.beans.propertyeditors.StringArrayPropertyEditor@1fe571f]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes(java.lang.String[])] with value of type [[Ljava.lang.String;]
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
FINE: Invoking BeanPostProcessors before initialization of bean 'HSQL'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
FINE: Invoking BeanPostProcessors after initialization of bean 'HSQL'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractBeanFactory getBean
FINE: Creating shared instance of singleton bean 'MS-SQL'
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory createBean
FINE: Creating instance of bean 'MS-SQL' with merged definition [Root bean: class [org.springframework.jdbc.support.SQLErrorCodes]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [org/springframework/jdbc/support/sql-error-codes.xml]]
8-feb-2006 17.03.15 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
FINE: Invoking BeanPostProcessors before instantiation of bean 'MS-SQL'
8-feb-2006 17.03.15 org.springframework.beans.CachedIntrospectionResults forClass
FINE: Using cached introspection results for class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: About to invoke write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] on object of class [org.springframework.jdbc.support.SQLErrorCodes]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl setPropertyValue
FINE: Invoked write method [public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName(java.lang.String)] with value of type [java.lang.String]
8-feb-2006 17.03.15 org.springframework.beans.BeanWrapperImpl doTypeCo


Top
 Profile  
 
 Post subject: not H bug
PostPosted: Mon Feb 13, 2006 6:40 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
I would say this is not Hibernate bug because mapping code references Long category property, but it is not set in the test therefore upon Hibernate's attempt to save empty collection it tries to calculate hash code of a null object
Quote:
<set name="allMyCategories">
<key property-ref="category" column="ID_CATEGORY"/>
<one-to-many class="org.hibernate.test.onetomany.propertyref.Category"/>
</set>

<property name="category" column="ID_CATEGORY"/>

adding this line to test makes it happy:
att.setCategory( new Long(0));

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject: mismatch impedence?
PostPosted: Tue Feb 14, 2006 5:15 am 
Newbie

Joined: Wed Feb 08, 2006 11:52 am
Posts: 5
Hi kgignatyev,

that's right but why have I to set a field that doesn't interest to me from a domain point of view? The category field of Activity isn't relevant for my domain (object) model, but it only supports the relational association with the Category object. So getter and setter for category field in Activity are declared private.

Thoughts?

Thank you,
Enri.


Top
 Profile  
 
 Post subject: relationships
PostPosted: Tue Feb 14, 2006 11:38 am 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
If you did not specify property-ref then id of the Activity object would be used, in the case you would not need that extra field.
Like this:
<set name="allMyCategories">
<key column="activity_id"/>
<one-to-many class="org.hibernate.test.onetomany.propertyref.Category"/>
</set>


key is the column that points to parent, the activity object.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 14, 2006 12:04 pm 
Newbie

Joined: Wed Feb 08, 2006 11:52 am
Posts: 5
Yes I know, but I am working with a legacy database schema.

What do you think about my considerations in my previous post?

Thanks,
Enrico.


Top
 Profile  
 
 Post subject: mapping
PostPosted: Tue Feb 14, 2006 12:20 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
I think that we cannot ignore DB schema especially when dealing with existing databases.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.