Problems after running appfuse:full-source

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems after running appfuse:full-source

spsarolkar
I am trying basic of appfuse just created three tabs using appfuse:gen, appfuse-install. It was working very well . But when i run command appfuse:full-source it generated the source but gave me errors when i run mvn jetty:run-war. I removed some errors by changing org.appfuse** to my package name but not when i run the same command it gives me errors while testing.
Here is the output
C:\Users\mypc\IdeaProjects\untitled1>mvn jetty:run-war
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [jetty:run-war]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run-war
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform depend
ent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform
dependent!
[INFO] Copying 51 resources
[INFO] Copying 2 resources
[INFO] Copying 133 resources
[INFO] Copying 133 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform depend
ent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform
dependent!
[INFO] Copying 18 resources
[INFO] Copying 11 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform depend
ent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform
dependent!
[INFO] Copying 51 resources
[INFO] Copying 2 resources
[INFO] Copying 133 resources
[INFO] Copying 133 resources
[INFO] Copying 133 resources
[INFO] Copying 133 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/untitled1/src/main/resources/hib
ernate.cfg.xml
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/untitled1/src/main/resources/hib
ernate.cfg.xml
[INFO] Configuration Properties file loaded: C:\Users\mypc\IdeaProjects\untitled1\target\classes\jdbc.p
roperties
alter table VehicleMaintenance drop foreign key FKD1C1D4674A58A898;
alter table Vehicle_VehicleMaintenance drop foreign key FK721EA07ADE1B1877;
alter table Vehicle_VehicleMaintenance drop foreign key FK721EA07A4A58A898;
alter table user_role drop foreign key FK143BF46A437E4C5C;
alter table user_role drop foreign key FK143BF46AE8A9103C;
drop table if exists Person;
drop table if exists Vehicle;
drop table if exists VehicleMaintenance;
drop table if exists Vehicle_VehicleMaintenance;
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, firstname varchar(255), lastname varchar(255),
primary key (id)) ENGINE=InnoDB;
create table Vehicle (id bigint not null auto_increment, VIN varchar(255), make varchar(255), model var
char(255), year varchar(255), primary key (id)) ENGINE=InnoDB;
create table VehicleMaintenance (id bigint not null auto_increment, alarmDate datetime, endDate datetim
e, name varchar(255), startDate datetime, vehicle_id bigint, primary key (id)) ENGINE=InnoDB;
create table Vehicle_VehicleMaintenance (Vehicle_id bigint not null, vehicleMaintenances_id bigint not
null, unique (vehicleMaintenances_id)) ENGINE=InnoDB;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked
bit not null, address varchar(150), city varchar(50) not null, country varchar(100), postal_code varcha
r(15) not null, province varchar(100), credentials_expired bit not null, email varchar(255) not null un
ique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password va
rchar(255) not null, password_hint varchar(255), phone_number varchar(255), username varchar(50) not nu
ll unique, version integer, website varchar(255), primary key (id)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), primar
y 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 VehicleMaintenance add index FKD1C1D4674A58A898 (vehicle_id), add constraint FKD1C1D4674A58
A898 foreign key (vehicle_id) references Vehicle (id);
alter table Vehicle_VehicleMaintenance add index FK721EA07ADE1B1877 (vehicleMaintenances_id), add const
raint FK721EA07ADE1B1877 foreign key (vehicleMaintenances_id) references VehicleMaintenance (id);
alter table Vehicle_VehicleMaintenance add index FK721EA07A4A58A898 (Vehicle_id), add constraint FK721E
A07A4A58A898 foreign key (Vehicle_id) references Vehicle (id);
alter table user_role add index FK143BF46A437E4C5C (role_id), add constraint FK143BF46A437E4C5C foreign
 key (role_id) references role (id);
alter table user_role add index FK143BF46AE8A9103C (user_id), add constraint FK143BF46AE8A9103C foreign
 key (user_id) references app_user (id);
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 3 source files to C:\Users\mypc\IdeaProjects\untitled1\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Users\mypc\IdeaProjects\untitled1\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.xinus.util.DateUtilTest
DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Tue Jul 28 02:38:19 PDT 2009
DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 07/28/2009
DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' method
DEBUG - DateUtilTest.testGetDateTime(62) | 02:38
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.351 sec
Running org.xinus.webapp.action.UserActionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: clas
spath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath:/applicationCon
text-service.xml,classpath*:/applicationContext.xml,/WEB-INF/applicationContext*.xml
ERROR - XWorkConverter.loadConversionProperties(784) | Conversion registration error
java.lang.NullPointerException
        at com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWorkConverter.java:760)
        at com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties(XWorkConverter.java:778
)
        at com.opensymphony.xwork2.util.XWorkConverter.<init>(XWorkConverter.java:183)
        at com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverter.java:207)
        at com.opensymphony.xwork2.util.OgnlValueStack.setRoot(OgnlValueStack.java:340)
        at com.opensymphony.xwork2.util.OgnlValueStack.<init>(OgnlValueStack.java:84)
        at com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(OgnlValueStackFactory.ja
va:14)
        at com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(ActionContext.ja
va:329)
        at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
        at java.lang.ThreadLocal.get(ThreadLocal.java:131)
        at com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:151)
        at org.xinus.webapp.action.BaseActionTestCase.onSetUpBeforeTransaction(BaseActionTestCase.java:
38)
        at org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransaction
alSpringContextTests.java:216)
        at org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextT
ests.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(AbstractDirectoryT
estSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testSearch].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34]; rollback [true
].
DEBUG - UserAction.edit(117) | checking for remember me login...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testEdit].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34]; rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testSave].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34]; rollback [true
].
DEBUG - UserManagerImpl.removeUser(117) | removing user: -2
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testRemove].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testCancel].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34]; rollback [true
].
DEBUG - UserActionTest.testSaveConflictingUser(65) | original version #: 2
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt@raibledesigns.com' for key 2
ERROR - AbstractFlushingEventListener.performExecutions(301) | Could not synchronize database state wit
h session
org.hibernate.exception.ConstraintViolationException: could not update: [org.xinus.model.User#-1]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
430)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersiste
r.java:2312)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
612)
        at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEven
tListener.java:298)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)

        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
        at org.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java
:888)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTempl
ate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
        at org.xinus.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy29.saveUser(Unknown Source)
        at org.xinus.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMetho
dInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturn
ingAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeA
dviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInter
ceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy31.saveUser(Unknown Source)
        at org.xinus.webapp.action.UserAction.save(UserAction.java:177)
        at org.xinus.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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(AbstractDirectoryT
estSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt@
raibledesigns.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
412)
        ... 67 more
org.springframework.dao.DataIntegrityViolationException: could not update: [org.xinus.model.User#-1]; n
ested exception is org.hibernate.exception.ConstraintViolationException: could not update: [org.xinus.m
odel.User#-1]
        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(Sessi
onFactoryUtils.java:624)
        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(Hiberna
teAccessor.java:412)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTempl
ate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
        at org.xinus.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy29.saveUser(Unknown Source)
        at org.xinus.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMetho
dInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturn
ingAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeA
dviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInter
ceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy31.saveUser(Unknown Source)
        at org.xinus.webapp.action.UserAction.save(UserAction.java:177)
        at org.xinus.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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(AbstractDirectoryT
estSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not update: [org.xinus.model.Use
r#-1]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
430)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersiste
r.java:2312)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
612)
        at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEven
tListener.java:298)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)

        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
        at org.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java
:888)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        ... 56 more
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt@
raibledesigns.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
412)
        ... 67 more
WARN - UserManagerImpl.saveUser(104) | could not update: [org.xinus.model.User#-1]; nested exception is
 org.hibernate.exception.ConstraintViolationException: could not update: [org.xinus.model.User#-1]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testSaveConflictingUser].
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.841 sec
Running org.xinus.util.DateConverterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.098 sec
Running org.xinus.webapp.action.PasswordHintActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34]; rollback [true
].
DEBUG - PasswordHintAction.execute(45) | Processing Password Hint...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testExecute].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.601 sec
Running org.xinus.dao.hibernate.HibernateConfigurationTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: clas
spath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationCo
ntext.xml,classpath:**/applicationContext*.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: org.xinus.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: org.xinus.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: org.xinus.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: org.xinus.model.Role
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testColumnMapping].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.838 sec
Running org.xinus.service.UserManagerTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: /app
licationContext-resources.xml,classpath:/applicationContext-dao.xml,/applicationContext-service.xml,cla
sspath*:/**/applicationContext.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@514f7f]; rollback [true]
.
DEBUG - UserManagerTest.testGetUser(28) | org.xinus.model.User@a8a314[username=user,enabled=true,accoun
tExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@514f7f]; rollback [true]
.
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - UserManagerTest.testAddAndRemoveUser(56) | removing user...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 1
DEBUG - UserManagerTest.testAddAndRemoveUser(64) | org.springframework.security.userdetails.UsernameNot
FoundException: user 'john' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@514f7f]; rollback [true]
.
DEBUG - UserManagerTest.testSaveUser(36) | saving user with updated phone number: org.xinus.model.User@
1983ad7[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Gr
anted Authorities: ,ROLE_USER]
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testSaveUser].
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.898 sec
Running org.xinus.dao.RoleDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testGetRoleInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testGetRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testUpdateRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testAddAndRemoveRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testFindByNamedQuery].
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.532 sec
Running org.xinus.webapp.filter.StaticFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - StaticFilter.doFilterInternal(88) | Forwarding to static resource: /scripts/dojo/test.html
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to: /editProfile.html
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.137 sec
Running org.xinus.service.MailEngineTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.639 sec
Running org.xinus.webapp.listener.StartupListenerTest
DEBUG - StartupListener.contextInitialized(38) | Initializing context...
DEBUG - StartupListener.contextInitialized(74) | authenticationManager bean not found, assuming test an
d ignoring...
DEBUG - StartupListener.contextInitialized(82) | Remember Me Enabled? null
DEBUG - StartupListener.contextInitialized(86) | Populating drop-downs...
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - StartupListener.setupContext(102) | Drop-down initialization complete [OK]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.819 sec
Running org.xinus.webapp.action.SignupActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34]; rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - BaseAction.sendUserMessage(160) | sending e-mail to user [self-registered@raibledesigns.com]...

DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testExecute].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testDisplayForm].
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.434 sec
Running org.xinus.service.impl.UserManagerImplTest
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 5
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
org.springframework.dao.DataIntegrityViolationException:
        at org.jmock.lib.action.ThrowAction.invoke(ThrowAction.java:27)
        at org.jmock.internal.InvocationExpectation.invoke(InvocationExpectation.java:126)
        at org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:52)
        at org.jmock.Mockery.dispatch(Mockery.java:204)
        at org.jmock.Mockery.access$000(Mockery.java:37)
        at org.jmock.Mockery$MockObject.invoke(Mockery.java:246)
        at org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27)
        at org.jmock.internal.ProxiedObjectIdentity.invoke(ProxiedObjectIdentity.java:36)
        at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33)
        at $Proxy35.saveUser(Unknown Source)
        at org.xinus.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        at org.xinus.service.impl.UserManagerImplTest.testUserExistsException(UserManagerImplTest.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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
        at org.jmock.integration.junit4.JMock$1.invoke(JMock.java:36)
        at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
        at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
        at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
        at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
        at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
        at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
        at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
        at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
        at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
        at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
        at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryT
estSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
WARN - UserManagerImpl.saveUser(104) |
DEBUG - UserManagerImplTest.testUserExistsException(135) | expected exception: User 'admin' already exi
sts!
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.323 sec
Running org.xinus.dao.UserDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class org.xinus.model.User' object with id '1000' not foun
d...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testGetUserInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - UserDaoTest.testGetUserPassword(44) | password: 12dea96fec20593566ab75692c9949596833adc9
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testGetUserPassword].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testUpdateUser].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt_raible@yahoo.com' for key 2
DEBUG - UserDaoTest.testUpdateUser(71) | expected exception: could not insert: [org.xinus.model.User];
nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [org.xinus.
model.User]
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testAddUserRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class org.xinus.model.User' object with id '3' not found..
.
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testUserExists].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testUserNotExists].
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.34 sec
Running org.xinus.dao.LookupDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - LookupDaoTest.testGetRoles(18) | [ROLE_ADMIN, ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testGetRoles].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.215 sec
Running org.xinus.dao.UniversalDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6]; rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testCRUD].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.479 sec
Running org.xinus.service.impl.UniversalManagerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.095 sec
Running org.xinus.service.UserSecurityAdviceTest
WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to modify 'admin'!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.537 sec
Running org.xinus.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
Running org.xinus.service.UserExistsExceptionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: /app
licationContext-service.xml,/applicationContext-resources.xml,classpath:/applicationContext-dao.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): trans
action manager [org.springframework.orm.hibernate3.HibernateTransactionManager@cef147]; rollback [true]
.
DEBUG - UserExistsExceptionTest.testAddExistingUser(21) | entered 'testAddExistingUser' method
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt_raible@yahoo.com' for key 2
org.springframework.dao.DataIntegrityViolationException: could not insert: [org.xinus.model.User]; nest
ed exception is org.hibernate.exception.ConstraintViolationException: could not insert: [org.xinus.mode
l.User]
        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(Sessi
onFactoryUtils.java:624)
        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(Hiberna
teAccessor.java:412)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTempl
ate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:744
)
        at org.xinus.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:48)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy29.saveUser(Unknown Source)
        at org.xinus.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMetho
dInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturn
ingAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeA
dviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInter
ceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy31.saveUser(Unknown Source)
        at org.xinus.service.UserExistsExceptionTest.testAddExistingUser(UserExistsExceptionTest.java:3
5)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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(AbstractDirectoryT
estSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [org.xinus.model.Use
r]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.ja
va:40)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2
163)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2
643)
        at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:51)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventLi
stener.java:298)
        at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java
:181)
        at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListe
ner.java:107)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(Defa
ultSaveOrUpdateEventListener.java:187)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpda
teEventListener.java:172)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUp
dateEventListener.java:94)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateE
ventListener.java:70)
        at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
        at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
        at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
        at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java
:747)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        ... 55 more
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt_
raible@yahoo.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenera
tor.java:73)
        at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.ja
va:33)
        ... 71 more
WARN - UserManagerImpl.saveUser(104) | could not insert: [org.xinus.model.User]; nested exception is or
g.hibernate.exception.ConstraintViolationException: could not insert: [org.xinus.model.User]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after exe
cution of test [testAddExistingUser].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.057 sec
Running org.xinus.webapp.action.VehicleActionTest
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.305 sec <<< FAILURE!
Running org.xinus.service.impl.LookupManagerImplTest
DEBUG - LookupManagerImplTest.testGetAllRoles(28) | entered 'testGetAllRoles' method
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running org.xinus.webapp.filter.LocaleFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.122 sec
Running org.xinus.webapp.action.PersonActionTest
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.274 sec <<< FAILURE!
Running org.xinus.webapp.action.VehicleMaintenanceActionTest
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.25 sec <<< FAILURE!

Results :

Tests in error:
  testSearch(org.xinus.webapp.action.VehicleActionTest)
  testEdit(org.xinus.webapp.action.VehicleActionTest)
  testSave(org.xinus.webapp.action.VehicleActionTest)
  testRemove(org.xinus.webapp.action.VehicleActionTest)
  testSearch(org.xinus.webapp.action.PersonActionTest)
  testEdit(org.xinus.webapp.action.PersonActionTest)
  testSave(org.xinus.webapp.action.PersonActionTest)
  testRemove(org.xinus.webapp.action.PersonActionTest)
  testSearch(org.xinus.webapp.action.VehicleMaintenanceActionTest)
  testEdit(org.xinus.webapp.action.VehicleMaintenanceActionTest)
  testSave(org.xinus.webapp.action.VehicleMaintenanceActionTest)
  testRemove(org.xinus.webapp.action.VehicleMaintenanceActionTest)

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

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to C:\Users\mypc\IdeaProjects\untitled1\target\surefire-reports for the individual test re
sults.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54 seconds
[INFO] Finished at: Tue Jul 28 02:38:42 PDT 2009
[INFO] Final Memory: 28M/50M
[INFO] ------------------------------------------------------------------------


Reply | Threaded
Open this post in threaded view
|

Re: Problems after running appfuse:full-source

mraible
Administrator
I would look at the test results (in C:\Users\mypc\IdeaProjects\untitled1\target\surefire-reports) or run mvn test -Dsurefire.useFile=false to see the errors in your console.

Matt

On Tue, Jul 28, 2009 at 3:02 AM, spsarolkar <[hidden email]> wrote:

I am trying basic of appfuse just created three tabs using appfuse:gen,
appfuse-install. It was working very well . But when i run command
appfuse:full-source it generated the source but gave me errors when i run
mvn jetty:run-war. I removed some errors by changing org.appfuse** to my
package name but not when i run the same command it gives me errors while
testing.
Here is the output
C:\Users\mypc\IdeaProjects\untitled1>mvn jetty:run-war
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [jetty:run-war]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing jetty:run-war
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform depend
ent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform
dependent!
[INFO] Copying 51 resources
[INFO] Copying 2 resources
[INFO] Copying 133 resources
[INFO] Copying 133 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform depend
ent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform
dependent!
[INFO] Copying 18 resources
[INFO] Copying 11 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
invocation.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform depend
ent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform
dependent!
[INFO] Copying 51 resources
[INFO] Copying 2 resources
[INFO] Copying 133 resources
[INFO] Copying 133 resources
[INFO] Copying 133 resources
[INFO] Copying 133 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded:
file:/C:/Users/mypc/IdeaProjects/untitled1/src/main/resources/hib
ernate.cfg.xml
[INFO] Configuration XML file loaded:
file:/C:/Users/mypc/IdeaProjects/untitled1/src/main/resources/hib
ernate.cfg.xml
[INFO] Configuration Properties file loaded:
C:\Users\mypc\IdeaProjects\untitled1\target\classes\jdbc.p
roperties
alter table VehicleMaintenance drop foreign key FKD1C1D4674A58A898;
alter table Vehicle_VehicleMaintenance drop foreign key FK721EA07ADE1B1877;
alter table Vehicle_VehicleMaintenance drop foreign key FK721EA07A4A58A898;
alter table user_role drop foreign key FK143BF46A437E4C5C;
alter table user_role drop foreign key FK143BF46AE8A9103C;
drop table if exists Person;
drop table if exists Vehicle;
drop table if exists VehicleMaintenance;
drop table if exists Vehicle_VehicleMaintenance;
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, firstname
varchar(255), lastname varchar(255),
primary key (id)) ENGINE=InnoDB;
create table Vehicle (id bigint not null auto_increment, VIN varchar(255),
make varchar(255), model var
char(255), year varchar(255), primary key (id)) ENGINE=InnoDB;
create table VehicleMaintenance (id bigint not null auto_increment,
alarmDate datetime, endDate datetim
e, name varchar(255), startDate datetime, vehicle_id bigint, primary key
(id)) ENGINE=InnoDB;
create table Vehicle_VehicleMaintenance (Vehicle_id bigint not null,
vehicleMaintenances_id bigint not
null, unique (vehicleMaintenances_id)) ENGINE=InnoDB;
create table app_user (id bigint not null auto_increment, account_expired
bit not null, account_locked
bit not null, address varchar(150), city varchar(50) not null, country
varchar(100), postal_code varcha
r(15) not null, province varchar(100), credentials_expired bit not null,
email varchar(255) not null un
ique, account_enabled bit, first_name varchar(50) not null, last_name
varchar(50) not null, password va
rchar(255) not null, password_hint varchar(255), phone_number varchar(255),
username varchar(50) not nu
ll unique, version integer, website varchar(255), primary key (id))
ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description
varchar(64), name varchar(20), primar
y 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 VehicleMaintenance add index FKD1C1D4674A58A898 (vehicle_id),
add constraint FKD1C1D4674A58
A898 foreign key (vehicle_id) references Vehicle (id);
alter table Vehicle_VehicleMaintenance add index FK721EA07ADE1B1877
(vehicleMaintenances_id), add const
raint FK721EA07ADE1B1877 foreign key (vehicleMaintenances_id) references
VehicleMaintenance (id);
alter table Vehicle_VehicleMaintenance add index FK721EA07A4A58A898
(Vehicle_id), add constraint FK721E
A07A4A58A898 foreign key (Vehicle_id) references Vehicle (id);
alter table user_role add index FK143BF46A437E4C5C (role_id), add constraint
FK143BF46A437E4C5C foreign
 key (role_id) references role (id);
