67,513
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.mycompany.webapp.listener.StartupListenerTest
DEBUG [main] LookupDaoHibernate.getRoles(38) | Retrieving all role names...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.971 sec
Running com.mycompany.webapp.action.PasswordHintActionTest
WARN [main] PasswordHintAction.execute(37) | Username not specified, notifying u
ser that it's a required field.
WARN [main] PasswordHintAction.execute(74) | user 'UNKNOWN123' not found...
DEBUG [main] UserDaoHibernate.saveUser(49) | user's id: -2
WARN [main] PasswordHintAction.execute(74) | user 'manager' not found...
DEBUG [main] UserDaoHibernate.saveUser(49) | user's id: -2
WARN [main] PasswordHintAction.execute(74) | user 'manager' not found...
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.468 sec
Running com.mycompany.webapp.action.SignupActionTest
DEBUG [main] UserDaoHibernate.saveUser(49) | user's id: null
DEBUG [main] UserDaoHibernate.saveUser(49) | user's id: null
WARN [main] JDBCExceptionReporter.logExceptions(233) | SQL Error: 1062, SQLState
: 23000
ERROR [main] JDBCExceptionReporter.logExceptions(234) | Duplicate entry 'self-re
gistered@raibledesigns.com' for key 2
WARN [main] UserManagerImpl.saveUser(96) | could not insert: [org.appfuse.model.
User]; SQL [insert into app_user (account_expired, account_locked, address, city
, country, postal_code, province, credentials_expired, email, account_enabled, f
irst_name, last_name, password, password_hint, phone_number, username, version,
website) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constra
int [null]; nested exception is org.hibernate.exception.ConstraintViolationExcep
tion: could not insert: [org.appfuse.model.User]
WARN [main] SignupAction.save(83) | User 'self-registered' already exists!
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec
Running com.mycompany.webapp.filter.LocaleFilterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec
Running com.mycompany.webapp.action.UserActionTest
DEBUG [main] UserDaoHibernate.saveUser(49) | user's id: -1
DEBUG [main] UserDaoHibernate.saveUser(49) | user's id: -1
WARN [main] JDBCExceptionReporter.logExceptions(233) | SQL Error: 1062, SQLState
: 23000
ERROR [main] JDBCExceptionReporter.logExceptions(234) | Duplicate entry 'matt@ra
ibledesigns.com' for key 2
ERROR [main] AbstractFlushingEventListener.performExecutions(324) | Could not sy
nchronize database state with session
org.hibernate.exception.ConstraintViolationException: could not update: [org.app
fuse.model.User#-1]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j
ava:96)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp
er.java:66)
at org.hibernate.persister.entity.AbstractEntityPersister.update(Abstrac
tEntityPersister.java:2612)
at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert
(AbstractEntityPersister.java:2494)
......
at org.hibernate.persister.entity.AbstractEntityPersister.update(Abstrac
tEntityPersister.java:2594)
... 81 more
WARN [main] UserManagerImpl.saveUser(96) | could not update: [org.appfuse.model.
User#-1]; SQL [update app_user set account_expired=?, account_locked=?, address=
?, city=?, country=?, postal_code=?, province=?, credentials_expired=?, email=?,
account_enabled=?, first_name=?, last_name=?, password=?, password_hint=?, phon
e_number=?, username=?, version=?, website=? where id=? and version=?]; constrai
nt [null]; nested exception is org.hibernate.exception.ConstraintViolationExcept
ion: could not update: [org.appfuse.model.User#-1]
DEBUG [main] UserManagerImpl.removeUser(109) | removing user: -2
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.305 sec <<< FA
ILURE!
Results :
Tests in error:
testSearch(com.mycompany.webapp.action.UserActionTest)
Tests run: 22, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to D:\workspace\myproject\target\surefire-reports for the individua
l test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36 seconds
[INFO] Finished at: Tue Oct 25 16:07:23 CST 2011
[INFO] Final Memory: 31M/60M
[INFO] ------------------------------------------------------------------------
加载中
试试用AI创作助手写篇文章吧