Announcement Announcement Module
Collapse
No announcement yet.
java.lang.ClassCastException: java.util.ArrayList Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.ClassCastException: java.util.ArrayList

    Why is the java.lang.ClassCastException: java.util.ArrayList being thrown???

    Code:
    public class DefaultMessageManagerSystemTest extends AbstractTransactionalDataSourceSpringContextTests {
    
        protected final transient Log log = LogFactory.getLog( getClass() );
    
        protected MessageManager messageManager;
        protected FolderManager folderManager;
        protected UserManager userManager;
    
        public void setUserManager( UserManager userManager ) {
            this.userManager = userManager;
        }
    
        public void setMessageManager( MessageManager messageManager ) {
            this.messageManager = messageManager;
        }
    
        public void setFolderManager( FolderManager folderManager ) {
            this.folderManager = folderManager;
        }
    
        @Override
        protected String[] getConfigLocations() {
            return new String[] { "/business.core.spring.xml",
                                  "/business.messaging.spring.xml",
                                  "/business.party.spring.xml" };
        }
    
        public void testMessageCRUD() {
            setComplete();
    
            User user1 = new User();
            user1.setUsername( "bobby");
            user1.setPassword( "yourmomma");
            user1.setGivenName( "bobby");
            user1.setSurname( "loser");
            userManager.create( user1 );
    
            User user2 = new User();
            user2.setUsername( "sally");
            user2.setPassword( "yourdaddy");
            user2.setGivenName( "sally");
            user2.setSurname( "loser");
            userManager.create( user2);
    
            Folder inbox = new Folder();
            inbox.setName( "Inbox");
            inbox.setImmutable( false);
            folderManager.create( inbox);
    
            Message message = new Message();
            message.setAuthor( user1);
            List<User> recipients = new ArrayList<User>&#40;&#41;;
            recipients.add&#40;user2&#41;;
            recipients.add&#40;user1&#41;;
            message.setRecipients&#40; recipients&#41;;
    
            message.setSubject&#40; "You Created Messages Successfully"&#41;;
            message.setText&#40; "you have done a great job!!!"&#41;;
            message.setFolder&#40; inbox&#41;;
            messageManager.create&#40; message&#41;;
    
    
            UUID messageId = message.getId&#40;&#41;;
            UUID folderId = inbox.getId&#40;&#41;;
            if &#40; log.isInfoEnabled&#40;&#41; &#41; &#123;
                log.info&#40; "message id = " + messageId &#41;;
                log.info&#40; "folder id = " + folderId &#41;;
            &#125;
            assertNotNull&#40; "Message ID should not be null!!!", messageId&#41;;
    
        &#125;
    &#125;
    Here's the stack trace:
    Code:
        &#91;junit&#93; ------------- Standard Error -----------------
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;25 AM org.springframework.test.AbstractSpringContextTests loadContextLocations
        &#91;junit&#93; INFO&#58; Loading config for&#58; /business.core.spring.xml,/business.messaging.spring.xml,/business.party.spring.xml
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;26 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
        &#91;junit&#93; INFO&#58; Loading XML bean definitions from class path resource &#91;business.core.spring.xml&#93;
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.course.Subject.assessments -> assessments
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.Configuration secondPassCompile
        &#91;junit&#93; INFO&#58; processing association property references
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.Configuration secondPassCompile
        &#91;junit&#93; INFO&#58; processing foreign key constraints
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
        &#91;junit&#93; INFO&#58; Initializing connection provider&#58; org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;26 AM com.mchange.v2.log.MLog <clinit>
        &#91;junit&#93; INFO&#58; MLog clients using java 1.4+ standard logging.
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;27 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
        &#91;junit&#93; INFO&#58; Loading XML bean definitions from class path resource &#91;business.messaging.spring.xml&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;27 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
        &#91;junit&#93; INFO&#58; Loading XML bean definitions from class path resource &#91;business.party.spring.xml&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;27 AM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
        &#91;junit&#93; INFO&#58; Bean factory for application context &#91;org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=20590970&#93;&#58; org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans &#91;rootPlaceholderConfig,dataSource,sessionFactory,transactionManager,org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,transactionInterceptor,mailSender,messageDAO,messageManager,folderDAO,folderManager,announcementDAO,announcementManager,userDAO,userManager&#93;; root of BeanFactory hierarchy
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;27 AM org.springframework.context.support.AbstractApplicationContext refresh
        &#91;junit&#93; INFO&#58; 16 beans defined in application context &#91;org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=20590970&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;27 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'rootPlaceholderConfig'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;28 AM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
        &#91;junit&#93; INFO&#58; Loading properties file from class path resource &#91;jdbc.properties&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;28 AM org.springframework.core.CollectionFactory <clinit>
        &#91;junit&#93; INFO&#58; JDK 1.4+ collections available
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;28 AM org.springframework.core.CollectionFactory <clinit>
        &#91;junit&#93; INFO&#58; Commons Collections 3.x available
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;28 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;28 AM org.springframework.aop.framework.DefaultAopProxyFactory <clinit>
        &#91;junit&#93; INFO&#58; CGLIB2 available&#58; proxyTargetClass feature enabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;28 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;29 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'transactionInterceptor'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;29 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'transactionManager'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;29 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'sessionFactory'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;30 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'dataSource'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;30 AM com.mchange.v2.c3p0.C3P0Registry banner
        &#91;junit&#93; INFO&#58; Initializing c3p0-0.9.0 &#91;built 11-July-2005 00&#58;43&#58;29 -0400; debug? true; trace&#58; 10&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;30 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'com.mchange.v2.c3p0.ComboPooledDataSource#dc6a77' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;31 AM com.mchange.v2.c3p0.PoolBackedDataSource getPoolManager
        &#91;junit&#93; INFO&#58; Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource@1d5a0&#91; acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1d5a0, idleConnectionTestPeriod -> -1, initialPoolSize -> 3, jdbcUrl -> jdbc&#58;mysql&#58;//localhost&#58;3306/cls?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8, loginTimeout -> 0, maxIdleTime -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, properties -> &#123;user=******, password=******&#125;, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false &#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;31 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'dataSource' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;31 AM org.hibernate.cfg.Environment <clinit>
        &#91;junit&#93; INFO&#58; Hibernate 3.0.5
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;31 AM org.hibernate.cfg.Environment <clinit>
        &#91;junit&#93; INFO&#58; hibernate.properties not found
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;31 AM org.hibernate.cfg.Environment <clinit>
        &#91;junit&#93; INFO&#58; using CGLIB reflection optimizer
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;31 AM org.hibernate.cfg.Environment <clinit>
        &#91;junit&#93; INFO&#58; using JDK 1.4 java.sql.Timestamp handling
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;33 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.messaging.Announcement -> announcement
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;33 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.messaging.Folder -> folder
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;33 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.messaging.Message -> messages
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;33 AM org.hibernate.cfg.HbmBinder bindCollection
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.messaging.Message.recipients -> message_recipient_maps
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;33 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domian.party.EmailAddress -> email_addresses
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;33 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.party.Party -> parties
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;33 AM org.hibernate.cfg.HbmBinder bindJoinedSubclass
        &#91;junit&#93; INFO&#58; Mapping joined-subclass&#58; com.domain.party.Person -> people
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;34 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.party.PhoneNumber -> phone_numbers
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;34 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.party.PostalAddress -> postal_addresses
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;34 AM org.hibernate.cfg.HbmBinder bindJoinedSubclass
        &#91;junit&#93; INFO&#58; Mapping joined-subclass&#58; com.domian.party.User -> users
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;34 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.assessment.Assessment -> assessments
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;34 AM org.hibernate.cfg.HbmBinder bindCollection
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.assessment.Assessment.questions -> assessment_question_maps
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;34 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.assessment.Question -> questions
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;34 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domian.assessment.Answer -> answers
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;34 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.assessment.Standard -> standards
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;34 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.assessment.Response -> responses
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindCollection
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.assessment.Response.answers -> response_answer_maps
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindJoinedSubclass
        &#91;junit&#93; INFO&#58; Mapping joined-subclass&#58; com.domain.assessment.MatchAnswer -> matchanswers
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
        &#91;junit&#93; INFO&#58; Mapping class&#58; com.domain.course.Subject -> subjects
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.springframework.orm.hibernate3.LocalSessionFactoryBean afterPropertiesSet
        &#91;junit&#93; INFO&#58; Building new Hibernate SessionFactory
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.Configuration secondPassCompile
        &#91;junit&#93; INFO&#58; processing extends queue
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.Configuration secondPassCompile
        &#91;junit&#93; INFO&#58; processing collection mappings
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.messaging.Folder.messages -> messages
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.party.Party.emailAddresses -> email_addresses
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.party.Party.postalAddresses -> postal_addresses
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.party.Party.phoneNumbers -> phone_numbers
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.assessment.Question.answers -> answers
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.assessment.Question.responses -> responses
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.assessment.Standard.questions -> questions
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
        &#91;junit&#93; INFO&#58; Mapping collection&#58; com.domain.course.Subject.assessments -> assessments
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.Configuration secondPassCompile
        &#91;junit&#93; INFO&#58; processing association property references
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.Configuration secondPassCompile
        &#91;junit&#93; INFO&#58; processing foreign key constraints
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
        &#91;junit&#93; INFO&#58; Initializing connection provider&#58; org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; RDBMS&#58; MySQL, version&#58; 3.23.58
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; JDBC driver&#58; MySQL-AB JDBC Driver, version&#58; mysql-connector-java-3.1.7 &#40; $Date&#58; 2005/01/25 19&#58;11&#58;41 $, $Revision&#58; 1.27.4.54 $ &#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.dialect.Dialect <init>
        &#91;junit&#93; INFO&#58; Using dialect&#58; org.hibernate.dialect.MySQLDialect
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
        &#91;junit&#93; INFO&#58; Using default transaction strategy &#40;direct JDBC transactions&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
        &#91;junit&#93; INFO&#58; No TransactionManagerLookup configured &#40;in JTA environment, use of read-write or transactional second-level cache is not recommended&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Automatic flush during beforeCompletion&#40;&#41;&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Automatic session close at end of transaction&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; JDBC batch size&#58; 15
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; JDBC batch updates for versioned data&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Scrollable result sets&#58; enabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; JDBC3 getGeneratedKeys&#40;&#41;&#58; enabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Connection release mode&#58; null
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Maximum outer join fetch depth&#58; 2
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Default batch fetch size&#58; 1
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Generate SQL with comments&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Order SQL updates by primary key&#58; disabled
        &#91;junit&#93; INFO&#58; RDBMS&#58; MySQL, version&#58; 3.23.58
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
        &#91;junit&#93; INFO&#58; Query translator&#58; org.hibernate.hql.ast.ASTQueryTranslatorFactory
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
        &#91;junit&#93; INFO&#58; Using ASTQueryTranslatorFactory
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Query language substitutions&#58; &#123;&#125;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Second-level cache&#58; enabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Query cache&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory createCacheProvider
        &#91;junit&#93; INFO&#58; Cache provider&#58; org.hibernate.cache.EhCacheProvider
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Optimize cache for minimal puts&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Structured second-level cache entries&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Statistics&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Deleted entity synthetic identifier rollback&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Default entity-mode&#58; pojo
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.impl.SessionFactoryImpl <init>
        &#91;junit&#93; INFO&#58; building session factory
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM net.sf.ehcache.config.Configurator configure
        &#91;junit&#93; WARNING&#58; No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath&#58; jar&#58;file&#58;/home/donger/projects/trunk/code/java/lib/ehcache/ehcache.jar!/ehcache-failsafe.xml
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.hibernate.impl.SessionFactoryObjectFactory addInstance
        &#91;junit&#93; INFO&#58; Not binding factory to JNDI, no JNDI name configured
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.hibernate.impl.SessionFactoryImpl checkNamedQueries
        &#91;junit&#93; INFO&#58; Checking 0 named queries
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'sessionFactory' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.orm.hibernate3.HibernateTransactionManager afterPropertiesSet
        &#91;junit&#93; INFO&#58; Using DataSource &#91;org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy@1c6e818&#93; of Hibernate SessionFactory for HibernateTransactionManager
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'transactionManager' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#193385d' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'transactionInterceptor' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;    &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext initMessageSource
        &#91;junit&#93; INFO&#58; Unable to locate MessageSource with name 'messageSource'&#58; using default &#91;[email protected]7&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
        &#91;junit&#93; INFO&#58; Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster'&#58; using default &#91;org.springframework.context.event.SimpleApplicationEventMulticaster@19518cc&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
        &#91;junit&#93; INFO&#58; Pre-instantiating singletons in factory &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans &#91;rootPlaceholderConfig,dataSource,sessionFactory,transactionManager,org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,transactionInterceptor,mailSender,messageDAO,messageManager,folderDAO,folderManager,announcementDAO,announcementManager,userDAO,userManager&#93;; root of BeanFactory hierarchy&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'mailSender'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'messageDAO'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'messageManager'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'folderDAO'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'folderManager'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'announcementDAO'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'announcementManager'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'userDAO'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'userManager'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.jdbc.datasource.JdbcTransactionObjectSupport <clinit>
        &#91;junit&#93; INFO&#58; JDBC 3.0 Savepoint class is available
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.test.AbstractTransactionalSpringContextTests onSetUp
        &#91;junit&#93; INFO&#58; Began transaction&#58; transaction manager &#91;[email protected]ef4&#93;; defaultRollback true
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
        &#91;junit&#93; INFO&#58; Loading XML bean definitions from class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'DB2'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'HSQL'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'MS-SQL'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'MySQL'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'Oracle'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'Informix'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'PostgreSQL'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'Sybase'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.jdbc.support.SQLErrorCodesFactory <init>
        &#91;junit&#93; INFO&#58; SQLErrorCodes loaded&#58; &#91;DB2, HSQL, MS-SQL, MySQL, Oracle, Informix, PostgreSQL, Sybase&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.test.AbstractDependencyInjectionSpringContextTests tearDown
        &#91;junit&#93; SEVERE&#58; onTearDown error
        &#91;junit&#93; org.springframework.transaction.UnexpectedRollbackException&#58; Transaction has been rolled back because it has been marked as rollback-only
        &#91;junit&#93;     at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit&#40;AbstractPlatformTransactionManager.java&#58;464&#41;
        &#91;junit&#93;     at org.springframework.test.AbstractTransactionalSpringContextTests.endTransaction&#40;AbstractTransactionalSpringContextTests.java&#58;209&#41;
        &#91;junit&#93;     at org.springframework.test.AbstractTransactionalSpringContextTests.onTearDown&#40;AbstractTransactionalSpringContextTests.java&#58;153&#41;
        &#91;junit&#93;     at org.springframework.test.AbstractDependencyInjectionSpringContextTests.tearDown&#40;AbstractDependencyInjectionSpringContextTests.java&#58;256&#41;
        &#91;junit&#93;     at junit.framework.TestCase.runBare&#40;TestCase.java&#58;130&#41;
        &#91;junit&#93;     at junit.framework.TestResult$1.protect&#40;TestResult.java&#58;106&#41;
        &#91;junit&#93;     at junit.framework.TestResult.runProtected&#40;TestResult.java&#58;124&#41;
        &#91;junit&#93;     at junit.framework.TestResult.run&#40;TestResult.java&#58;109&#41;
        &#91;junit&#93;     at junit.framework.TestCase.run&#40;TestCase.java&#58;118&#41;
        &#91;junit&#93;     at junit.framework.TestSuite.runTest&#40;TestSuite.java&#58;208&#41;
        &#91;junit&#93;     at junit.framework.TestSuite.run&#40;TestSuite.java&#58;203&#41;
        &#91;junit&#93;     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run&#40;JUnitTestRunner.java&#58;297&#41;
        &#91;junit&#93;     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch&#40;JUnitTestRunner.java&#58;672&#41;
        &#91;junit&#93;     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main&#40;JUnitTestRunner.java&#58;567&#41;
        &#91;junit&#93; ------------- ---------------- ---------------
        &#91;junit&#93; Testcase&#58; testMessageCRUD&#40;com.domain.messaging.DefaultMessageManagerSystemTest&#41;&#58;        Caused an ERROR
        &#91;junit&#93; java.util.ArrayList
        &#91;junit&#93; java.lang.ClassCastException&#58; java.util.ArrayList
        &#91;junit&#93;     at org.hibernate.type.SetType.wrap&#40;SetType.java&#58;39&#41;
        &#91;junit&#93;     at org.hibernate.event.def.WrapVisitor.processArrayOrNewCollection&#40;WrapVisitor.java&#58;83&#41;
        &#91;junit&#93;     at org.hibernate.event.def.WrapVisitor.processCollection&#40;WrapVisitor.java&#58;50&#41;
        &#91;junit&#93;     at org.hibernate.event.def.AbstractVisitor.processValue&#40;AbstractVisitor.java&#58;104&#41;
        &#91;junit&#93;     at org.hibernate.event.def.WrapVisitor.processValue&#40;WrapVisitor.java&#58;97&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93;     at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues&#40;AbstractVisitor.java&#58;58&#41;
        &#91;junit&#93;     at org.hibernate.event.def.AbstractSaveEventListener.visitCollectionsBeforeSave&#40;AbstractSaveEventListener.java&#58;281&#41;
        &#91;junit&#93;     at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate&#40;AbstractSaveEventListener.java&#58;222&#41;
        &#91;junit&#93;     at org.hibernate.event.def.AbstractSaveEventListener.performSave&#40;AbstractSaveEventListener.java&#58;160&#41;
        &#91;junit&#93;     at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId&#40;AbstractSaveEventListener.java&#58;108&#41;
        &#91;junit&#93;     at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId&#40;DefaultSaveOrUpdateEventListener.java&#58;184&#41;
        &#91;junit&#93;     at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId&#40;DefaultSaveEventListener.java&#58;33&#41;
        &#91;junit&#93;     at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient&#40;DefaultSaveOrUpdateEventListener.java&#58;173&#41;
        &#91;junit&#93;     at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate&#40;DefaultSaveEventListener.java&#58;27&#41;
        &#91;junit&#93;     at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate&#40;DefaultSaveOrUpdateEventListener.java&#58;69&#41;
        &#91;junit&#93;     at org.hibernate.impl.SessionImpl.save&#40;SessionImpl.java&#58;481&#41;
        &#91;junit&#93;     at org.hibernate.impl.SessionImpl.save&#40;SessionImpl.java&#58;476&#41;
        &#91;junit&#93;     at org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate&#40;HibernateTemplate.java&#58;596&#41;
        &#91;junit&#93;     at org.springframework.orm.hibernate3.HibernateTemplate.execute&#40;HibernateTemplate.java&#58;356&#41;
        &#91;junit&#93;     at org.springframework.orm.hibernate3.HibernateTemplate.save&#40;HibernateTemplate.java&#58;593&#41;
        &#91;junit&#93;     at com.domain.framework.orm.hibernate.SimpleHibernateDAO.save&#40;SimpleHibernateDAO.java&#58;113&#41;
        &#91;junit&#93;     at com.domain.framework.orm.hibernate.SimpleHibernateDAO.create&#40;SimpleHibernateDAO.java&#58;109&#41;
        &#91;junit&#93;     at com.domain.messaging.DefaultMessageManager.create&#40;DefaultMessageManager.java&#58;71&#41;
        &#91;junit&#93;     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection&#40;AopUtils.java&#58;292&#41;
        &#91;junit&#93;     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint&#40;ReflectiveMethodInvocation.java&#58;155&#41;
        &#91;junit&#93;     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed&#40;ReflectiveMethodInvocation.java&#58;122&#41;
        &#91;junit&#93;     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke&#40;TransactionInterceptor.java&#58;96&#41;
        &#91;junit&#93;     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed&#40;ReflectiveMethodInvocation.java&#58;144&#41;
        &#91;junit&#93;     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke&#40;JdkDynamicAopProxy.java&#58;174&#41;
        &#91;junit&#93;     at $Proxy7.create&#40;Unknown Source&#41;
        &#91;junit&#93;     at com.domain.messaging.DefaultMessageManagerSystemTest.testMessageCRUD&#40;DefaultMessageManagerSystemTest.java&#58;77&#41;
    
    
        &#91;junit&#93; INFO&#58; JDBC driver&#58; MySQL-AB JDBC Driver, version&#58; mysql-connector-java-3.1.7 &#40; $Date&#58; 2005/01/25 19&#58;11&#58;41 $, $Revision&#58; 1.27.4.54 $ &#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.dialect.Dialect <init>
        &#91;junit&#93; INFO&#58; Using dialect&#58; org.hibernate.dialect.MySQLDialect
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
        &#91;junit&#93; INFO&#58; Using default transaction strategy &#40;direct JDBC transactions&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
        &#91;junit&#93; INFO&#58; No TransactionManagerLookup configured &#40;in JTA environment, use of read-write or transactional second-level cache is not recommended&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Automatic flush during beforeCompletion&#40;&#41;&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Automatic session close at end of transaction&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; JDBC batch size&#58; 15
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; JDBC batch updates for versioned data&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Scrollable result sets&#58; enabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; JDBC3 getGeneratedKeys&#40;&#41;&#58; enabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Connection release mode&#58; null
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Maximum outer join fetch depth&#58; 2
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Default batch fetch size&#58; 1
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Generate SQL with comments&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Order SQL updates by primary key&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
        &#91;junit&#93; INFO&#58; Query translator&#58; org.hibernate.hql.ast.ASTQueryTranslatorFactory
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
        &#91;junit&#93; INFO&#58; Using ASTQueryTranslatorFactory
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Query language substitutions&#58; &#123;&#125;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Second-level cache&#58; enabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Query cache&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory createCacheProvider
        &#91;junit&#93; INFO&#58; Cache provider&#58; org.hibernate.cache.EhCacheProvider
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Optimize cache for minimal puts&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Structured second-level cache entries&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Statistics&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Deleted entity synthetic identifier rollback&#58; disabled
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.cfg.SettingsFactory buildSettings
        &#91;junit&#93; INFO&#58; Default entity-mode&#58; pojo
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM org.hibernate.impl.SessionFactoryImpl <init>
        &#91;junit&#93; INFO&#58; building session factory
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;35 AM net.sf.ehcache.config.Configurator configure
        &#91;junit&#93; WARNING&#58; No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath&#58; jar&#58;file&#58;/home/donger/projects/trunk/code/java/lib/ehcache/ehcache.jar!/ehcache-failsafe.xml
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.hibernate.impl.SessionFactoryObjectFactory addInstance
        &#91;junit&#93; INFO&#58; Not binding factory to JNDI, no JNDI name configured
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.hibernate.impl.SessionFactoryImpl checkNamedQueries
        &#91;junit&#93; INFO&#58; Checking 0 named queries
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'sessionFactory' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.orm.hibernate3.HibernateTransactionManager afterPropertiesSet
        &#91;junit&#93; INFO&#58; Using DataSource &#91;org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy@1c6e818&#93; of Hibernate SessionFactory for HibernateTransactionManager
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'transactionManager' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#193385d' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'transactionInterceptor' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;    &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
        &#91;junit&#93; INFO&#58; Bean 'org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator' is not eligible for getting processed by all BeanPostProcessors &#40;for example&#58; not eligible for auto-proxying&#41;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext initMessageSource
        &#91;junit&#93; INFO&#58; Unable to locate MessageSource with name 'messageSource'&#58; using default &#91;[email protected]7&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
        &#91;junit&#93; INFO&#58; Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster'&#58; using default &#91;org.springframework.context.event.SimpleApplicationEventMulticaster@19518cc&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
        &#91;junit&#93; INFO&#58; Pre-instantiating singletons in factory &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans &#91;rootPlaceholderConfig,dataSource,sessionFactory,transactionManager,org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,transactionInterceptor,mailSender,messageDAO,messageManager,folderDAO,folderManager,announcementDAO,announcementManager,userDAO,userManager&#93;; root of BeanFactory hierarchy&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'mailSender'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'messageDAO'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'messageManager'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'folderDAO'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'folderManager'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'announcementDAO'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;36 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'announcementManager'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'userDAO'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'userManager'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.jdbc.datasource.JdbcTransactionObjectSupport <clinit>
        &#91;junit&#93; INFO&#58; JDBC 3.0 Savepoint class is available
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.test.AbstractTransactionalSpringContextTests onSetUp
        &#91;junit&#93; INFO&#58; Began transaction&#58; transaction manager &#91;[email protected]ef4&#93;; defaultRollback true
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
        &#91;junit&#93; INFO&#58; Loading XML bean definitions from class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'DB2'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'HSQL'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'MS-SQL'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'MySQL'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'Oracle'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'Informix'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'PostgreSQL'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
        &#91;junit&#93; INFO&#58; Creating shared instance of singleton bean 'Sybase'
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.jdbc.support.SQLErrorCodesFactory <init>
        &#91;junit&#93; INFO&#58; SQLErrorCodes loaded&#58; &#91;DB2, HSQL, MS-SQL, MySQL, Oracle, Informix, PostgreSQL, Sybase&#93;
        &#91;junit&#93; Oct 4, 2005 9&#58;02&#58;37 AM org.springframework.test.AbstractDependencyInjectionSpringContextTests tearDown
        &#91;junit&#93; SEVERE&#58; onTearDown error
        &#91;junit&#93; org.springframework.transaction.UnexpectedRollbackException&#58; Transaction has been rolled back because it has been marked as rollback-only
        &#91;junit&#93;     at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit&#40;AbstractPlatformTransactionManager.java&#58;464&#41;
        &#91;junit&#93;     at org.springframework.test.AbstractTransactionalSpringContextTests.endTransaction&#40;AbstractTransactionalSpringContextTests.java&#58;209&#41;
        &#91;junit&#93;     at org.springframework.test.AbstractTransactionalSpringContextTests.onTearDown&#40;AbstractTransactionalSpringContextTests.java&#58;153&#41;
        &#91;junit&#93;     at org.springframework.test.AbstractDependencyInjectionSpringContextTests.tearDown&#40;AbstractDependencyInjectionSpringContextTests.java&#58;256&#41;
        &#91;junit&#93;     at junit.framework.TestCase.runBare&#40;TestCase.java&#58;130&#41;
        &#91;junit&#93;     at junit.framework.TestResult$1.protect&#40;TestResult.java&#58;106&#41;
        &#91;junit&#93;     at junit.framework.TestResult.runProtected&#40;TestResult.java&#58;124&#41;
        &#91;junit&#93;     at junit.framework.TestResult.run&#40;TestResult.java&#58;109&#41;
        &#91;junit&#93;     at junit.framework.TestCase.run&#40;TestCase.java&#58;118&#41;
        &#91;junit&#93;     at junit.framework.TestSuite.runTest&#40;TestSuite.java&#58;208&#41;
        &#91;junit&#93;     at junit.framework.TestSuite.run&#40;TestSuite.java&#58;203&#41;
        &#91;junit&#93;     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run&#40;JUnitTestRunner.java&#58;297&#41;
        &#91;junit&#93;     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch&#40;JUnitTestRunner.java&#58;672&#41;
        &#91;junit&#93;     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main&#40;JUnitTestRunner.java&#58;567&#41;
        &#91;junit&#93; Test com.domain.messaging.DefaultMessageManagerSystemTest FAILED
    
    BUILD SUCCESSFUL
    Any thoughts would be appreciated. Thank you for your time. Have a nice day!

  • #2
    message.setRecipients

    Here is a chunk of the Message class:
    Code:
        public void setRecipients&#40; List<User> recipients &#41; &#123;
            this.recipients = recipients;
        &#125;

    Comment


    • #3
      It's a Hibernate and not a Spring problem. I'd say the problem is in your Hibernate mapping and mapped class are not synced. (It may be that you declared a property as a Set - which is not List compatible - for example)

      Comment


      • #4
        Probably because you haven't mapped it as an array?

        Can you post your hibernate mappings and the entire class in question.

        Comment


        • #5
          Problem Solved.

          You guys are AMAZING!!! Thank you. The problem was in the hibnate mapping file as mentioned above. Thanks dejanp. Thank you both for your time. Have a GLORIOUS day!!!

          Comment

          Working...
          X