|
|
|
open_source_junkie
|
Hi,
I installed equinox-1.7.1 and did mvn clean install followed by mvn test. Here is what I get. I am using mysql database instead of postgressql so I have changed pom.xml with <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.0.5</version> </dependency> When the tests run, I am getting the error below - in essence ERROR - SchemaUpdate.execute(165) | could not complete schema update com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'equinox.pg_class' do esn't exist . Do I need to create something for MySQL database? ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.appfuse.service.impl.UserManagerImplTest DEBUG - UserManagerImplTest.testAddAndRemoveUser(38) | removing user... DEBUG - UserManagerImplTest.testAddAndRemoveUser(62) | Expected exception: Objec t of class [org.appfuse.model.User] with identifier [1]: not found Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec Running org.appfuse.service.UserManagerTest INFO - AbstractSingleSpringContextTests.loadContextLocations(180) | Loading cont ext for: classpath*:/WEB-INF/applicationContext*.xml ERROR - SchemaUpdate.execute(134) | could not get database metadata com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'equinox.pg_class' do esn't exist at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) 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:3243) at com.mysql.jdbc.Connection.execSQL(Connection.java:3172) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1197) at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt atement.java:205) at org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMet adata.java:128) at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.j ava:46) at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.j ava:39) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java: 314) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav a:1291) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession Factory(LocalSessionFactoryBean.java:804) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessi onFactory(LocalSessionFactoryBean.java:744) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPr opertiesSet(AbstractSessionFactoryBean.java:131) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:429) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ject(AbstractBeanFactory.java:250) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:247) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:161) at org.springframework.beans.factory.support.BeanDefinitionValueResolver .resolveReference(BeanDefinitionValueResolver.java:245) at org.springframework.beans.factory.support.BeanDefinitionValueResolver .resolveValueIfNecessary(BeanDefinitionValueResolver.java:124) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1019) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.populateBean(AbstractAutowireCapableBeanFactory.java:809) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ject(AbstractBeanFactory.java:250) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:247) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:161) at org.springframework.beans.factory.support.BeanDefinitionValueResolver .resolveReference(BeanDefinitionValueResolver.java:245) at org.springframework.beans.factory.support.BeanDefinitionValueResolver .resolveValueIfNecessary(BeanDefinitionValueResolver.java:124) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1019) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.populateBean(AbstractAutowireCapableBeanFactory.java:809) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.BeanDefinitionValueResolver .resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:197) at org.springframework.beans.factory.support.BeanDefinitionValueResolver .resolveValueIfNecessary(BeanDefinitionValueResolver.java:112) at org.springframework.beans.factory.support.AbstractAutowireCapableBean actory.initializeBean(AbstractAutowireCapableBeanFactory.java:1094) at org.springframework.beans.factory.support.AbstractAutowireCapableBean actory.createBean(AbstractAutowireCapableBeanFactory.java:429) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ect(AbstractBeanFactory.java:250) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr .getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean AbstractBeanFactory.java:247) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean AbstractBeanFactory.java:161) at org.springframework.beans.factory.support.DefaultListableBeanFactory. reInstantiateSingletons(DefaultListableBeanFactory.java:273) at org.springframework.context.support.AbstractApplicationContext.refres (AbstractApplicationContext.java:346) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:92) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:77) at org.springframework.test.AbstractSingleSpringContextTests.loadContext ocations(AbstractSingleSpringContextTests.java:182) at org.springframework.test.AbstractSingleSpringContextTests.loadContext AbstractSingleSpringContextTests.java:152) at org.springframework.test.AbstractSpringContextTests.getContext(Abstra tSpringContextTests.java:105) at org.springframework.test.AbstractSingleSpringContextTests.setUp(Abstr ctSingleSpringContextTests.java:83) at junit.framework.TestCase.runBare(TestCase.java:125) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestC se.java:69) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. ava:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces orImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav :213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes Set(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab tractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. ava:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces orImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su efireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j va:818) RROR - SchemaUpdate.execute(165) | could not complete schema update om.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'equinox.pg_class' do sn't exist at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) 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:3243) at com.mysql.jdbc.Connection.execSQL(Connection.java:3172) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1197) at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt tement.java:205) at org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMet data.java:128) at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.j va:46) at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.j va:39) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:129 at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java: 14) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:129 ) ava:818) WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1146, SQLState: 42S0 2 ERROR - JDBCExceptionReporter.logExceptions(78) | Table 'equinox.app_user' doesn 't exist WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1146, SQLState: 42S0 2 ERROR - JDBCExceptionReporter.logExceptions(78) | Table 'equinox.app_user' doesn 't exist WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1146, SQLState: 42S0 2 ERROR - JDBCExceptionReporter.logExceptions(78) | Table 'equinox.app_user' doesn 't exist WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1146, SQLState: 42S0 2 ERROR - JDBCExceptionReporter.logExceptions(78) | Table 'equinox.app_user' doesn 't exist Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.656 sec <<< FA ILURE! Results : Tests in error: testGetUsers(org.appfuse.service.UserManagerTest) testGetUsers(org.appfuse.dao.UserDaoTest) testSaveUser(org.appfuse.dao.UserDaoTest) testAddAndRemoveUser(org.appfuse.dao.UserDaoTest) testSearch(org.appfuse.web.UserActionTest) testEdit(org.appfuse.web.UserActionTest) testSave(org.appfuse.web.UserActionTest) testRemove(org.appfuse.web.UserActionTest) Tests run: 9, Failures: 0, Errors: 8, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.BuildFailureException: There are test failures. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:560) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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.MojoFailureException: There are test failures . at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugi n.java:425) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:420) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) |
||||||||||||||||
|
mraible
|
You'll need to change src/main/resources/jdbc.properties as well as src/main/webapp/WEB-INF/applicationContext-hibernate.xml.
Matt On 3/27/07, nmall
<[hidden email]> wrote:
-- http://raibledesigns.com |
|
open_source_junkie
|
Thanks, I did change the jdbc.properties and applicationContext-hibernate.xml. But here is the error I am still getting - this is what I see in test-reports/all-errors. Anything else I need to do for Hibernate.
JDBC exception on Hibernate data access; nested exception is org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access; nested exception is org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator Caused by: org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.id.IncrementGenerator.getNext(IncrementGenerator.java:107) at org.hibernate.id.IncrementGenerator.generate(IncrementGenerator.java:44) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:98) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98) 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:684) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:367) at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:681) at org.appfuse.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java:32) at org.appfuse.dao.UserDaoTest.testGetUsers(UserDaoTest.java:19) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69) Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'equinox.app_user' doesn't exist at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) 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.executeQuery(PreparedStatement.java:1403) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92) at org.hibernate.id.IncrementGenerator.getNext(IncrementGenerator.java:85)
|
||||||||||||||||
|
mraible
|
Are you using Hibernate or possibly Spring JDBC?
Matt On 3/27/07, nmall <[hidden email]
> wrote:
-- http://raibledesigns.com |
||||||||||||||||
|
kbighorse
|
In reply to this post
by mraible
How should applicationContext-<persistence-technology>.xml be changed? I think I broke mine trying to point Equinox to a pre-existing user database. I am using PostgreSQL though, with iBATIS and Struts 2. I edited jdbc.properties to point to my url and here's my test failure:
------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.appfuse.service.impl.UserManagerImplTest DEBUG - UserManagerImplTest.testAddAndRemoveUser(38) | removing user... DEBUG - UserManagerImplTest.testAddAndRemoveUser(62) | Expected exception: Object of class [org.appfuse.model.User] with identifier [1]: not found Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec Running org.appfuse.service.UserManagerTest INFO - AbstractSingleSpringContextTests.loadContextLocations(136) | Loading context for: classpath*:/WEB-INF/applicationContext*.xml Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.641 sec <<< FAILURE! Running org.appfuse.dao.UserDaoTest INFO - AbstractSingleSpringContextTests.loadContextLocations(136) | Loading context for: /WEB-INF/applicationContext*.xml Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 3.453 sec <<< FAILURE! Running org.appfuse.web.UserActionTest INFO - AbstractSingleSpringContextTests.loadContextLocations(136) | Loading context for: /WEB-INF/applicationContext*.xml,/WEB-INF/action-servlet.xml Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 4.594 sec <<< FAILURE! Results : Tests run: 9, Failures: 0, Errors: 8, Skipped: 0 Would love to develop to my real database! Thanks! |
||||||||||||||||
|
mraible
|
Can you post your applicationContext-<persistence-technoloy>.xml?
Matt On 3/27/07, kbighorse <[hidden email]> wrote:
-- http://raibledesigns.com |
||||||||||||||||
|
kbighorse
|
Thanks for your help! Here goes:
<?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"> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="${jdbc.driverClassName}"/> <property name="url" value="${jdbc.url}"/> <property name="username" value="${jdbc.username}"/> <property name="password" value="${jdbc.password}"/> <property name="maxActive" value="30"/> <property name="maxIdle" value="10"/> <property name="maxWait" value="1000"/> <property name="defaultAutoCommit" value="true"/> </bean> <!-- Transaction manager for iBATIS Daos --> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"/> </bean> <!-- SqlMap setup for iBATIS Database Layer --> <bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"> <property name="dataSource" ref="dataSource"/> <property name="configLocation" value="classpath:/org/appfuse/dao/ibatis/sql-map-config.xml"/> </bean> <bean id="userIncrementer" class="org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer"> <property name="dataSource" ref="dataSource"/> <property name="incrementerName" value="user_sequence"/> <!--property name="columnName"><value>value</value></property--> </bean> <bean id="userDao" class="org.appfuse.dao.ibatis.UserDaoiBatis"> <property name="incrementer" ref="userIncrementer"/> <property name="sqlMapClient" ref="sqlMapClient"/> </bean> <!-- Add additional Dao definitions here --> </beans> |
||||||||||||||||
|
mraible
|
Can you run "mvn test -Dsurefire.useFile=false" - this should show you what the error is in your console w/o having to look in target/surefire-reports/*.txt.
Matt On 3/27/07, kbighorse <[hidden email]> wrote:
-- http://raibledesigns.com |
||||||||||||||||
|
open_source_junkie
|
In reply to this post
by mraible
I did an mvn test instead of ant test and the tests have passed though with different errors like this. It could be that I have to set up the transactions etc for this. BTW, can we follow Spring Live generally with Equinox 1.7 (taking into account differences between equinox 1.0 and 1.7). Thanks a lot for your help.
------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.appfuse.service.impl.UserManagerImplTest DEBUG - UserManagerImplTest.testAddAndRemoveUser(38) | removing user... DEBUG - UserManagerImplTest.testAddAndRemoveUser(62) | Expected exception: Objec t of class [org.appfuse.model.User] with identifier [1]: not found Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec Running org.appfuse.service.UserManagerTest INFO - AbstractSingleSpringContextTests.loadContextLocations(180) | Loading cont ext for: classpath*:/WEB-INF/applicationContext*.xml INFO - AbstractTransactionalSpringContextTests.startNewTransaction(318) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hiberna teTransactionManager@1bdb58]; default rollback = true INFO - AbstractTransactionalDataSourceSpringContextTests.deleteFromTables(99) | Deleted 2 rows from table app_user DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 1 DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 2 INFO - AbstractTransactionalSpringContextTests.endTransaction(284) | Rolled back transaction after test execution Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.328 sec Running org.appfuse.dao.UserDaoTest INFO - AbstractSingleSpringContextTests.loadContextLocations(180) | Loading cont ext for: /WEB-INF/applicationContext*.xml INFO - AbstractTransactionalSpringContextTests.startNewTransaction(318) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hiberna teTransactionManager@c0c8b5]; default rollback = true DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 3 INFO - AbstractTransactionalSpringContextTests.endTransaction(284) | Rolled back transaction after test execution INFO - AbstractTransactionalSpringContextTests.startNewTransaction(318) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hiberna teTransactionManager@c0c8b5]; default rollback = true DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 4 INFO - AbstractTransactionalSpringContextTests.endTransaction(284) | Rolled back transaction after test execution INFO - AbstractTransactionalSpringContextTests.startNewTransaction(318) | Began transaction (1): transaction manager [org.springframework.orm.hibernate3.Hiberna teTransactionManager@c0c8b5]; default rollback = true DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 5 DEBUG - UserDaoTest.testAddAndRemoveUser(45) | removing user... INFO - AbstractTransactionalSpringContextTests.endTransaction(284) | Rolled back transaction after test execution DEBUG - UserDaoTest.testAddAndRemoveUser(54) | Expected exception: Object of cla ss [org.appfuse.model.User] with identifier [5]: not found Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.406 sec Running org.appfuse.web.UserActionTest INFO - AbstractSingleSpringContextTests.loadContextLocations(180) | Loading cont ext for: /WEB-INF/applicationContext*.xml,/WEB-INF/action-servlet.xml DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 4 ERROR - XWorkConverter.loadConversionProperties(645) | Conversion registration e rror java.lang.NullPointerException at com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWork Converter.java:621) at com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties( XWorkConverter.java:639) at com.opensymphony.xwork2.util.XWorkConverter.<init>(XWorkConverter.jav a:176) at com.opensymphony.xwork2.util.AnnotationXWorkConverter.<init>(Annotati onXWorkConverter.java:98) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverte r.java:202) at com.opensymphony.xwork2.util.XWorkMapPropertyAccessor.<clinit>(XWorkM apPropertyAccessor.java:30) at com.opensymphony.xwork2.util.OgnlValueStack.reset(OgnlValueStack.java :47) at com.opensymphony.xwork2.util.OgnlValueStack.<clinit>(OgnlValueStack.j ava:37) at com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(O gnlValueStackFactory.java:14) at com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initia lValue(ActionContext.java:329) at java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java:37 4) at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347) at java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225) at java.lang.ThreadLocal.get(ThreadLocal.java:127) at com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:1 51) at org.appfuse.web.UserActionTest.onSetUp(UserActionTest.java:35) at org.springframework.test.AbstractSingleSpringContextTests.setUp(Abstr actSingleSpringContextTests.java:85) at junit.framework.TestCase.runBare(TestCase.java:125) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestC ase.java:69) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav a:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes tSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab stractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su refireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:818) ERROR - XWorkConverter.loadConversionProperties(645) | Conversion registration e rror java.lang.NullPointerException at com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWork Converter.java:621) at com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties( XWorkConverter.java:639) at com.opensymphony.xwork2.util.AnnotationXWorkConverter.<init>(Annotati onXWorkConverter.java:106) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverte r.java:202) at com.opensymphony.xwork2.util.XWorkMapPropertyAccessor.<clinit>(XWorkM apPropertyAccessor.java:30) at com.opensymphony.xwork2.util.OgnlValueStack.reset(OgnlValueStack.java :47) at com.opensymphony.xwork2.util.OgnlValueStack.<clinit>(OgnlValueStack.j ava:37) at com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(O gnlValueStackFactory.java:14) at com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initia lValue(ActionContext.java:329) at java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java:37 4) at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347) at java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225) at java.lang.ThreadLocal.get(ThreadLocal.java:127) at com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:1 51) at org.appfuse.web.UserActionTest.onSetUp(UserActionTest.java:35) at org.springframework.test.AbstractSingleSpringContextTests.setUp(Abstr actSingleSpringContextTests.java:85) at junit.framework.TestCase.runBare(TestCase.java:125) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestC ase.java:69) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav a:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes tSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab stractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su refireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:818) DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 5 DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 6 DEBUG - UserAction.save(87) | entering 'save' method DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 6 DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 7 Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.657 sec Results : Tests run: 9, Failures: 0, Errors: 0, Skipped: 0
|
||||||||||||||||
|
kbighorse
|
In reply to this post
by mraible
The same NoSuchMethodError is repeated another half-dozen times for other attempted tests:
------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.appfuse.service.impl.UserManagerImplTest DEBUG - UserManagerImplTest.testAddAndRemoveUser(38) | removing user... DEBUG - UserManagerImplTest.testAddAndRemoveUser(62) | Expected exception: Object of class [org.appfuse.model.User] with identifier [1]: not found Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec Running org.appfuse.service.UserManagerTest INFO - AbstractSingleSpringContextTests.loadContextLocations(136) | Loading context for: classpath*:/WEB-INF/applicationContext*.xml Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.922 sec <<< FAILURE! testGetUsers(org.appfuse.service.UserManagerTest) Time elapsed: 1.922 sec <<< ERROR! java.lang.NoSuchMethodError: org.springframework.jdbc.datasource.DataSourceTransactionManager.determineTimeout(Lorg/springframework/transaction/Transa ctionDefinition;)I at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:208) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:315) at org.springframework.test.AbstractTransactionalSpringContextTests.startNewTransaction(AbstractTransactionalSpringContextTests.java:304) at org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:168) at org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:77) at junit.framework.TestCase.runBare(TestCase.java:125) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) at org.apache.maven.surefire.Surefire.run(Surefire.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
|
||||||||||||||||
|
mraible
|
In reply to this post
by open_source_junkie
On 3/27/07, nmall <[hidden email]> wrote:
No, this is likely your problem. You should use Equinox 1.0 if you're doing Spring Live. Equinox 1.7 (soon to be renamed to AppFuse Light) is 2 years ahead of Equinox 1.0. Matt ------------------------------------------------------- -- http://raibledesigns.com |
||||||||||||||||
|
Daniel Serodio
|
In reply to this post
by open_source_junkie
I'm seeing this same error, did you find a fix?
Thanks, Daniel Serodio
|
||||||||||||||||
|
mraible
|
Can you please describe the steps to reproduce the error?
Thanks, Matt On 5/6/07, Daniel Serodio <[hidden email]> wrote: > > I'm seeing this same error, did you find a fix? > > Thanks, > Daniel Serodio > > > nmall wrote: > > > > I did an mvn test instead of ant test and the tests have passed though > > with different errors like this. It could be that I have to set up the > > transactions etc for this. BTW, can we follow Spring Live generally with > > Equinox 1.7 (taking into account differences between equinox 1.0 and 1.7). > > Thanks a lot for your help. > > > > ------------------------------------------------------- > > T E S T S > > ------------------------------------------------------- > > Running org.appfuse.service.impl.UserManagerImplTest > > DEBUG - UserManagerImplTest.testAddAndRemoveUser(38) | removing user... > > DEBUG - UserManagerImplTest.testAddAndRemoveUser(62) | Expected exception: > > Objec > > t of class [org.appfuse.model.User] with identifier [1]: not found > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec > > Running org.appfuse.service.UserManagerTest > > INFO - AbstractSingleSpringContextTests.loadContextLocations(180) | > > Loading cont > > ext for: classpath*:/WEB-INF/applicationContext*.xml > > INFO - AbstractTransactionalSpringContextTests.startNewTransaction(318) | > > Began > > transaction (1): transaction manager > > [org.springframework.orm.hibernate3.Hiberna > > teTransactionManager@1bdb58]; default rollback = true > > INFO - > > AbstractTransactionalDataSourceSpringContextTests.deleteFromTables(99) | > > Deleted 2 rows from table app_user > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 1 > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 2 > > INFO - AbstractTransactionalSpringContextTests.endTransaction(284) | > > Rolled back > > transaction after test execution > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.328 sec > > Running org.appfuse.dao.UserDaoTest > > INFO - AbstractSingleSpringContextTests.loadContextLocations(180) | > > Loading cont > > ext for: /WEB-INF/applicationContext*.xml > > INFO - AbstractTransactionalSpringContextTests.startNewTransaction(318) | > > Began > > transaction (1): transaction manager > > [org.springframework.orm.hibernate3.Hiberna > > teTransactionManager@c0c8b5]; default rollback = true > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 3 > > INFO - AbstractTransactionalSpringContextTests.endTransaction(284) | > > Rolled back > > transaction after test execution > > INFO - AbstractTransactionalSpringContextTests.startNewTransaction(318) | > > Began > > transaction (1): transaction manager > > [org.springframework.orm.hibernate3.Hiberna > > teTransactionManager@c0c8b5]; default rollback = true > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 4 > > INFO - AbstractTransactionalSpringContextTests.endTransaction(284) | > > Rolled back > > transaction after test execution > > INFO - AbstractTransactionalSpringContextTests.startNewTransaction(318) | > > Began > > transaction (1): transaction manager > > [org.springframework.orm.hibernate3.Hiberna > > teTransactionManager@c0c8b5]; default rollback = true > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 5 > > DEBUG - UserDaoTest.testAddAndRemoveUser(45) | removing user... > > INFO - AbstractTransactionalSpringContextTests.endTransaction(284) | > > Rolled back > > transaction after test execution > > DEBUG - UserDaoTest.testAddAndRemoveUser(54) | Expected exception: Object > > of cla > > ss [org.appfuse.model.User] with identifier [5]: not found > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.406 sec > > Running org.appfuse.web.UserActionTest > > INFO - AbstractSingleSpringContextTests.loadContextLocations(180) | > > Loading cont > > ext for: /WEB-INF/applicationContext*.xml,/WEB-INF/action-servlet.xml > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 4 > > ERROR - XWorkConverter.loadConversionProperties(645) | Conversion > > registration e > > rror > > java.lang.NullPointerException > > at > > com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWork > > Converter.java:621) > > at > > com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties( > > XWorkConverter.java:639) > > at > > com.opensymphony.xwork2.util.XWorkConverter.<init>(XWorkConverter.jav > > a:176) > > at > > com.opensymphony.xwork2.util.AnnotationXWorkConverter.<init>(Annotati > > onXWorkConverter.java:98) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct > > orAccessorImpl.java:39) > > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC > > onstructorAccessorImpl.java:27) > > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > at java.lang.Class.newInstance0(Class.java:350) > > at java.lang.Class.newInstance(Class.java:303) > > at > > com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverte > > r.java:202) > > at > > com.opensymphony.xwork2.util.XWorkMapPropertyAccessor.<clinit>(XWorkM > > apPropertyAccessor.java:30) > > at > > com.opensymphony.xwork2.util.OgnlValueStack.reset(OgnlValueStack.java > > :47) > > at > > com.opensymphony.xwork2.util.OgnlValueStack.<clinit>(OgnlValueStack.j > > ava:37) > > at > > com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(O > > gnlValueStackFactory.java:14) > > at > > com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initia > > lValue(ActionContext.java:329) > > at > > java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java:37 > > 4) > > at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347) > > at > > java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225) > > > > at java.lang.ThreadLocal.get(ThreadLocal.java:127) > > at > > com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:1 > > 51) > > at org.appfuse.web.UserActionTest.onSetUp(UserActionTest.java:35) > > at > > org.springframework.test.AbstractSingleSpringContextTests.setUp(Abstr > > actSingleSpringContextTests.java:85) > > at junit.framework.TestCase.runBare(TestCase.java:125) > > at > > org.springframework.test.ConditionalTestCase.runBare(ConditionalTestC > > ase.java:69) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > > sorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav > > a:213) > > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes > > tSet(AbstractDirectoryTestSuite.java:138) > > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab > > stractDirectoryTestSuite.java:125) > > at org.apache.maven.surefire.Surefire.run(Surefire.java:132) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > > sorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su > > refireBooter.java:290) > > at > > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j > > ava:818) > > ERROR - XWorkConverter.loadConversionProperties(645) | Conversion > > registration e > > rror > > java.lang.NullPointerException > > at > > com.opensymphony.xwork2.util.XWorkConverter.createTypeConverter(XWork > > Converter.java:621) > > at > > com.opensymphony.xwork2.util.XWorkConverter.loadConversionProperties( > > XWorkConverter.java:639) > > at > > com.opensymphony.xwork2.util.AnnotationXWorkConverter.<init>(Annotati > > onXWorkConverter.java:106) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct > > orAccessorImpl.java:39) > > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC > > onstructorAccessorImpl.java:27) > > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > at java.lang.Class.newInstance0(Class.java:350) > > at java.lang.Class.newInstance(Class.java:303) > > at > > com.opensymphony.xwork2.util.XWorkConverter.getInstance(XWorkConverte > > r.java:202) > > at > > com.opensymphony.xwork2.util.XWorkMapPropertyAccessor.<clinit>(XWorkM > > apPropertyAccessor.java:30) > > at > > com.opensymphony.xwork2.util.OgnlValueStack.reset(OgnlValueStack.java > > :47) > > at > > com.opensymphony.xwork2.util.OgnlValueStack.<clinit>(OgnlValueStack.j > > ava:37) > > at > > com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(O > > gnlValueStackFactory.java:14) > > at > > com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initia > > lValue(ActionContext.java:329) > > at > > java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java:37 > > 4) > > at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347) > > at > > java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225) > > > > at java.lang.ThreadLocal.get(ThreadLocal.java:127) > > at > > com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java:1 > > 51) > > at org.appfuse.web.UserActionTest.onSetUp(UserActionTest.java:35) > > at > > org.springframework.test.AbstractSingleSpringContextTests.setUp(Abstr > > actSingleSpringContextTests.java:85) > > at junit.framework.TestCase.runBare(TestCase.java:125) > > at > > org.springframework.test.ConditionalTestCase.runBare(ConditionalTestC > > ase.java:69) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > > sorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav > > a:213) > > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes > > tSet(AbstractDirectoryTestSuite.java:138) > > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab > > stractDirectoryTestSuite.java:125) > > at org.apache.maven.surefire.Surefire.run(Surefire.java:132) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > > sorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su > > refireBooter.java:290) > > at > > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j > > ava:818) > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 5 > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 6 > > DEBUG - UserAction.save(87) | entering 'save' method > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 6 > > DEBUG - UserDaoHibernate.saveUser(35) | userId set to: 7 > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.657 sec > > > > Results : > > > > Tests run: 9, Failures: 0, Errors: 0, Skipped: 0 > > > > > > mraible wrote: > >> > >> Are you using Hibernate or possibly Spring JDBC? > >> > >> Matt > >> > >> On 3/27/07, nmall <[hidden email]> wrote: > >>> > >>> > >>> Thanks, I did change the jdbc.properties and > >>> applicationContext-hibernate.xml. But here is the error I am still > >>> getting > >>> - > >>> this is what I see in test-reports/all-errors. Anything else I need to > >>> do > >>> for Hibernate. > >>> > >>> > >>> > >>> JDBC exception on Hibernate data access; nested exception is > >>> org.hibernate.exception.SQLGrammarException: could not fetch initial > >>> value > >>> for increment generator > >>> > >>> org.springframework.orm.hibernate3.HibernateJdbcException: JDBC > >>> exception > >>> on > >>> Hibernate data access; nested exception is > >>> org.hibernate.exception.SQLGrammarException: could not fetch initial > >>> value > >>> for increment generator > >>> Caused by: org.hibernate.exception.SQLGrammarException: could not fetch > >>> initial value for increment generator > >>> at > >>> org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java > >>> :67) > >>> at > >>> org.hibernate.exception.JDBCExceptionHelper.convert( > >>> JDBCExceptionHelper.java:43) > >>> at org.hibernate.id.IncrementGenerator.getNext(IncrementGenerator.java > >>> :107) > >>> at org.hibernate.id.IncrementGenerator.generate(IncrementGenerator.java > >>> :44) > >>> at > >>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId( > >>> AbstractSaveEventListener.java:98) > >>> at > >>> > >>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId > >>> (DefaultSaveOrUpdateEventListener.java:186) > >>> at > >>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient > >>> (DefaultSaveOrUpdateEventListener.java:175) > >>> at > >>> > >>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate > >>> (DefaultSaveOrUpdateEventListener.java:98) > >>> 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:684) > >>> at > >>> org.springframework.orm.hibernate3.HibernateTemplate.execute( > >>> HibernateTemplate.java:367) > >>> at > >>> org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate( > >>> HibernateTemplate.java:681) > >>> at > >>> org.appfuse.dao.hibernate.UserDaoHibernate.saveUser(UserDaoHibernate.java > >>> :32) > >>> at org.appfuse.dao.UserDaoTest.testGetUsers(UserDaoTest.java:19) > >>> at > >>> org.springframework.test.ConditionalTestCase.runBare( > >>> ConditionalTestCase.java:69) > >>> Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table > >>> 'equinox.app_user' doesn't exist > >>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) > >>> 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.executeQuery(PreparedStatement.java:1403) > >>> at > >>> org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery( > >>> DelegatingPreparedStatement.java:92) > >>> at > >>> org.hibernate.id.IncrementGenerator.getNext(IncrementGenerator.java:85) > >>> > >>> > >>> mraible wrote: > >>> > > >>> > You'll need to change src/main/resources/jdbc.properties as well as > >>> > applicationContext-hibernate,xml. It still fails and the test-report > >>> shows > >>> > the following > >>> > JDBC exception on Hibernate data access; nested exception is > >>> > org.hibernate.exception.SQLGrammarException: could not fetch initial > >>> value > >>> > for increment generator > >>> > > >>> > org.springframework.orm.hibernate3.HibernateJdbcException: JDBC > >>> exception > >>> > on Hibernate data access; nested exception is > >>> > org.hibernate.exception.SQLGrammarException: could not fetch initial > >>> value > >>> > for increment generator > >>> > Caused by: org.hibernate.exception.SQLGrammarException: could not > >>> fetch > >>> > initial value for increment generator > >>> > at > >>> > > >>> org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java > >>> :67) > >>> > at > >>> > org.hibernate.exception.JDBCExceptionHelper.convert( > >>> JDBCExceptionHelper.java:43) > >>> > at > >>> > > >>> org.hibernate.id.IncrementGenerator.getNext(IncrementGenerator.java:107) > >>> > at > >>> > > >>> org.hibernate.id.IncrementGenerator.generate(IncrementGenerator.java:44) > >>> > at > >>> > org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId( > >>> AbstractSaveEventListener.java:98) > >>> > at > >>> > > >>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId > >>> (DefaultSaveOrUpdateEventListener.java:186) > >>> > at > >>> > > >>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient > >>> (DefaultSaveOrUpdateEventListener.java:175) > >>> > at > >>> > > >>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate > >>> (DefaultSaveOrUpdateEventListener.java:98) > >>> > 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:684) > >>> > at > >>> > org.springframework.orm.hibernate3.HibernateTemplate.execute( > >>> HibernateTemplate.java:367) > >>> > at > >>> > org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate( > >>> HibernateTemplate.java:681) > >>> > at > >>> > org.appfuse.dao.hibernate.UserDaoHibernate.saveUser( > >>> UserDaoHibernate.java:32) > >>> > at org.appfuse.dao.UserDaoTest.testGetUsers(UserDaoTest.java:19) > >>> > at > >>> > org.springframework.test.ConditionalTestCase.runBare( > >>> ConditionalTestCase.java:69) > >>> > Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table > >>> > 'equinox.app_user' doesn't exist > >>> > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) > >>> > 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.executeQuery(PreparedStatement.java > >>> :1403) > >>> > at > >>> > org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery( > >>> DelegatingPreparedStatement.java:92) > >>> > at org.hibernate.id.IncrementGenerator.getNext(IncrementGenerator.java > >>> :85) > >>> > > >>> > src/main/webapp/WEB-INF/applicationContext-hibernate.xml. > >>> > > >>> > Matt > >>> > > >>> > On 3/27/07, nmall <[hidden email]> wrote: > >>> >> > >>> >> > >>> >> Hi, > >>> >> > >>> >> I installed equinox-1.7.1 and did mvn clean install followed by mvn > >>> >> test. > >>> >> Here is what I get. I am using mysql database instead of postgressql > >>> so > >>> I > >>> >> have changed pom.xml with > >>> >> <dependency> > >>> >> <groupId>mysql</groupId> > >>> >> <artifactId>mysql-connector-java</artifactId> > >>> >> <version>5.0.5</version> > >>> >> </dependency> > >>> >> > >>> >> When the tests run, I am getting the error below - in essence ERROR > >>> - > >>> >> SchemaUpdate.execute(165) | could not complete schema update > >>> >> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table > >>> >> 'equinox.pg_class' do > >>> >> esn't exist . Do I need to create something for MySQL database? > >>> >> ------------------------------------------------------- > >>> >> T E S T S > >>> >> ------------------------------------------------------- > >>> >> Running org.appfuse.service.impl.UserManagerImplTest > >>> >> DEBUG - UserManagerImplTest.testAddAndRemoveUser(38) | removing > >>> user... > >>> >> DEBUG - UserManagerImplTest.testAddAndRemoveUser(62) | Expected > >>> >> exception: > >>> >> Objec > >>> >> t of class [org.appfuse.model.User] with identifier [1]: not found > >>> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >>> 0.062sec > >>> >> Running org.appfuse.service.UserManagerTest > >>> >> INFO - AbstractSingleSpringContextTests.loadContextLocations(180) | > >>> >> Loading > >>> >> cont > >>> >> ext for: classpath*:/WEB-INF/applicationContext*.xml > >>> >> ERROR - SchemaUpdate.execute(134) | could not get database metadata > >>> >> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table > >>> >> 'equinox.pg_class' do > >>> >> esn't exist > >>> >> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java > >>> :936) > >>> >> 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:3243) > >>> >> at com.mysql.jdbc.Connection.execSQL(Connection.java:3172) > >>> >> at com.mysql.jdbc.Statement.executeQuery(Statement.java:1197) > >>> >> at > >>> >> org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt > >>> >> atement.java:205) > >>> >> at > >>> >> org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMet > >>> >> adata.java:128) > >>> >> at > >>> >> org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.j > >>> >> ava:46) > >>> >> at > >>> >> org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.j > >>> >> ava:39) > >>> >> at > >>> >> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java: > >>> >> 314) > >>> >> at > >>> >> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav > >>> >> a:1291) > >>> >> at > >>> >> org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession > >>> >> Factory(LocalSessionFactoryBean.java:804) > >>> >> at > >>> >> org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessi > >>> >> onFactory(LocalSessionFactoryBean.java:744) > >>> >> at > >>> >> org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPr > >>> >> opertiesSet(AbstractSessionFactoryBean.java:131) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> > >>> Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> Factory.createBean(AbstractAutowireCapableBeanFactory.java:429) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb > >>> >> ject(AbstractBeanFactory.java:250) > >>> >> at > >>> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr > >>> >> y.getSingleton(DefaultSingletonBeanRegistry.java:141) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >>> >> (AbstractBeanFactory.java:247) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >>> >> (AbstractBeanFactory.java:161) > >>> >> at > >>> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver > >>> >> .resolveReference(BeanDefinitionValueResolver.java:245) > >>> >> at > >>> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver > >>> >> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:124) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java > >>> :1019) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> Factory.populateBean(AbstractAutowireCapableBeanFactory.java:809) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> Factory.createBean(AbstractAutowireCapableBeanFactory.java:425) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb > >>> >> ject(AbstractBeanFactory.java:250) > >>> >> at > >>> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr > >>> >> y.getSingleton(DefaultSingletonBeanRegistry.java:141) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >>> >> (AbstractBeanFactory.java:247) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >>> >> (AbstractBeanFactory.java:161) > >>> >> at > >>> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver > >>> >> .resolveReference(BeanDefinitionValueResolver.java:245) > >>> >> at > >>> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver > >>> >> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:124) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java > >>> :1019) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> Factory.populateBean(AbstractAutowireCapableBeanFactory.java:809) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> Factory.createBean(AbstractAutowireCapableBeanFactory.java:425) > >>> >> at > >>> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver > >>> >> .resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:197) > >>> >> at > >>> >> org.springframework.beans.factory.support.BeanDefinitionValueResolver > >>> >> .resolveValueIfNecessary(BeanDefinitionValueResolver.java:112) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> actory.initializeBean(AbstractAutowireCapableBeanFactory.java:1094) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >>> >> actory.createBean(AbstractAutowireCapableBeanFactory.java:429) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb > >>> >> ect(AbstractBeanFactory.java:250) > >>> >> at > >>> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr > >>> >> .getSingleton(DefaultSingletonBeanRegistry.java:141) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >>> >> AbstractBeanFactory.java:247) > >>> >> at > >>> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >>> >> AbstractBeanFactory.java:161) > >>> >> at > >>> >> org.springframework.beans.factory.support.DefaultListableBeanFactory. > >>> >> reInstantiateSingletons(DefaultListableBeanFactory.java:273) > >>> >> at > >>> >> org.springframework.context.support.AbstractApplicationContext.refres > >>> >> (AbstractApplicationContext.java:346) > >>> >> at > >>> >> org.springframework.context.support.ClassPathXmlApplicationContext.( > >>> >> ClassPathXmlApplicationContext.java:92) > >>> >> at > >>> >> org.springframework.context.support.ClassPathXmlApplicationContext.( > >>> >> ClassPathXmlApplicationContext.java:77) > >>> >> at > >>> >> org.springframework.test.AbstractSingleSpringContextTests.loadContext > >>> >> ocations(AbstractSingleSpringContextTests.java:182) > >>> >> at > >>> >> org.springframework.test.AbstractSingleSpringContextTests.loadContext > >>> >> AbstractSingleSpringContextTests.java:152) > >>> >> at > >>> >> org.springframework.test.AbstractSpringContextTests.getContext(Abstra > >>> >> tSpringContextTests.java:105) > >>> >> at > >>> >> org.springframework.test.AbstractSingleSpringContextTests.setUp(Abstr > >>> >> ctSingleSpringContextTests.java:83) > >>> >> at junit.framework.TestCase.runBare(TestCase.java:125) > >>> >> at > >>> >> org.springframework.test.ConditionalTestCase.runBare(ConditionalTestC > >>> >> se.java:69) > >>> >> at junit.framework.TestResult$1.protect(TestResult.java:106) > >>> >> at > >>> junit.framework.TestResult.runProtected(TestResult.java:124) > >>> >> at junit.framework.TestResult.run(TestResult.java:109) > >>> >> at junit.framework.TestCase.run(TestCase.java:118) > >>> >> at junit.framework.TestSuite.runTest(TestSuite.java:208) > >>> >> at junit.framework.TestSuite.run(TestSuite.java:203) > >>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >>> >> at > >>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > >>> >> ava:39) > >>> >> at > >>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > >>> >> orImpl.java:25) > >>> >> at java.lang.reflect.Method.invoke(Method.java:585) > >>> >> at > >>> >> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav > >>> >> :213) > >>> >> at > >>> >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes > >>> >> Set(AbstractDirectoryTestSuite.java:138) > >>> >> at > >>> >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab > >>> >> tractDirectoryTestSuite.java:125) > >>> >> at org.apache.maven.surefire.Surefire.run(Surefire.java:132) > >>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >>> >> at > >>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > >>> >> ava:39) > >>> >> at > >>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > >>> >> orImpl.java:25) > >>> >> at java.lang.reflect.Method.invoke(Method.java:585) > >>> >> at > >>> >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su > >>> >> efireBooter.java:290) > >>> >> at > >>> >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j > >>> >> va:818) > >>> >> RROR - SchemaUpdate.execute(165) | could not complete schema update > >>> >> om.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table ' > >>> >> equinox.pg_class' > >>> >> do > >>> >> sn't exist > >>> >> at > >>> com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) > >>> >> 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:3243) > >>> >> at com.mysql.jdbc.Connection.execSQL(Connection.java:3172) > >>> >> at com.mysql.jdbc.Statement.executeQuery(Statement.java:1197) > >>> >> at > >>> >> org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt > >>> >> tement.java:205) > >>> >> at > >>> >> org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMet > >>> >> data.java:128) > >>> >> at > >>> >> org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.j > >>> >> va:46) > >>> >> at > >>> >> org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.j > >>> >> va:39) > >>> >> at > >>> >> org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:129 > >>> >> > >>> >> at > >>> >> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java: > >>> >> 14) > >>> >> at > >>> >> org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:129 > >>> >> ) > >>> >> ava:818) > >>> >> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1146, > >>> >> SQLState: > >>> >> 42S0 > >>> >> 2 > >>> >> ERROR - JDBCExceptionReporter.logExceptions(78) | Table > >>> >> 'equinox.app_user' > >>> >> doesn > >>> >> 't exist > >>> >> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1146, > >>> >> SQLState: > >>> >> 42S0 > >>> >> 2 > >>> >> ERROR - JDBCExceptionReporter.logExceptions(78) | Table > >>> >> 'equinox.app_user' > >>> >> doesn > >>> >> 't exist > >>> >> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1146, > >>> >> SQLState: > >>> >> 42S0 > >>> >> 2 > >>> >> ERROR - JDBCExceptionReporter.logExceptions(78) | Table > >>> >> 'equinox.app_user' > >>> >> doesn > >>> >> 't exist > >>> >> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 1146, > >>> >> SQLState: > >>> >> 42S0 > >>> >> 2 > >>> >> ERROR - JDBCExceptionReporter.logExceptions(78) | Table > >>> >> 'equinox.app_user' > >>> >> doesn > >>> >> 't exist > >>> >> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: > >>> 0.656sec > >>> >> <<< FA > >>> >> ILURE! > >>> >> > >>> >> Results : > >>> >> > >>> >> Tests in error: > >>> >> testGetUsers(org.appfuse.service.UserManagerTest) > >>> >> testGetUsers(org.appfuse.dao.UserDaoTest) > >>> >> testSaveUser(org.appfuse.dao.UserDaoTest) > >>> >> testAddAndRemoveUser(org.appfuse.dao.UserDaoTest) > >>> >> testSearch(org.appfuse.web.UserActionTest) > >>> >> testEdit(org.appfuse.web.UserActionTest) > >>> >> testSave(org.appfuse.web.UserActionTest) > >>> >> testRemove(org.appfuse.web.UserActionTest) > >>> >> > >>> >> Tests run: 9, Failures: 0, Errors: 8, Skipped: 0 > >>> >> > >>> >> [INFO] > >>> >> > >>> ------------------------------------------------------------------------ > >>> >> [ERROR] BUILD FAILURE > >>> >> [INFO] > >>> >> > >>> ------------------------------------------------------------------------ > >>> >> [INFO] There are test failures. > >>> >> [INFO] > >>> >> > >>> ------------------------------------------------------------------------ > >>> >> [INFO] Trace > >>> >> org.apache.maven.BuildFailureException: There are test failures. > >>> >> at > >>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > >>> >> ultLifecycleExecutor.java:560) > >>> >> at > >>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi > >>> >> fecycle(DefaultLifecycleExecutor.java:480) > >>> >> at > >>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau > >>> >> ltLifecycleExecutor.java:459) > >>> >> at > >>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > >>> >> dleFailures(DefaultLifecycleExecutor.java:311) > >>> >> at > >>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > >>> >> ts(DefaultLifecycleExecutor.java:278) > >>> >> at > >>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > >>> >> fecycleExecutor.java:143) > >>> >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java > >>> :330) > >>> >> at > >>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) > >>> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) > >>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > >>> Method) > >>> >> at > >>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > >>> >> java:39) > >>> >> at > >>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > >>> >> sorImpl.java:25) > >>> >> at java.lang.reflect.Method.invoke(Method.java:585) > >>> >> 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.MojoFailureException: There are > >>> test > >>> >> failures > >>> >> . > >>> >> at > >>> >> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugi > >>> >> n.java:425) > >>> >> at > >>> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > >>> >> nManager.java:420) > >>> >> at > >>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > >>> >> ultLifecycleExecutor.java:539) > >>> >> > >>> >> > >>> >> -- > >>> >> View this message in context: > >>> >> http://www.nabble.com/equinox-1.7.1-tf3474522s2369.html#a9697341 > >>> >> Sent from the Equinox Users mailing list archive at Nabble.com. > >>> >> > >>> >> --------------------------------------------------------------------- > >>> >> To unsubscribe, e-mail: [hidden email] > >>> >> For additional commands, e-mail: [hidden email] > >>> >> > >>> >> > >>> > > >>> > > >>> > -- > >>> > http://raibledesigns.com > >>> > > >>> > > >>> > >>> -- > >>> View this message in context: > >>> http://www.nabble.com/equinox-1.7.1-tf3474522s2369.html#a9697953 > >>> Sent from the Equinox Users mailing list archive at Nabble.com. > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [hidden email] > >>> For additional commands, e-mail: [hidden email] > >>> > >>> > >> > >> > >> -- > >> http://raibledesigns.com > >> > >> > > > > > > -- > View this message in context: http://www.nabble.com/equinox-1.7.1-tf3474522s2369.html#a10342428 > Sent from the Equinox Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |