Code:
2007-07-02 08:44:36,020 DEBUG [org.hibernate.engine.StatefulPersistenceContext] initializing non-lazy collections
2007-07-02 08:44:36,021 DEBUG [org.springframework.orm.hibernate3.HibernateTemplate] Not closing pre-bound Hibernate Session after HibernateTemplate
2007-07-02 08:44:36,021 DEBUG [org.springframework.transaction.interceptor.TransactionInterceptor] Completing transaction for [org.bivela.business.facade.UserFacadeInterface.updateShareholders] after exception: java.lang.Exception: org.hibernate.HibernateException: Blad wymuszony
2007-07-02 08:44:36,021 DEBUG [org.springframework.transaction.interceptor.RuleBasedTransactionAttribute] Applying rules to determine whether transaction should rollback on java.lang.Exception: org.hibernate.HibernateException: Blad wymuszony
2007-07-02 08:44:36,021 DEBUG [org.springframework.transaction.interceptor.RuleBasedTransactionAttribute] Winning rollback rule is: null
2007-07-02 08:44:36,021 DEBUG [org.springframework.transaction.interceptor.RuleBasedTransactionAttribute] No relevant rollback rule found: applying superclass default
2007-07-02 08:44:36,022 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] Triggering beforeCommit synchronization
2007-07-02 08:44:36,035 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] Triggering beforeCompletion synchronization
2007-07-02 08:44:36,036 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] Initiating transaction commit
2007-07-02 08:44:36,036 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] Committing Hibernate transaction on Session [org.hibernate.impl.SessionImpl@869e8f]
2007-07-02 08:44:36,036 DEBUG [org.hibernate.transaction.JDBCTransaction] commit
2007-07-02 08:44:36,036 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] processing flush-time cascades
2007-07-02 08:44:36,036 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] dirty checking collections
2007-07-02 08:44:36,037 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
2007-07-02 08:44:36,038 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2007-07-02 08:44:36,038 DEBUG [org.hibernate.pretty.Printer] listing entities:
2007-07-02 08:44:36,038 DEBUG [org.hibernate.pretty.Printer] org.bivela.dto.bivela.Companies{purpose=money, employeesNumber=123, country=org.bivela.dto.bivela.Countries#1, zipCode=12345, companyStatus=SA, address=Doki 2, state=pomorskie, capital=123423, fiscalPeriod=01-01, name=Sunreef Yachts, city=gdansk, id=1}
2007-07-02 08:44:36,038 DEBUG [org.hibernate.pretty.Printer] org.bivela.dto.bivela.Companies{purpose=money, employeesNumber=123, country=org.bivela.dto.bivela.Countries#1, zipCode=12345, companyStatus=SARL, address=Doki 2, state=pomorskie, capital=123, fiscalPeriod=01-01, name=htep, city=Gdansk, id=2}
2007-07-02 08:44:36,038 DEBUG [org.hibernate.pretty.Printer] org.bivela.dto.bivela.Companies{purpose=fdksf, employeesNumber=123, country=org.bivela.dto.bivela.Countries#1, zipCode=12345, companyStatus=SARL, address=Doki 2, state=pomorskie, capital=123, fiscalPeriod=01-01, name=htep2, city=gdansk, id=3}
2007-07-02 08:44:36,047 DEBUG [org.hibernate.pretty.Printer] org.bivela.dto.bivela.Shares{shareholder=org.bivela.dto.bivela.Shareholders#1, changeDate=2007-07-02 08:44:35, quantity=60.00, id=8, company=org.bivela.dto.bivela.Companies#1}
2007-07-02 08:44:36,048 DEBUG [org.hibernate.pretty.Printer] org.bivela.dto.bivela.Shareholders{contact=null, type=artificial person, id=1, company=org.bivela.dto.bivela.Companies#2}
2007-07-02 08:44:36,048 DEBUG [org.hibernate.pretty.Printer] org.bivela.dto.bivela.Shareholders{contact=null, type=artificial person, id=3, company=org.bivela.dto.bivela.Companies#3}
2007-07-02 08:44:36,420 DEBUG [org.hibernate.transaction.JDBCTransaction] re-enabling autocommit
2007-07-02 08:44:36,420 DEBUG [org.hibernate.transaction.JDBCTransaction] committed JDBC Connection
2007-07-02 08:44:36,421 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
2007-07-02 08:44:36,421 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
2007-07-02 08:44:36,421 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] Triggering afterCommit synchronization
2007-07-02 08:44:36,421 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] Triggering afterCompletion synchronization
2007-07-02 08:44:36,421 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Clearing transaction synchronization
2007-07-02 08:44:36,422 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Removed value [org.springframework.orm.hibernate3.SessionHolder@142022d] for key [org.hibernate.impl.SessionFactoryImpl@1c1c9dc] from thread [http-0.0.0.0-8443-2]
2007-07-02 08:44:36,422 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Removed value [org.springframework.jdbc.datasource.ConnectionHolder@1233bdc] for key [org.apache.commons.dbcp.BasicDataSource@5c2445] from thread [http-0.0.0.0-8443-2]
2007-07-02 08:44:36,422 DEBUG [org.springframework.orm.hibernate3.HibernateTransactionManager] Closing Hibernate Session [org.hibernate.impl.SessionImpl@869e8f] after transaction
2007-07-02 08:44:36,422 DEBUG [org.springframework.orm.hibernate3.SessionFactoryUtils] Closing Hibernate Session
2007-07-02 08:44:36,422 DEBUG [org.springframework.web.servlet.DispatcherServlet] Cleared thread-bound request context: org.apache.catalina.connector.RequestFacade@15d63da
2007-07-02 08:44:36,423 DEBUG [org.springframework.web.servlet.DispatcherServlet] Could not complete request
java.lang.Exception: org.hibernate.HibernateException: Blad wymuszony
at org.bivela.business.facade.UserFacade.updateShareholders(UserFacade.java:1393)
What am I doing wrong?