Re: Ant Ivy resolve / Authenticated Proxy Issue
Have you used jconsole or visualvm to see what it is actually hanging on to there? Perhaps it is lock files that are not cleaned up or something else? You might try: find ~/.ivy2 -name "*.lck" -type f -exec rm {} \; - Mark On Wed, Sep 16, 2015 at 9:50 AM Susheel Kumarwrote: > Hi, > > Sending it to Solr group in addition to Ivy group. > > > I have been building Solr trunk ( > http://svn.apache.org/repos/asf/lucene/dev/trunk/) using "ant eclipse" > from > quite some time but this week i am on a job where things are behind the > firewall and a proxy is used. > > Issue: When not in company network then build works fine but when inside > company network Ivy stucks during resolve when downloading > https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar (see > below) I have set ANT_OPTS=-Dhttp.proxyHost=myproxyhost > -Dhttp.proxyPort=8080 -Dhttp.proxyUser=myproxyusername > -Dhttp.proxyPassword=myproxypassword but that doesn't help. Similar > issue i run into with SVN but i was able to specify proxy & auth into > .subversion/servers file and it worked.With Ant Ivy no idea what's > going wrong. I also tried -autoproxy with ant command line but no luck. > In the meantime .ivy2 folder which got populated outside network would help > to proceed temporarily. > > Machine : mac 10.10.3 > Ant : 1.9.6 > Ivy : 2.4.0 > > Attach build.xml & ivysettings.xml > > kumar$ ant eclipse > > Buildfile: /Users/kumar/sourcecode/trunk/build.xml > > resolve: > > resolve: > > ivy-availability-check: > > ivy-fail: > > ivy-configure: > > [ivy:configure] :: Apache Ivy 2.4.0 - 20141213170938 :: > http://ant.apache.org/ivy/ :: > > [ivy:configure] :: loading settings :: file = > /Users/kumar/sourcecode/trunk/lucene/ivy-settings.xml > > > resolve: > -- - Mark about.me/markrmiller
Re: Ant Ivy resolve / Authenticated Proxy Issue
Yes, did both jconsole & jstack and here is the output form jstack. $ jstack 5515 2015-09-16 14:28:06 Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode): "Attach Listener" #11 daemon prio=9 os_prio=31 tid=0x7f899282f000 nid=0x5607 waiting on condition [0x] java.lang.Thread.State: RUNNABLE "Service Thread" #9 daemon prio=9 os_prio=31 tid=0x7f899185d000 nid=0x5103 runnable [0x] java.lang.Thread.State: RUNNABLE "C1 CompilerThread3" #8 daemon prio=9 os_prio=31 tid=0x7f8990810800 nid=0x4f03 waiting on condition [0x] java.lang.Thread.State: RUNNABLE "C2 CompilerThread2" #7 daemon prio=9 os_prio=31 tid=0x7f8990813000 nid=0x4d03 waiting on condition [0x] java.lang.Thread.State: RUNNABLE "C2 CompilerThread1" #6 daemon prio=9 os_prio=31 tid=0x7f8991001000 nid=0x4b03 waiting on condition [0x] java.lang.Thread.State: RUNNABLE "C2 CompilerThread0" #5 daemon prio=9 os_prio=31 tid=0x7f8991845000 nid=0x4903 waiting on condition [0x] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" #4 daemon prio=9 os_prio=31 tid=0x7f8991817800 nid=0x3d0b runnable [0x] java.lang.Thread.State: RUNNABLE "Finalizer" #3 daemon prio=8 os_prio=31 tid=0x7f899180a000 nid=0x3503 in Object.wait() [0x00012b494000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00076eb01010> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143) - locked <0x00076eb01010> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209) "Reference Handler" #2 daemon prio=10 os_prio=31 tid=0x7f899285b000 nid=0x3303 in Object.wait() [0x00012b391000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00076eb18178> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:502) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157) - locked <0x00076eb18178> (a java.lang.ref.Reference$Lock) "main" #1 prio=5 os_prio=31 tid=0x7f8991800800 nid=0x1303 runnable [0x00010f886000] java.lang.Thread.State: RUNNABLE at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) - locked <0x00076af1c2d0> (a java.net.SocksSocketImpl) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668) at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) - locked <0x00076af1aa18> (a sun.net.www.protocol.https.HttpsClient) at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1104) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:998) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1512) - locked <0x00076af12100> (a sun.net.www.protocol.https.DelegateHttpsURLConnection) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) - locked <0x00076af12100> (a sun.net.www.protocol.https.DelegateHttpsURLConnection) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) at org.apache.ivy.util.url.BasicURLHandler.checkStatusCode(BasicURLHandler.java:131) at org.apache.ivy.util.url.BasicURLHandler.getURLInfo(BasicURLHandler.java:73) at org.apache.ivy.util.url.BasicURLHandler.getURLInfo(BasicURLHandler.java:54) at org.apache.ivy.util.url.URLHandlerDispatcher.getURLInfo(URLHandlerDispatcher.java:66) at org.apache.ivy.plugins.repository.url.URLResource.init(URLResource.java:68) at org.apache.ivy.plugins.repository.url.URLResource.exists(URLResource.java:84) at
Re: Ant Ivy resolve / Authenticated Proxy Issue
Does ant -v eclipse give any useful information? -Jaikiran On Wednesday 16 September 2015 07:20 PM, Susheel Kumar wrote: Hi, Sending it to Solr group in addition to Ivy group. I have been building Solr trunk ( http://svn.apache.org/repos/asf/lucene/dev/trunk/) using "ant eclipse" from quite some time but this week i am on a job where things are behind the firewall and a proxy is used. Issue: When not in company network then build works fine but when inside company network Ivy stucks during resolve when downloading https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar (see below) I have set ANT_OPTS=-Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=8080 -Dhttp.proxyUser=myproxyusername -Dhttp.proxyPassword=myproxypassword but that doesn't help. Similar issue i run into with SVN but i was able to specify proxy & auth into .subversion/servers file and it worked.With Ant Ivy no idea what's going wrong. I also tried -autoproxy with ant command line but no luck. In the meantime .ivy2 folder which got populated outside network would help to proceed temporarily. Machine : mac 10.10.3 Ant : 1.9.6 Ivy : 2.4.0 Attach build.xml & ivysettings.xml kumar$ ant eclipse Buildfile: /Users/kumar/sourcecode/trunk/build.xml resolve: resolve: ivy-availability-check: ivy-fail: ivy-configure: [ivy:configure] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ :: [ivy:configure] :: loading settings :: file = /Users/kumar/sourcecode/trunk/lucene/ivy-settings.xml resolve:
Re: Ant Ivy resolve / Authenticated Proxy Issue
Ivy stucks during resolve when downloading https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar (see below the terminal console and ant -v eclipse shows similar info) while I have set ANT_OPTS for proxy & auth info. So issue seems to be with proxy or a bug in ivy that it is not able to use proxy info kumar$ ant eclipse Buildfile: /Users/kumar/sourcecode/trunk/build.xml resolve: resolve: ivy-availability-check: ivy-fail: ivy-configure: [ivy:configure] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ :: [ivy:configure] :: loading settings :: file = /Users/kumar/sourcecode/trunk/lucene/ivy-settings.xml resolve: [Stucks...] $ant -v eclipse ... ... [ivy:retrieve] default: Checking cache for: dependency: org.apache.ant#ant;1.8.2 {compile=[master]} [ivy:retrieve] don't use cache for org.apache.ant#ant;1.8.2: checkModified=true [ivy:retrieve] tried /Users/kumar/.ivy2/local/org.apache.ant/ant/1.8.2/ivys/ivy.xml [ivy:retrieve] tried /Users/kumar/.ivy2/local/org.apache.ant/ant/1.8.2/jars/ant.jar [ivy:retrieve] local: no ivy file nor artifact found for org.apache.ant#ant;1.8.2 [ivy:retrieve] main: Checking cache for: dependency: org.apache.ant#ant;1.8.2 {compile=[master]} [ivy:retrieve] tried /Users/kumar/.ivy2/shared/org.apache.ant/ant/1.8.2/ivys/ivy.xml [ivy:retrieve] tried /Users/kumar/.ivy2/shared/org.apache.ant/ant/1.8.2/jars/ant.jar [ivy:retrieve] shared: no ivy file nor artifact found for org.apache.ant#ant;1.8.2 [ivy:retrieve] tried https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom [ivy:retrieve] ERROR: Server access error at url https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom (java.net.ConnectException: Operation timed out) [ivy:retrieve] tried https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar [Stucks.] On Wed, Sep 16, 2015 at 1:50 PM, Jaikiran Paiwrote: > Does > > ant -v eclipse > > give any useful information? > > -Jaikiran > > On Wednesday 16 September 2015 07:20 PM, Susheel Kumar wrote: > >> Hi, >> >> Sending it to Solr group in addition to Ivy group. >> >> >> I have been building Solr trunk ( >> http://svn.apache.org/repos/asf/lucene/dev/trunk/) using "ant eclipse" >> from >> quite some time but this week i am on a job where things are behind the >> firewall and a proxy is used. >> >> Issue: When not in company network then build works fine but when inside >> company network Ivy stucks during resolve when downloading >> https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar >> (see >> below) I have set ANT_OPTS=-Dhttp.proxyHost=myproxyhost >> -Dhttp.proxyPort=8080 -Dhttp.proxyUser=myproxyusername >> -Dhttp.proxyPassword=myproxypassword but that doesn't help. Similar >> issue i run into with SVN but i was able to specify proxy & auth into >> .subversion/servers file and it worked.With Ant Ivy no idea what's >> going wrong. I also tried -autoproxy with ant command line but no luck. >> In the meantime .ivy2 folder which got populated outside network would >> help >> to proceed temporarily. >> >> Machine : mac 10.10.3 >> Ant : 1.9.6 >> Ivy : 2.4.0 >> >> Attach build.xml & ivysettings.xml >> >> kumar$ ant eclipse >> >> Buildfile: /Users/kumar/sourcecode/trunk/build.xml >> >> resolve: >> >> resolve: >> >> ivy-availability-check: >> >> ivy-fail: >> >> ivy-configure: >> >> [ivy:configure] :: Apache Ivy 2.4.0 - 20141213170938 :: >> http://ant.apache.org/ivy/ :: >> >> [ivy:configure] :: loading settings :: file = >> /Users/kumar/sourcecode/trunk/lucene/ivy-settings.xml >> >> >> resolve: >> >> >
Re: Ant Ivy resolve / Authenticated Proxy Issue
When it hangs, from a separate command prompt, do: jps -l which should list the process id of the ant/ivy process that's running. Then do a: jstack for that process and get the thread dump. That will help understand what's going on. This is similar to what Mark already suggested about using JConsole. -Jaikiran On Wednesday 16 September 2015 11:29 PM, Susheel Kumar wrote: Ivy stucks during resolve when downloading https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar (see below the terminal console and ant -v eclipse shows similar info) while I have set ANT_OPTS for proxy & auth info. So issue seems to be with proxy or a bug in ivy that it is not able to use proxy info kumar$ ant eclipse Buildfile: /Users/kumar/sourcecode/trunk/build.xml resolve: resolve: ivy-availability-check: ivy-fail: ivy-configure: [ivy:configure] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ :: [ivy:configure] :: loading settings :: file = /Users/kumar/sourcecode/trunk/lucene/ivy-settings.xml resolve: [Stucks...] $ant -v eclipse ... ... [ivy:retrieve] default: Checking cache for: dependency: org.apache.ant#ant;1.8.2 {compile=[master]} [ivy:retrieve] don't use cache for org.apache.ant#ant;1.8.2: checkModified=true [ivy:retrieve] tried /Users/kumar/.ivy2/local/org.apache.ant/ant/1.8.2/ivys/ivy.xml [ivy:retrieve] tried /Users/kumar/.ivy2/local/org.apache.ant/ant/1.8.2/jars/ant.jar [ivy:retrieve] local: no ivy file nor artifact found for org.apache.ant#ant;1.8.2 [ivy:retrieve] main: Checking cache for: dependency: org.apache.ant#ant;1.8.2 {compile=[master]} [ivy:retrieve] tried /Users/kumar/.ivy2/shared/org.apache.ant/ant/1.8.2/ivys/ivy.xml [ivy:retrieve] tried /Users/kumar/.ivy2/shared/org.apache.ant/ant/1.8.2/jars/ant.jar [ivy:retrieve] shared: no ivy file nor artifact found for org.apache.ant#ant;1.8.2 [ivy:retrieve] tried https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom [ivy:retrieve] ERROR: Server access error at url https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom (java.net.ConnectException: Operation timed out) [ivy:retrieve] tried https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar [Stucks.] On Wed, Sep 16, 2015 at 1:50 PM, Jaikiran Paiwrote: Does ant -v eclipse give any useful information? -Jaikiran On Wednesday 16 September 2015 07:20 PM, Susheel Kumar wrote: Hi, Sending it to Solr group in addition to Ivy group. I have been building Solr trunk ( http://svn.apache.org/repos/asf/lucene/dev/trunk/) using "ant eclipse" from quite some time but this week i am on a job where things are behind the firewall and a proxy is used. Issue: When not in company network then build works fine but when inside company network Ivy stucks during resolve when downloading https://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar (see below) I have set ANT_OPTS=-Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=8080 -Dhttp.proxyUser=myproxyusername -Dhttp.proxyPassword=myproxypassword but that doesn't help. Similar issue i run into with SVN but i was able to specify proxy & auth into .subversion/servers file and it worked.With Ant Ivy no idea what's going wrong. I also tried -autoproxy with ant command line but no luck. In the meantime .ivy2 folder which got populated outside network would help to proceed temporarily. Machine : mac 10.10.3 Ant : 1.9.6 Ivy : 2.4.0 Attach build.xml & ivysettings.xml kumar$ ant eclipse Buildfile: /Users/kumar/sourcecode/trunk/build.xml resolve: resolve: ivy-availability-check: ivy-fail: ivy-configure: [ivy:configure] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ :: [ivy:configure] :: loading settings :: file = /Users/kumar/sourcecode/trunk/lucene/ivy-settings.xml resolve: