Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57590

'Exception in thread "main" java.net.SocketException: Permission denied: connect' Error while executing Maven Project

XMLWordPrintable

      An automated test execution is configured as a Jenkins Maven Project.
      The test job is failing with the following error stack trace below:
      Running as SYSTEM
      Building in workspace C:\Users\alt_bhanu.vutukuri\.jenkins\workspace\Dev_Deployment-Test
      Updating
      <SVN URL>
      at revision '2019-05-21T12:03:48.767 -0700' --quiet
      Using sole credentials nareshr/****** in realm '<
      <SVN_URL>
      > Authorization Realm'
      At revision 1534

      No changes for
      <SVN_URL>
      since the previous build
      No emails were triggered.
      Parsing POMs
      Established TCP socket on 49867
      [Dev_Deployment-Test] $ "C:\Program Files\Java\jdk1.8.0_212/bin/java" -cp C:\Users\alt_bhanu.vutukuri\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven35-agent-1.12.jar;C:\Prolifics\Maven\apache-maven-3.6.0\boot\plexus-classworlds-2.5.2.jar;C:\Prolifics\Maven\apache-maven-3.6.0/conf/logging jenkins.maven3.agent.Maven35Main C:\Prolifics\Maven\apache-maven-3.6.0 C:\Users\alt_bhanu.vutukuri\.jenkins\war\WEB-INF\lib\remoting-3.29.jar C:\Users\alt_bhanu.vutukuri\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven35-interceptor-1.12.jar C:\Users\alt_bhanu.vutukuri\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.12.jar 49867
      Exception in thread "main" java.net.SocketException: Permission denied: connect
      at java.net.DualStackPlainSocketImpl.connect0(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      at java.net.Socket.connect(Socket.java:589)
      at java.net.Socket.connect(Socket.java:538)
      at java.net.Socket.<init>(Socket.java:434)
      at java.net.Socket.<init>(Socket.java:211)
      at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:131)
      at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:64)
      ERROR: Failed to launch Maven. Exit code = 1

            Unassigned Unassigned
            bhanu_vutukuri Bhanu Vutukuri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: