Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-3676

ADMLuceneCategoryTest and ADMLuceneTest failing a lot in JDK8

    Details

      Description

      When run in Java8, 43 test methods fail in ADMLuceneCategoryTest, ADMLuceneTest and ALF947Test.
      The failures look like:

      testCategoryService(org.alfresco.repo.search.impl.lucene.ADMLuceneCategoryTest)  Time elapsed: 0.383 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: expected:<1> but was:<0>
              at junit.framework.Assert.fail(Assert.java:57)
              at junit.framework.Assert.failNotEquals(Assert.java:329)
              at junit.framework.Assert.assertEquals(Assert.java:78)
              at junit.framework.Assert.assertEquals(Assert.java:234)
              at junit.framework.Assert.assertEquals(Assert.java:241)
              at junit.framework.TestCase.assertEquals(TestCase.java:409)
              at org.alfresco.repo.search.impl.lucene.ADMLuceneCategoryTest.testCategoryService(ADMLuceneCategoryTest.java:745)
      
      testJavascriptAPI(org.alfresco.repo.search.impl.lucene.ADMLuceneCategoryTest)  Time elapsed: 0.41 sec  <<< ERROR!
      org.alfresco.scripts.ScriptException: 11110013 Failed to execute script 'org/alfresco/repo/search/impl/lucene/test_categoryService.j
      s': 11110012 Expected value '1.0' was '2.0'
              at org.alfresco.repo.jscript.ScriptTestUtils.assertEquals(ScriptTestUtils.java:47)
              at org.alfresco.repo.jscript.ScriptTestUtils.assertEquals(ScriptTestUtils.java:31)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:483)
              at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
              at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
              at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
              at org.mozilla.javascript.gen.org_alfresco_repo_search_impl_lucene_test_categoryService_js_1._c_testCategoryListings_2(org/a
      lfresco/repo/search/impl/lucene/test_categoryService.js:24)
              at org.mozilla.javascript.gen.org_alfresco_repo_search_impl_lucene_test_categoryService_js_1.call(org/alfresco/repo/search/i
      mpl/lucene/test_categoryService.js)
              at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
              at org.mozilla.javascript.gen.org_alfresco_repo_search_impl_lucene_test_categoryService_js_1._c_script_0(org/alfresco/repo/s
      earch/impl/lucene/test_categoryService.js:68)
              at org.mozilla.javascript.gen.org_alfresco_repo_search_impl_lucene_test_categoryService_js_1.call(org/alfresco/repo/search/i
      mpl/lucene/test_categoryService.js)
              at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
              at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
              at org.mozilla.javascript.gen.org_alfresco_repo_search_impl_lucene_test_categoryService_js_1.call(org/alfresco/repo/search/i
      mpl/lucene/test_categoryService.js)
              at org.mozilla.javascript.gen.org_alfresco_repo_search_impl_lucene_test_categoryService_js_1.exec(org/alfresco/repo/search/i
      mpl/lucene/test_categoryService.js)
              at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:502)
              at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:200)
              at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
              at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:164)
              at org.alfresco.repo.search.impl.lucene.ADMLuceneCategoryTest.testJavascriptAPI(ADMLuceneCategoryTest.java:701)
      
      testPublicServiceSearchServicePaging(org.alfresco.repo.search.impl.lucene.ADMLuceneTest)  Time elapsed: 2.622 sec  <<< ERROR!
      javax.transaction.RollbackException: The transaction has already been marked for rollback
              at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:466)
              at org.alfresco.repo.search.impl.lucene.ADMLuceneTest.testPublicServiceSearchServicePaging(ADMLuceneTest.java:1235)
      
      testRenameReference(org.alfresco.repo.search.impl.lucene.ADMLuceneTest)  Time elapsed: 3.342 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: expected:<1> but was:<0>
              at junit.framework.Assert.fail(Assert.java:57)
              at junit.framework.Assert.failNotEquals(Assert.java:329)
              at junit.framework.Assert.assertEquals(Assert.java:78)
              at junit.framework.Assert.assertEquals(Assert.java:234)
              at junit.framework.Assert.assertEquals(Assert.java:241)
              at junit.framework.TestCase.assertEquals(TestCase.java:409)
              at org.alfresco.repo.search.impl.lucene.ADMLuceneTest.runBaseTests(ADMLuceneTest.java:5094)
              at org.alfresco.repo.search.impl.lucene.ADMLuceneTest.testRenameReference(ADMLuceneTest.java:7220)
      

      See build https://bamboo.alfresco.com/bamboo/browse/ALF-ENT0-383 for details.

      How to reproduce:
      mvn clean -Pintegration-tests -Ddb.skip=false && mvn install -Dtest=Repository46TestSuite

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  slanglois Samuel Langlois [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 5 hours, 30 minutes
                    5h 30m

                      Structure Helper Panel