Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongo DB & Cassandra build fails [master] #3010

Closed
deepu105 opened this issue Feb 27, 2016 · 6 comments
Closed

Mongo DB & Cassandra build fails [master] #3010

deepu105 opened this issue Feb 27, 2016 · 6 comments
Milestone

Comments

@deepu105
Copy link
Member

Our Mongo DB builds in travis are failing with below

[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/MongoBankAccountDTO.java:9: error: cannot find symbol
import javax.persistence.Lob;
                        ^
  symbol:   class Lob
  location: package javax.persistence
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:9: error: cannot find symbol
import javax.persistence.Lob;
                        ^
  symbol:   class Lob
  location: package javax.persistence
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/MongoBankAccountDTO.java:52: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.MongoBankAccountDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/MongoBankAccountDTO.java:57: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.MongoBankAccountDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:137: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:143: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:149: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:155: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:160: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:166: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:172: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:178: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:183: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:188: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:193: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
[ERROR] diagnostic: /home/travis/app-mongodb/src/main/java/com/mycompany/myapp/web/rest/dto/FieldTestMapstructEntityDTO.java:198: error: cannot find symbol
    @Lob
     ^
  symbol:   class Lob
  location: class com.mycompany.myapp.web.rest.dto.FieldTestMapstructEntityDTO
@deepu105 deepu105 changed the title Mongo DB build fails [master] Mongo DB & Cassandra build fails [master] Feb 27, 2016
@deepu105
Copy link
Member Author

There are similar weird error for cassandra as well

[ERROR] /home/travis/app-cassandra/src/test/java/com/mycompany/myapp/web/rest/AccountResourceIntTest.java:[26,25] cannot find symbol
  symbol:   class Transactional
  location: package javax.transaction
[ERROR] /home/travis/app-cassandra/src/test/java/com/mycompany/myapp/web/rest/AccountResourceIntTest.java:[138,6] cannot find symbol
  symbol:   class Transactional
  location: class com.mycompany.myapp.web.rest.AccountResourceIntTest
[ERROR] /home/travis/app-cassandra/src/test/java/com/mycompany/myapp/web/rest/AccountResourceIntTest.java:[162,6] cannot find symbol
  symbol:   class Transactional
  location: class com.mycompany.myapp.web.rest.AccountResourceIntTest
[ERROR] /home/travis/app-cassandra/src/test/java/com/mycompany/myapp/web/rest/AccountResourceIntTest.java:[186,6] cannot find symbol
  symbol:   class Transactional
  location: class com.mycompany.myapp.web.rest.AccountResourceIntTest
[ERROR] /home/travis/app-cassandra/src/test/java/com/mycompany/myapp/web/rest/AccountResourceIntTest.java:[210,6] cannot find symbol
  symbol:   class Transactional
  location: class com.mycompany.myapp.web.rest.AccountResourceIntTest
[ERROR] /home/travis/app-cassandra/src/test/java/com/mycompany/myapp/web/rest/AccountResourceIntTest.java:[234,6] cannot find symbol
  symbol:   class Transactional
  location: class com.mycompany.myapp.web.rest.AccountResourceIntTest
[ERROR] /home/travis/app-cassandra/src/test/java/com/mycompany/myapp/web/rest/AccountResourceIntTest.java:[271,6] cannot find symbol
  symbol:   class Transactional
  location: class com.mycompany.myapp.web.rest.AccountResourceIntTest
[ERROR] /home/travis/app-cassandra/src/test/java/com/mycompany/myapp/web/rest/AccountResourceIntTest.java:[308,6] cannot find symbol
  symbol:   class Transactional
  location: class com.mycompany.myapp.web.rest.AccountResourceIntTest
[INFO] 8 errors 

seems like some travis environment issue @pascalgrimaud any idea?

@ruddell
Copy link
Member

ruddell commented Feb 27, 2016

I am running into these issues while testing Mongo out locally, so I don't think it is specifically Travis related.

@deepu105
Copy link
Member Author

it now throws new errors

@jdubois can we skip the @transactional annotation for Mongo and Cassandra?
cassandra:

java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test for test context [DefaultTestContext@3f9ecba9 testClass = AccountResourceIntTest, testInstance = com.mycompany.myapp.web.rest.AccountResourceIntTest@7e7c5dba, testMethod = testRegisterInvalidEmail@AccountResourceIntTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@6b5cfa2 testClass = AccountResourceIntTest, locations = '{}', classes = '{class com.mycompany.myapp.SamplecassandraApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.IntegrationTest=true}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]].
    at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:191)
    at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:265)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2016-02-27 08:48:29.516  WARN 5189 --- [           main] o.s.test.context.TestContextManager      : Caught exception while allowing TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a7b2479] to process 'before' execution of test method [public void com.mycompany.myapp.web.rest.AccountResourceIntTest.testRegisterInvalidLogin() throws java.lang.Exception] for test instance [com.mycompany.myapp.web.rest.AccountResourceIntTest@64be2898]
