Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-115825

updateFileEntryType Soap Service randomly fails on CI

    Details

      Description

      Description
      Console log: https://testray.liferay.com/reports/production/logs/test-1-1/1592301111606/test-portal-acceptance-upstream-dxp(master)/746/unit-jdk8/0/jenkins-console.txt.gz

      PortalClientBuilderTest.testPortalClientBuilder fails semi-consistently on CI around 40%, this is not consistently reproduceable, especially locally (I couldnt get it to fail on my local machine)

      The timing for this failure matches with this commit, which added a new service and updated the service as well https://github.com/liferay/liferay-portal/commit/64180848d90d36855d06069cfb120d9417e0cd90
      This is likely the actual cause (a commit diff isnt possible since this isnt 100% reproduceable on CI)

      Steps to Reproduce
      Run PortalClientBuilderTest.testPortalClientBuilder on CI or observe the junit acceptance results here: https://testray.liferay.com/home/-/testray/case_results/1227999875/history?tab=result&hideFilterPin=true

      Expected Result
      Unit test passes 100% of the time

      Actual Result
      Unit test passes 40-70% of the time

      Stacktrace

          [junit] Testcase: testPortalClientBuilder(com.liferay.portal.tools.PortalClientBuilderTest):	FAILED
          [junit] Unexpected output Loading file:/opt/dev/projects/github/liferay-portal/portal-impl/classes/system.properties
          [junit] Loading file:/opt/dev/projects/github/liferay-portal/portal-impl/classes/portal.properties
          [junit] Loading file:/opt/dev/projects/github/liferay-portal/portal-impl/test-classes/unit/portal-test.properties
          [junit] Loading file:/opt/dev/projects/github/liferay-portal/portal-impl/test-classes/unit/portal-test-ext.properties
          [junit] 12:18:13,673 ERROR [Thread-3][InternalException:251] Exception:
          [junit] java.lang.Exception: The OperationDesc for updateFileEntryType was not synchronized to a method of com.liferay.portlet.documentlibrary.service.http.DLFileEntryTypeServiceSoap.
          [junit] 	at org.apache.axis.InternalException.<init>(InternalException.java:71)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.syncOperationToClass(JavaServiceDesc.java:790)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForName(JavaServiceDesc.java:1159)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospectionRecursive(JavaServiceDesc.java:1002)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:936)
          [junit] 	at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
          [junit] 	at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:286)
          [junit] 	at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
          [junit] 	at org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDDeployment.java:503)
          [junit] 	at org.apache.axis.configuration.FileProvider.getDeployedServices(FileProvider.java:296)
          [junit] 	at org.apache.axis.transport.http.QSWSDLHandler.getDeployedServiceNames(QSWSDLHandler.java:218)
          [junit] 	at org.apache.axis.transport.http.QSWSDLHandler.updateSoapAddressLocationURLs(QSWSDLHandler.java:153)
          [junit] 	at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:72)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1218)
          [junit] 	at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:241)
          [junit] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
          [junit] 	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
          [junit] 	at com.liferay.util.axis.AxisServlet.service(AxisServlet.java:192)
          [junit] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder._getWSDLContent(PortalClientBuilder.java:168)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder.access$100(PortalClientBuilder.java:57)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder$DirectURLConnection.getInputStream(PortalClientBuilder.java:247)
          [junit] 	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
          [junit] 	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
          [junit] 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          [junit] 	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
          [junit] 	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
          [junit] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
          [junit] 	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] 12:18:15,893 ERROR [Thread-51][InternalException:251] Exception:
          [junit] java.lang.Exception: The OperationDesc for updateFileEntryType was not synchronized to a method of com.liferay.portlet.documentlibrary.service.http.DLFileEntryTypeServiceSoap.
          [junit] 	at org.apache.axis.InternalException.<init>(InternalException.java:71)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.syncOperationToClass(JavaServiceDesc.java:790)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForName(JavaServiceDesc.java:1159)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospectionRecursive(JavaServiceDesc.java:1002)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:936)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:886)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.getOperations(JavaServiceDesc.java:417)
          [junit] 	at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1016)
          [junit] 	at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:484)
          [junit] 	at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:331)
          [junit] 	at org.apache.axis.providers.BasicProvider.generateWSDL(BasicProvider.java:242)
          [junit] 	at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
          [junit] 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
          [junit] 	at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
          [junit] 	at org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:320)
          [junit] 	at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:482)
          [junit] 	at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
          [junit] 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1218)
          [junit] 	at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:241)
          [junit] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
          [junit] 	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
          [junit] 	at com.liferay.util.axis.AxisServlet.service(AxisServlet.java:192)
          [junit] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder._getWSDLContent(PortalClientBuilder.java:168)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder.access$100(PortalClientBuilder.java:57)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder$DirectURLConnection.getInputStream(PortalClientBuilder.java:247)
          [junit] 	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
          [junit] 	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
          [junit] 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          [junit] 	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
          [junit] 	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
          [junit] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
          [junit] 	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] 
          [junit] junit.framework.AssertionFailedError: Unexpected output Loading file:/opt/dev/projects/github/liferay-portal/portal-impl/classes/system.properties
          [junit] Loading file:/opt/dev/projects/github/liferay-portal/portal-impl/classes/portal.properties
          [junit] Loading file:/opt/dev/projects/github/liferay-portal/portal-impl/test-classes/unit/portal-test.properties
          [junit] Loading file:/opt/dev/projects/github/liferay-portal/portal-impl/test-classes/unit/portal-test-ext.properties
          [junit] 12:18:13,673 ERROR [Thread-3][InternalException:251] Exception:
          [junit] java.lang.Exception: The OperationDesc for updateFileEntryType was not synchronized to a method of com.liferay.portlet.documentlibrary.service.http.DLFileEntryTypeServiceSoap.
          [junit] 	at org.apache.axis.InternalException.<init>(InternalException.java:71)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.syncOperationToClass(JavaServiceDesc.java:790)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForName(JavaServiceDesc.java:1159)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospectionRecursive(JavaServiceDesc.java:1002)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:936)
          [junit] 	at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:477)
          [junit] 	at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:286)
          [junit] 	at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:500)
          [junit] 	at org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDDeployment.java:503)
          [junit] 	at org.apache.axis.configuration.FileProvider.getDeployedServices(FileProvider.java:296)
          [junit] 	at org.apache.axis.transport.http.QSWSDLHandler.getDeployedServiceNames(QSWSDLHandler.java:218)
          [junit] 	at org.apache.axis.transport.http.QSWSDLHandler.updateSoapAddressLocationURLs(QSWSDLHandler.java:153)
          [junit] 	at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:72)
          [junit] 	at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1218)
          [junit] 	at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:241)
          [junit] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
          [junit] 	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
          [junit] 	at com.liferay.util.axis.AxisServlet.service(AxisServlet.java:192)
          [junit] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder._getWSDLContent(PortalClientBuilder.java:168)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder.access$100(PortalClientBuilder.java:57)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder$DirectURLConnection.getInputStream(PortalClientBuilder.java:247)
          [junit] 	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
          [junit] 	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
          [junit] 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          [junit] 	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
          [junit] 	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
          [junit] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
          [junit] 	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] 12:18:15,893 ERROR [Thread-51][InternalException:251] Exception:
          [junit] java.lang.Exception: The OperationDesc for updateFileEntryType was not synchronized to a method of com.liferay.portlet.documentlibrary.service.http.DLFileEntryTypeServiceSoap.
          [junit] 	at org.apache.axis.InternalException.<init>(InternalException.java:71)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.syncOperationToClass(JavaServiceDesc.java:790)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForName(JavaServiceDesc.java:1159)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospectionRecursive(JavaServiceDesc.java:1002)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:936)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:886)
          [junit] 	at org.apache.axis.description.JavaServiceDesc.getOperations(JavaServiceDesc.java:417)
          [junit] 	at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1016)
          [junit] 	at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:484)
          [junit] 	at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:331)
          [junit] 	at org.apache.axis.providers.BasicProvider.generateWSDL(BasicProvider.java:242)
          [junit] 	at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
          [junit] 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
          [junit] 	at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
          [junit] 	at org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:320)
          [junit] 	at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:482)
          [junit] 	at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
          [junit] 	at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1218)
          [junit] 	at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:241)
          [junit] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
          [junit] 	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
          [junit] 	at com.liferay.util.axis.AxisServlet.service(AxisServlet.java:192)
          [junit] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder._getWSDLContent(PortalClientBuilder.java:168)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder.access$100(PortalClientBuilder.java:57)
          [junit] 	at com.liferay.portal.tools.PortalClientBuilder$DirectURLConnection.getInputStream(PortalClientBuilder.java:247)
          [junit] 	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
          [junit] 	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          [junit] 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
          [junit] 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          [junit] 	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
          [junit] 	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
          [junit] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
          [junit] 	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] 
          [junit] 	at com.liferay.portal.tools.PortalClientBuilderTest.testPortalClientBuilder(PortalClientBuilderTest.java:58)
          [junit] 
          [junit] 
          [junit] Test com.liferay.portal.tools.PortalClientBuilderTest FAILED
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kyle.miho Kyle Miho
              Reporter:
              kyle.miho Kyle Miho
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                22 weeks, 5 days ago

                  Packages

                  Version Package
                  7.3.3 CE GA4
                  7.3.10 DXP GA1
                  Master