alter table user_role add index FK143BF46AE8A9103C (user_id), add constraint
FK143BF46AE8A9103C foreign
 key (user_id) references app_user (id);
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 3 source files to
C:\Users\mypc\IdeaProjects\untitled1\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
C:\Users\mypc\IdeaProjects\untitled1\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.xinus.util.DateUtilTest
DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Tue Jul 28
02:38:19 PDT 2009
DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 07/28/2009
DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' method
DEBUG - DateUtilTest.testGetDateTime(62) | 02:38
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.351 sec
Running org.xinus.webapp.action.UserActionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading
context for locations: clas
spath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath:/applicationCon
text-service.xml,classpath*:/applicationContext.xml,/WEB-INF/applicationContext*.xml
ERROR - XWorkConverter.loadConversionProperties(784) | Conversion
registration error
java.lang.NullPointerException
       at
com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWorkConverter.java:760)
       at
com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties(XWorkConverter.java:778
)
       at
com.opensymphony.xwork2.util.XWorkConverter.<init>(XWorkConverter.java:183)
       at
com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverter.java:207)
       at
com.opensymphony.xwork2.util.OgnlValueStack.setRoot(OgnlValueStack.java:340)
       at
com.opensymphony.xwork2.util.OgnlValueStack.<init>(OgnlValueStack.java:84)
       at
com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(OgnlValueStackFactory.ja
va:14)
       at
com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(ActionContext.ja
va:329)
       at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
       at java.lang.ThreadLocal.get(ThreadLocal.java:131)
       at
com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:151)
       at
org.xinus.webapp.action.BaseActionTestCase.onSetUpBeforeTransaction(BaseActionTestCase.java:
38)
       at
org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransaction
alSpringContextTests.java:216)
       at
org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextT
ests.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(AbstractDirectoryT
estSuite.java:140)
       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
       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:345)
       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testSearch].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34];
rollback [true
].
DEBUG - UserAction.edit(117) | checking for remember me login...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testEdit].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34];
rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testSave].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34];
rollback [true
].
DEBUG - UserManagerImpl.removeUser(117) | removing user: -2
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testRemove].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testCancel].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34];
rollback [true
].
DEBUG - UserActionTest.testSaveConflictingUser(65) | original version #: 2
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState:
23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry
'[hidden email]' for key 2
ERROR - AbstractFlushingEventListener.performExecutions(301) | Could not
synchronize database state wit
h session
org.hibernate.exception.ConstraintViolationException: could not update:
[org.xinus.model.User#-1]
       at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
       at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
       at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
430)
       at
org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersiste
r.java:2312)
       at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
612)
       at
org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
       at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
       at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
       at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
       at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEven
tListener.java:298)
       at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)

       at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
       at
org.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java
:888)
       at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
       at
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTempl
ate.java:374)
       at
org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
       at
org.xinus.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
       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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
       at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
       at $Proxy29.saveUser(Unknown Source)
       at
org.xinus.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
       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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMetho
dInvocation.java:182)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:149)
       at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturn
ingAdviceInterceptor.java:50)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeA
dviceInterceptor.java:50)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInter
ceptor.java:89)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
       at $Proxy31.saveUser(Unknown Source)
       at org.xinus.webapp.action.UserAction.save(UserAction.java:177)
       at
org.xinus.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
       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 junit.framework.TestCase.runTest(TestCase.java:168)
       at junit.framework.TestCase.runBare(TestCase.java:134)
       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(AbstractDirectoryT
estSuite.java:140)
       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
       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:345)
       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by:
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
Duplicate entry 'matt@
raibledesigns.com' for key 2
       at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
       at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
       at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
       at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
       at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
       at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
       at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
       at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
       at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
412)
       ... 67 more
org.springframework.dao.DataIntegrityViolationException: could not update:
[org.xinus.model.User#-1]; n
ested exception is org.hibernate.exception.ConstraintViolationException:
could not update: [org.xinus.m
odel.User#-1]
       at
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(Sessi
onFactoryUtils.java:624)
       at
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(Hiberna
teAccessor.java:412)
       at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
       at
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTempl
ate.java:374)
       at
org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
       at
org.xinus.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
       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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
       at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
       at $Proxy29.saveUser(Unknown Source)
       at
org.xinus.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
       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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMetho
dInvocation.java:182)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:149)
       at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturn
ingAdviceInterceptor.java:50)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeA
dviceInterceptor.java:50)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInter
ceptor.java:89)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
       at $Proxy31.saveUser(Unknown Source)
       at org.xinus.webapp.action.UserAction.save(UserAction.java:177)
       at
org.xinus.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
       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 junit.framework.TestCase.runTest(TestCase.java:168)
       at junit.framework.TestCase.runBare(TestCase.java:134)
       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(AbstractDirectoryT
estSuite.java:140)
       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
       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:345)
       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not
update: [org.xinus.model.Use
r#-1]
       at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
       at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
       at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
430)
       at
org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersiste
r.java:2312)
       at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
612)
       at
org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
       at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
       at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
       at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
       at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEven
tListener.java:298)
       at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)

       at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
       at
org.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java
:888)
       at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
       ... 56 more
Caused by:
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
Duplicate entry 'matt@
raibledesigns.com' for key 2
       at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
       at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
       at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
       at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
       at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
       at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
       at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
       at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
       at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2
412)
       ... 67 more
WARN - UserManagerImpl.saveUser(104) | could not update:
[org.xinus.model.User#-1]; nested exception is
 org.hibernate.exception.ConstraintViolationException: could not update:
[org.xinus.model.User#-1]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testSaveConflictingUser].
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.841 sec
Running org.xinus.util.DateConverterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.098 sec
Running org.xinus.webapp.action.PasswordHintActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34];
rollback [true
].
DEBUG - PasswordHintAction.execute(45) | Processing Password Hint...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testExecute].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.601 sec
Running org.xinus.dao.hibernate.HibernateConfigurationTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading
context for locations: clas
spath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationCo
ntext.xml,classpath:**/applicationContext*.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select *
from: org.xinus.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
org.xinus.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select *
from: org.xinus.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
org.xinus.model.Role
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testColumnMapping].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.838 sec
Running org.xinus.service.UserManagerTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading
context for locations: /app
licationContext-resources.xml,classpath:/applicationContext-dao.xml,/applicationContext-service.xml,cla
sspath*:/**/applicationContext.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@514f7f];
rollback [true]
.
DEBUG - UserManagerTest.testGetUser(28) |
org.xinus.model.User@a8a314[username=user,enabled=true,accoun
tExpired=false,credentialsExpired=false,accountLocked=false,Granted
Authorities: ,ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@514f7f];
rollback [true]
.
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - UserManagerTest.testAddAndRemoveUser(56) | removing user...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 1
DEBUG - UserManagerTest.testAddAndRemoveUser(64) |
org.springframework.security.userdetails.UsernameNot
FoundException: user 'john' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@514f7f];
rollback [true]
.
DEBUG - UserManagerTest.testSaveUser(36) | saving user with updated phone
number: org.xinus.model.User@
1983ad7[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Gr
anted Authorities: ,ROLE_USER]
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testSaveUser].
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.898 sec
Running org.xinus.dao.RoleDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testGetRoleInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testGetRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testUpdateRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testAddAndRemoveRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testFindByNamedQuery].
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.532 sec
Running org.xinus.webapp.filter.StaticFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - StaticFilter.doFilterInternal(88) | Forwarding to static resource:
/scripts/dojo/test.html
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to: /editProfile.html
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.137 sec
Running org.xinus.service.MailEngineTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.639 sec
Running org.xinus.webapp.listener.StartupListenerTest
DEBUG - StartupListener.contextInitialized(38) | Initializing context...
DEBUG - StartupListener.contextInitialized(74) | authenticationManager bean
not found, assuming test an
d ignoring...
DEBUG - StartupListener.contextInitialized(82) | Remember Me Enabled? null
DEBUG - StartupListener.contextInitialized(86) | Populating drop-downs...
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - StartupListener.setupContext(102) | Drop-down initialization
complete [OK]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.819 sec
Running org.xinus.webapp.action.SignupActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34];
rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - BaseAction.sendUserMessage(160) | sending e-mail to user
[[hidden email]]...

DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testExecute].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1275a34];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testDisplayForm].
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.434 sec
Running org.xinus.service.impl.UserManagerImplTest
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping
password encryption...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 5
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping
password encryption...
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping
password encryption...
org.springframework.dao.DataIntegrityViolationException:
       at org.jmock.lib.action.ThrowAction.invoke(ThrowAction.java:27)
       at
org.jmock.internal.InvocationExpectation.invoke(InvocationExpectation.java:126)
       at
org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:52)
       at org.jmock.Mockery.dispatch(Mockery.java:204)
       at org.jmock.Mockery.access$000(Mockery.java:37)
       at org.jmock.Mockery$MockObject.invoke(Mockery.java:246)
       at
org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27)
       at
org.jmock.internal.ProxiedObjectIdentity.invoke(ProxiedObjectIdentity.java:36)
       at
org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33)
       at $Proxy35.saveUser(Unknown Source)
       at
org.xinus.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
       at
org.xinus.service.impl.UserManagerImplTest.testUserExistsException(UserManagerImplTest.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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
       at org.jmock.integration.junit4.JMock$1.invoke(JMock.java:36)
       at
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
       at
org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
       at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
       at
org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
       at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
       at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
       at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
       at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
       at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
       at
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
       at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
       at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryT
estSuite.java:140)
       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
       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:345)
       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
WARN - UserManagerImpl.saveUser(104) |
DEBUG - UserManagerImplTest.testUserExistsException(135) | expected
exception: User 'admin' already exi
sts!
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.323 sec
Running org.xinus.dao.UserDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class org.xinus.model.User'
object with id '1000' not foun
d...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testGetUserInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - UserDaoTest.testGetUserPassword(44) | password:
12dea96fec20593566ab75692c9949596833adc9
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testGetUserPassword].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testUpdateUser].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState:
23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry
'[hidden email]' for key 2
DEBUG - UserDaoTest.testUpdateUser(71) | expected exception: could not
insert: [org.xinus.model.User];
nested exception is org.hibernate.exception.ConstraintViolationException:
could not insert: [org.xinus.
model.User]
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testAddUserRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class org.xinus.model.User'
object with id '3' not found..
.
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testUserExists].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testUserNotExists].
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.34 sec
Running org.xinus.dao.LookupDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - LookupDaoTest.testGetRoles(18) | [ROLE_ADMIN, ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testGetRoles].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.215 sec
Running org.xinus.dao.UniversalDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@1a422f6];
rollback [true
].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testCRUD].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.479 sec
Running org.xinus.service.impl.UniversalManagerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.095 sec
Running org.xinus.service.UserSecurityAdviceTest
WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to modify
'admin'!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change
their role(s)!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change
their role(s)!
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.537 sec
Running org.xinus.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
Running org.xinus.service.UserExistsExceptionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading
context for locations: /app
licationContext-service.xml,/applicationContext-resources.xml,classpath:/applicationContext-dao.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) |
Began transaction (1): trans
action manager
[org.springframework.orm.hibernate3.HibernateTransactionManager@cef147];
rollback [true]
.
DEBUG - UserExistsExceptionTest.testAddExistingUser(21) | entered
'testAddExistingUser' method
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState:
23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry
'[hidden email]' for key 2
org.springframework.dao.DataIntegrityViolationException: could not insert:
[org.xinus.model.User]; nest
ed exception is org.hibernate.exception.ConstraintViolationException: could
not insert: [org.xinus.mode
l.User]
       at
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(Sessi
onFactoryUtils.java:624)
       at
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(Hiberna
teAccessor.java:412)
       at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
       at
org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTempl
ate.java:374)
       at
org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:744
)
       at
org.xinus.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:48)
       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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
       at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
       at $Proxy29.saveUser(Unknown Source)
       at
org.xinus.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
       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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMetho
dInvocation.java:182)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:149)
       at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturn
ingAdviceInterceptor.java:50)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeA
dviceInterceptor.java:50)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterce
ptor.java:106)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInter
ceptor.java:89)
       at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocat
ion.java:171)
       at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
       at $Proxy31.saveUser(Unknown Source)
       at
org.xinus.service.UserExistsExceptionTest.testAddExistingUser(UserExistsExceptionTest.java:3
5)
       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 junit.framework.TestCase.runTest(TestCase.java:168)
       at junit.framework.TestCase.runBare(TestCase.java:134)
       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(AbstractDirectoryT
estSuite.java:140)
       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuit
e.java:127)
       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
       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:345)
       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not
insert: [org.xinus.model.Use
r]
       at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
       at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
       at
org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.ja
va:40)
       at
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2
163)
       at
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2
643)
       at
org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:51)
       at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
       at
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventLi
stener.java:298)
       at
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java
:181)
       at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListe
ner.java:107)
       at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(Defa
ultSaveOrUpdateEventListener.java:187)
       at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpda
teEventListener.java:172)
       at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUp
dateEventListener.java:94)
       at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateE
ventListener.java:70)
       at
org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
       at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
       at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
       at
org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java
:747)
       at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
       ... 55 more
Caused by:
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
Duplicate entry 'matt_
[hidden email]' for key 2
       at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
       at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
       at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
       at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
       at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
       at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
       at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
       at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
       at
org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenera
tor.java:73)
       at
org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.ja
va:33)
       ... 71 more
WARN - UserManagerImpl.saveUser(104) | could not insert:
[org.xinus.model.User]; nested exception is or
g.hibernate.exception.ConstraintViolationException: could not insert:
[org.xinus.model.User]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled
back transaction after exe
cution of test [testAddExistingUser].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.057 sec
Running org.xinus.webapp.action.VehicleActionTest
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.305 sec
<<< FAILURE!
Running org.xinus.service.impl.LookupManagerImplTest
DEBUG - LookupManagerImplTest.testGetAllRoles(28) | entered
'testGetAllRoles' method
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running org.xinus.webapp.filter.LocaleFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.122 sec
Running org.xinus.webapp.action.PersonActionTest
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.274 sec
<<< FAILURE!
Running org.xinus.webapp.action.VehicleMaintenanceActionTest
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.25 sec <<<
FAILURE!

Results :

Tests in error:
 testSearch(org.xinus.webapp.action.VehicleActionTest)
 testEdit(org.xinus.webapp.action.VehicleActionTest)
 testSave(org.xinus.webapp.action.VehicleActionTest)
 testRemove(org.xinus.webapp.action.VehicleActionTest)
 testSearch(org.xinus.webapp.action.PersonActionTest)
 testEdit(org.xinus.webapp.action.PersonActionTest)
 testSave(org.xinus.webapp.action.PersonActionTest)
 testRemove(org.xinus.webapp.action.PersonActionTest)
 testSearch(org.xinus.webapp.action.VehicleMaintenanceActionTest)
 testEdit(org.xinus.webapp.action.VehicleMaintenanceActionTest)
 testSave(org.xinus.webapp.action.VehicleMaintenanceActionTest)
 testRemove(org.xinus.webapp.action.VehicleMaintenanceActionTest)

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

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to C:\Users\mypc\IdeaProjects\untitled1\target\surefire-reports
for the individual test re
sults.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 54 seconds
[INFO] Finished at: Tue Jul 28 02:38:42 PDT 2009
[INFO] Final Memory: 28M/50M
[INFO]
------------------------------------------------------------------------



--
View this message in context: http://www.nabble.com/Problems-after-running-appfuse%3Afull-source-tp24696222s2369p24696222.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

I have started all over again

spsarolkar
I have started all over again
Now I have not made any changes to code generated by appfuse
I have run following commands in project directory
mvn appfuse:full-source
BUILD SUCESSFUL

mvn install

Here is a output
C:\jdk1.6.0_14\bin\java -Dclassworlds.conf=C:\apache-maven-2.2.0\bin\m2.conf -Dmaven.home=C:\apache-maven-2.2.0 -Didea.launcher.port=7541 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 8.1.3\bin" -Dfile.encoding=windows-1252 -classpath "C:\apache-maven-2.2.0\boot\classworlds-1.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA 8.1.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --no-plugin-registry --fail-fast --no-plugin-updates --strict-checksums -f C:\Users\mypc\IdeaProjects\untitled9\pom.xml install
+ Enabling strict checksum verification on all artifact downloads.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 45 resources
[INFO] Copying 2 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 18 resources
[INFO] Copying 11 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 45 resources
[INFO] Copying 2 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: C:\Users\mypc\IdeaProjects\untitled9\target\classes\jdbc.properties
alter table user_role drop foreign key FK143BF46AEBA3BF9;
alter table user_role drop foreign key FK143BF46AB3E4FFD9;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city varchar(50) not null, country varchar(100), postal_code varchar(15) not null, province varchar(100), credentials_expired bit not null, email varchar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, password_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), 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 FK143BF46AEBA3BF9 (role_id), add constraint FK143BF46AEBA3BF9 foreign key (role_id) references role (id);
alter table user_role add index FK143BF46AB3E4FFD9 (user_id), add constraint FK143BF46AB3E4FFD9 foreign key (user_id) references app_user (id);
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 23 source files to C:\Users\mypc\IdeaProjects\untitled9\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Users\mypc\IdeaProjects\untitled9\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running untitled9.dao.hibernate.HibernateConfigurationTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/applicationContext*.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: untitled9.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: untitled9.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: untitled9.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: untitled9.model.User
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testColumnMapping].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.2 sec
Running untitled9.service.UserExistsExceptionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: /applicationContext-service.xml,/applicationContext-resources.xml,classpath:/applicationContext-dao.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@60029d]; rollback [true].
DEBUG - UserExistsExceptionTest.testAddExistingUser(21) | entered 'testAddExistingUser' method
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt_raible@yahoo.com' for key 2
org.springframework.dao.DataIntegrityViolationException: could not insert: [untitled9.model.User]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:744)
        at untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:48)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy30.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        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 $Proxy32.saveUser(Unknown Source)
        at untitled9.service.UserExistsExceptionTest.testAddExistingUser(UserExistsExceptionTest.java:35)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2163)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2643)
        at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:51)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
        at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
        at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
        at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
        at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
        at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
        at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:747)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        ... 55 more
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt_raible@yahoo.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
        at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
        ... 71 more
WARN - UserManagerImpl.saveUser(104) | could not insert: [untitled9.model.User]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddExistingUser].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.531 sec
Running untitled9.dao.UniversalDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testCRUD].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.567 sec
Running untitled9.service.impl.LookupManagerImplTest
DEBUG - LookupManagerImplTest.testGetAllRoles(28) | entered 'testGetAllRoles' method
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.66 sec
Running untitled9.util.DateConverterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.348 sec
Running untitled9.webapp.action.SignupActionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath:/applicationContext-service.xml,classpath*:/applicationContext.xml,/WEB-INF/applicationContext*.xml
ERROR - XWorkConverter.loadConversionProperties(784) | Conversion registration error
java.lang.NullPointerException
        at com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWorkConverter.java:760)
        at com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties(XWorkConverter.java:778)
        at com.opensymphony.xwork2.util.XWorkConverter.<init>(XWorkConverter.java:183)
        at com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverter.java:207)
        at com.opensymphony.xwork2.util.OgnlValueStack.setRoot(OgnlValueStack.java:340)
        at com.opensymphony.xwork2.util.OgnlValueStack.<init>(OgnlValueStack.java:84)
        at com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(OgnlValueStackFactory.java:14)
        at com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(ActionContext.java:329)
        at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
        at java.lang.ThreadLocal.get(ThreadLocal.java:131)
        at com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:151)
        at untitled9.webapp.action.BaseActionTestCase.onSetUpBeforeTransaction(BaseActionTestCase.java:38)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@b28980]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - BaseAction.sendUserMessage(160) | sending e-mail to user [self-registered@raibledesigns.com]...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testExecute].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@b28980]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testDisplayForm].
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.994 sec
Running untitled9.webapp.listener.StartupListenerTest
DEBUG - StartupListener.contextInitialized(38) | Initializing context...
DEBUG - StartupListener.contextInitialized(74) | authenticationManager bean not found, assuming test and ignoring...
DEBUG - StartupListener.contextInitialized(82) | Remember Me Enabled? null
DEBUG - StartupListener.contextInitialized(86) | Populating drop-downs...
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - StartupListener.setupContext(102) | Drop-down initialization complete [OK]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.973 sec
Running untitled9.webapp.filter.StaticFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - StaticFilter.doFilterInternal(88) | Forwarding to static resource: /scripts/dojo/test.html
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to: /editProfile.html
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.206 sec
Running untitled9.service.UserManagerTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: /applicationContext-resources.xml,classpath:/applicationContext-dao.xml,/applicationContext-service.xml,classpath*:/**/applicationContext.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42]; rollback [true].
DEBUG - UserManagerTest.testGetUser(28) | untitled9.model.User@9c6201[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - UserManagerTest.testAddAndRemoveUser(56) | removing user...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 3
DEBUG - UserManagerTest.testAddAndRemoveUser(64) | org.springframework.security.userdetails.UsernameNotFoundException: user 'john' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42]; rollback [true].
DEBUG - UserManagerTest.testSaveUser(36) | saving user with updated phone number: untitled9.model.User@196eed5[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSaveUser].
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.056 sec
Running untitled9.service.impl.UserManagerImplTest
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 5
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
org.springframework.dao.DataIntegrityViolationException:
        at org.jmock.lib.action.ThrowAction.invoke(ThrowAction.java:27)
        at org.jmock.internal.InvocationExpectation.invoke(InvocationExpectation.java:126)
        at org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:52)
        at org.jmock.Mockery.dispatch(Mockery.java:204)
        at org.jmock.Mockery.access$000(Mockery.java:37)
        at org.jmock.Mockery$MockObject.invoke(Mockery.java:246)
        at org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27)
        at org.jmock.internal.ProxiedObjectIdentity.invoke(ProxiedObjectIdentity.java:36)
        at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33)
        at $Proxy37.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        at untitled9.service.impl.UserManagerImplTest.testUserExistsException(UserManagerImplTest.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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
        at org.jmock.integration.junit4.JMock$1.invoke(JMock.java:36)
        at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
        at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
        at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
        at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
        at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
        at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
        at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
        at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
        at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
        at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
        at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
WARN - UserManagerImpl.saveUser(104) |
DEBUG - UserManagerImplTest.testUserExistsException(135) | expected exception: User 'admin' already exists!
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.389 sec
Running untitled9.dao.UserDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User' object with id '1000' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUserInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoTest.testGetUserPassword(44) | password: 12dea96fec20593566ab75692c9949596833adc9
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUserPassword].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUpdateUser].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt_raible@yahoo.com' for key 2
DEBUG - UserDaoTest.testUpdateUser(71) | expected exception: could not insert: [untitled9.model.User]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddUserRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User' object with id '4' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUserExists].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUserNotExists].
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.44 sec
Running untitled9.dao.RoleDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetRoleInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUpdateRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddAndRemoveRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testFindByNamedQuery].
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.92 sec
Running untitled9.service.impl.UniversalManagerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec
Running untitled9.webapp.filter.LocaleFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.122 sec
Running untitled9.util.DateUtilTest
DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Tue Jul 28 10:22:26 PDT 2009
DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 07/28/2009
DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' method
DEBUG - DateUtilTest.testGetDateTime(62) | 10:22
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.133 sec
Running untitled9.service.MailEngineTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.636 sec
Running untitled9.service.UserSecurityAdviceTest
WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to modify 'admin'!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.613 sec
Running untitled9.dao.LookupDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - LookupDaoTest.testGetRoles(18) | [ROLE_ADMIN, ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetRoles].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.288 sec
Running untitled9.webapp.action.UserActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@b28980]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testCancel].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@b28980]; rollback [true].
DEBUG - UserAction.edit(117) | checking for remember me login...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testEdit].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@b28980]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSave].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@b28980]; rollback [true].
DEBUG - UserActionTest.testSaveConflictingUser(65) | original version #: 2
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt@raibledesigns.com' for key 2
ERROR - AbstractFlushingEventListener.performExecutions(301) | Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
        at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
        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.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
        at untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy30.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        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 $Proxy32.saveUser(Unknown Source)
        at untitled9.webapp.action.UserAction.save(UserAction.java:177)
        at untitled9.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt@raibledesigns.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
        ... 67 more
org.springframework.dao.DataIntegrityViolationException: could not update: [untitled9.model.User#-1]; nested exception is org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
        at untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy30.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        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 $Proxy32.saveUser(Unknown Source)
        at untitled9.webapp.action.UserAction.save(UserAction.java:177)
        at untitled9.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
        at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
        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.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        ... 56 more
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt@raibledesigns.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
        ... 67 more
WARN - UserManagerImpl.saveUser(104) | could not update: [untitled9.model.User#-1]; nested exception is org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSaveConflictingUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@b28980]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSearch].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@b28980]; rollback [true].
DEBUG - UserManagerImpl.removeUser(117) | removing user: -2
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testRemove].
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.324 sec
Running untitled9.webapp.action.PasswordHintActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@b28980]; rollback [true].
DEBUG - PasswordHintAction.execute(45) | Processing Password Hint...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testExecute].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.043 sec
Running untitled9.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec

Results :

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

[INFO] [dbunit:operation {execution: test}]
[INFO] [war:war {execution: default-war}]
[INFO] Exploding webapp...
[INFO] Assembling webapp untitled9 in C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0
[INFO] Copy webapp webResources to C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0
[INFO] Generating war C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war
[INFO] Building war: C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war
[INFO] [cargo:start {execution: start-container}]
[INFO] [stalledLocalDeployer] Deploying [C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war] to [C:\Users\mypc\IdeaProjects\untitled9\target/tomcat5x/container/webapps]...
[INFO] [talledLocalContainer] Tomcat 5.x starting...
[INFO] [talledLocalContainer] Jul 28, 2009 10:23:33 AM org.apache.coyote.http11.Http11Protocol init
[INFO] [talledLocalContainer] SEVERE: Error initializing endpoint
[INFO] [talledLocalContainer] java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
[INFO] [talledLocalContainer] at java.net.PlainSocketImpl.socketBind(Native Method)
[INFO] [talledLocalContainer] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
[INFO] [talledLocalContainer] at java.net.ServerSocket.bind(ServerSocket.java:319)
[INFO] [talledLocalContainer] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[INFO] [talledLocalContainer] at java.net.ServerSocket.<init>(ServerSocket.java:141)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
[INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)
[INFO] [talledLocalContainer] at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
[INFO] [talledLocalContainer] Jul 28, 2009 10:23:33 AM org.apache.catalina.startup.Catalina load
[INFO] [talledLocalContainer] SEVERE: Catalina.start
[INFO] [talledLocalContainer] LifecycleException:  Protocol handler initialization failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
[INFO] [talledLocalContainer] at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
[INFO] [talledLocalContainer] Jul 28, 2009 10:23:33 AM org.apache.catalina.startup.Catalina load
[INFO] [talledLocalContainer] INFO: Initialization processed in 4360 ms
[INFO] [talledLocalContainer] Jul 28, 2009 10:23:33 AM org.apache.catalina.core.StandardService start
[INFO] [talledLocalContainer] INFO: Starting service Catalina
[INFO] [talledLocalContainer] Jul 28, 2009 10:23:33 AM org.apache.catalina.core.StandardEngine start
[INFO] [talledLocalContainer] INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
[INFO] [talledLocalContainer] Jul 28, 2009 10:23:51 AM org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: Initializing Spring root WebApplicationContext
[INFO] [talledLocalContainer] DEBUG [main] StartupListener.contextInitialized(38) | Initializing context...
[INFO] [talledLocalContainer] DEBUG [main] StartupListener.contextInitialized(82) | Remember Me Enabled? true
[INFO] [talledLocalContainer] DEBUG [main] StartupListener.contextInitialized(84) | Password Encoder: org.springframework.security.providers.encoding.ShaPasswordEncoder
[INFO] [talledLocalContainer] DEBUG [main] StartupListener.contextInitialized(86) | Populating drop-downs...
[INFO] [talledLocalContainer] DEBUG [main] LookupDaoHibernate.getRoles(20) | Retrieving all role names...
[INFO] [talledLocalContainer] DEBUG [main] StartupListener.setupContext(102) | Drop-down initialization complete [OK]
[INFO] [talledLocalContainer] DEBUG [main] LocaleFilter.init(157) | Initializing filter 'localeFilter'
[INFO] [talledLocalContainer] DEBUG [main] LocaleFilter.init(182) | Filter 'localeFilter' configured successfully
[INFO] [talledLocalContainer] WARN [main] Settings.getLocale(143) | Settings: Could not parse struts.locale setting, substituting default VM locale
[INFO] [talledLocalContainer] Jul 28, 2009 10:24:29 AM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deploying web application archive cargocpc.war
[INFO] [talledLocalContainer] Jul 28, 2009 10:24:30 AM org.apache.coyote.http11.Http11Protocol start
[INFO] [talledLocalContainer] SEVERE: Error starting endpoint
[INFO] [talledLocalContainer] java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
[INFO] [talledLocalContainer] at java.net.PlainSocketImpl.socketBind(Native Method)
[INFO] [talledLocalContainer] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
[INFO] [talledLocalContainer] at java.net.ServerSocket.bind(ServerSocket.java:319)
[INFO] [talledLocalContainer] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[INFO] [talledLocalContainer] at java.net.ServerSocket.<init>(ServerSocket.java:141)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
[INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:204)
[INFO] [talledLocalContainer] at org.apache.catalina.connector.Connector.start(Connector.java:1132)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardService.start(StandardService.java:531)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
[INFO] [talledLocalContainer] Jul 28, 2009 10:24:30 AM org.apache.catalina.startup.Catalina start
[INFO] [talledLocalContainer] SEVERE: Catalina.start:
[INFO] [talledLocalContainer] LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
[INFO] [talledLocalContainer] at org.apache.catalina.connector.Connector.start(Connector.java:1139)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardService.start(StandardService.java:531)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
[INFO] [talledLocalContainer] Jul 28, 2009 10:24:30 AM org.apache.catalina.startup.Catalina start
[INFO] [talledLocalContainer] INFO: Server startup in 56901 ms
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to start the Tomcat 5.x container.
Deployable [http://localhost:8081/cargocpc/index.html] failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.codehaus.cargo.container.ContainerException: Failed to start the Tomcat 5.x container.
        at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:160)
        at org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(ContainerStartMojo.java:61)
        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:243)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41)
        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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
        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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: org.codehaus.cargo.container.ContainerException: Deployable [http://localhost:8081/cargocpc/index.html] failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.
        at org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch(DeployerWatchdog.java:111)
        at org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForCompletion(AbstractLocalContainer.java:212)
        at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:155)
        ... 26 more
org.codehaus.cargo.container.ContainerException: Deployable [http://localhost:8081/cargocpc/index.html] failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.
        at org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch(DeployerWatchdog.java:111)
        at org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForCompletion(AbstractLocalContainer.java:212)
        at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:155)
        at org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(ContainerStartMojo.java:61)
        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:243)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41)
        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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
        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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 minutes 2 seconds
[INFO] Finished at: Tue Jul 28 10:25:17 PDT 2009
[INFO] Final Memory: 32M/57M
[INFO] ------------------------------------------------------------------------
[WARNING] [talledLocalContainer] Java Result: 1

Process finished with exit code 1
Reply | Threaded
Open this post in threaded view
|

Re: I have started all over again

spsarolkar
Ok now finally i was able to install it, problem was i had nexus repository running on port 8081 I changed cargo port to 8082
Now when i run the command
mvn jetty:run-war
server starts but i get 404 page when i access http://localhost:8080

Here is a output of mvn jetty:run-war
spsarolkar wrote
C:\jdk1.6.0_14\bin\java -Dclassworlds.conf=C:\apache-maven-2.2.0\bin\m2.conf -Dmaven.home=C:\apache-maven-2.2.0 -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 8.1.3\bin" -Dfile.encoding=windows-1252 -classpath "C:\apache-maven-2.2.0\boot\classworlds-1.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA 8.1.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --no-plugin-registry --fail-fast --no-plugin-updates --strict-checksums -f C:\Users\mypc\IdeaProjects\untitled9\pom.xml org.mortbay.jetty:maven-jetty-plugin:6.1.9:run-war
+ Enabling strict checksum verification on all artifact downloads.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [org.mortbay.jetty:maven-jetty-plugin:6.1.9:run-war]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run-war
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 45 resources
[INFO] Copying 2 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 18 resources
[INFO] Copying 11 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 45 resources
[INFO] Copying 2 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: C:\Users\mypc\IdeaProjects\untitled9\target\classes\jdbc.properties
alter table user_role drop foreign key FK143BF46AEBA3BF9;
alter table user_role drop foreign key FK143BF46AB3E4FFD9;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city varchar(50) not null, country varchar(100), postal_code varchar(15) not null, province varchar(100), credentials_expired bit not null, email varchar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, password_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), 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 FK143BF46AEBA3BF9 (role_id), add constraint FK143BF46AEBA3BF9 foreign key (role_id) references role (id);
alter table user_role add index FK143BF46AB3E4FFD9 (user_id), add constraint FK143BF46AB3E4FFD9 foreign key (user_id) references app_user (id);
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Users\mypc\IdeaProjects\untitled9\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running untitled9.dao.hibernate.HibernateConfigurationTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/applicationContext*.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: untitled9.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: untitled9.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: untitled9.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: untitled9.model.User
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testColumnMapping].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.588 sec
Running untitled9.service.UserExistsExceptionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: /applicationContext-service.xml,/applicationContext-resources.xml,classpath:/applicationContext-dao.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@60029d]; rollback [true].
DEBUG - UserExistsExceptionTest.testAddExistingUser(21) | entered 'testAddExistingUser' method
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt_raible@yahoo.com' for key 2
org.springframework.dao.DataIntegrityViolationException: could not insert: [untitled9.model.User]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:744)
        at untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:48)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy30.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        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 $Proxy32.saveUser(Unknown Source)
        at untitled9.service.UserExistsExceptionTest.testAddExistingUser(UserExistsExceptionTest.java:35)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2163)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2643)
        at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:51)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
        at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
        at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
        at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
        at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
        at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
        at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:747)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        ... 55 more
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt_raible@yahoo.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
        at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
        ... 71 more
WARN - UserManagerImpl.saveUser(104) | could not insert: [untitled9.model.User]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddExistingUser].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.387 sec
Running untitled9.dao.UniversalDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testCRUD].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.605 sec
Running untitled9.service.impl.LookupManagerImplTest
DEBUG - LookupManagerImplTest.testGetAllRoles(28) | entered 'testGetAllRoles' method
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.519 sec
Running untitled9.util.DateConverterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.232 sec
Running untitled9.webapp.action.SignupActionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath:/applicationContext-service.xml,classpath*:/applicationContext.xml,/WEB-INF/applicationContext*.xml
ERROR - XWorkConverter.loadConversionProperties(784) | Conversion registration error
java.lang.NullPointerException
        at com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWorkConverter.java:760)
        at com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties(XWorkConverter.java:778)
        at com.opensymphony.xwork2.util.XWorkConverter.<init>(XWorkConverter.java:183)
        at com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverter.java:207)
        at com.opensymphony.xwork2.util.OgnlValueStack.setRoot(OgnlValueStack.java:340)
        at com.opensymphony.xwork2.util.OgnlValueStack.<init>(OgnlValueStack.java:84)
        at com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(OgnlValueStackFactory.java:14)
        at com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(ActionContext.java:329)
        at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
        at java.lang.ThreadLocal.get(ThreadLocal.java:131)
        at com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:151)
        at untitled9.webapp.action.BaseActionTestCase.onSetUpBeforeTransaction(BaseActionTestCase.java:38)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - BaseAction.sendUserMessage(160) | sending e-mail to user [self-registered@raibledesigns.com]...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testExecute].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testDisplayForm].
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.913 sec
Running untitled9.webapp.listener.StartupListenerTest
DEBUG - StartupListener.contextInitialized(38) | Initializing context...
DEBUG - StartupListener.contextInitialized(74) | authenticationManager bean not found, assuming test and ignoring...
DEBUG - StartupListener.contextInitialized(82) | Remember Me Enabled? null
DEBUG - StartupListener.contextInitialized(86) | Populating drop-downs...
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - StartupListener.setupContext(102) | Drop-down initialization complete [OK]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.09 sec
Running untitled9.webapp.filter.StaticFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - StaticFilter.doFilterInternal(88) | Forwarding to static resource: /scripts/dojo/test.html
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to: /editProfile.html
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec
Running untitled9.service.UserManagerTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: /applicationContext-resources.xml,classpath:/applicationContext-dao.xml,/applicationContext-service.xml,classpath*:/**/applicationContext.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42]; rollback [true].
DEBUG - UserManagerTest.testGetUser(28) | untitled9.model.User@e6361e[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - UserManagerTest.testAddAndRemoveUser(56) | removing user...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 3
DEBUG - UserManagerTest.testAddAndRemoveUser(64) | org.springframework.security.userdetails.UsernameNotFoundException: user 'john' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42]; rollback [true].
DEBUG - UserManagerTest.testSaveUser(36) | saving user with updated phone number: untitled9.model.User@126aaca[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSaveUser].
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.428 sec
Running untitled9.service.impl.UserManagerImplTest
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 5
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
org.springframework.dao.DataIntegrityViolationException:
        at org.jmock.lib.action.ThrowAction.invoke(ThrowAction.java:27)
        at org.jmock.internal.InvocationExpectation.invoke(InvocationExpectation.java:126)
        at org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:52)
        at org.jmock.Mockery.dispatch(Mockery.java:204)
        at org.jmock.Mockery.access$000(Mockery.java:37)
        at org.jmock.Mockery$MockObject.invoke(Mockery.java:246)
        at org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27)
        at org.jmock.internal.ProxiedObjectIdentity.invoke(ProxiedObjectIdentity.java:36)
        at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33)
        at $Proxy37.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        at untitled9.service.impl.UserManagerImplTest.testUserExistsException(UserManagerImplTest.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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
        at org.jmock.integration.junit4.JMock$1.invoke(JMock.java:36)
        at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
        at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
        at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
        at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
        at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
        at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
        at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
        at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
        at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
        at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
        at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
WARN - UserManagerImpl.saveUser(104) |
DEBUG - UserManagerImplTest.testUserExistsException(135) | expected exception: User 'admin' already exists!
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.359 sec
Running untitled9.dao.UserDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User' object with id '1000' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUserInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoTest.testGetUserPassword(44) | password: 12dea96fec20593566ab75692c9949596833adc9
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUserPassword].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUpdateUser].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt_raible@yahoo.com' for key 2
DEBUG - UserDaoTest.testUpdateUser(71) | expected exception: could not insert: [untitled9.model.User]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddUserRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User' object with id '4' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUserExists].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUserNotExists].
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.603 sec
Running untitled9.dao.RoleDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetRoleInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUpdateRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddAndRemoveRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testFindByNamedQuery].
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.506 sec
Running untitled9.service.impl.UniversalManagerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec
Running untitled9.webapp.filter.LocaleFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.115 sec
Running untitled9.util.DateUtilTest
DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Tue Jul 28 13:34:08 PDT 2009
DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 07/28/2009
DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' method
DEBUG - DateUtilTest.testGetDateTime(62) | 13:34
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 sec
Running untitled9.service.MailEngineTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.118 sec
Running untitled9.service.UserSecurityAdviceTest
WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to modify 'admin'!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.834 sec
Running untitled9.dao.LookupDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - LookupDaoTest.testGetRoles(18) | [ROLE_ADMIN, ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetRoles].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec
Running untitled9.webapp.action.UserActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testCancel].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserAction.edit(117) | checking for remember me login...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testEdit].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSave].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserActionTest.testSaveConflictingUser(65) | original version #: 2
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt@raibledesigns.com' for key 2
ERROR - AbstractFlushingEventListener.performExecutions(301) | Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
        at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
        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.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
        at untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy30.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        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 $Proxy32.saveUser(Unknown Source)
        at untitled9.webapp.action.UserAction.save(UserAction.java:177)
        at untitled9.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt@raibledesigns.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
        ... 67 more
