I can do debug for "mvn jetty:run-exploded" but I'm not sure it works for mvn integration-test -Dtest=MyTest.
I have exception that appears only in integration-test. So I put two breakpoints: one break point in TestAction:list and another in org.hibernate.type.EnumType at line 118. During tests exception is thrown but no stops at breakpoints. Exception: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.ClassCastException: java.lang.Boolean org.hibernate.type.EnumType.nullSafeSet(EnumType.java:118) org.hibernate.type.CustomType.nullSafeSet(CustomType.java:146) org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1947) org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2321) org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2257) org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2557) org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140) org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:562) org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:654) org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:624) org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:307) org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:117) org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210) $Proxy31.getFiltred(Unknown Source) test.webapp.action.TestAction.list(TestAction.java:30) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... IDEA log: Connected to the target VM, address: 'localhost:4000', transport: 'socket' Disconnected from the target VM, address: 'localhost:4000', transport: 'socket' Console: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: ...web-tests.xml:316: Canoo Webtest: R_1454. Test failed. Test step steps (.../web-tests.xml:318: ) null failed with message "Step[invoke "click View Test link" (7/8)]: HTTP error 500, at: invoke" I guess I need to run ant in debug mode? How I can do that? Matt Raible-3 wrote: > > What IDE are you using? You should be able to debug in any IDE by > adding its debug parameters to a MAVEN_OPTS environment variable. > Then create a profile in the IDE that attaches to the process once > it's up and running. Here's some instructions for Eclipse: > > http://appfuse.org/display/APF/Eclipse#Eclipse-debugging > > If you need further instructions, please let me know and I'll try to write > them. > > Matt > > On 2/16/07, ros <[EMAIL PROTECTED]> wrote: >> >> Matt, thanks. >> Is it possible to debug code during mvn integration-test? >> >> >> Matt Raible-3 wrote: >> > >> > You should be able to debug your test directly from the IDE. If >> > you're relying on pre-existing data, you may have to run "mvn >> > dbunit:operation" first. >> > >> > Matt >> > >> -- >> View this message in context: >> http://www.nabble.com/apfuse2%2Bhibernate---GenericDaoHibernate-getAll-returns-duplicate-entities-%28users%29-tf3227657s2369.html#a9003589 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/apfuse2%2Bhibernate---GenericDaoHibernate-getAll-returns-duplicate-entities-%28users%29-tf3227657s2369.html#a9041262 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]