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

SocialAnalyzerPlugin downloads DTD from external source

    Details

      Description

      When building a hotfix we are getting the following error:

           [exec] > Task :apps:blogs:blogs-web:jar FAILED
           [exec] error  : Exception: java.net.ConnectException: Connection timed out (Connection timed out)
           [exec] 	at java.net.PlainSocketImpl.socketConnect(Native Method)
           [exec] 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
           [exec] 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
           [exec] 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
           [exec] 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
           [exec] 	at java.net.Socket.connect(Socket.java:589)
           [exec] 	at java.net.Socket.connect(Socket.java:538)
           [exec] 	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
           [exec] 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
           [exec] 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
           [exec] 	at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
           [exec] 	at sun.net.www.http.HttpClient.New(HttpClient.java:308)
           [exec] 	at sun.net.www.http.HttpClient.New(HttpClient.java:326)
           [exec] 	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
           [exec] 	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
           [exec] 	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
           [exec] 	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
           [exec] 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
           [exec] 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
           [exec] 	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:647)
           [exec] 	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1304)
           [exec] 	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1270)
           [exec] 	at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:264)
           [exec] 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1161)
           [exec] 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1045)
           [exec] 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:959)
           [exec] 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
           [exec] 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
           [exec] 	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
           [exec] 	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
           [exec] 	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
           [exec] 	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
           [exec] 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
           [exec] 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
           [exec] 	at com.liferay.ant.bnd.social.SocialAnalyzerPlugin.readXMLResource(SocialAnalyzerPlugin.java:132)
           [exec] 	at com.liferay.ant.bnd.social.SocialAnalyzerPlugin.analyzeJar(SocialAnalyzerPlugin.java:57)
      

      We need to follow the same pattern as here to stabilize the build process:
      https://github.com/liferay/liferay-portal/commit/8d10e0290dbb81aac29d5ab9741a23e50f0476af

        Attachments

          Activity

            People

            Assignee:
            shuyang.zhou Shuyang Zhou
            Reporter:
            zsolt.balogh Zsolt Balogh
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Cleydyr Albuquerque (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              31 weeks ago

                Packages

                Version Package
                7.0.X
                7.1.10 DXP FP26
                7.1.10.7 SP7
                7.1.X
                7.2.10 DXP FP16
                7.2.X
                7.3.10.3 DXP SP3
                7.3.X
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                Master