org.springframework.dao.DataIntegrityViolationException: could not update: [untitled9.model.User#-1]; nested exception is org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
        at untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy30.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        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 $Proxy32.saveUser(Unknown Source)
        at untitled9.webapp.action.UserAction.save(UserAction.java:177)
        at untitled9.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
        at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
        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.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        ... 56 more
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt@raibledesigns.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
        ... 67 more
WARN - UserManagerImpl.saveUser(104) | could not update: [untitled9.model.User#-1]; nested exception is org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSaveConflictingUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSearch].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserManagerImpl.removeUser(117) | removing user: -2
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testRemove].
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.142 sec
Running untitled9.webapp.action.PasswordHintActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - PasswordHintAction.execute(45) | Processing Password Hint...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testExecute].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.638 sec
Running untitled9.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec

Results :

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

[INFO] [dbunit:operation {execution: test}]
[INFO] [war:war {execution: default-war}]
[INFO] Exploding webapp...
[INFO] Assembling webapp untitled9 in C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0
[INFO] Copy webapp webResources to C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0
[INFO] Generating war C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war
[INFO] Building war: C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war
[INFO] [jetty:run-war {execution: default-cli}]
[INFO] Configuring Jetty for project: AppFuse Struts 2 Application
2009-07-28 13:34:47.455::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
2009-07-28 13:34:48.418::INFO:  jetty-6.1.9
[INFO] Starting jetty 6.1.9 ...
2009-07-28 13:34:49.634::INFO:  Extract jar:file:/C:/Users/mypc/IdeaProjects/untitled9/target/untitled9-1.0.war!/ to C:\Users\mypc\IdeaProjects\untitled9\target\work\webapp
2009-07-28 13:34:59.018::INFO:  No Transaction manager found - if your webapp requires one, please configure one.
2009-07-28 13:35:01.783:/:INFO:  Initializing Spring root WebApplicationContext
DEBUG [main] StartupListener.contextInitialized(38) | Initializing context...
DEBUG [main] StartupListener.contextInitialized(82) | Remember Me Enabled? true
DEBUG [main] StartupListener.contextInitialized(84) | Password Encoder: org.springframework.security.providers.encoding.ShaPasswordEncoder
DEBUG [main] StartupListener.contextInitialized(86) | Populating drop-downs...
DEBUG [main] LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG [main] StartupListener.setupContext(102) | Drop-down initialization complete [OK]
DEBUG [main] LocaleFilter.init(157) | Initializing filter 'localeFilter'
DEBUG [main] LocaleFilter.init(182) | Filter 'localeFilter' configured successfully
WARN [main] Settings.getLocale(143) | Settings: Could not parse struts.locale setting, substituting default VM locale
[INFO] Started Jetty Server
2009-07-28 13:35:26.572::INFO:  Started SelectChannelConnector@0.0.0.0:8080
[INFO] Starting scanner at interval of 3 seconds.
Reply | Threaded
Open this post in threaded view
|

Re: I have started all over again [ Magically working when i tried next morning ]

spsarolkar

spsarolkar wrote
Ok now finally i was able to install it, problem was i had nexus repository running on port 8081 I changed cargo port to 8082
Now when i run the command
mvn jetty:run-war
server starts but i get 404 page when i access http://localhost:8080

Here is a output of mvn jetty:run-war
spsarolkar wrote
C:\jdk1.6.0_14\bin\java -Dclassworlds.conf=C:\apache-maven-2.2.0\bin\m2.conf -Dmaven.home=C:\apache-maven-2.2.0 -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 8.1.3\bin" -Dfile.encoding=windows-1252 -classpath "C:\apache-maven-2.2.0\boot\classworlds-1.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA 8.1.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --no-plugin-registry --fail-fast --no-plugin-updates --strict-checksums -f C:\Users\mypc\IdeaProjects\untitled9\pom.xml org.mortbay.jetty:maven-jetty-plugin:6.1.9:run-war
+ Enabling strict checksum verification on all artifact downloads.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [org.mortbay.jetty:maven-jetty-plugin:6.1.9:run-war]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run-war
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 45 resources
[INFO] Copying 2 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 18 resources
[INFO] Copying 11 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation.
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 45 resources
[INFO] Copying 2 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] Copying 119 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: C:\Users\mypc\IdeaProjects\untitled9\target\classes\jdbc.properties
alter table user_role drop foreign key FK143BF46AEBA3BF9;
alter table user_role drop foreign key FK143BF46AB3E4FFD9;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city varchar(50) not null, country varchar(100), postal_code varchar(15) not null, province varchar(100), credentials_expired bit not null, email varchar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, password_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), 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 FK143BF46AEBA3BF9 (role_id), add constraint FK143BF46AEBA3BF9 foreign key (role_id) references role (id);
alter table user_role add index FK143BF46AB3E4FFD9 (user_id), add constraint FK143BF46AB3E4FFD9 foreign key (user_id) references app_user (id);
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Users\mypc\IdeaProjects\untitled9\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running untitled9.dao.hibernate.HibernateConfigurationTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/applicationContext*.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: untitled9.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: untitled9.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: untitled9.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: untitled9.model.User
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testColumnMapping].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.588 sec
Running untitled9.service.UserExistsExceptionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: /applicationContext-service.xml,/applicationContext-resources.xml,classpath:/applicationContext-dao.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@60029d]; rollback [true].
DEBUG - UserExistsExceptionTest.testAddExistingUser(21) | entered 'testAddExistingUser' method
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt_raible@yahoo.com' for key 2
org.springframework.dao.DataIntegrityViolationException: could not insert: [untitled9.model.User]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:744)
        at untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:48)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy30.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        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 $Proxy32.saveUser(Unknown Source)
        at untitled9.service.UserExistsExceptionTest.testAddExistingUser(UserExistsExceptionTest.java:35)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2163)
        at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2643)
        at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:51)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
        at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
        at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
        at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
        at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
        at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
        at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
        at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:747)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        ... 55 more
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt_raible@yahoo.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
        at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
        ... 71 more
WARN - UserManagerImpl.saveUser(104) | could not insert: [untitled9.model.User]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddExistingUser].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.387 sec
Running untitled9.dao.UniversalDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testCRUD].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.605 sec
Running untitled9.service.impl.LookupManagerImplTest
DEBUG - LookupManagerImplTest.testGetAllRoles(28) | entered 'testGetAllRoles' method
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.519 sec
Running untitled9.util.DateConverterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.232 sec
Running untitled9.webapp.action.SignupActionTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath:/applicationContext-service.xml,classpath*:/applicationContext.xml,/WEB-INF/applicationContext*.xml
ERROR - XWorkConverter.loadConversionProperties(784) | Conversion registration error
java.lang.NullPointerException
        at com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWorkConverter.java:760)
        at com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties(XWorkConverter.java:778)
        at com.opensymphony.xwork2.util.XWorkConverter.<init>(XWorkConverter.java:183)
        at com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverter.java:207)
        at com.opensymphony.xwork2.util.OgnlValueStack.setRoot(OgnlValueStack.java:340)
        at com.opensymphony.xwork2.util.OgnlValueStack.<init>(OgnlValueStack.java:84)
        at com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(OgnlValueStackFactory.java:14)
        at com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(ActionContext.java:329)
        at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
        at java.lang.ThreadLocal.get(ThreadLocal.java:131)
        at com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:151)
        at untitled9.webapp.action.BaseActionTestCase.onSetUpBeforeTransaction(BaseActionTestCase.java:38)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - BaseAction.sendUserMessage(160) | sending e-mail to user [self-registered@raibledesigns.com]...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testExecute].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testDisplayForm].
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.913 sec
Running untitled9.webapp.listener.StartupListenerTest
DEBUG - StartupListener.contextInitialized(38) | Initializing context...
DEBUG - StartupListener.contextInitialized(74) | authenticationManager bean not found, assuming test and ignoring...
DEBUG - StartupListener.contextInitialized(82) | Remember Me Enabled? null
DEBUG - StartupListener.contextInitialized(86) | Populating drop-downs...
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - StartupListener.setupContext(102) | Drop-down initialization complete [OK]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.09 sec
Running untitled9.webapp.filter.StaticFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - StaticFilter.doFilterInternal(88) | Forwarding to static resource: /scripts/dojo/test.html
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to: /editProfile.html
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec
Running untitled9.service.UserManagerTest
INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading context for locations: /applicationContext-resources.xml,classpath:/applicationContext-dao.xml,/applicationContext-service.xml,classpath*:/**/applicationContext.xml
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42]; rollback [true].
DEBUG - UserManagerTest.testGetUser(28) | untitled9.model.User@e6361e[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
DEBUG - UserManagerTest.testAddAndRemoveUser(56) | removing user...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 3
DEBUG - UserManagerTest.testAddAndRemoveUser(64) | org.springframework.security.userdetails.UsernameNotFoundException: user 'john' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42]; rollback [true].
DEBUG - UserManagerTest.testSaveUser(36) | saving user with updated phone number: untitled9.model.User@126aaca[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSaveUser].
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.428 sec
Running untitled9.service.impl.UserManagerImplTest
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
DEBUG - UserManagerImpl.removeUser(117) | removing user: 5
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping password encryption...
org.springframework.dao.DataIntegrityViolationException:
        at org.jmock.lib.action.ThrowAction.invoke(ThrowAction.java:27)
        at org.jmock.internal.InvocationExpectation.invoke(InvocationExpectation.java:126)
        at org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:52)
        at org.jmock.Mockery.dispatch(Mockery.java:204)
        at org.jmock.Mockery.access$000(Mockery.java:37)
        at org.jmock.Mockery$MockObject.invoke(Mockery.java:246)
        at org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27)
        at org.jmock.internal.ProxiedObjectIdentity.invoke(ProxiedObjectIdentity.java:36)
        at org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33)
        at $Proxy37.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        at untitled9.service.impl.UserManagerImplTest.testUserExistsException(UserManagerImplTest.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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
        at org.jmock.integration.junit4.JMock$1.invoke(JMock.java:36)
        at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
        at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
        at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
        at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
        at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
        at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
        at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
        at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
        at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
        at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
        at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
WARN - UserManagerImpl.saveUser(104) |
DEBUG - UserManagerImplTest.testUserExistsException(135) | expected exception: User 'admin' already exists!
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.359 sec
Running untitled9.dao.UserDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User' object with id '1000' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUserInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoTest.testGetUserPassword(44) | password: 12dea96fec20593566ab75692c9949596833adc9
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetUserPassword].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUpdateUser].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt_raible@yahoo.com' for key 2
DEBUG - UserDaoTest.testUpdateUser(71) | expected exception: could not insert: [untitled9.model.User]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [untitled9.model.User]
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddUserRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User' object with id '4' not found...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddAndRemoveUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUserExists].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUserNotExists].
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.603 sec
Running untitled9.dao.RoleDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetRoleInvalid].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testUpdateRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testAddAndRemoveRole].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testFindByNamedQuery].
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.506 sec
Running untitled9.service.impl.UniversalManagerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec
Running untitled9.webapp.filter.LocaleFilterTest
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
DEBUG - GenericFilterBean.init(157) | Initializing filter ''
DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.115 sec
Running untitled9.util.DateUtilTest
DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Tue Jul 28 13:34:08 PDT 2009
DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 07/28/2009
DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' method
DEBUG - DateUtilTest.testGetDateTime(62) | 13:34
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 sec
Running untitled9.service.MailEngineTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.118 sec
Running untitled9.service.UserSecurityAdviceTest
WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to modify 'admin'!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.834 sec
Running untitled9.dao.LookupDaoTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc]; rollback [true].
DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG - LookupDaoTest.testGetRoles(18) | [ROLE_ADMIN, ROLE_USER]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testGetRoles].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec
Running untitled9.webapp.action.UserActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testCancel].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserAction.edit(117) | checking for remember me login...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testEdit].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSave].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserActionTest.testSaveConflictingUser(65) | original version #: 2
DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry 'matt@raibledesigns.com' for key 2
ERROR - AbstractFlushingEventListener.performExecutions(301) | Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
        at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
        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.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
        at untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy30.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        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 $Proxy32.saveUser(Unknown Source)
        at untitled9.webapp.action.UserAction.save(UserAction.java:177)
        at untitled9.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt@raibledesigns.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
        ... 67 more
org.springframework.dao.DataIntegrityViolationException: could not update: [untitled9.model.User#-1]; nested exception is org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
        at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
        at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
        at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
        at org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
        at untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy30.saveUser(Unknown Source)
        at untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
        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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        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 $Proxy32.saveUser(Unknown Source)
        at untitled9.webapp.action.UserAction.save(UserAction.java:177)
        at untitled9.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
        at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
        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.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
        ... 56 more
Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry 'matt@raibledesigns.com' for key 2
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
        ... 67 more
WARN - UserManagerImpl.saveUser(104) | could not update: [untitled9.model.User#-1]; nested exception is org.hibernate.exception.ConstraintViolationException: could not update: [untitled9.model.User#-1]
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSaveConflictingUser].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testSearch].
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - UserManagerImpl.removeUser(117) | removing user: -2
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testRemove].
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.142 sec
Running untitled9.webapp.action.PasswordHintActionTest
DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50]; rollback [true].
DEBUG - PasswordHintAction.execute(45) | Processing Password Hint...
DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) | Rolled back transaction after execution of test [testExecute].
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.638 sec
Running untitled9.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec

Results :

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

[INFO] [dbunit:operation {execution: test}]
[INFO] [war:war {execution: default-war}]
[INFO] Exploding webapp...
[INFO] Assembling webapp untitled9 in C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0
[INFO] Copy webapp webResources to C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0
[INFO] Generating war C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war
[INFO] Building war: C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war
[INFO] [jetty:run-war {execution: default-cli}]
[INFO] Configuring Jetty for project: AppFuse Struts 2 Application
2009-07-28 13:34:47.455::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
2009-07-28 13:34:48.418::INFO:  jetty-6.1.9
[INFO] Starting jetty 6.1.9 ...
2009-07-28 13:34:49.634::INFO:  Extract jar:file:/C:/Users/mypc/IdeaProjects/untitled9/target/untitled9-1.0.war!/ to C:\Users\mypc\IdeaProjects\untitled9\target\work\webapp
2009-07-28 13:34:59.018::INFO:  No Transaction manager found - if your webapp requires one, please configure one.
2009-07-28 13:35:01.783:/:INFO:  Initializing Spring root WebApplicationContext
DEBUG [main] StartupListener.contextInitialized(38) | Initializing context...
DEBUG [main] StartupListener.contextInitialized(82) | Remember Me Enabled? true
DEBUG [main] StartupListener.contextInitialized(84) | Password Encoder: org.springframework.security.providers.encoding.ShaPasswordEncoder
DEBUG [main] StartupListener.contextInitialized(86) | Populating drop-downs...
DEBUG [main] LookupDaoHibernate.getRoles(20) | Retrieving all role names...
DEBUG [main] StartupListener.setupContext(102) | Drop-down initialization complete [OK]
DEBUG [main] LocaleFilter.init(157) | Initializing filter 'localeFilter'
DEBUG [main] LocaleFilter.init(182) | Filter 'localeFilter' configured successfully
WARN [main] Settings.getLocale(143) | Settings: Could not parse struts.locale setting, substituting default VM locale
[INFO] Started Jetty Server
2009-07-28 13:35:26.572::INFO:  Started SelectChannelConnector@0.0.0.0:8080
[INFO] Starting scanner at interval of 3 seconds.
Reply | Threaded
Open this post in threaded view
|

Re: I have started all over again [ Magically working when i tried next morning ]

mraible
Administrator

On Tue, Jul 28, 2009 at 8:18 PM, spsarolkar <[hidden email]> wrote:



spsarolkar wrote:
>
> Ok now finally i was able to install it, problem was i had nexus
> repository running on port 8081 I changed cargo port to 8082
> Now when i run the command
> mvn jetty:run-war
> server starts but i get 404 page when i access http://localhost:8080
>
> Here is a output of mvn jetty:run-war
>
> spsarolkar wrote:
>>
>> C:\jdk1.6.0_14\bin\java
>> -Dclassworlds.conf=C:\apache-maven-2.2.0\bin\m2.conf
>> -Dmaven.home=C:\apache-maven-2.2.0 -Didea.launcher.port=7532
>> "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA
>> 8.1.3\bin" -Dfile.encoding=windows-1252 -classpath
>> "C:\apache-maven-2.2.0\boot\classworlds-1.1.jar;C:\Program
>> Files\JetBrains\IntelliJ IDEA 8.1.3\lib\idea_rt.jar"
>> com.intellij.rt.execution.application.AppMain
>> org.codehaus.classworlds.Launcher --no-plugin-registry --fail-fast
>> --no-plugin-updates --strict-checksums -f
>> C:\Users\mypc\IdeaProjects\untitled9\pom.xml
>> org.mortbay.jetty:maven-jetty-plugin:6.1.9:run-war
>> + Enabling strict checksum verification on all artifact downloads.
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building AppFuse Struts 2 Application
>> [INFO]    task-segment:
>> [org.mortbay.jetty:maven-jetty-plugin:6.1.9:run-war]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Preparing jetty:run-war
>> [WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.
>>
>> Its dependencies (if any) will NOT be available to the current build.
>> [INFO] [aspectj:compile {execution: default}]
>> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
>> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
>> [INFO] [resources:resources {execution: default-resources}]
>> [WARNING] File encoding has not been set, using platform encoding
>> windows-1252, i.e. build is platform dependent!
>> [WARNING] Using platform encoding (windows-1252 actually) to copy
>> filtered resources, i.e. build is platform dependent!
>> [INFO] Copying 45 resources
>> [INFO] Copying 2 resources
>> [INFO] Copying 119 resources
>> [INFO] Copying 119 resources
>> [INFO] [compiler:compile {execution: default-compile}]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources {execution: default-testResources}]
>> [WARNING] File encoding has not been set, using platform encoding
>> windows-1252, i.e. build is platform dependent!
>> [WARNING] Using platform encoding (windows-1252 actually) to copy
>> filtered resources, i.e. build is platform dependent!
>> [INFO] Copying 18 resources
>> [INFO] Copying 11 resources
>> [INFO] Preparing hibernate3:hbm2ddl
>> [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
>> invocation.
>> [INFO] [aspectj:compile {execution: default}]
>> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
>> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
>> [INFO] [resources:resources {execution: default-resources}]
>> [WARNING] File encoding has not been set, using platform encoding
>> windows-1252, i.e. build is platform dependent!
>> [WARNING] Using platform encoding (windows-1252 actually) to copy
>> filtered resources, i.e. build is platform dependent!
>> [INFO] Copying 45 resources
>> [INFO] Copying 2 resources
>> [INFO] Copying 119 resources
>> [INFO] Copying 119 resources
>> [INFO] Copying 119 resources
>> [INFO] Copying 119 resources
>> [INFO] [hibernate3:hbm2ddl {execution: default}]
>> [INFO] Configuration XML file loaded:
>> file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml
>> [INFO] Configuration XML file loaded:
>> file:/C:/Users/mypc/IdeaProjects/untitled9/src/main/resources/hibernate.cfg.xml
>> [INFO] Configuration Properties file loaded:
>> C:\Users\mypc\IdeaProjects\untitled9\target\classes\jdbc.properties
>> alter table user_role drop foreign key FK143BF46AEBA3BF9;
>> alter table user_role drop foreign key FK143BF46AB3E4FFD9;
>> drop table if exists app_user;
>> drop table if exists role;
>> drop table if exists user_role;
>> create table app_user (id bigint not null auto_increment, account_expired
>> bit not null, account_locked bit not null, address varchar(150), city
>> varchar(50) not null, country varchar(100), postal_code varchar(15) not
>> null, province varchar(100), credentials_expired bit not null, email
>> varchar(255) not null unique, account_enabled bit, first_name varchar(50)
>> not null, last_name varchar(50) not null, password varchar(255) not null,
>> password_hint varchar(255), phone_number varchar(255), username
>> varchar(50) not null unique, version integer, website varchar(255),
>> primary key (id)) ENGINE=InnoDB;
>> create table role (id bigint not null auto_increment, description
>> varchar(64), name varchar(20), 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 FK143BF46AEBA3BF9 (role_id), add
>> constraint FK143BF46AEBA3BF9 foreign key (role_id) references role (id);
>> alter table user_role add index FK143BF46AB3E4FFD9 (user_id), add
>> constraint FK143BF46AB3E4FFD9 foreign key (user_id) references app_user
>> (id);
>> [INFO] [compiler:testCompile {execution: default-testCompile}]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [dbunit:operation {execution: test-compile}]
>> [INFO] [surefire:test {execution: default-test}]
>> [INFO] Surefire report directory:
>> C:\Users\mypc\IdeaProjects\untitled9\target\surefire-reports
>>
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running untitled9.dao.hibernate.HibernateConfigurationTest
>> INFO - AbstractSingleSpringContextTests.loadContextLocations(210) |
>> Loading context for locations:
>> classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/applicationContext*.xml
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select
>> * from: untitled9.model.Role
>> DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
>> untitled9.model.Role
>> DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select
>> * from: untitled9.model.User
>> DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok:
>> untitled9.model.User
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testColumnMapping].
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.588
>> sec
>> Running untitled9.service.UserExistsExceptionTest
>> INFO - AbstractSingleSpringContextTests.loadContextLocations(210) |
>> Loading context for locations:
>> /applicationContext-service.xml,/applicationContext-resources.xml,classpath:/applicationContext-dao.xml
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@60029d];
>> rollback [true].
>> DEBUG - UserExistsExceptionTest.testAddExistingUser(21) | entered
>> 'testAddExistingUser' method
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
>> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062,
>> SQLState: 23000
>> ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry
>> '[hidden email]' for key 2
>> org.springframework.dao.DataIntegrityViolationException: could not
>> insert: [untitled9.model.User]; nested exception is
>> org.hibernate.exception.ConstraintViolationException: could not insert:
>> [untitled9.model.User]
>>      at
>> org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
>>      at
>> org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:744)
>>      at
>> untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:48)
>>      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
>>      at
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
>>      at $Proxy30.saveUser(Unknown Source)
>>      at
>> untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
>>      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
>>      at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>      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 $Proxy32.saveUser(Unknown Source)
>>      at
>> untitled9.service.UserExistsExceptionTest.testAddExistingUser(UserExistsExceptionTest.java:35)
>>      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 junit.framework.TestCase.runTest(TestCase.java:168)
>>      at junit.framework.TestCase.runBare(TestCase.java:134)
>>      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:140)
>>      at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>>      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>      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:345)
>>      at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>> Caused by: org.hibernate.exception.ConstraintViolationException: could
>> not insert: [untitled9.model.User]
>>      at
>> org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
>>      at
>> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
>>      at
>> org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2163)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2643)
>>      at
>> org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:51)
>>      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
>>      at
>> org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
>>      at
>> org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
>>      at
>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
>>      at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
>>      at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>      at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
>>      at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>      at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
>>      at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
>>      at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:747)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
>>      ... 55 more
>> Caused by:
>> com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
>> Duplicate entry '[hidden email]' for key 2
>>      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
>>      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
>>      at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
>>      at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
>>      at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
>>      at
>> org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
>>      at
>> org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
>>      ... 71 more
>> WARN - UserManagerImpl.saveUser(104) | could not insert:
>> [untitled9.model.User]; nested exception is
>> org.hibernate.exception.ConstraintViolationException: could not insert:
>> [untitled9.model.User]
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testAddExistingUser].
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.387 sec
>> Running untitled9.dao.UniversalDaoTest
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testCRUD].
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.605 sec
>> Running untitled9.service.impl.LookupManagerImplTest
>> DEBUG - LookupManagerImplTest.testGetAllRoles(28) | entered
>> 'testGetAllRoles' method
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.519 sec
>> Running untitled9.util.DateConverterTest
>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.232 sec
>> Running untitled9.webapp.action.SignupActionTest
>> INFO - AbstractSingleSpringContextTests.loadContextLocations(210) |
>> Loading context for locations:
>> classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath:/applicationContext-service.xml,classpath*:/applicationContext.xml,/WEB-INF/applicationContext*.xml
>> ERROR - XWorkConverter.loadConversionProperties(784) | Conversion
>> registration error
>> java.lang.NullPointerException
>>      at
>> com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWorkConverter.java:760)
>>      at
>> com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties(XWorkConverter.java:778)
>>      at
>> com.opensymphony.xwork2.util.XWorkConverter.<init>(XWorkConverter.java:183)
>>      at
>> com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverter.java:207)
>>      at
>> com.opensymphony.xwork2.util.OgnlValueStack.setRoot(OgnlValueStack.java:340)
>>      at
>> com.opensymphony.xwork2.util.OgnlValueStack.<init>(OgnlValueStack.java:84)
>>      at
>> com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(OgnlValueStackFactory.java:14)
>>      at
>> com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(ActionContext.java:329)
>>      at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
>>      at java.lang.ThreadLocal.get(ThreadLocal.java:131)
>>      at
>> com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:151)
>>      at
>> untitled9.webapp.action.BaseActionTestCase.onSetUpBeforeTransaction(BaseActionTestCase.java:38)
>>      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:140)
>>      at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>>      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>      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:345)
>>      at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50];
>> rollback [true].
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
>> DEBUG - BaseAction.sendUserMessage(160) | sending e-mail to user
>> [[hidden email]]...
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testExecute].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testDisplayForm].
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.913 sec
>> Running untitled9.webapp.listener.StartupListenerTest
>> DEBUG - StartupListener.contextInitialized(38) | Initializing context...
>> DEBUG - StartupListener.contextInitialized(74) | authenticationManager
>> bean not found, assuming test and ignoring...
>> DEBUG - StartupListener.contextInitialized(82) | Remember Me Enabled?
>> null
>> DEBUG - StartupListener.contextInitialized(86) | Populating drop-downs...
>> DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
>> DEBUG - StartupListener.setupContext(102) | Drop-down initialization
>> complete [OK]
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.09 sec
>> Running untitled9.webapp.filter.StaticFilterTest
>> DEBUG - GenericFilterBean.init(157) | Initializing filter ''
>> DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
>> DEBUG - StaticFilter.doFilterInternal(88) | Forwarding to static
>> resource: /scripts/dojo/test.html
>> DEBUG - GenericFilterBean.init(157) | Initializing filter ''
>> DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
>> DEBUG - MockFilterChain.doFilter(37) | Forwarding to: /editProfile.html
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec
>> Running untitled9.service.UserManagerTest
>> INFO - AbstractSingleSpringContextTests.loadContextLocations(210) |
>> Loading context for locations:
>> /applicationContext-resources.xml,classpath:/applicationContext-dao.xml,/applicationContext-service.xml,classpath*:/**/applicationContext.xml
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42];
>> rollback [true].
>> DEBUG - UserManagerTest.testGetUser(28) |
>> untitled9.model.User@e6361e[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted
>> Authorities: ,ROLE_USER]
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testGetUser].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42];
>> rollback [true].
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
>> DEBUG - UserManagerTest.testAddAndRemoveUser(56) | removing user...
>> DEBUG - UserManagerImpl.removeUser(117) | removing user: 3
>> DEBUG - UserManagerTest.testAddAndRemoveUser(64) |
>> org.springframework.security.userdetails.UsernameNotFoundException: user
>> 'john' not found...
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testAddAndRemoveUser].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@f8ff42];
>> rollback [true].
>> DEBUG - UserManagerTest.testSaveUser(36) | saving user with updated phone
>> number:
>> untitled9.model.User@126aaca[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted
>> Authorities: ,ROLE_USER]
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testSaveUser].
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.428 sec
>> Running untitled9.service.impl.UserManagerImplTest
>> WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping
>> password encryption...
>> DEBUG - UserManagerImpl.removeUser(117) | removing user: 5
>> WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping
>> password encryption...
>> WARN - UserManagerImpl.saveUser(97) | PasswordEncoder not set, skipping
>> password encryption...
>> org.springframework.dao.DataIntegrityViolationException:
>>      at org.jmock.lib.action.ThrowAction.invoke(ThrowAction.java:27)
>>      at
>> org.jmock.internal.InvocationExpectation.invoke(InvocationExpectation.java:126)
>>      at
>> org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:52)
>>      at org.jmock.Mockery.dispatch(Mockery.java:204)
>>      at org.jmock.Mockery.access$000(Mockery.java:37)
>>      at org.jmock.Mockery$MockObject.invoke(Mockery.java:246)
>>      at
>> org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27)
>>      at
>> org.jmock.internal.ProxiedObjectIdentity.invoke(ProxiedObjectIdentity.java:36)
>>      at
>> org.jmock.lib.JavaReflectionImposteriser$1.invoke(JavaReflectionImposteriser.java:33)
>>      at $Proxy37.saveUser(Unknown Source)
>>      at
>> untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
>>      at
>> untitled9.service.impl.UserManagerImplTest.testUserExistsException(UserManagerImplTest.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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
>>      at org.jmock.integration.junit4.JMock$1.invoke(JMock.java:36)
>>      at
>> org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
>>      at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
>>      at
>> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
>>      at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
>>      at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
>>      at
>> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
>>      at
>> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
>>      at
>> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
>>      at
>> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
>>      at
>> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
>>      at
>> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
>>      at
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>      at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>>      at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>>      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>      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:345)
>>      at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>> WARN - UserManagerImpl.saveUser(104) |
>> DEBUG - UserManagerImplTest.testUserExistsException(135) | expected
>> exception: User 'admin' already exists!
>> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.359 sec
>> Running untitled9.dao.UserDaoTest
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User'
>> object with id '1000' not found...
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testGetUserInvalid].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testGetUser].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - UserDaoTest.testGetUserPassword(44) | password:
>> 12dea96fec20593566ab75692c9949596833adc9
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testGetUserPassword].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testUpdateUser].
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
>> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062,
>> SQLState: 23000
>> ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry
>> '[hidden email]' for key 2
>> DEBUG - UserDaoTest.testUpdateUser(71) | expected exception: could not
>> insert: [untitled9.model.User]; nested exception is
>> org.hibernate.exception.ConstraintViolationException: could not insert:
>> [untitled9.model.User]
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testAddUserRole].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: null
>> WARN - GenericDaoHibernate.get(74) | Uh oh, 'class untitled9.model.User'
>> object with id '4' not found...
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testAddAndRemoveUser].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testUserExists].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testUserNotExists].
>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.603 sec
>> Running untitled9.dao.RoleDaoTest
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testGetRoleInvalid].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testGetRole].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testUpdateRole].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testAddAndRemoveRole].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testFindByNamedQuery].
>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.506 sec
>> Running untitled9.service.impl.UniversalManagerTest
>> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec
>> Running untitled9.webapp.filter.LocaleFilterTest
>> DEBUG - GenericFilterBean.init(157) | Initializing filter ''
>> DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
>> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
>> DEBUG - GenericFilterBean.init(157) | Initializing filter ''
>> DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
>> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
>> DEBUG - GenericFilterBean.init(157) | Initializing filter ''
>> DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
>> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
>> DEBUG - GenericFilterBean.init(157) | Initializing filter ''
>> DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
>> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
>> DEBUG - GenericFilterBean.init(157) | Initializing filter ''
>> DEBUG - GenericFilterBean.init(182) | Filter '' configured successfully
>> DEBUG - MockFilterChain.doFilter(37) | Forwarding to:
>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.115 sec
>> Running untitled9.util.DateUtilTest
>> DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Tue Jul 28
>> 13:34:08 PDT 2009
>> DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 07/28/2009
>> DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime'
>> method
>> DEBUG - DateUtilTest.testGetDateTime(62) | 13:34
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 sec
>> Running untitled9.service.MailEngineTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.118 sec
>> Running untitled9.service.UserSecurityAdviceTest
>> WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to
>> modify 'admin'!
>> WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to
>> change their role(s)!
>> WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to
>> change their role(s)!
>> Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.834 sec
>> Running untitled9.dao.LookupDaoTest
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@19d12cc];
>> rollback [true].
>> DEBUG - LookupDaoHibernate.getRoles(20) | Retrieving all role names...
>> DEBUG - LookupDaoTest.testGetRoles(18) | [ROLE_ADMIN, ROLE_USER]
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testGetRoles].
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec
>> Running untitled9.webapp.action.UserActionTest
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testCancel].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50];
>> rollback [true].
>> DEBUG - UserAction.edit(117) | checking for remember me login...
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testEdit].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50];
>> rollback [true].
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testSave].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50];
>> rollback [true].
>> DEBUG - UserActionTest.testSaveConflictingUser(65) | original version #:
>> 2
>> DEBUG - UserDaoHibernate.saveUser(47) | user's id: -1
>> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1062,
>> SQLState: 23000
>> ERROR - JDBCExceptionReporter.logExceptions(78) | Duplicate entry
>> '[hidden email]' for key 2
>> ERROR - AbstractFlushingEventListener.performExecutions(301) | Could not
>> synchronize database state with session
>> org.hibernate.exception.ConstraintViolationException: could not update:
>> [untitled9.model.User#-1]
>>      at
>> org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
>>      at
>> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
>>      at
>> org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
>>      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
>>      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
>>      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
>>      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.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
>>      at
>> untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
>>      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
>>      at
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
>>      at $Proxy30.saveUser(Unknown Source)
>>      at
>> untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
>>      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
>>      at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>      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 $Proxy32.saveUser(Unknown Source)
>>      at untitled9.webapp.action.UserAction.save(UserAction.java:177)
>>      at
>> untitled9.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
>>      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 junit.framework.TestCase.runTest(TestCase.java:168)
>>      at junit.framework.TestCase.runBare(TestCase.java:134)
>>      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:140)
>>      at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>>      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>      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:345)
>>      at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>> Caused by:
>> com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
>> Duplicate entry '[hidden email]' for key 2
>>      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
>>      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
>>      at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
>>      at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
>>      at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
>>      ... 67 more
>> org.springframework.dao.DataIntegrityViolationException: could not
>> update: [untitled9.model.User#-1]; nested exception is
>> org.hibernate.exception.ConstraintViolationException: could not update:
>> [untitled9.model.User#-1]
>>      at
>> org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
>>      at
>> org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.flush(HibernateTemplate.java:886)
>>      at
>> untitled9.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:50)
>>      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
>>      at
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
>>      at $Proxy30.saveUser(Unknown Source)
>>      at
>> untitled9.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
>>      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
>>      at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
>>      at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>      at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>      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 $Proxy32.saveUser(Unknown Source)
>>      at untitled9.webapp.action.UserAction.save(UserAction.java:177)
>>      at
>> untitled9.webapp.action.UserActionTest.testSaveConflictingUser(UserActionTest.java:71)
>>      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 junit.framework.TestCase.runTest(TestCase.java:168)
>>      at junit.framework.TestCase.runBare(TestCase.java:134)
>>      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:140)
>>      at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>>      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>      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:345)
>>      at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>> Caused by: org.hibernate.exception.ConstraintViolationException: could
>> not update: [untitled9.model.User#-1]
>>      at
>> org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
>>      at
>> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2430)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
>>      at
>> org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
>>      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
>>      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
>>      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
>>      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.springframework.orm.hibernate3.HibernateTemplate$28.doInHibernate(HibernateTemplate.java:888)
>>      at
>> org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
>>      ... 56 more
>> Caused by:
>> com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
>> Duplicate entry '[hidden email]' for key 2
>>      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
>>      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
>>      at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
>>      at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
>>      at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
>>      at
>> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
>>      at
>> org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
>>      ... 67 more
>> WARN - UserManagerImpl.saveUser(104) | could not update:
>> [untitled9.model.User#-1]; nested exception is
>> org.hibernate.exception.ConstraintViolationException: could not update:
>> [untitled9.model.User#-1]
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test
>> [testSaveConflictingUser].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50];
>> rollback [true].
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testSearch].
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50];
>> rollback [true].
>> DEBUG - UserManagerImpl.removeUser(117) | removing user: -2
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testRemove].
>> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.142 sec
>> Running untitled9.webapp.action.PasswordHintActionTest
>> DEBUG - AbstractTransactionalSpringContextTests.startNewTransaction(392)
>> | Began transaction (1): transaction manager
>> [org.springframework.orm.hibernate3.HibernateTransactionManager@16d4b50];
>> rollback [true].
>> DEBUG - PasswordHintAction.execute(45) | Processing Password Hint...
>> DEBUG - AbstractTransactionalSpringContextTests.endTransaction(360) |
>> Rolled back transaction after execution of test [testExecute].
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.638 sec
>> Running untitled9.AppTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
>>
>> Results :
>>
>> Tests run: 64, Failures: 0, Errors: 0, Skipped: 0
>>
>> [INFO] [dbunit:operation {execution: test}]
>> [INFO] [war:war {execution: default-war}]
>> [INFO] Exploding webapp...
>> [INFO] Assembling webapp untitled9 in
>> C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0
>> [INFO] Copy webapp webResources to
>> C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0
>> [INFO] Generating war
>> C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war
>> [INFO] Building war:
>> C:\Users\mypc\IdeaProjects\untitled9\target\untitled9-1.0.war
>> [INFO] [jetty:run-war {execution: default-cli}]
>> [INFO] Configuring Jetty for project: AppFuse Struts 2 Application
>> 2009-07-28 13:34:47.455::INFO:  Logging to STDERR via
>> org.mortbay.log.StdErrLog
>> [INFO] Context path = /
>> [INFO] Tmp directory =  determined at runtime
>> [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
>> [INFO] Web overrides =  none
>> 2009-07-28 13:34:48.418::INFO:  jetty-6.1.9
>> [INFO] Starting jetty 6.1.9 ...
>> 2009-07-28 13:34:49.634::INFO:  Extract
>> jar:file:/C:/Users/mypc/IdeaProjects/untitled9/target/untitled9-1.0.war!/
>> to C:\Users\mypc\IdeaProjects\untitled9\target\work\webapp
>> 2009-07-28 13:34:59.018::INFO:  No Transaction manager found - if your
>> webapp requires one, please configure one.
>> 2009-07-28 13:35:01.783:/:INFO:  Initializing Spring root
>> WebApplicationContext
>> DEBUG [main] StartupListener.contextInitialized(38) | Initializing
>> context...
>> DEBUG [main] StartupListener.contextInitialized(82) | Remember Me
>> Enabled? true
>> DEBUG [main] StartupListener.contextInitialized(84) | Password Encoder:
>> org.springframework.security.providers.encoding.ShaPasswordEncoder
>> DEBUG [main] StartupListener.contextInitialized(86) | Populating
>> drop-downs...
>> DEBUG [main] LookupDaoHibernate.getRoles(20) | Retrieving all role
>> names...
>> DEBUG [main] StartupListener.setupContext(102) | Drop-down initialization
>> complete [OK]
>> DEBUG [main] LocaleFilter.init(157) | Initializing filter 'localeFilter'
>> DEBUG [main] LocaleFilter.init(182) | Filter 'localeFilter' configured
>> successfully
>> WARN [main] Settings.getLocale(143) | Settings: Could not parse
>> struts.locale setting, substituting default VM locale
>> [INFO] Started Jetty Server
>> 2009-07-28 13:35:26.572::INFO:  Started
>> SelectChannelConnector@0.0.0.0:8080
>> [INFO] Starting scanner at interval of 3 seconds.
>>
>>

It looks like everything started up OK - I'm not sure what the problem could be. You might try running "mvn package" and then deploying the WAR to Tomcat and seeing if you get different error messages.

Matt
 
Reply | Threaded
Open this post in threaded view
|

Re: I have started all over again

spsarolkar
Hi matt, thanks for following me.
After lots of trying, I had no luck with full-source.
So i am going step by step and following book AppFuse Primer
I have written Vehicle class and VehicleMaintenance class,VehicleDao interface, VehicleDaoHibernate class
as given in book.
I am getting test errors
Here is a test report
spsarolkar wrote
-------------------------------------------------------------------------------
Test set: org.xinus.crud.dao.VehicleDaoTest
-------------------------------------------------------------------------------
Tests run: 7, Failures: 2, Errors: 5, Skipped: 0, Time elapsed: 13.35 sec <<< FAILURE!
testAddVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 12.186 sec  <<< FAILURE!
junit.framework.AssertionFailedError: null
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertNotNull(Assert.java:214)
        at junit.framework.Assert.assertNotNull(Assert.java:207)
        at org.xinus.crud.dao.VehicleDaoTest.testAddVehicle(VehicleDaoTest.java:36)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testGetChildren(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.159 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.xinus.crud.dao.hibernate.VehicleDaoHibernate.getAllChildren(VehicleDaoHibernate.java:21)
        at org.xinus.crud.dao.VehicleDaoTest.testGetChildren(VehicleDaoTest.java:41)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testGetVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.08 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.xinus.crud.dao.VehicleDaoTest.testGetVehicle(VehicleDaoTest.java:48)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testGetVehicles(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.437 sec  <<< FAILURE!
junit.framework.AssertionFailedError: null
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertTrue(Assert.java:27)
        at org.xinus.crud.dao.VehicleDaoTest.testGetVehicles(VehicleDaoTest.java:54)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testAddVehicleMaintenance(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.085 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.xinus.crud.dao.VehicleDaoTest.testAddVehicleMaintenance(VehicleDaoTest.java:57)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testSaveVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.05 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.xinus.crud.dao.VehicleDaoTest.testSaveVehicle(VehicleDaoTest.java:72)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testRemoveVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.023 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.appfuse.dao.hibernate.GenericDaoHibernate.remove(GenericDaoHibernate.java:102)
        at org.xinus.crud.dao.VehicleDaoTest.testRemoveVehicle(VehicleDaoTest.java:77)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Here is my VehicleDaoTest
spsarolkar wrote
package org.xinus.crud.dao;

import org.xinus.crud.model.Vehicle;
import org.xinus.crud.model.VehicleMaintenance;
import org.appfuse.dao.BaseDaoTestCase;
import org.springframework.orm.ObjectRetrievalFailureException;

import java.util.List;
import java.util.Iterator;

/**
 * Created by IntelliJ IDEA.
 * User: mypc
 * Date: Jul 29, 2009
 * Time: 6:59:18 AM
 * To change this template use File | Settings | File Templates.
 */
public class VehicleDaoTest extends BaseDaoTestCase {
    private Long vehicleId = new Long(1);
    private VehicleDao<Vehicle,Long> vehicleDao = null;

    public void setVehicleDao(VehicleDao<Vehicle, Long> vehicleDao) {
        this.vehicleDao = vehicleDao;
    }
    public void testAddVehicle() throws Exception{
        System.out.println("Test: Add Vehicle");
        Vehicle vehicle = new Vehicle();
        vehicle.setName("David's Truck");
        vehicle.setMake("Ford");
        vehicle.setModel("F-150");
        vehicle.setYear("1995");
        vehicle.setVIN("12345ABCDEF");
        vehicleDao.save(vehicle);
       
        System.out.println("Vehicle added "+vehicle.getId());
        assertNotNull(vehicle.getId());
        assertEquals(vehicle.getName(),"David's Truck");
    }
    public void testGetChildren() throws Exception{
        System.out.println("Test: Get children");
        List list = vehicleDao.getAllChildren(vehicleId);
        for(Iterator iter = list.iterator();iter.hasNext();){
            VehicleMaintenance vehicleMaintenance=(VehicleMaintenance)iter.next();
            System.out.println("Dao GetChildrenTest:" + vehicleMaintenance.getName());
        }
    }
    public void testGetVehicle()throws Exception{
        Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
        assertNotNull(vehicle);
    }
    public void testGetVehicles() throws Exception{
        Vehicle vehicle = new Vehicle();
        List results = vehicleDao.getAll();
        assertTrue(results.size()>0);
    }
    public void testAddVehicleMaintenance()throws Exception{
        Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
        VehicleMaintenance vehicleMaintenance=new VehicleMaintenance();
        vehicleMaintenance.setName("Oil Change");
        vehicle.getVehicleMaintenances().add(vehicleMaintenance);
        vehicleDao.save(vehicle);
        vehicle=null;
        vehicle= (Vehicle) vehicleDao.get(vehicleId);
        List list = vehicle.getVehicleMaintenances();
        assertTrue(list.size()>0);
    }
    public void getVehicleMaintenance() throws Exception{
        List results = vehicleDao.getAllChildren(vehicleId);
        assertTrue(results.size()>0);
    }
    public void testSaveVehicle() throws Exception{
        Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
        vehicleDao.save(vehicle);
    }
    public void testRemoveVehicle() throws Exception{
        Long removeId = new Long("1");
        vehicleDao.remove(removeId);
        try{
            Vehicle vehicle = (Vehicle) vehicleDao.get(removeId);
            fail("Vehicle found in database");
        }catch(ObjectRetrievalFailureException e){
            assertNotNull(e.getMessage());
        }
    }
}
Here is my application context.xml
spsarolkar wrote
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
       default-lazy-init="true">
    <bean class="org.appfuse.dao.spring.HibernateExtensionPostProcessor">
        <property name="annotatedClasses">
            <list>
                <value>org.xinus.crud.model.Vehicle</value>
                <value>org.xinus.crud.model.VehicleMaintenance</value>
            </list>
        </property>
    </bean>
    <bean id="vehicleManager" class="org.appfuse.service.impl.GenericManagerImpl">
          <constructor-arg>
              <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate" autowire="byType">
                     <constructor-arg value="org.xinus.crud.model.Vehicle"/>
              </bean>
          </constructor-arg>
    </bean>
    <bean id="vehicleAction" class="org.xinus.crud.action.VehicleAction" scope="prototype">
             <property name="vehicleManager" ref="vehicleManager"/>
    </bean>
    <bean id="vehicleDao" class="org.xinus.crud.dao.hibernate.VehicleDaoHibernate">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>
    <bean id="vehicleActionTest" class="org.xinus.crud.dao.VehicleDaoTest">
           <property name="vehicleDao" ref="vehicleDao"/>
    </bean>
   

   

   
</beans>
For applicationContext.xml
Idea is showing
.
.
.
<bean id="vehicleActionTest" class="org.xinus.crud.dao.VehicleDaoTest">
           <property name="<i>vehicleDao" ref="vehicleDao"/>
    </bean>
.
.
.
Cannot resolve property vehicleDao at...name=vehicleDao...
But i have setVehicleDao in my VehicleDaoTest

When i run mvn clean test -Dusefile=false -Dtest="VehicleDaoTest"
I get output as
spsarolkar wrote
C:\Users\mypc\IdeaProjects\myapp>mvn clean test -Dusefile=false -Dtest="VehicleDaoTest"
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [clean, test]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\Users\mypc\IdeaProjects\myapp\target
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [warpath:add-classes {execution: default}]
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO] Copying 2 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] Copying 25 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation.
[INFO] [warpath:add-classes {execution: default}]
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO] Copying 2 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml
log4j:WARN Continuable parsing error 57 and column 64
log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack" of type ID must be unique within the document.
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: C:\Users\mypc\IdeaProjects\myapp\target\classes\jdbc.properties
alter table VehicleMaintenance drop foreign key FKD1C1D46712C9F342;
alter table user_role drop foreign key FK143BF46A4FD90D75;
alter table user_role drop foreign key FK143BF46AF503D155;
drop table if exists Vehicle;
drop table if exists VehicleMaintenance;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table Vehicle (id bigint not null auto_increment, VIN varchar(255), make varchar(255), model varchar(255), name varchar(255), year varchar
(255), primary key (id)) ENGINE=InnoDB;
create table VehicleMaintenance (id bigint not null auto_increment, alarmDate datetime, endDate datetime, name varchar(255), startDate datetime,
vehicle_id bigint, primary key (id)) ENGINE=InnoDB;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city v
archar(50) not null, country varchar(100), postal_code varchar(15) not null, province varchar(100), credentials_expired bit not null, email varch
ar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, pa
ssword_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id
)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), 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 VehicleMaintenance add index FKD1C1D46712C9F342 (vehicle_id), add constraint FKD1C1D46712C9F342 foreign key (vehicle_id) references V
ehicle (id);
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 {execution: default-testCompile}]
[INFO] Compiling 2 source files to C:\Users\mypc\IdeaProjects\myapp\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Users\mypc\IdeaProjects\myapp\target\surefire-reports
log4j:WARN Continuable parsing error 57 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 org.xinus.crud.dao.VehicleDaoTest
[myapp] INFO [main] VehicleDaoTest.loadContextLocations(210) | Loading context for locations: classpath:/applicationContext-resources.xml,classpa
th:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/applicationContext*.xml
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
Test: Add Vehicle
Vehicle added null
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testAddVehicle].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
Test: Get children
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testGetChildren].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testGetVehicle].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testGetVehicles].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testAddVehicleMaintenance].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testSaveVehicle].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testRemoveVehicle].
Tests run: 7, Failures: 2, Errors: 5, Skipped: 0, Time elapsed: 15.952 sec <<< FAILURE!

