Thanks Matt. Hope you get another beer tonight!!!!
GreenHorn.
mraible wrote:
>
> No, as I mentioned, these exceptions are expected when trying to enter a
> user in with the same email address. You could modify the code to swallow
> the exception and not display it, but that seems like a bad coding
> practice.
> ;-)
>
> Matt
>
> On Wed, Sep 2, 2009 at 4:05 AM, Greenhorn2005 <[email protected]>
> wrote:
>
>>
>> Dear Matt,
>>
>> Yes the build is "SUCCESSFUL". But the exception shows. My doubt is that
>> shouldn't it corrected before proceeding???? Anyway, Thanks.
>>
>>
>>
>>
>> mraible wrote:
>> >
>> > Are you sure these exceptions are failures? Does your build say
>> > "SUCCESSFUL"
>> > at the end? Some of these exceptions are expected and the tests assure
>> > they
>> > happen.
>> >
>> > Matt
>> >
>> > On Tue, Sep 1, 2009 at 6:45 AM, Greenhorn2005 <[email protected]>
>> > wrote:
>> >
>> >>
>> >> Thanks Matt. I have changed my mind and take your suggestion. Now I am
>> >> trying
>> >> to put the two logins into one. This means that I have to do mvn
>> >> appfuse:full-source in order to change the app_user model.
>> >> Though I am using new version of appfuse 2.0.2, when I do mvn clean
>> >> jetty:run-war, I get the following test exception errors ...
>> >> and is given below....
>> >>
>> >> -------------------------------------------------------
>> >> T E S T S
>> >> -------------------------------------------------------
>> >> Running com.trailsindia.innform.util.DateConverterTest
>> >> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.133
>> sec
>> >> Running com.trailsindia.innform.dao.UniversalDaoTest
>> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.682
>> sec
>> >> Running com.trailsindia.innform.service.impl.LookupManagerImplTest
>> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.082
>> sec
>> >> Running com.trailsindia.innform.webapp.filter.StaticFilterTest
>> >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032
>> sec
>> >> Running com.trailsindia.innform.webapp.listener.StartupListenerTest
>> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.818
>> sec
>> >> Running com.trailsindia.innform.util.DateUtilTest
>> >> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007
>> sec
>> >> Running com.trailsindia.innform.service.MailEngineTest
>> >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.516
>> sec
>> >> Running com.trailsindia.innform.webapp.action.PasswordHintActionTest
>> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.639
>> sec
>> >> Running com.trailsindia.innform.service.impl.UniversalManagerTest
>> >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019
>> sec
>> >> Running com.trailsindia.innform.service.UserManagerTest
>> >> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.289
>> sec
>> >> Running com.trailsindia.innform.dao.RoleDaoTest
>> >> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.104
>> sec
>> >> Running com.trailsindia.innform.webapp.action.UserActionTest
>> >> org.springframework.dao.DataIntegrityViolationException: could not
>> >> update:
>> >> [com.trailsindia.innform.model.User#-1]; nested exception is
>> >> org.hibernate.exception.ConstraintViolationException: could not
>> update:
>> >> [com.trailsindia.innform.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
>> >>
>> >>
>> com.trailsindia.innform.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 $Proxy40.saveUser(Unknown Source)
>> >> at
>> >>
>> >>
>> com.trailsindia.innform.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 $Proxy42.saveUser(Unknown Source)
>> >> at
>> >>
>> com.trailsindia.innform.webapp.action.UserAction.save(UserAction.java:177)
>> >> at
>> >>
>> >>
>> com.trailsindia.innform.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: [com.trailsindia.innform.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 '[email protected]' 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.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
>> >> at
>> >>
>> >>
>> org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
>> >> at
>> >>
>> >>
>> org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
>> >> ... 67 more
>> >> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.207
>> sec
>> >> Running com.trailsindia.innform.dao.UserDaoTest
>> >> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.12
>> sec
>> >> Running com.trailsindia.innform.service.impl.UserManagerImplTest
>> >> 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 $Proxy45.saveUser(Unknown Source)
>> >> at
>> >>
>> >>
>> com.trailsindia.innform.service.impl.UserManagerImpl.saveUser(UserManagerImpl.java:101)
>> >> at
>> >>
>> >>
>> com.trailsindia.innform.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)
>> >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056
>> sec
>> >> Running com.trailsindia.innform.AppTest
>> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002
>> sec
>> >> Running
>> com.trailsindia.innform.dao.hibernate.HibernateConfigurationTest
>> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056
>> sec
>> >> Running com.trailsindia.innform.service.UserExistsExceptionTest
>> >> org.springframework.dao.DataIntegrityViolationException: could not
>> >> insert:
>> >> [com.trailsindia.innform.model.User]; nested exception is
>> >> org.hibernate.exception.ConstraintViolationException: could not
>> insert:
>> >> [com.trailsindia.innform.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
>> >>
>> >>
>> com.trailsindia.innform.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 $Proxy40.saveUser(Unknown Source)
>> >> at
>> >>
>> >>
>> com.trailsindia.innform.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 $Proxy42.saveUser(Unknown Source)
>> >> at
>> >>
>> >>
>> com.trailsindia.innform.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: [com.trailsindia.innform.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 '[email protected]' 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.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
>> >> at
>> >>
>> >>
>> org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
>> >> at
>> >>
>> >>
>> org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
>> >> at
>> >>
>> >>
>> org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
>> >> ... 71 more
>> >>
>> >>
>> >>
>> >> I have tried to google it but found this
>> >> http://issues.appfuse.org/browse/APF-1008 but it is only for version
>> >> 2.0.1
>> >> not 2.0.2
>> >>
>> >> Any idea on how to fix it???
>> >>
>> >> Thanks once again.
>> >>
>> >> GreenHorn.
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Creating-two-logins-tp25219498s2369p25239730.html
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [email protected]
>> >> For additional commands, e-mail: [email protected]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Creating-two-logins-tp25219498s2369p25254794.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Creating-two-logins-tp25219498s2369p25269867.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]