Hi, Raible :
>
> appfuse  2.0.1  AppFuse Modular Application
>
>
> PersonAtionTest.java
> public class PersonActionTest extends BaseActionTestCase {
>    private PersonAction action;
>    @Override
>    protected void onSetUpBeforeTransaction() throws Exception {
>        super.onSetUpBeforeTransaction();
>        action = new PersonAction();
>        GenericManager personManager = (GenericManager)
>                applicationContext.getBean("personManager");
>        action.setPersonManager(personManager);
>       // add a test person to the database
>        Person person = new Person();
>         person.setFirstName("Jack");
>        person.setLastName("Raible");
>        person.setBirthday(new Date());
>        personManager.save(person);
>        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> hello!");
>
>    }
>
>    public void testSearch() throws Exception {
>        assertEquals(action.list(), ActionSupport.SUCCESS);
>        assertTrue(action.getPersons().size() >= 1);
>    }
>    public void testEdit() throws Exception {
>        log.debug("testing edit...");
>        action.setId(1L);
>        assertNull(action.getPerson());
>        assertEquals("success", action.edit());
>        assertNotNull(action.getPerson ());
>        assertFalse(action.hasActionErrors());
>    }
>    public void testSave() throws Exception {
>        MockHttpServletRequest request = new MockHttpServletRequest();
>        ServletActionContext.setRequest (request);
>        action.setId(1L);
>        assertEquals("success", action.edit());
>        assertNotNull(action.getPerson());
> // update last name and save
>        action.getPerson().setLastName("Updated Last Name");
>        assertEquals("input", action.save());
>        assertEquals("Updated Last Name", action.getPerson
> ().getLastName());
>        assertFalse(action.hasActionErrors());
>        assertFalse( action.hasFieldErrors());
>        assertNotNull(request.getSession().getAttribute("messages"));
>    }
>
>    public void testRemove() throws Exception {
>        MockHttpServletRequest request = new MockHttpServletRequest();
>        ServletActionContext.setRequest(request);
>        action.setDelete("");
>        Person person = new Person();
>        person.setId(2L);
>        action.setPerson(person);
>        assertEquals("success", action.delete());
>        assertNotNull(request.getSession().getAttribute("messages"));
>    }
>
> }
> when  pom.xml setting  mysql database
>
>    <dbunit.dataTypeFactoryName>
> org.dbunit.dataset.datatype.DefaultDataTypeFactory</dbunit.dataTypeFactoryName>
>        <dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type>
>        
> <hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</hibernate.dialect>
>
>        <jdbc.groupId>mysql</jdbc.groupId>
>        <jdbc.artifactId>mysql-connector-java</jdbc.artifactId>
>        <jdbc.version>5.0.5</jdbc.version>
>       <jdbc.driverClassName >com.mysql.jdbc.Driver</jdbc.driverClassName>
>         
> <jdbc.url><![CDATA[jdbc:mysql://localhost/changhua?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=utf-8]]></jdbc.url>
>
>        <jdbc.username>root</jdbc.username>
>        <jdbc.password>newpw</jdbc.password>
>
> command line :
> >mvn test -Dtest=PersonActionTest
> *screen  out  look at attach1.txt*
>
>  Test is SUCCESSFUL ! PersonActionTest.onSetUpBeforeTransaction()   at
> every testMethod  is execute once。
>  person's   id   @GeneratedValue(strategy= GenerationType.AUTO)
> out println
>   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
>   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
>   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
>   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
> 4 once;
>
> When  pom.xml setting  oracle 9i database
>
>                <dbunit.dataTypeFactoryName>
> org.dbunit.ext.oracle.OracleDataTypeFactory</dbunit.dataTypeFactoryName>
>                < dbunit.operation.type
> >CLEAN_INSERT</dbunit.operation.type>
>                <dbunit.schema>WANGJAVAFANS</dbunit.schema><!--  Make sure
> to capitalize the schema name-->
>                 < hibernate.dialect>org.hibernate.dialect.Oracle9Dialect
> </hibernate.dialect>
>                <jdbc.groupId>com.oracle</jdbc.groupId>
>                <jdbc.artifactId>ojdbc14</jdbc.artifactId>
>                <jdbc.version>9.1.0.2.0</jdbc.version>
>                <jdbc.driverClassName>oracle.jdbc.OracleDriver
> </jdbc.driverClassName>
>                
> <jdbc.url><![CDATA[jdbc:oracle:thin:@10.13.20.51:1521:fish]]></jdbc.url>
>                <jdbc.username>wangjavafans</jdbc.username>
>                <jdbc.password>wangjava</jdbc.password>
> command line :
> >mvn test -Dtest=PersonActionTest
> *screen  out  look at attach2.txt*
> Test is FAILURE! PersonActionTest.onSetUpBeforeTransaction()   at every
> testMethod  is execute once。
>  person's   id   @GeneratedValue(strategy= GenerationType.AUTO)
> out println
>   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
>   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
> 2 once;
>  out tell me is java.sql.BatchUpdateException: ORA-00001: 违反唯一约束条件 (
> WANGJAVAFANS.SYS_C008990)
>
>
>
> Why  ?
>  Thank you's answer !
>
>
>
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   AppFuse Modular Application
[INFO]   AppFuse Modular Application - Core
[INFO]   AppFuse Modular Application - Web (Struts 2)
[INFO] 
----------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application
[INFO]    task-segment: [test]
[INFO] 
----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] 
----------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application - Core
[INFO]    task-segment: [test]
[INFO] 
----------------------------------------------------------------------------
[INFO] [aspectj:compile {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive 
invocation.
[INFO] [aspectj:compile {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: 
D:\develop\source\changhua\core\src\main\resources\hibernate.cfg.xml
[INFO] Configuration XML file loaded: 
D:\develop\source\changhua\core\src\main\resources\hibernate.cfg.xml
[INFO] Configuration Properties file loaded: 
D:\develop\source\changhua\core\target\test-classes\jdbc.properties
alter table user_role drop foreign key FK143BF46A4FD90D75;
alter table user_role drop foreign key FK143BF46AF503D155;
drop table if exists Person;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table Person (id bigint not null auto_increment, first_name varchar(50), 
last_name varchar(50), birthday datetime, primary key (id)) ENGINE=InnoDB;
create table app_user (id bigint not null auto_increment, username varchar(50) 
not null unique, email varchar(255) not null unique, password_hint 
varchar(255), first_name varchar(50) not null, last_name varchar(50) not null, 
phone_number varchar(255), website varchar(255), account_expired bit not null, 
account_locked bit not null, credentials_expired bit not null, city varchar(50) 
not null, province varchar(100), postal_code varchar(15) not null, address 
varchar(150), country varchar(100), account_enabled bit, version integer, 
password varchar(255) not null, primary key (id)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, name varchar(20), 
description varchar(64), primary key (id)) ENGINE=InnoDB;
create table user_role (user_id bigint not null, role_id bigint not null, 
primary key (user_id, role_id)) ENGINE=InnoDB;
alter table user_role add index FK143BF46A4FD90D75 (role_id), add constraint 
FK143BF46A4FD90D75 foreign key (role_id) references role (id);
alter table user_role add index FK143BF46AF503D155 (user_id), add constraint 
FK143BF46AF503D155 foreign key (user_id) references app_user (id);
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dbunit:operation {execution: default}]
[INFO] [surefire:test]
[INFO] Surefire report directory: 
D:\develop\source\changhua\core\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
----------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application - Web (Struts 2)
[INFO]    task-segment: [test]
[INFO] 
----------------------------------------------------------------------------
[INFO] [warpath:add-classes {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to D:\develop\source\changhua\web\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to 
D:\develop\source\changhua\web\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test]
[INFO] Surefire report directory: 
D:\develop\source\changhua\web\target\surefire-reports
log4j:WARN Continuable parsing error 53 and column 64
log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack" of 
type ID must be unique within the document.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.cybertek.system.webapp.action.PersonActionTest
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.5 sec

Results :

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

[INFO] [dbunit:operation {execution: test}]
[INFO] 
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] AppFuse Modular Application ........................... SUCCESS [0.766s]
[INFO] AppFuse Modular Application - Core .................... SUCCESS [11.031s]
[INFO] AppFuse Modular Application - Web (Struts 2) .......... SUCCESS [15.390s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28 seconds
[INFO] Finished at: Mon Dec 10 19:18:03 CST 2007
[INFO] Final Memory: 17M/45M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   AppFuse Modular Application
[INFO]   AppFuse Modular Application - Core
[INFO]   AppFuse Modular Application - Web (Struts 2)
[INFO] 
----------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application
[INFO]    task-segment: [test]
[INFO] 
----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] 
----------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application - Core
[INFO]    task-segment: [test]
[INFO] 
----------------------------------------------------------------------------
Downloading: 
http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.1.0.2.0/ojdbc14-9.1.0.2.0.pom
Downloading: 
http://static.appfuse.org/repository/com/oracle/ojdbc14/9.1.0.2.0/ojdbc14-9.1.0.2.0.pom
[INFO] [aspectj:compile {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive 
invocation.
[INFO] [aspectj:compile {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: 
D:\develop\source\changhua\core\src\main\resources\hibernate.cfg.xml
[INFO] Configuration XML file loaded: 
D:\develop\source\changhua\core\src\main\resources\hibernate.cfg.xml
[INFO] Configuration Properties file loaded: 
D:\develop\source\changhua\core\target\test-classes\jdbc.properties
drop table Person cascade constraints;
drop table app_user cascade constraints;
drop table role cascade constraints;
drop table user_role cascade constraints;
drop sequence hibernate_sequence;
create table Person (id number(19,0) not null, first_name varchar2(50 char), 
last_name varchar2(50 char), birthday timestamp, primary key (id));
create table app_user (id number(19,0) not null, username varchar2(50 char) not 
null unique, email varchar2(255 char) not null unique, password_hint 
varchar2(255 char), first_name varchar2(50 char) not null, last_name 
varchar2(50 char) not null, phone_number varchar2(255 char), website 
varchar2(255 char), account_expired number(1,0) not null, account_locked 
number(1,0) not null, credentials_expired number(1,0) not null, city 
varchar2(50 char) not null, province varchar2(100 char), postal_code 
varchar2(15 char) not null, address varchar2(150 char), country varchar2(100 
char), account_enabled number(1,0), version number(10,0), password varchar2(255 
char) not null, primary key (id));
create table role (id number(19,0) not null, name varchar2(20 char), 
description varchar2(64 char), primary key (id));
create table user_role (user_id number(19,0) not null, role_id number(19,0) not 
null, primary key (user_id, role_id));
alter table user_role add constraint FK143BF46A4FD90D75 foreign key (role_id) 
references role;
alter table user_role add constraint FK143BF46AF503D155 foreign key (user_id) 
references app_user;
create sequence hibernate_sequence;
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dbunit:operation {execution: default}]
[INFO] [surefire:test]
[INFO] Surefire report directory: 
D:\develop\source\changhua\core\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
----------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application - Web (Struts 2)
[INFO]    task-segment: [test]
[INFO] 
----------------------------------------------------------------------------
[INFO] [warpath:add-classes {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to D:\develop\source\changhua\web\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to 
D:\develop\source\changhua\web\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test]
[INFO] Surefire report directory: 
D:\develop\source\changhua\web\target\surefire-reports
log4j:WARN Continuable parsing error 53 and column 64
log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack" of 
type ID must be unique within the document.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.cybertek.system.webapp.action.PersonActionTest
[changhua] WARN [main] Oracle9Dialect.<init>(37) | The Oracle9Dialect dialect 
has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
[changhua] WARN [main] JDBCExceptionReporter.logExceptions(77) | SQL Error: 1, 
SQLState: 23000
[changhua] ERROR [main] JDBCExceptionReporter.logExceptions(78) | ORA-00001: 
Î¥·´Î¨Ò»Ô¼ÊøÌõ¼þ (WANGJAVAFANS.SYS_C008990)

[changhua] WARN [main] JDBCExceptionReporter.logExceptions(77) | SQL Error: 1, 
SQLState: 23000
[changhua] ERROR [main] JDBCExceptionReporter.logExceptions(78) | ORA-00001: 
Î¥·´Î¨Ò»Ô¼ÊøÌõ¼þ (WANGJAVAFANS.SYS_C008990)

[changhua] ERROR [main] AbstractFlushingEventListener.performExecutions(301) | 
Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC 
batch update
        at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
        at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
        at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
        at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
        at 
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
        at 
org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:558)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:662)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)
        at 
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:319)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy23.save(Unknown Source)
        at 
com.cybertek.system.webapp.action.PersonActionTest.onSetUpBeforeTransaction(PersonActionTest.java:33)
        at 
org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:216)
        at 
org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:103)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at 
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
Caused by: java.sql.BatchUpdateException: ORA-00001: Î¥·´Î¨Ò»Ô¼ÊøÌõ¼þ 
(WANGJAVAFANS.SYS_C008990)

        at 
oracle.jdbc.dbaccess.DBError.throwBatchUpdateException(DBError.java:458)
        at 
oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:3907)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
        at 
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
        at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
        ... 39 more
[changhua] WARN [main] JDBCExceptionReporter.logExceptions(77) | SQL Error: 1, 
SQLState: 23000
[changhua] ERROR [main] JDBCExceptionReporter.logExceptions(78) | ORA-00001: 
Î¥·´Î¨Ò»Ô¼ÊøÌõ¼þ (WANGJAVAFANS.SYS_C008990)

[changhua] WARN [main] JDBCExceptionReporter.logExceptions(77) | SQL Error: 1, 
SQLState: 23000
[changhua] ERROR [main] JDBCExceptionReporter.logExceptions(78) | ORA-00001: 
Î¥·´Î¨Ò»Ô¼ÊøÌõ¼þ (WANGJAVAFANS.SYS_C008990)

[changhua] ERROR [main] AbstractFlushingEventListener.performExecutions(301) | 
Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC 
batch update
        at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
        at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
        at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
        at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
        at 
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
        at 
org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:558)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:662)
        at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)
        at 
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:319)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy23.save(Unknown Source)
        at 
com.cybertek.system.webapp.action.PersonActionTest.onSetUpBeforeTransaction(PersonActionTest.java:33)
        at 
org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:216)
        at 
org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:103)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at 
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
Caused by: java.sql.BatchUpdateException: ORA-00001: Î¥·´Î¨Ò»Ô¼ÊøÌõ¼þ 
(WANGJAVAFANS.SYS_C008990)

        at 
oracle.jdbc.dbaccess.DBError.throwBatchUpdateException(DBError.java:458)
        at 
oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:3907)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
        at 
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
        at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
        ... 39 more
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> hello!
Tests run: 4, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 6 sec <<< 
FAILURE!

Results :

Tests in error: 
  testSearch(com.cybertek.system.webapp.action.PersonActionTest)
  testEdit(com.cybertek.system.webapp.action.PersonActionTest)

Tests run: 4, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31 seconds
[INFO] Finished at: Mon Dec 10 19:35:23 CST 2007
[INFO] Final Memory: 21M/49M
[INFO] ------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to