Results :

Failed tests:
  testAddVehicle(org.xinus.crud.dao.VehicleDaoTest)
  testGetVehicles(org.xinus.crud.dao.VehicleDaoTest)

Tests in error:
  testGetChildren(org.xinus.crud.dao.VehicleDaoTest)
  testGetVehicle(org.xinus.crud.dao.VehicleDaoTest)
  testAddVehicleMaintenance(org.xinus.crud.dao.VehicleDaoTest)
  testSaveVehicle(org.xinus.crud.dao.VehicleDaoTest)
  testRemoveVehicle(org.xinus.crud.dao.VehicleDaoTest)

Tests run: 7, Failures: 2, Errors: 5, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to C:\Users\mypc\IdeaProjects\myapp\target\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 22 seconds
[INFO] Finished at: Wed Jul 29 09:59:40 PDT 2009
[INFO] Final Memory: 33M/59M
[INFO] ------------------------------------------------------------------------
C:\Users\mypc\IdeaProjects\myapp>
When i printed id of saved vehicle in testSaveVehicle it is coming as null. At console it is showing as rolling back
here it is
.
.
.
Vehicle added null
myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testAddVehicle].
.
.
.
Reply | Threaded
Open this post in threaded view
|

Re: I have started all over again

mraible
Administrator
You want to use "mvn test -Dsurefire.useFile=false" to get the full stacktrace as to why your test is failing. Either that, or look in target/test-reports and find the file that matches your test class.

Matt

On Wed, Jul 29, 2009 at 10:07 AM, spsarolkar <[hidden email]> wrote:

Hi matt, thanks for following me.
After lots of trying, I had no luck with full-source.
So i am going step by step and following book AppFuse Primer
I have written Vehicle class and VehicleMaintenance class,VehicleDao
interface, VehicleDaoHibernate class
as given in book.
I am getting test errors
Here is a test report

spsarolkar wrote:
>
> -------------------------------------------------------------------------------
> Test set: org.xinus.crud.dao.VehicleDaoTest
> -------------------------------------------------------------------------------
> Tests run: 7, Failures: 2, Errors: 5, Skipped: 0, Time elapsed: 13.35 sec
> <<< FAILURE!
> testAddVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 12.186
> sec  <<< FAILURE!
> junit.framework.AssertionFailedError: null
>       at junit.framework.Assert.fail(Assert.java:47)
>       at junit.framework.Assert.assertTrue(Assert.java:20)
>       at junit.framework.Assert.assertNotNull(Assert.java:214)
>       at junit.framework.Assert.assertNotNull(Assert.java:207)
>       at
> org.xinus.crud.dao.VehicleDaoTest.testAddVehicle(VehicleDaoTest.java:36)
>       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 junit.framework.TestCase.runTest(TestCase.java:168)
>       at junit.framework.TestCase.runBare(TestCase.java:134)
>       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:140)
>       at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>       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:345)
>       at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
> testGetChildren(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.159
> sec  <<< ERROR!
> org.springframework.orm.ObjectRetrievalFailureException: Object of class
> [org.xinus.crud.model.Vehicle] with identifier [1]: not found
>       at
> org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
>       at
> org.xinus.crud.dao.hibernate.VehicleDaoHibernate.getAllChildren(VehicleDaoHibernate.java:21)
>       at
> org.xinus.crud.dao.VehicleDaoTest.testGetChildren(VehicleDaoTest.java:41)
>       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 junit.framework.TestCase.runTest(TestCase.java:168)
>       at junit.framework.TestCase.runBare(TestCase.java:134)
>       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:140)
>       at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>       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:345)
>       at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
> testGetVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.08 sec
> <<< ERROR!
> org.springframework.orm.ObjectRetrievalFailureException: Object of class
> [org.xinus.crud.model.Vehicle] with identifier [1]: not found
>       at
> org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
>       at
> org.xinus.crud.dao.VehicleDaoTest.testGetVehicle(VehicleDaoTest.java:48)
>       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 junit.framework.TestCase.runTest(TestCase.java:168)
>       at junit.framework.TestCase.runBare(TestCase.java:134)
>       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:140)
>       at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>       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:345)
>       at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
> testGetVehicles(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.437
> sec  <<< FAILURE!
> junit.framework.AssertionFailedError: null
>       at junit.framework.Assert.fail(Assert.java:47)
>       at junit.framework.Assert.assertTrue(Assert.java:20)
>       at junit.framework.Assert.assertTrue(Assert.java:27)
>       at
> org.xinus.crud.dao.VehicleDaoTest.testGetVehicles(VehicleDaoTest.java:54)
>       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 junit.framework.TestCase.runTest(TestCase.java:168)
>       at junit.framework.TestCase.runBare(TestCase.java:134)
>       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:140)
>       at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>       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:345)
>       at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
> testAddVehicleMaintenance(org.xinus.crud.dao.VehicleDaoTest)  Time
> elapsed: 0.085 sec  <<< ERROR!
> org.springframework.orm.ObjectRetrievalFailureException: Object of class
> [org.xinus.crud.model.Vehicle] with identifier [1]: not found
>       at
> org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
>       at
> org.xinus.crud.dao.VehicleDaoTest.testAddVehicleMaintenance(VehicleDaoTest.java:57)
>       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 junit.framework.TestCase.runTest(TestCase.java:168)
>       at junit.framework.TestCase.runBare(TestCase.java:134)
>       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:140)
>       at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>       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:345)
>       at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
> testSaveVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.05 sec
> <<< ERROR!
> org.springframework.orm.ObjectRetrievalFailureException: Object of class
> [org.xinus.crud.model.Vehicle] with identifier [1]: not found
>       at
> org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
>       at
> org.xinus.crud.dao.VehicleDaoTest.testSaveVehicle(VehicleDaoTest.java:72)
>       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 junit.framework.TestCase.runTest(TestCase.java:168)
>       at junit.framework.TestCase.runBare(TestCase.java:134)
>       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:140)
>       at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>       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:345)
>       at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
> testRemoveVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.023
> sec  <<< ERROR!
> org.springframework.orm.ObjectRetrievalFailureException: Object of class
> [org.xinus.crud.model.Vehicle] with identifier [1]: not found
>       at
> org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
>       at
> org.appfuse.dao.hibernate.GenericDaoHibernate.remove(GenericDaoHibernate.java:102)
>       at
> org.xinus.crud.dao.VehicleDaoTest.testRemoveVehicle(VehicleDaoTest.java:77)
>       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 junit.framework.TestCase.runTest(TestCase.java:168)
>       at junit.framework.TestCase.runBare(TestCase.java:134)
>       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:140)
>       at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>       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:345)
>       at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
>
Here is my VehicleDaoTest

spsarolkar wrote:
>
> package org.xinus.crud.dao;
>
> import org.xinus.crud.model.Vehicle;
> import org.xinus.crud.model.VehicleMaintenance;
> import org.appfuse.dao.BaseDaoTestCase;
> import org.springframework.orm.ObjectRetrievalFailureException;
>
> import java.util.List;
> import java.util.Iterator;
>
> /**
>  * Created by IntelliJ IDEA.
>  * User: mypc
>  * Date: Jul 29, 2009
>  * Time: 6:59:18 AM
>  * To change this template use File | Settings | File Templates.
>  */
> public class VehicleDaoTest extends BaseDaoTestCase {
>     private Long vehicleId = new Long(1);
>     private VehicleDao<Vehicle,Long> vehicleDao = null;
>
>     public void setVehicleDao(VehicleDao<Vehicle, Long> vehicleDao) {
>         this.vehicleDao = vehicleDao;
>     }
>     public void testAddVehicle() throws Exception{
>         System.out.println("Test: Add Vehicle");
>         Vehicle vehicle = new Vehicle();
>         vehicle.setName("David's Truck");
>         vehicle.setMake("Ford");
>         vehicle.setModel("F-150");
>         vehicle.setYear("1995");
>         vehicle.setVIN("12345ABCDEF");
>         vehicleDao.save(vehicle);
>
>         System.out.println("Vehicle added "+vehicle.getId());
>         assertNotNull(vehicle.getId());
>         assertEquals(vehicle.getName(),"David's Truck");
>     }
>     public void testGetChildren() throws Exception{
>         System.out.println("Test: Get children");
>         List list = vehicleDao.getAllChildren(vehicleId);
>         for(Iterator iter = list.iterator();iter.hasNext();){
>             VehicleMaintenance
> vehicleMaintenance=(VehicleMaintenance)iter.next();
>             System.out.println("Dao GetChildrenTest:" +
> vehicleMaintenance.getName());
>         }
>     }
>     public void testGetVehicle()throws Exception{
>         Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
>         assertNotNull(vehicle);
>     }
>     public void testGetVehicles() throws Exception{
>         Vehicle vehicle = new Vehicle();
>         List results = vehicleDao.getAll();
>         assertTrue(results.size()>0);
>     }
>     public void testAddVehicleMaintenance()throws Exception{
>         Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
>         VehicleMaintenance vehicleMaintenance=new VehicleMaintenance();
>         vehicleMaintenance.setName("Oil Change");
>         vehicle.getVehicleMaintenances().add(vehicleMaintenance);
>         vehicleDao.save(vehicle);
>         vehicle=null;
>         vehicle= (Vehicle) vehicleDao.get(vehicleId);
>         List list = vehicle.getVehicleMaintenances();
>         assertTrue(list.size()>0);
>     }
>     public void getVehicleMaintenance() throws Exception{
>         List results = vehicleDao.getAllChildren(vehicleId);
>         assertTrue(results.size()>0);
>     }
>     public void testSaveVehicle() throws Exception{
>         Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
>         vehicleDao.save(vehicle);
>     }
>     public void testRemoveVehicle() throws Exception{
>         Long removeId = new Long("1");
>         vehicleDao.remove(removeId);
>         try{
>             Vehicle vehicle = (Vehicle) vehicleDao.get(removeId);
>             fail("Vehicle found in database");
>         }catch(ObjectRetrievalFailureException e){
>             assertNotNull(e.getMessage());
>         }
>     }
> }
>
Here is my application context.xml

spsarolkar wrote:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
>        default-lazy-init="true">
>     <bean class="org.appfuse.dao.spring.HibernateExtensionPostProcessor">
>         <property name="annotatedClasses">
>             <list>
>                 <value>org.xinus.crud.model.Vehicle</value>
>                 <value>org.xinus.crud.model.VehicleMaintenance</value>
>             </list>
>         </property>
>     </bean>
>     <bean id="vehicleManager"
> class="org.appfuse.service.impl.GenericManagerImpl">
>           <constructor-arg>
>               <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate"
> autowire="byType">
>                      <constructor-arg
> value="org.xinus.crud.model.Vehicle"/>
>               </bean>
>           </constructor-arg>
>     </bean>
>     <bean id="vehicleAction" class="org.xinus.crud.action.VehicleAction"
> scope="prototype">
>              <property name="vehicleManager" ref="vehicleManager"/>
>     </bean>
>     <bean id="vehicleDao"
> class="org.xinus.crud.dao.hibernate.VehicleDaoHibernate">
>         <property name="sessionFactory" ref="sessionFactory"/>
>     </bean>
>     <bean id="vehicleActionTest"
> class="org.xinus.crud.dao.VehicleDaoTest">
>            <property name="vehicleDao" ref="vehicleDao"/>
>     </bean>
>     <!-- Add new DAOs here -->
>
>     <!-- Add new Managers here -->
>
>     <!-- Add new Actions here -->
> </beans>
>

For applicationContext.xml
Idea is showing
.
.
.
<bean id="vehicleActionTest" class="org.xinus.crud.dao.VehicleDaoTest">
          <property name="vehicleDao" ref="vehicleDao"/>
   </bean>
.
.
.
Cannot resolve property vehicleDao at...name=vehicleDao...
But i have setVehicleDao in my VehicleDaoTest

When i run mvn clean test -Dusefile=false -Dtest="VehicleDaoTest"
I get output as

spsarolkar wrote:
>
> C:\Users\mypc\IdeaProjects\myapp>mvn clean test -Dusefile=false
> -Dtest="VehicleDaoTest"
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building AppFuse Struts 2 Application
> [INFO]    task-segment: [clean, test]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting directory C:\Users\mypc\IdeaProjects\myapp\target
> [WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [INFO] [warpath:add-classes {execution: default}]
> [INFO] [aspectj:compile {execution: default}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] File encoding has not been set, using platform encoding Cp1252,
> i.e. build is platform dependent!
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 13 resources
> [INFO] Copying 2 resources
> [INFO] Copying 33 resources
> [INFO] Copying 33 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [WARNING] File encoding has not been set, using platform encoding Cp1252,
> i.e. build is platform dependent!
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 4 resources
> [INFO] Copying 25 resources
> [INFO] Preparing hibernate3:hbm2ddl
> [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
> invocation.
> [INFO] [warpath:add-classes {execution: default}]
> [INFO] [aspectj:compile {execution: default}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] File encoding has not been set, using platform encoding Cp1252,
> i.e. build is platform dependent!
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 13 resources
> [INFO] Copying 2 resources
> [INFO] Copying 33 resources
> [INFO] Copying 33 resources
> [INFO] Copying 33 resources
> [INFO] Copying 33 resources
> [INFO] [hibernate3:hbm2ddl {execution: default}]
> [INFO] Configuration XML file loaded:
> file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml
> log4j:WARN Continuable parsing error 57 and column 64
> log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack"
> of type ID must be unique within the document.
> [INFO] Configuration XML file loaded:
> file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml
> [INFO] Configuration Properties file loaded:
> C:\Users\mypc\IdeaProjects\myapp\target\classes\jdbc.properties
> alter table VehicleMaintenance drop foreign key FKD1C1D46712C9F342;
> alter table user_role drop foreign key FK143BF46A4FD90D75;
> alter table user_role drop foreign key FK143BF46AF503D155;
> drop table if exists Vehicle;
> drop table if exists VehicleMaintenance;
> drop table if exists app_user;
> drop table if exists role;
> drop table if exists user_role;
> create table Vehicle (id bigint not null auto_increment, VIN varchar(255),
> make varchar(255), model varchar(255), name varchar(255), year varchar
> (255), primary key (id)) ENGINE=InnoDB;
> create table VehicleMaintenance (id bigint not null auto_increment,
> alarmDate datetime, endDate datetime, name varchar(255), startDate
> datetime,
> vehicle_id bigint, primary key (id)) ENGINE=InnoDB;
> create table app_user (id bigint not null auto_increment, account_expired
> bit not null, account_locked bit not null, address varchar(150), city v
> archar(50) not null, country varchar(100), postal_code varchar(15) not
> null, province varchar(100), credentials_expired bit not null, email varch
> ar(255) not null unique, account_enabled bit, first_name varchar(50) not
> null, last_name varchar(50) not null, password varchar(255) not null, pa
> ssword_hint varchar(255), phone_number varchar(255), username varchar(50)
> not null unique, version integer, website varchar(255), primary key (id
> )) ENGINE=InnoDB;
> create table role (id bigint not null auto_increment, description
> varchar(64), name varchar(20), 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 VehicleMaintenance add index FKD1C1D46712C9F342 (vehicle_id),
> add constraint FKD1C1D46712C9F342 foreign key (vehicle_id) references V
> ehicle (id);
> 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 {execution: default-testCompile}]
> [INFO] Compiling 2 source files to
> C:\Users\mypc\IdeaProjects\myapp\target\test-classes
> [INFO] [dbunit:operation {execution: test-compile}]
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory:
> C:\Users\mypc\IdeaProjects\myapp\target\surefire-reports
> log4j:WARN Continuable parsing error 57 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 org.xinus.crud.dao.VehicleDaoTest
> [myapp] INFO [main] VehicleDaoTest.loadContextLocations(210) | Loading
> context for locations: classpath:/applicationContext-resources.xml,classpa
> th:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/applicationContext*.xml
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> Test: Add Vehicle
> Vehicle added null
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testAddVehicle].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> Test: Get children
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testGetChildren].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testGetVehicle].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testGetVehicles].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testAddVehicleMaintenance].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testSaveVehicle].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testRemoveVehicle].
> Tests run: 7, Failures: 2, Errors: 5, Skipped: 0, Time elapsed: 15.952 sec
> <<< FAILURE!
>
> Results :
>
> Failed tests:
>   testAddVehicle(org.xinus.crud.dao.VehicleDaoTest)
>   testGetVehicles(org.xinus.crud.dao.VehicleDaoTest)
>
> Tests in error:
>   testGetChildren(org.xinus.crud.dao.VehicleDaoTest)
>   testGetVehicle(org.xinus.crud.dao.VehicleDaoTest)
>   testAddVehicleMaintenance(org.xinus.crud.dao.VehicleDaoTest)
>   testSaveVehicle(org.xinus.crud.dao.VehicleDaoTest)
>   testRemoveVehicle(org.xinus.crud.dao.VehicleDaoTest)
>
> Tests run: 7, Failures: 2, Errors: 5, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to C:\Users\mypc\IdeaProjects\myapp\target\surefire-reports
> for the individual test results.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 22 seconds
> [INFO] Finished at: Wed Jul 29 09:59:40 PDT 2009
> [INFO] Final Memory: 33M/59M
> [INFO]
> ------------------------------------------------------------------------
> C:\Users\mypc\IdeaProjects\myapp>
>
When i printed id of saved vehicle in testSaveVehicle it is coming as null.
At console it is showing as rolling back
here it is
.
.
.
Vehicle added null
myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
transaction after execution of test [testAddVehicle].
.
.
.
--
View this message in context: http://www.nabble.com/Problems-after-running-appfuse%3Afull-source-tp24696222s2369p24723609.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: I have started all over again

spsarolkar

Here is a test report

-------------------------------------------------------------------------------
Test set: org.xinus.crud.dao.VehicleDaoTest
-------------------------------------------------------------------------------
Tests run: 7, Failures: 2, Errors: 5, Skipped: 0, Time elapsed: 13.35 sec <<< FAILURE!
testAddVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 12.186 sec  <<< FAILURE!
junit.framework.AssertionFailedError: null
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertNotNull(Assert.java:214)
        at junit.framework.Assert.assertNotNull(Assert.java:207)
        at org.xinus.crud.dao.VehicleDaoTest.testAddVehicle(VehicleDaoTest.java:36)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testGetChildren(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.159 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.xinus.crud.dao.hibernate.VehicleDaoHibernate.getAllChildren(VehicleDaoHibernate.java:21)
        at org.xinus.crud.dao.VehicleDaoTest.testGetChildren(VehicleDaoTest.java:41)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testGetVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.08 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.xinus.crud.dao.VehicleDaoTest.testGetVehicle(VehicleDaoTest.java:48)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testGetVehicles(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.437 sec  <<< FAILURE!
junit.framework.AssertionFailedError: null
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertTrue(Assert.java:27)
        at org.xinus.crud.dao.VehicleDaoTest.testGetVehicles(VehicleDaoTest.java:54)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testAddVehicleMaintenance(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.085 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.xinus.crud.dao.VehicleDaoTest.testAddVehicleMaintenance(VehicleDaoTest.java:57)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testSaveVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.05 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.xinus.crud.dao.VehicleDaoTest.testSaveVehicle(VehicleDaoTest.java:72)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testRemoveVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.023 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class [org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:75)
        at org.appfuse.dao.hibernate.GenericDaoHibernate.remove(GenericDaoHibernate.java:102)
        at org.xinus.crud.dao.VehicleDaoTest.testRemoveVehicle(VehicleDaoTest.java:77)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        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:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)


Here is my VehicleDaoTest
spsarolkar wrote
package org.xinus.crud.dao;

import org.xinus.crud.model.Vehicle;
import org.xinus.crud.model.VehicleMaintenance;
import org.appfuse.dao.BaseDaoTestCase;
import org.springframework.orm.ObjectRetrievalFailureException;

import java.util.List;
import java.util.Iterator;

/**
 * Created by IntelliJ IDEA.
 * User: mypc
 * Date: Jul 29, 2009
 * Time: 6:59:18 AM
 * To change this template use File | Settings | File Templates.
 */
public class VehicleDaoTest extends BaseDaoTestCase {
    private Long vehicleId = new Long(1);
    private VehicleDao<Vehicle,Long> vehicleDao = null;

    public void setVehicleDao(VehicleDao<Vehicle, Long> vehicleDao) {
        this.vehicleDao = vehicleDao;
    }
    public void testAddVehicle() throws Exception{
        System.out.println("Test: Add Vehicle");
        Vehicle vehicle = new Vehicle();
        vehicle.setName("David's Truck");
        vehicle.setMake("Ford");
        vehicle.setModel("F-150");
        vehicle.setYear("1995");
        vehicle.setVIN("12345ABCDEF");
        vehicleDao.save(vehicle);
       
        System.out.println("Vehicle added "+vehicle.getId());
        assertNotNull(vehicle.getId());
        assertEquals(vehicle.getName(),"David's Truck");
    }
    public void testGetChildren() throws Exception{
        System.out.println("Test: Get children");
        List list = vehicleDao.getAllChildren(vehicleId);
        for(Iterator iter = list.iterator();iter.hasNext();){
            VehicleMaintenance vehicleMaintenance=(VehicleMaintenance)iter.next();
            System.out.println("Dao GetChildrenTest:" + vehicleMaintenance.getName());
        }
    }
    public void testGetVehicle()throws Exception{
        Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
        assertNotNull(vehicle);
    }
    public void testGetVehicles() throws Exception{
        Vehicle vehicle = new Vehicle();
        List results = vehicleDao.getAll();
        assertTrue(results.size()>0);
    }
    public void testAddVehicleMaintenance()throws Exception{
        Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
        VehicleMaintenance vehicleMaintenance=new VehicleMaintenance();
        vehicleMaintenance.setName("Oil Change");
        vehicle.getVehicleMaintenances().add(vehicleMaintenance);
        vehicleDao.save(vehicle);
        vehicle=null;
        vehicle= (Vehicle) vehicleDao.get(vehicleId);
        List list = vehicle.getVehicleMaintenances();
        assertTrue(list.size()>0);
    }
    public void getVehicleMaintenance() throws Exception{
        List results = vehicleDao.getAllChildren(vehicleId);
        assertTrue(results.size()>0);
    }
    public void testSaveVehicle() throws Exception{
        Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
        vehicleDao.save(vehicle);
    }
    public void testRemoveVehicle() throws Exception{
        Long removeId = new Long("1");
        vehicleDao.remove(removeId);
        try{
            Vehicle vehicle = (Vehicle) vehicleDao.get(removeId);
            fail("Vehicle found in database");
        }catch(ObjectRetrievalFailureException e){
            assertNotNull(e.getMessage());
        }
    }
}
Here is my application context.xml
spsarolkar wrote
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
       default-lazy-init="true">
    <bean class="org.appfuse.dao.spring.HibernateExtensionPostProcessor">
        <property name="annotatedClasses">
            <list>
                <value>org.xinus.crud.model.Vehicle</value>
                <value>org.xinus.crud.model.VehicleMaintenance</value>
            </list>
        </property>
    </bean>
    <bean id="vehicleManager" class="org.appfuse.service.impl.GenericManagerImpl">
          <constructor-arg>
              <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate" autowire="byType">
                     <constructor-arg value="org.xinus.crud.model.Vehicle"/>
              </bean>
          </constructor-arg>
    </bean>
    <bean id="vehicleAction" class="org.xinus.crud.action.VehicleAction" scope="prototype">
             <property name="vehicleManager" ref="vehicleManager"/>
    </bean>
    <bean id="vehicleDao" class="org.xinus.crud.dao.hibernate.VehicleDaoHibernate">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>
    <bean id="vehicleActionTest" class="org.xinus.crud.dao.VehicleDaoTest">
           <property name="vehicleDao" ref="vehicleDao"/>
    </bean>
   

   

   
</beans>
For applicationContext.xml
Idea is showing
.
.
.
<bean id="vehicleActionTest" class="org.xinus.crud.dao.VehicleDaoTest">
           <property name="<i>vehicleDao" ref="vehicleDao"/>
    </bean>
.
.
.
Cannot resolve property vehicleDao at...name=vehicleDao...
But i have setVehicleDao in my VehicleDaoTest

When i run mvn clean test -Dusefile=false -Dtest="VehicleDaoTest"
I get output as
spsarolkar wrote
C:\Users\mypc\IdeaProjects\myapp>mvn clean test -Dusefile=false -Dtest="VehicleDaoTest"
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [clean, test]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\Users\mypc\IdeaProjects\myapp\target
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [warpath:add-classes {execution: default}]
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO] Copying 2 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] Copying 25 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation.
[INFO] [warpath:add-classes {execution: default}]
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO] Copying 2 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml
log4j:WARN Continuable parsing error 57 and column 64
log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack" of type ID must be unique within the document.
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: C:\Users\mypc\IdeaProjects\myapp\target\classes\jdbc.properties
alter table VehicleMaintenance drop foreign key FKD1C1D46712C9F342;
alter table user_role drop foreign key FK143BF46A4FD90D75;
alter table user_role drop foreign key FK143BF46AF503D155;
drop table if exists Vehicle;
drop table if exists VehicleMaintenance;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table Vehicle (id bigint not null auto_increment, VIN varchar(255), make varchar(255), model varchar(255), name varchar(255), year varchar
(255), primary key (id)) ENGINE=InnoDB;
create table VehicleMaintenance (id bigint not null auto_increment, alarmDate datetime, endDate datetime, name varchar(255), startDate datetime,
vehicle_id bigint, primary key (id)) ENGINE=InnoDB;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city v
archar(50) not null, country varchar(100), postal_code varchar(15) not null, province varchar(100), credentials_expired bit not null, email varch
ar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, pa
ssword_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id
)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), 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 VehicleMaintenance add index FKD1C1D46712C9F342 (vehicle_id), add constraint FKD1C1D46712C9F342 foreign key (vehicle_id) references V
ehicle (id);
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 {execution: default-testCompile}]
[INFO] Compiling 2 source files to C:\Users\mypc\IdeaProjects\myapp\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Users\mypc\IdeaProjects\myapp\target\surefire-reports
log4j:WARN Continuable parsing error 57 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 org.xinus.crud.dao.VehicleDaoTest
[myapp] INFO [main] VehicleDaoTest.loadContextLocations(210) | Loading context for locations: classpath:/applicationContext-resources.xml,classpa
th:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/applicationContext*.xml
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
Test: Add Vehicle
Vehicle added null
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testAddVehicle].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
Test: Get children
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testGetChildren].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testGetVehicle].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testGetVehicles].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testAddVehicleMaintenance].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testSaveVehicle].
[myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hib
ernateTransactionManager@739f3f]; rollback [true].
[myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class org.xinus.crud.model.Vehicle' object with id '1' not found...
[myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testRemoveVehicle].
Tests run: 7, Failures: 2, Errors: 5, Skipped: 0, Time elapsed: 15.952 sec <<< FAILURE!

Results :

Failed tests:
  testAddVehicle(org.xinus.crud.dao.VehicleDaoTest)
  testGetVehicles(org.xinus.crud.dao.VehicleDaoTest)

Tests in error:
  testGetChildren(org.xinus.crud.dao.VehicleDaoTest)
  testGetVehicle(org.xinus.crud.dao.VehicleDaoTest)
  testAddVehicleMaintenance(org.xinus.crud.dao.VehicleDaoTest)
  testSaveVehicle(org.xinus.crud.dao.VehicleDaoTest)
  testRemoveVehicle(org.xinus.crud.dao.VehicleDaoTest)

Tests run: 7, Failures: 2, Errors: 5, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to C:\Users\mypc\IdeaProjects\myapp\target\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 22 seconds
[INFO] Finished at: Wed Jul 29 09:59:40 PDT 2009
[INFO] Final Memory: 33M/59M
[INFO] ------------------------------------------------------------------------
C:\Users\mypc\IdeaProjects\myapp>
When i printed id of saved vehicle in testSaveVehicle it is coming as null. At console it is showing as rolling back
here it is
.
.
.
Vehicle added null
myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back transaction after execution of test [testAddVehicle].
.
.
Reply | Threaded
Open this post in threaded view
|

RE: I have started all over again

mraible
Administrator
Do you have Vehicle data in your sample-data.xml?

-----Original Message-----
From: spsarolkar [mailto:[hidden email]]
Sent: Wednesday, July 29, 2009 10:34 AM
To: [hidden email]
Subject: Re: [appfuse-user] I have started all over again



Here is a test report

----------------------------------------------------------------------------
---
Test set: org.xinus.crud.dao.VehicleDaoTest
----------------------------------------------------------------------------
---
Tests run: 7, Failures: 2, Errors: 5, Skipped: 0, Time elapsed: 13.35 sec
<<< FAILURE!
testAddVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 12.186 sec
<<< FAILURE!
junit.framework.AssertionFailedError: null
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertNotNull(Assert.java:214)
        at junit.framework.Assert.assertNotNull(Assert.java:207)
        at
org.xinus.crud.dao.VehicleDaoTest.testAddVehicle(VehicleDaoTest.java:36)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.jav
a: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(Ab
stractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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(SurefireB
ooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:100
9)

testGetChildren(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.159 sec
<<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class
[org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at
org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:7
5)
        at
org.xinus.crud.dao.hibernate.VehicleDaoHibernate.getAllChildren(VehicleDaoHi
bernate.java:21)
        at
org.xinus.crud.dao.VehicleDaoTest.testGetChildren(VehicleDaoTest.java:41)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.jav
a: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(Ab
stractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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(SurefireB
ooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:100
9)

testGetVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.08 sec
<<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class
[org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at
org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:7
5)
        at
org.xinus.crud.dao.VehicleDaoTest.testGetVehicle(VehicleDaoTest.java:48)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.jav
a: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(Ab
stractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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(SurefireB
ooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:100
9)

testGetVehicles(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.437 sec
<<< FAILURE!
junit.framework.AssertionFailedError: null
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertTrue(Assert.java:27)
        at
org.xinus.crud.dao.VehicleDaoTest.testGetVehicles(VehicleDaoTest.java:54)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.jav
a: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(Ab
stractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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(SurefireB
ooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:100
9)

testAddVehicleMaintenance(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed:
0.085 sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class
[org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at
org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:7
5)
        at
org.xinus.crud.dao.VehicleDaoTest.testAddVehicleMaintenance(VehicleDaoTest.j
ava:57)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.jav
a: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(Ab
stractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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(SurefireB
ooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:100
9)

testSaveVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.05 sec
<<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class
[org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at
org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:7
5)
        at
org.xinus.crud.dao.VehicleDaoTest.testSaveVehicle(VehicleDaoTest.java:72)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.jav
a: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(Ab
stractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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(SurefireB
ooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:100
9)

testRemoveVehicle(org.xinus.crud.dao.VehicleDaoTest)  Time elapsed: 0.023
sec  <<< ERROR!
org.springframework.orm.ObjectRetrievalFailureException: Object of class
[org.xinus.crud.model.Vehicle] with identifier [1]: not found
        at
org.appfuse.dao.hibernate.GenericDaoHibernate.get(GenericDaoHibernate.java:7
5)
        at
org.appfuse.dao.hibernate.GenericDaoHibernate.remove(GenericDaoHibernate.jav
a:102)
        at
org.xinus.crud.dao.VehicleDaoTest.testRemoveVehicle(VehicleDaoTest.java:77)
        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 junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.jav
a: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(Ab
stractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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(SurefireB
ooter.java:345)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:100
9)


Here is my VehicleDaoTest

spsarolkar wrote:

>
> package org.xinus.crud.dao;
>
> import org.xinus.crud.model.Vehicle;
> import org.xinus.crud.model.VehicleMaintenance;
> import org.appfuse.dao.BaseDaoTestCase;
> import org.springframework.orm.ObjectRetrievalFailureException;
>
> import java.util.List;
> import java.util.Iterator;
>
> /**
>  * Created by IntelliJ IDEA.
>  * User: mypc
>  * Date: Jul 29, 2009
>  * Time: 6:59:18 AM
>  * To change this template use File | Settings | File Templates.
>  */
> public class VehicleDaoTest extends BaseDaoTestCase {
>     private Long vehicleId = new Long(1);
>     private VehicleDao<Vehicle,Long> vehicleDao = null;
>
>     public void setVehicleDao(VehicleDao<Vehicle, Long> vehicleDao) {
>         this.vehicleDao = vehicleDao;
>     }
>     public void testAddVehicle() throws Exception{
>         System.out.println("Test: Add Vehicle");
>         Vehicle vehicle = new Vehicle();
>         vehicle.setName("David's Truck");
>         vehicle.setMake("Ford");
>         vehicle.setModel("F-150");
>         vehicle.setYear("1995");
>         vehicle.setVIN("12345ABCDEF");
>         vehicleDao.save(vehicle);
>        
>         System.out.println("Vehicle added "+vehicle.getId());
>         assertNotNull(vehicle.getId());
>         assertEquals(vehicle.getName(),"David's Truck");
>     }
>     public void testGetChildren() throws Exception{
>         System.out.println("Test: Get children");
>         List list = vehicleDao.getAllChildren(vehicleId);
>         for(Iterator iter = list.iterator();iter.hasNext();){
>             VehicleMaintenance
> vehicleMaintenance=(VehicleMaintenance)iter.next();
>             System.out.println("Dao GetChildrenTest:" +
> vehicleMaintenance.getName());
>         }
>     }
>     public void testGetVehicle()throws Exception{
>         Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
>         assertNotNull(vehicle);
>     }
>     public void testGetVehicles() throws Exception{
>         Vehicle vehicle = new Vehicle();
>         List results = vehicleDao.getAll();
>         assertTrue(results.size()>0);
>     }
>     public void testAddVehicleMaintenance()throws Exception{
>         Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
>         VehicleMaintenance vehicleMaintenance=new VehicleMaintenance();
>         vehicleMaintenance.setName("Oil Change");
>         vehicle.getVehicleMaintenances().add(vehicleMaintenance);
>         vehicleDao.save(vehicle);
>         vehicle=null;
>         vehicle= (Vehicle) vehicleDao.get(vehicleId);
>         List list = vehicle.getVehicleMaintenances();
>         assertTrue(list.size()>0);
>     }
>     public void getVehicleMaintenance() throws Exception{
>         List results = vehicleDao.getAllChildren(vehicleId);
>         assertTrue(results.size()>0);
>     }
>     public void testSaveVehicle() throws Exception{
>         Vehicle vehicle = (Vehicle) vehicleDao.get(vehicleId);
>         vehicleDao.save(vehicle);
>     }
>     public void testRemoveVehicle() throws Exception{
>         Long removeId = new Long("1");
>         vehicleDao.remove(removeId);
>         try{
>             Vehicle vehicle = (Vehicle) vehicleDao.get(removeId);
>             fail("Vehicle found in database");
>         }catch(ObjectRetrievalFailureException e){
>             assertNotNull(e.getMessage());
>         }
>     }
> }
>
Here is my application context.xml

spsarolkar wrote:

>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
>        default-lazy-init="true">
>     <bean class="org.appfuse.dao.spring.HibernateExtensionPostProcessor">
>         <property name="annotatedClasses">
>             <list>
>                 <value>org.xinus.crud.model.Vehicle</value>
>                 <value>org.xinus.crud.model.VehicleMaintenance</value>
>             </list>
>         </property>
>     </bean>
>     <bean id="vehicleManager"
> class="org.appfuse.service.impl.GenericManagerImpl">
>           <constructor-arg>
>               <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate"
> autowire="byType">
>                      <constructor-arg
> value="org.xinus.crud.model.Vehicle"/>
>               </bean>
>           </constructor-arg>
>     </bean>
>     <bean id="vehicleAction" class="org.xinus.crud.action.VehicleAction"
> scope="prototype">
>              <property name="vehicleManager" ref="vehicleManager"/>
>     </bean>
>     <bean id="vehicleDao"
> class="org.xinus.crud.dao.hibernate.VehicleDaoHibernate">
>         <property name="sessionFactory" ref="sessionFactory"/>
>     </bean>
>     <bean id="vehicleActionTest"
> class="org.xinus.crud.dao.VehicleDaoTest">
>            <property name="vehicleDao" ref="vehicleDao"/>
>     </bean>
>     <!-- Add new DAOs here -->
>
>     <!-- Add new Managers here -->
>
>     <!-- Add new Actions here -->
> </beans>
>

For applicationContext.xml
Idea is showing
.
.
.
<bean id="vehicleActionTest" class="org.xinus.crud.dao.VehicleDaoTest">
           <property name="vehicleDao" ref="vehicleDao"/>
    </bean>
.
.
.
Cannot resolve property vehicleDao at...name=vehicleDao...
But i have setVehicleDao in my VehicleDaoTest

When i run mvn clean test -Dusefile=false -Dtest="VehicleDaoTest"
I get output as

spsarolkar wrote:

>
> C:\Users\mypc\IdeaProjects\myapp>mvn clean test -Dusefile=false
> -Dtest="VehicleDaoTest"
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building AppFuse Struts 2 Application
> [INFO]    task-segment: [clean, test]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting directory C:\Users\mypc\IdeaProjects\myapp\target
> [WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.
>
> Its dependencies (if any) will NOT be available to the current build.
> [INFO] [warpath:add-classes {execution: default}]
> [INFO] [aspectj:compile {execution: default}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] File encoding has not been set, using platform encoding Cp1252,
> i.e. build is platform dependent!
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 13 resources
> [INFO] Copying 2 resources
> [INFO] Copying 33 resources
> [INFO] Copying 33 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [WARNING] File encoding has not been set, using platform encoding Cp1252,
> i.e. build is platform dependent!
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 4 resources
> [INFO] Copying 25 resources
> [INFO] Preparing hibernate3:hbm2ddl
> [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
> invocation.
> [INFO] [warpath:add-classes {execution: default}]
> [INFO] [aspectj:compile {execution: default}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] File encoding has not been set, using platform encoding Cp1252,
> i.e. build is platform dependent!
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 13 resources
> [INFO] Copying 2 resources
> [INFO] Copying 33 resources
> [INFO] Copying 33 resources
> [INFO] Copying 33 resources
> [INFO] Copying 33 resources
> [INFO] [hibernate3:hbm2ddl {execution: default}]
> [INFO] Configuration XML file loaded:
>
file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml
> log4j:WARN Continuable parsing error 57 and column 64
> log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack"
> of type ID must be unique within the document.
> [INFO] Configuration XML file loaded:
>
file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml

> [INFO] Configuration Properties file loaded:
> C:\Users\mypc\IdeaProjects\myapp\target\classes\jdbc.properties
> alter table VehicleMaintenance drop foreign key FKD1C1D46712C9F342;
> alter table user_role drop foreign key FK143BF46A4FD90D75;
> alter table user_role drop foreign key FK143BF46AF503D155;
> drop table if exists Vehicle;
> drop table if exists VehicleMaintenance;
> drop table if exists app_user;
> drop table if exists role;
> drop table if exists user_role;
> create table Vehicle (id bigint not null auto_increment, VIN varchar(255),
> make varchar(255), model varchar(255), name varchar(255), year varchar
> (255), primary key (id)) ENGINE=InnoDB;
> create table VehicleMaintenance (id bigint not null auto_increment,
> alarmDate datetime, endDate datetime, name varchar(255), startDate
> datetime,
> vehicle_id bigint, primary key (id)) ENGINE=InnoDB;
> create table app_user (id bigint not null auto_increment, account_expired
> bit not null, account_locked bit not null, address varchar(150), city v
> archar(50) not null, country varchar(100), postal_code varchar(15) not
> null, province varchar(100), credentials_expired bit not null, email varch
> ar(255) not null unique, account_enabled bit, first_name varchar(50) not
> null, last_name varchar(50) not null, password varchar(255) not null, pa
> ssword_hint varchar(255), phone_number varchar(255), username varchar(50)
> not null unique, version integer, website varchar(255), primary key (id
> )) ENGINE=InnoDB;
> create table role (id bigint not null auto_increment, description
> varchar(64), name varchar(20), 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 VehicleMaintenance add index FKD1C1D46712C9F342 (vehicle_id),
> add constraint FKD1C1D46712C9F342 foreign key (vehicle_id) references V
> ehicle (id);
> 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 {execution: default-testCompile}]
> [INFO] Compiling 2 source files to
> C:\Users\mypc\IdeaProjects\myapp\target\test-classes
> [INFO] [dbunit:operation {execution: test-compile}]
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory:
> C:\Users\mypc\IdeaProjects\myapp\target\surefire-reports
> log4j:WARN Continuable parsing error 57 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 org.xinus.crud.dao.VehicleDaoTest
> [myapp] INFO [main] VehicleDaoTest.loadContextLocations(210) | Loading
> context for locations: classpath:/applicationContext-resources.xml,classpa
>
th:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:
**/applicationContext*.xml

> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> Test: Add Vehicle
> Vehicle added null
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testAddVehicle].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> Test: Get children
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testGetChildren].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testGetVehicle].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testGetVehicles].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testAddVehicleMaintenance].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testSaveVehicle].
> [myapp] DEBUG [main] VehicleDaoTest.startNewTransaction(392) | Began
> transaction (1): transaction manager
> [org.springframework.orm.hibernate3.Hib
> ernateTransactionManager@739f3f]; rollback [true].
> [myapp] WARN [main] VehicleDaoHibernate.get(74) | Uh oh, 'class
> org.xinus.crud.model.Vehicle' object with id '1' not found...
> [myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
> transaction after execution of test [testRemoveVehicle].
> Tests run: 7, Failures: 2, Errors: 5, Skipped: 0, Time elapsed: 15.952 sec
> <<< FAILURE!
>
> Results :
>
> Failed tests:
>   testAddVehicle(org.xinus.crud.dao.VehicleDaoTest)
>   testGetVehicles(org.xinus.crud.dao.VehicleDaoTest)
>
> Tests in error:
>   testGetChildren(org.xinus.crud.dao.VehicleDaoTest)
>   testGetVehicle(org.xinus.crud.dao.VehicleDaoTest)
>   testAddVehicleMaintenance(org.xinus.crud.dao.VehicleDaoTest)
>   testSaveVehicle(org.xinus.crud.dao.VehicleDaoTest)
>   testRemoveVehicle(org.xinus.crud.dao.VehicleDaoTest)
>
> Tests run: 7, Failures: 2, Errors: 5, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to C:\Users\mypc\IdeaProjects\myapp\target\surefire-reports
> for the individual test results.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 22 seconds
> [INFO] Finished at: Wed Jul 29 09:59:40 PDT 2009
> [INFO] Final Memory: 33M/59M
> [INFO]
> ------------------------------------------------------------------------
> C:\Users\mypc\IdeaProjects\myapp>
>
When i printed id of saved vehicle in testSaveVehicle it is coming as null.
At console it is showing as rolling back
here it is
.
.
.
Vehicle added null
myapp] DEBUG [main] VehicleDaoTest.endTransaction(360) | Rolled back
transaction after execution of test [testAddVehicle].
.
.
--
View this message in context:
http://www.nabble.com/Problems-after-running-appfuse%3Afull-source-tp2469622
2s2369p24724086.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: I have started all over again

spsarolkar
Thanks, it was at wrong place (src/main/resources)
But now there is error as
C:\Users\mypc\IdeaProjects\myapp>mvn -e clean test -Dusefile=false -Dtest="VehicleDaoTest"
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [clean, test]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\Users\mypc\IdeaProjects\myapp\target
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [warpath:add-classes {execution: default}]
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO] Copying 2 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] Copying 25 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation.
[INFO] [warpath:add-classes {execution: default}]
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO] Copying 2 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] Copying 33 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml
log4j:WARN Continuable parsing error 57 and column 64
log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack" of type ID must be unique within the document.
[INFO] Configuration XML file loaded: file:/C:/Users/mypc/IdeaProjects/myapp/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: C:\Users\mypc\IdeaProjects\myapp\target\classes\jdbc.properties
alter table VehicleMaintenance drop foreign key FKD1C1D46712C9F342;
alter table user_role drop foreign key FK143BF46A4FD90D75;
alter table user_role drop foreign key FK143BF46AF503D155;
drop table if exists Vehicle;
drop table if exists VehicleMaintenance;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table Vehicle (id bigint not null auto_increment, VIN varchar(255), make varchar(255), model varchar(255), name varchar(255), year varchar
(255), primary key (id)) ENGINE=InnoDB;
create table VehicleMaintenance (id bigint not null auto_increment, alarmDate datetime, endDate datetime, name varchar(255), startDate datetime,
vehicle_id bigint, primary key (id)) ENGINE=InnoDB;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city v
archar(50) not null, country varchar(100), postal_code varchar(15) not null, province varchar(100), credentials_expired bit not null, email varch
ar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, pa
ssword_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id
)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), 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 VehicleMaintenance add index FKD1C1D46712C9F342 (vehicle_id), add constraint FKD1C1D46712C9F342 foreign key (vehicle_id) references V
ehicle (id);
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 {execution: default-testCompile}]
[INFO] Compiling 2 source files to C:\Users\mypc\IdeaProjects\myapp\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing database operation: CLEAN_INSERT

Embedded error: Error casting value for table 'vehiclemaintenance' and column 'alarmDate'
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing database operation: CLEAN_INSERT
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41)
        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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing database operation: CLEAN_INSERT
        at org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        ... 17 more
Caused by: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'vehiclemaintenance' and column 'alarmDate'
        at org.dbunit.operation.AbstractBatchOperation.execute(AbstractBatchOperation.java:182)
        at org.dbunit.operation.CompositeOperation.execute(CompositeOperation.java:67)
        at org.dbunit.ant.Operation.execute(Operation.java:183)
        at org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:101)
        ... 19 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 52 seconds
[INFO] Finished at: Wed Jul 29 11:27:56 PDT 2009
[INFO] Final Memory: 32M/57M
[INFO] ------------------------------------------------------------------------
C:\Users\mypc\IdeaProjects\myapp>


sample-data is
.
.
.
    <column>id</column>
    <column>name</column>
    <column>make</column>
    <column>model</column>
    <column>year</column>
    <column>vin</column>

    <row>
        <value>1</value>
        <value>David's Truck</value>
        <value>Ford</value>
        <value>F-150</value>
        <value>1995</value>
        <value>ABC123</value>
    </row>
    <row>
        <value>2</value>
        <value>Kim's van</value>
        <value>Dodge</value>
        <value>Caravan</value>
        <value>2003</value>
        <value>ZZZ987</value>
    </row>
      <column>id</column>
      <column>name</column>
      <column>alarmDate</column>
      <column>startDate</column>
      <column>endDate</column>
      <column>vehicle_id</column>
      <row>
          <value>1</value>
          <value>Oil Change</value>
          <value>
<![CDATA[1960-06-01 00:00:00.0]]>
]</value>
          <value>
<![CDATA[1960-06-01 00:00:00.0]]>
]</value>
          <value>
<![CDATA[1960-06-01 00:00:00.0]]>
]</value>
          <value>1</value>
      </row>
      <row>
          <value>2</value>
          <value>New Tires</value>
          <value>
<![CDATA[1960-06-01 00:00:00.0]]>
]</value>
          <value>
<![CDATA[1960-06-01 00:00:00.0]]>
]</value>
          <value>
<![CDATA[1960-06-01 00:00:00.0]]>
]</value>
          <value>1</value>
      </row>
  .
.
Reply | Threaded
Open this post in threaded view
|

RE: I have started all over again [RESOLVED]

spsarolkar

I didn't written it correctly

sample-data.xml
.
.
.
<value>
<![CDATA[1960-06-01 00:00:00.0]]>
]</value>
.
.
.
should have been
.
.
.
<value>
<![CDATA[1960-06-01 00:00:00.0]]>
</value>
.
.
.
hush... it was very irritating