1 2 3 Previous Next 34 Replies Latest reply on Jul 8, 2014 10:01 AM by memellis0 Go to original post
      • 15. Re: Building and testing CapeDwarf
        memellis0

        Hi Ales

         

        The rm -rf ${JBOSS_HOME}/standalone/{data/*,tmp?*} made a bit of a difference but I now get test failure at:

         

        Tests run: 5, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 0.302 sec <<< FAILURE!

        testList(org.jboss.test.capedwarf.testsuite.objectify.test.ObjectifyTest)  Time elapsed: 0.002 sec  <<< FAILURE!

        java.lang.AssertionError: expected:<1> but was:<0>

                at org.junit.Assert.fail(Assert.java:88)

                at org.junit.Assert.failNotEquals(Assert.java:743)

                at org.junit.Assert.assertEquals(Assert.java:118)

                at org.junit.Assert.assertEquals(Assert.java:555)

                at org.junit.Assert.assertEquals(Assert.java:542)

                at org.jboss.test.capedwarf.testsuite.objectify.test.ObjectifyTest.testList(ObjectifyTest.java:180)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:606)

                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)

                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)

                at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)

                at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:606)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

                at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:606)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

                at sun.reflect.GeneratedMethodAccessor755.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:606)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:606)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:606)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)

                at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)

                at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)

                at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)

                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)

                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)

                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)

                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)

                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)

                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

                at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

                at org.junit.runner.JUnitCore.run(JUnitCore.java:160)

                at org.junit.runner.JUnitCore.run(JUnitCore.java:138)

                at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65)

                at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.executeTest(ServletTestRunner.java:160)

                at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execute(ServletTestRunner.java:126)

                at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:90)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

                at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87)

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)

                at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:123)

                at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56)

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

                at org.jboss.capedwarf.appidentity.GAEFilter.doFilter(GAEFilter.java:65)

                at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56)

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

                at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)

                at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

                at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:70)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

                at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)

                at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)

                at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

                at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)

                at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:67)

                at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

                at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

                at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)

                at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)

                at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)

                at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)

                at io.undertow.server.Connectors.executeRootHandler(Connectors.java:164)

                at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:654)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                at java.lang.Thread.run(Thread.java:744)

         

         

        Running org.jboss.test.capedwarf.testsuite.xml.test.XmlUtilsTest

        Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec

         

         

        Results :

         

         

        Failed tests:   testList(org.jboss.test.capedwarf.testsuite.objectify.test.ObjectifyTest): expected:<1> but was:<0>

         

         

        Tests run: 78, Failures: 1, Errors: 0, Skipped: 2

         

         

        [INFO] ------------------------------------------------------------------------

        [INFO] Reactor Summary:

        [INFO]

        [INFO] CapeDwarf Blue .................................... SUCCESS [2.155s]

        [INFO] CapeDwarf Common .................................. SUCCESS [3.352s]

        [INFO] CapeDwarf Aspects ................................. SUCCESS [0.570s]

        [INFO] CapeDwarf Environment ............................. SUCCESS [0.430s]

        [INFO] CapeDwarf Capabilities ............................ SUCCESS [10.883s]

        [INFO] CapeDwarf Javac Processors ........................ SUCCESS [0.322s]

        [INFO] CapeDwarf Datastore ............................... SUCCESS [2:33.711s]

        [INFO] CapeDwarf GQL4J ................................... SUCCESS [8.647s]

        [INFO] CapeDwarf Log ..................................... SUCCESS [1:16.348s]

        [INFO] CapeDwarf Admin Console ........................... SUCCESS [3.393s]

        [INFO] CapeDwarf Files ................................... SUCCESS [7.499s]

        [INFO] CapeDwarf Blobstore ............................... SUCCESS [18.137s]

        [INFO] CapeDwarf AppIdentity ............................. SUCCESS [18.601s]

        [INFO] CapeDwarf Channel ................................. SUCCESS [1.685s]

        [INFO] CapeDwarf Endpoints ............................... SUCCESS [0.428s]

        [INFO] CapeDwarf Images .................................. SUCCESS [31.275s]

        [INFO] CapeDwarf Mail .................................... SUCCESS [6.645s]

        [INFO] CapeDwarf Memcache ................................ SUCCESS [32.898s]

        [INFO] CapeDwarf Modules ................................. SUCCESS [7.028s]

        [INFO] CapeDwarf Multitenancy ............................ SUCCESS [0.153s]

        [INFO] CapeDwarf OAuth ................................... SUCCESS [0.435s]

        [INFO] CapeDwarf Search .................................. SUCCESS [34.452s]

        [INFO] CapeDwarf Prospective Search ...................... SUCCESS [1:14.780s]

        [INFO] CapeDwarf Quota ................................... SUCCESS [6.664s]

        [INFO] CapeDwarf SQL ..................................... SUCCESS [0.413s]

        [INFO] CapeDwarf Tasks ................................... SUCCESS [1:23.023s]

        [INFO] CapeDwarf URLFetch ................................ SUCCESS [14.483s]

        [INFO] CapeDwarf Users ................................... SUCCESS [6.756s]

        [INFO] CapeDwarf XMPP .................................... SUCCESS [10.949s]

        [INFO] CapeDwarf Bytecode ................................ SUCCESS [1.464s]

        [INFO] CapeDwarf Cluster ................................. SUCCESS [0.343s]

        [INFO] CapeDwarf Testsuite ............................... FAILURE [2:36.651s]

        [INFO] CapeDwarf Cluster Tests ........................... SKIPPED

        [INFO] CapeDwarf OpenShift ............................... SKIPPED

        [INFO] CapeDwarf Tools ................................... SKIPPED

        [INFO] CapeDwarf Arquillian .............................. SKIPPED

        [INFO] ------------------------------------------------------------------------

        [INFO] BUILD FAILURE

        [INFO] ------------------------------------------------------------------------

        [INFO] Total time: 12:55.511s

        [INFO] Finished at: Tue Jan 21 21:08:32 GMT 2014

        [INFO] Final Memory: 105M/626M

        [INFO] ------------------------------------------------------------------------

        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project capedwarf-testsuite: There are test failures.

        [ERROR]

        [ERROR] Please refer to H:\MinGW_Qt\home\mark\build\capedwarf-blue\testsuite\target\surefire-reports for the individual test results.

         

        Regards

        Mark

        • 16. Re: Building and testing CapeDwarf
          alesj

          Is this against Blue' upstream master?

          • 17. Re: Building and testing CapeDwarf
            memellis0

            Yes Blue upstream master with changes to the 9999 and 9990 ports to other ports because they are used on my computer.

             

            I hopefully not doing anything stupid with my set-up.

             

            Regards

            Mark

             

             

            • 18. Re: Building and testing CapeDwarf
              alesj

              As this used to be an issue before 2.0.0.Beta1 -- was fixed with KeyTransformer latest change.

              • 19. Re: Building and testing CapeDwarf
                alesj

                And the running CapeDwarf instance is also built with Blue upstream?

                • 20. Re: Building and testing CapeDwarf
                  memellis0

                  Yes I have checkouted all the CapeDwarf components to latest master.

                   

                  I'll check to see if I can see the KeyTransformer - currently not sure which commit that was in, but I'll try and find it.

                   

                  Regards

                  Mark

                  • 21. Re: Building and testing CapeDwarf
                    alesj

                    Hmmm, I have not seen it fail yet after Marko's fix to KeyTransformer.

                     

                    What about if you just run this test separately?

                    (and cleaning up everything before)

                    • 22. Re: Building and testing CapeDwarf
                      gregor.sfiligoj

                      Ales,

                      I tried to build CD yesterday also, but with no success.

                      All pulls from the last master's commit (shared, blue & jboss-as).

                      This is my build stacktrace: https://gist.github.com/sfiligoj/77dc280b1a98165f5007

                       

                      • 23. Re: Building and testing CapeDwarf
                        alesj

                        Did you install / rebuild Shared first?

                        • 24. Re: Building and testing CapeDwarf
                          gregor.sfiligoj

                          Yes, clean/install in order on shared, blue and jboss-as.

                          • 25. Re: Building and testing CapeDwarf
                            alesj

                            Yes, clean/install in order on shared, blue and jboss-as.

                            Do you have this commit locally?

                            * https://github.com/capedwarf/capedwarf-shared/commit/ee2e38b4b76086f011a653a09801a60eb4d6860c

                            • 26. Re: Building and testing CapeDwarf
                              alesj

                              And check if you really have latest CD_AS:

                              * https://github.com/capedwarf/capedwarf-jboss-as/commits/master

                              • 27. Re: Building and testing CapeDwarf
                                gregor.sfiligoj

                                Sorry, my mistake!

                                capedwarf-jboss-as was not on last commit because after the accepted pull request from my fork I forgot to switch again to capedwarf repository ;-)

                                • 28. Re: Building and testing CapeDwarf
                                  memellis0

                                  Hi Ales

                                  Ales Justin wrote:

                                   

                                  Hmmm, I have not seen it fail yet after Marko's fix to KeyTransformer.

                                   

                                  What about if you just run this test separately?

                                  (and cleaning up everything before)

                                  I did a

                                      cd ${JBOSS_HOME}/standalone

                                      rm -fr data/* tmp/*

                                      cd ${JBOSS_HOME}/bin

                                      ./capedwarf.sh

                                   

                                      cd ${HOME}/build/capedwarf-blue

                                      mvn -pl testsuite test -Premote

                                   

                                  which contains the reported failing test (org.jboss.test.capedwarf.testsuite.objectify.test.ObjectifyTest) in testsuite and this was successful, ie all Testsuite tests

                                   

                                  So does it look like a clean up issue from the previous modules run? as part of:

                                   

                                    cd ${JBOSS_HOME}/standalone   

                                    rm -fr data/* tmp/*

                                     cd ${JBOSS_HOME}/bin

                                    ./capedwarf.sh

                                   

                                    cd ${HOME}/build/capedwarf-blue

                                    mvn install -Premote

                                   

                                  Regards

                                  Mark

                                  • 29. Re: Building and testing CapeDwarf
                                    alesj

                                    So does it look like a clean up issue from the previous modules run? as part of:

                                     

                                      cd ${JBOSS_HOME}/standalone   

                                      rm -fr data/* tmp/*

                                       cd ${JBOSS_HOME}/bin

                                      ./capedwarf.sh

                                     

                                      cd ${HOME}/build/capedwarf-blue

                                      mvn install -Premote

                                    Could be, as I/we don't (often or ever) use Blue to run all the tests.

                                    For that I created a Testsuite sub-project: https://github.com/capedwarf/capedwarf-testsuite

                                     

                                    The -Premote is just a handy way of testing few or a single test.