java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test for test context [DefaultTestContext@3f9ecba9 testClass = AccountResourceIntTest, testInstance = com.mycompany.myapp.web.rest.AccountResourceIntTest@64be2898, testMethod = testRegisterInvalidLogin@AccountResourceIntTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@6b5cfa2 testClass = AccountResourceIntTest, locations = '{}', classes = '{class com.mycompany.myapp.SamplecassandraApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.IntegrationTest=true}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]].
    at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:191)
    at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:265)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2016-02-27 08:48:29.519  WARN 5189 --- [           main] o.s.test.context.TestContextManager      : Caught exception while allowing TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a7b2479] to process 'before' execution of test method [public void com.mycompany.myapp.web.rest.AccountResourceIntTest.testRegisterAdminIsIgnored() throws java.lang.Exception] for test instance [com.mycompany.myapp.web.rest.AccountResourceIntTest@77937d10]
java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test for test context [DefaultTestContext@3f9ecba9 testClass = AccountResourceIntTest, testInstance = com.mycompany.myapp.web.rest.AccountResourceIntTest@77937d10, testMethod = testRegisterAdminIsIgnored@AccountResourceIntTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@6b5cfa2 testClass = AccountResourceIntTest, locations = '{}', classes = '{class com.mycompany.myapp.SamplecassandraApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.IntegrationTest=true}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]].
    at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:191)
    at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:265)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2016-02-27 08:48:29.953  WARN 5189 --- [           main] o.s.test.context.TestContextManager      : Caught exception while allowing TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a7b2479] to process 'before' execution of test method [public void com.mycompany.myapp.web.rest.AccountResourceIntTest.testRegisterDuplicateEmail() throws java.lang.Exception] for test instance [com.mycompany.myapp.web.rest.AccountResourceIntTest@3e8e0a50]
java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test for test context [DefaultTestContext@3f9ecba9 testClass = AccountResourceIntTest, testInstance = com.mycompany.myapp.web.rest.AccountResourceIntTest@3e8e0a50, testMethod = testRegisterDuplicateEmail@AccountResourceIntTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@6b5cfa2 testClass = AccountResourceIntTest, locations = '{}', classes = '{class com.mycompany.myapp.SamplecassandraApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.IntegrationTest=true}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]].
    at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:191)
    at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:265)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

** Mongo **

com.mycompany.myapp.web.rest.AccountResourceIntTest.testRegisterInvalidEmail() throws java.lang.Exception] for test instance [com.mycompany.myapp.web.rest.AccountResourceIntTest@7a66905]
java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test for test context [DefaultTestContext@64d057ab testClass = AccountResourceIntTest, testInstance = com.mycompany.myapp.web.rest.AccountResourceIntTest@7a66905, testMethod = testRegisterInvalidEmail@AccountResourceIntTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@4f01d68d testClass = AccountResourceIntTest, locations = '{}', classes = '{class com.mycompany.myapp.SamplemongoApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.IntegrationTest=true}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]].
    at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:191)
    at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:265)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2016-02-27 08:56:09.217  WARN 4945 --- [           main] o.s.test.context.TestContextManager      : Caught exception while allowing TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener@cb21876] to process 'before' execution of test method [public void com.mycompany.myapp.web.rest.AccountResourceIntTest.testRegisterInvalidLogin() throws java.lang.Exception] for test instance [com.mycompany.myapp.web.rest.AccountResourceIntTest@2b5bd83c]
java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test for test context [DefaultTestContext@64d057ab testClass = AccountResourceIntTest, testInstance = com.mycompany.myapp.web.rest.AccountResourceIntTest@2b5bd83c, testMethod = testRegisterInvalidLogin@AccountResourceIntTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@4f01d68d testClass = AccountResourceIntTest, locations = '{}', classes = '{class com.mycompany.myapp.SamplemongoApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.IntegrationTest=true}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]].
    at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:191)
    at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:265)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2016-02-27 08:56:09.219  WARN 4945 --- [           main] o.s.test.context.TestContextManager      : Caught exception while allowing TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener@cb21876] to process 'before' execution of test method [public void com.mycompany.myapp.web.rest.AccountResourceIntTest.testRegisterAdminIsIgnored() throws java.lang.Exception] for test instance [com.mycompany.myapp.web.rest.AccountResourceIntTest@41ecb4f2]
java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test for test context [DefaultTestContext@64d057ab testClass = AccountResourceIntTest, testInstance = com.mycompany.myapp.web.rest.AccountResourceIntTest@41ecb4f2, testMethod = testRegisterAdminIsIgnored@AccountResourceIntTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@4f01d68d testClass = AccountResourceIntTest, locations = '{}', classes = '{class com.mycompany.myapp.SamplemongoApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.IntegrationTest=true}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]].
    at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:191)
    at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:265)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2016-02-27 08:56:09.651  WARN 4945 --- [           main] o.s.test.context.TestContextManager      : Caught exception while allowing TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener@cb21876] to process 'before' execution of test method [public void com.mycompany.myapp.web.rest.AccountResourceIntTest.testRegisterDuplicateEmail() throws java.lang.Exception] for test instance [com.mycompany.myapp.web.rest.AccountResourceIntTest@42f58a96]
java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test for test context [DefaultTestContext@64d057ab testClass = AccountResourceIntTest, testInstance = com.mycompany.myapp.web.rest.AccountResourceIntTest@42f58a96, testMethod = testRegisterDuplicateEmail@AccountResourceIntTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@4f01d68d testClass = AccountResourceIntTest, locations = '{}', classes = '{class com.mycompany.myapp.SamplemongoApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.IntegrationTest=true}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]].
    at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:191)
    at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:265)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2016-02-27 08:56:09.654  WARN 4945 --- [           main] o.s.test.context.TestContextManager      : Caught exception while allowing TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener@cb21876] to process 'before' execution of test method [public void com.mycompany.myapp.web.rest.AccountResourceIntTest.testRegisterDuplicateLogin() throws java.lang.Exception] for test instance [com.mycompany.myapp.web.rest.AccountResourceIntTest@7dab0d78]
java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test for test context [DefaultTestContext@64d057ab testClass = AccountResourceIntTest, testInstance = com.mycompany.myapp.web.rest.AccountResourceIntTest@7dab0d78, testMethod = testRegisterDuplicateLogin@AccountResourceIntTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@4f01d68d testClass = AccountResourceIntTest, locations = '{}', classes = '{class com.mycompany.myapp.SamplemongoApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.IntegrationTest=true}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]].
    at org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:191)
    at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:265)
    at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
    at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
    at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2016-02-27 08:56:09.790 DEBUG 4945 --- [           main] c.m.myapp.web.rest.AccountResource       : REST request to check if the current user is authenticated
2016-02-27 08:56:09.803  WARN 4945 --- [           main] o.s.test.context.TestContextManager      : Caught exception while allowing TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener@cb21876] to process 'before' execution of test method [public void com.mycompany.myapp.web.rest.AccountResourceIntTest.testRegisterValid() throws java.lang.Exception] for test instance [com.mycompany.myapp.web.rest.AccountResourceIntTest@722ab028]

@jdubois
Copy link
Member

jdubois commented Feb 27, 2016

Yes the @transactional only work for SQL databases.
There's no transactions with MongoDB and Cassandra.

@deepu105
Copy link
Member Author

@ruddell actually for your other PR this passed all test https://travis-ci.org/jhipster/generator-jhipster/builds/112194094 so may be we could just skip it for mongo and cassandra

@jdubois
Copy link
Member

jdubois commented Feb 27, 2016

(Well, that's not totally true for Cassandra, but the annotation can still be safely removed)

@jdubois jdubois modified the milestone: 3.0.0 Mar 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants