Announcement Announcement Module
Collapse
No announcement yet.
Latest nightly snapshot roo cannot pass the test Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Latest nightly snapshot roo cannot pass the test

    I downloaded the latest version roo spring-roo-1.1.4.BUILD-SNAPSHOT_20110508.111109-d575c22.zip.

    Now, the auto generated unit tests when I ceate the entities cannot be passed.

    It is urgent because it has mass my work up.

    Please take a look, thanks.

    I use DATANUCLEUS as the provider.

    When I use GAE as db, the main error is
    Code:
    Test set: com.yellowbook.imenu.domain.CategoryIntegrationTest
    -------------------------------------------------------------------------------
    Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.375 sec <<< FAILURE!
    testRemove(com.yellowbook.imenu.domain.CategoryIntegrationTest)  Time elapsed: 0.063 sec  <<< ERROR!
    org.springframework.dao.EmptyResultDataAccessException: No results for query: SELECT FROM Category o WHERE o.id = :id
    	at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:294)
    	at org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect.ajc$afterThrowing$org_springframework_orm_jpa_aspectj_JpaExceptionTranslatorAspect$1$18a1ac9(JpaExceptionTranslatorAspect.aj:15)
    	at com.yellowbook.imenu.domain.Category_Roo_Entity.findCategory_aroundBody6(Category_Roo_Entity.aj:112)
    	at com.yellowbook.imenu.domain.Category_Roo_Entity.ajc$interMethod$com_yellowbook_imenu_domain_Category_Roo_Entity$com_yellowbook_imenu_domain_Category$findCategory(Category_Roo_Entity.aj:1)
    	at com.yellowbook.imenu.domain.Category.findCategory(Category.java:1)
    	at com.yellowbook.imenu.domain.Category_Roo_Entity.ajc$interMethodDispatch1$com_yellowbook_imenu_domain_Category_Roo_Entity$com_yellowbook_imenu_domain_Category$findCategory(Category_Roo_Entity.aj)
    	at com.yellowbook.imenu.domain.CategoryIntegrationTest_Roo_IntegrationTest.ajc$interMethod$com_yellowbook_imenu_domain_CategoryIntegrationTest_Roo_IntegrationTest$com_yellowbook_imenu_domain_CategoryIntegrationTest$testRemove(CategoryIntegrationTest_Roo_IntegrationTest.aj:129)
    	at com.yellowbook.imenu.domain.CategoryIntegrationTest.testRemove(CategoryIntegrationTest.java:1)
    	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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
    	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
    	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
    	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    	at 
    ....
    I changed the db to HYPERSONIC_IN_MEMORY, and one more error raises.
    Code:
    Test set: com.yellowbook.imenu.domain.CategoryIntegrationTest
    
    -------------------------------------------------------------------------------
    
    Tests run: 9, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 0.14 sec <<< FAILURE!
    
    testFlush(com.yellowbook.imenu.domain.CategoryIntegrationTest)  Time elapsed: 0.047 sec  <<< ERROR!
    
    javax.jdo.JDOUserException: The column "REPUTATIONS_ID" exists in table "REPUTATION" and has invalid metadata. The existing column is "<column/>
    "
    
    	at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:375)
    
    	at org.datanucleus.ObjectManagerImpl.getExtent(ObjectManagerImpl.java:3760)
    
    	at org.datanucleus.store.rdbms.query.JPQLQueryCompiler.compileCandidates(JPQLQueryCompiler.java:307)
    
    	at org.datanucleus.store.rdbms.query.QueryCompiler.executionCompile(QueryCompiler.java:312)
    
    	at org.datanucleus.store.rdbms.query.QueryCompiler.compile(QueryCompiler.java:260)
    
    	at org.datanucleus.store.rdbms.query.JPQLQuery.compileInternal(JPQLQuery.java:168)
    
    	at org.datanucleus.store.query.Query.executeQuery(Query.java:1457)
    
    	at org.datanucleus.store.rdbms.query.JPQLQuery.executeQuery(JPQLQuery.java:239)
    
    	at org.datanucleus.store.query.Query.executeWithMap(Query.java:1398)
    
    	at org.datanucleus.jpa.JPAQuery.getResultList(JPAQuery.java:163)
    
    	at com.yellowbook.imenu.domain.Category_Roo_Entity.findCategoryEntries_aroundBody8(Category_Roo_Entity.aj:116)
    
    	at com.yellowbook.imenu.domain.Category_Roo_Entity.ajc$interMethod$com_yellowbook_imenu_domain_Category_Roo_Entity$com_yellowbook_imenu_domain_Category$findCategoryEntries(Category_Roo_Entity.aj:1)
    
    	at com.yellowbook.imenu.domain.Category.findCategoryEntries(Category.java:1)
    
    	at com.yellowbook.imenu.domain.Category_Roo_Entity.ajc$interMethodDispatch1$com_yellowbook_imenu_domain_Category_Roo_Entity$com_yellowbook_imenu_domain_Category$findCategoryEntries(Category_Roo_Entity.aj)
    
    	at com.yellowbook.imenu.domain.CategoryDataOnDemand_Roo_DataOnDemand.ajc$interMethod$com_yellowbook_imenu_domain_CategoryDataOnDemand_Roo_DataOnDemand$com_yellowbook_imenu_domain_CategoryDataOnDemand$init(CategoryDataOnDemand_Roo_DataOnDemand.aj:52)
    
    	at com.yellowbook.imenu.domain.CategoryDataOnDemand.init(CategoryDataOnDemand.java:1)
    
    	at com.yellowbook.imenu.domain.CategoryDataOnDemand_Roo_DataOnDemand.ajc$interMethodDispatch1$com_yellowbook_imenu_domain_CategoryDataOnDemand_Roo_DataOnDemand$com_yellowbook_imenu_domain_CategoryDataOnDemand$init(CategoryDataOnDemand_Roo_DataOnDemand.aj)
    
    	at com.yellowbook.imenu.domain.CategoryDataOnDemand_Roo_DataOnDemand.ajc$interMethod$com_yellowbook_imenu_domain_CategoryDataOnDemand_Roo_DataOnDemand$com_yellowbook_imenu_domain_CategoryDataOnDemand$getRandomCategory(CategoryDataOnDemand_Roo_DataOnDemand.aj:42)
    
    	at com.yellowbook.imenu.domain.CategoryDataOnDemand.getRandomCategory(CategoryDataOnDemand.java:1)
    
    	at com.yellowbook.imenu.domain.CategoryDataOnDemand_Roo_DataOnDemand.ajc$interMethodDispatch1$com_yellowbook_imenu_domain_CategoryDataOnDemand_Roo_DataOnDemand$com_yellowbook_imenu_domain_CategoryDataOnDemand$getRandomCategory(CategoryDataOnDemand_Roo_DataOnDemand.aj)
    
    	at com.yellowbook.imenu.domain.CategoryIntegrationTest_Roo_IntegrationTest.ajc$interMethod$com_yellowbook_imenu_domain_CategoryIntegrationTest_Roo_IntegrationTest$com_yellowbook_imenu_domain_CategoryIntegrationTest$testFlush(CategoryIntegrationTest_Roo_IntegrationTest.aj:65)
    
    	at com.yellowbook.imenu.domain.CategoryIntegrationTest.testFlush(CategoryIntegrationTest.java:1)
    
    	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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    
    	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    
    	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    
    	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    
    	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    
    	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
    
    	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
    
    ....

  • #2
    not to nit pick, but you should not use nightly build for production.

    I have been guilty of this before, but its just software and you can not never prove absence of bugs

    Comment


    • #3
      Thank you for your advice, but since I want to use some new features which only exist in 1.1.4, so I have to use the snapshot.

      Comment

      Working...
      X