ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Susheel Kumar <susheel2...@gmail.com>
Subject Re: Ant Ivy resolve / Authenticated Proxy Issue
Date Wed, 16 Sep 2015 18:28:19 GMT
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=0x00007f899282f000
nid=0x5607 waiting on condition [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"Service Thread" #9 daemon prio=9 os_prio=31 tid=0x00007f899185d000
nid=0x5103 runnable [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"C1 CompilerThread3" #8 daemon prio=9 os_prio=31 tid=0x00007f8990810800
nid=0x4f03 waiting on condition [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"C2 CompilerThread2" #7 daemon prio=9 os_prio=31 tid=0x00007f8990813000
nid=0x4d03 waiting on condition [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"C2 CompilerThread1" #6 daemon prio=9 os_prio=31 tid=0x00007f8991001000
nid=0x4b03 waiting on condition [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"C2 CompilerThread0" #5 daemon prio=9 os_prio=31 tid=0x00007f8991845000
nid=0x4903 waiting on condition [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"Signal Dispatcher" #4 daemon prio=9 os_prio=31 tid=0x00007f8991817800
nid=0x3d0b runnable [0x0000000000000000]

   java.lang.Thread.State: RUNNABLE


"Finalizer" #3 daemon prio=8 os_prio=31 tid=0x00007f899180a000 nid=0x3503
in Object.wait() [0x000000012b494000]

   java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x000000076eb01010> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)

- locked <0x000000076eb01010> (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=0x00007f899285b000
nid=0x3303 in Object.wait() [0x000000012b391000]

   java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x000000076eb18178> (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 <0x000000076eb18178> (a java.lang.ref.Reference$Lock)


"main" #1 prio=5 os_prio=31 tid=0x00007f8991800800 nid=0x1303 runnable
[0x000000010f886000]

   java.lang.Thread.State: RUNNABLE

at java.net.PlainSocketImpl.socketConnect(Native Method)

at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

- locked <0x000000076af1c2d0> (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 <0x000000076af1aa18> (a sun.net.www.protocol.https.HttpsClient)

at sun.net.www.protocol.https.HttpsClient.<init>(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 <0x000000076af12100> (a
sun.net.www.protocol.https.DelegateHttpsURLConnection)

at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)

- locked <0x000000076af12100> (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
org.apache.ivy.plugins.resolver.RepositoryResolver.findResourceUsingPattern(RepositoryResolver.java:97)

at
org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver.findResourceUsingPatterns(AbstractPatternsBasedResolver.java:97)

at
org.apache.ivy.plugins.resolver.IBiblioResolver.findIvyFileRef(IBiblioResolver.java:103)

at
org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:230)

at
org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:506)

at
org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)

at
org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104)

at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:170)

at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:292)

at
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:718)

at
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:803)

at
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:726)

at
org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:599)

at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:236)

at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:197)

at org.apache.ivy.Ivy.resolve(Ivy.java:508)

at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:330)

at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271)

at
org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:228)

at
org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:179)

at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:88)

at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.Target.execute(Target.java:435)

at org.apache.tools.ant.Target.performTasks(Target.java:456)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)

at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)

at org.apache.tools.ant.Project.executeTargets(Project.java:1260)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.Target.execute(Target.java:435)

at org.apache.tools.ant.Target.performTasks(Target.java:456)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)

at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)

at org.apache.tools.ant.Project.executeTargets(Project.java:1260)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)

at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:309)

at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:224)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.Target.execute(Target.java:435)

at org.apache.tools.ant.Target.performTasks(Target.java:456)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)

at org.apache.tools.ant.Project.executeTarget(Project.java:1376)

at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

at org.apache.tools.ant.Project.executeTargets(Project.java:1260)

at org.apache.tools.ant.Main.runBuild(Main.java:853)

at org.apache.tools.ant.Main.startAnt(Main.java:235)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)


"VM Thread" os_prio=31 tid=0x00007f8992858800 nid=0x3103 runnable


"GC task thread#0 (ParallelGC)" os_prio=31 tid=0x00007f8992803800
nid=0x2103 runnable


"GC task thread#1 (ParallelGC)" os_prio=31 tid=0x00007f8992804000
nid=0x2303 runnable


"GC task thread#2 (ParallelGC)" os_prio=31 tid=0x00007f8992804800
nid=0x2503 runnable


"GC task thread#3 (ParallelGC)" os_prio=31 tid=0x00007f8992805000
nid=0x2703 runnable


"GC task thread#4 (ParallelGC)" os_prio=31 tid=0x00007f8992806000
nid=0x2903 runnable


"GC task thread#5 (ParallelGC)" os_prio=31 tid=0x00007f8992806800
nid=0x2b03 runnable


"GC task thread#6 (ParallelGC)" os_prio=31 tid=0x00007f8992807000
nid=0x2d03 runnable


"GC task thread#7 (ParallelGC)" os_prio=31 tid=0x00007f8992807800
nid=0x2f03 runnable


"VM Periodic Task Thread" os_prio=31 tid=0x00007f899082b800 nid=0x5303
waiting on condition


JNI global references: 220

On Wed, Sep 16, 2015 at 2:17 PM, Jaikiran Pai <jai.forums2013@gmail.com>
wrote:

> 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 <process-id>
>
> 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 Pai <jai.forums2013@gmail.com>
>> wrote:
>>
>> 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:
>>>>
>>>>
>>>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message